Lines Matching +full:io +full:- +full:channel
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/nxp-imx-8m-plus
8 * https://www.toradex.com/products/carrier-board/ivy-carrier-board
11 #include <dt-bindings/mux/mux.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/net/ti-dp83867.h>
17 ain1_voltage_unmanaged: voltage-divider-ain1 {
18 compatible = "voltage-divider";
19 #io-channel-cells = <1>;
20 io-channels = <&ivy_adc1 0>;
21 full-ohms = <19>;
22 output-ohms = <1>;
26 ain1_current_unmanaged: current-sense-shunt-ain1 {
27 compatible = "current-sense-shunt";
28 #io-channel-cells = <0>;
29 io-channels = <&ivy_adc1 1>;
30 shunt-resistor-micro-ohms = <100000000>;
33 /* AIN1_MODE - SODIMM 216 */
34 ain1_mode_mux_ctrl: mux-controller-0 {
35 compatible = "gpio-mux";
36 pinctrl-names = "default";
37 pinctrl-0 = <&pinctrl_gpio5>;
38 #mux-control-cells = <0>;
39 mux-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
42 ain1-voltage {
43 compatible = "io-channel-mux";
45 io-channels = <&ain1_voltage_unmanaged 0>;
46 io-channel-names = "parent";
47 mux-controls = <&ain1_mode_mux_ctrl>;
48 settle-time-us = <1000>;
51 ain1-current {
52 compatible = "io-channel-mux";
54 io-channels = <&ain1_current_unmanaged>;
55 io-channel-names = "parent";
56 mux-controls = <&ain1_mode_mux_ctrl>;
57 settle-time-us = <1000>;
61 ain2_voltage_unmanaged: voltage-divider-ain2 {
62 compatible = "voltage-divider";
63 #io-channel-cells = <1>;
64 io-channels = <&ivy_adc2 0>;
65 full-ohms = <19>;
66 output-ohms = <1>;
70 ain2_current_unmanaged: current-sense-shunt-ain2 {
71 compatible = "current-sense-shunt";
72 #io-channel-cells = <0>;
73 io-channels = <&ivy_adc2 1>;
74 shunt-resistor-micro-ohms = <100000000>;
77 /* AIN2_MODE - SODIMM 218 */
78 ain2_mode_mux_ctrl: mux-controller-1 {
79 compatible = "gpio-mux";
80 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_gpio6>;
82 #mux-control-cells = <0>;
83 mux-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
86 ain2-voltage {
87 compatible = "io-channel-mux";
89 io-channels = <&ain2_voltage_unmanaged 0>;
90 io-channel-names = "parent";
91 mux-controls = <&ain2_mode_mux_ctrl>;
92 settle-time-us = <1000>;
95 ain2-current {
96 compatible = "io-channel-mux";
98 io-channels = <&ain2_current_unmanaged>;
99 io-channel-names = "parent";
100 mux-controls = <&ain2_mode_mux_ctrl>;
101 settle-time-us = <1000>;
105 compatible = "gpio-leds";
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_ivy_leds>;
109 /* D7 Blue - SODIMM 30 - LEDs.GPIO1 */
110 led-0 {
112 default-state = "off";
114 function-enumerator = <1>;
118 /* D7 Green - SODIMM 32 - LEDs.GPIO2 */
119 led-1 {
121 default-state = "off";
123 function-enumerator = <1>;
127 /* D7 Red - SODIMM 34 - LEDs.GPIO3 */
128 led-2 {
130 default-state = "off";
132 function-enumerator = <1>;
136 /* D8 Blue - SODIMM 36 - LEDs.GPIO4 */
137 led-3 {
139 default-state = "off";
141 function-enumerator = <2>;
145 /* D8 Green - SODIMM 54 - LEDs.GPIO5 */
146 led-4 {
148 default-state = "off";
150 function-enumerator = <2>;
154 /* D8 Red - SODIMM 44 - LEDs.GPIO6 */
155 led-5 {
157 default-state = "off";
159 function-enumerator = <2>;
163 /* D9 Blue - SODIMM 46 - LEDs.GPIO7 */
164 led-6 {
166 default-state = "off";
168 function-enumerator = <3>;
172 /* D9 Red - SODIMM 48 - LEDs.GPIO8 */
173 led-7 {
175 default-state = "off";
177 function-enumerator = <3>;
182 reg_3v2_ain1: regulator-3v2-ain1 {
183 compatible = "regulator-fixed";
184 regulator-max-microvolt = <3200000>;
185 regulator-min-microvolt = <3200000>;
186 regulator-name = "+3V2_AIN1";
189 reg_3v2_ain2: regulator-3v2-ain2 {
190 compatible = "regulator-fixed";
191 regulator-max-microvolt = <3200000>;
192 regulator-min-microvolt = <3200000>;
193 regulator-name = "+3V2_AIN2";
197 ivy-input-voltage {
198 compatible = "voltage-divider";
200 io-channels = <&verdin_som_adc 7>;
201 full-ohms = <204700>; /* 200k + 4.7k */
202 output-ohms = <4700>;
205 ivy-5v-voltage {
206 compatible = "voltage-divider";
208 io-channels = <&verdin_som_adc 6>;
209 full-ohms = <39000>; /* 27k + 12k */
210 output-ohms = <12000>;
213 ivy-3v3-voltage {
214 compatible = "voltage-divider";
216 io-channels = <&verdin_som_adc 5>;
217 full-ohms = <54000>; /* 27k + 27k */
218 output-ohms = <27000>;
221 ivy-1v8-voltage {
222 compatible = "voltage-divider";
224 io-channels = <&verdin_som_adc 4>;
225 full-ohms = <39000>; /* 12k + 27k */
226 output-ohms = <27000>;
232 pinctrl-0 = <&pinctrl_ecspi1>,
235 cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>,
241 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
243 spi-max-frequency = <18500000>;
249 address-width = <16>;
251 spi-max-frequency = <33000000>;
268 phy-handle = <ðphy2>;
269 phy-mode = "rgmii-id";
274 ethphy2: ethernet-phy@2 {
276 interrupt-parent = <&gpio4>;
278 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
279 ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
294 gpio-line-names =
296 "GPIO2", /* Verdin GPIO_2 - SODIMM 208 */
300 "GPIO3", /* Verdin GPIO_3 - SODIMM 210 */
329 gpio-line-names =
375 pinctrl-names = "default";
376 pinctrl-0 = <&pinctrl_gpio7>;
377 interrupt-parent = <&gpio4>;
379 avdd-supply = <®_3v2_ain1>;
380 dvdd-supply = <®_3v2_ain1>;
381 vref-supply = <®_3v2_ain1>;
382 #address-cells = <1>;
383 #io-channel-cells = <1>;
384 #size-cells = <0>;
386 /* AIN1 0-33V Voltage Input */
387 channel@0 {
389 diff-channels = <0 1>;
392 /* AIN1 0-20mA Current Input */
393 channel@1 {
395 diff-channels = <2 3>;
402 pinctrl-names = "default";
403 pinctrl-0 = <&pinctrl_gpio8>;
404 interrupt-parent = <&gpio4>;
406 avdd-supply = <®_3v2_ain2>;
407 dvdd-supply = <®_3v2_ain2>;
408 vref-supply = <®_3v2_ain2>;
409 #address-cells = <1>;
410 #io-channel-cells = <1>;
411 #size-cells = <0>;
413 /* AIN2 0-33V Voltage Input */
414 channel@0 {
416 diff-channels = <0 1>;
419 /* AIN2 0-20mA Current Input */
420 channel@1 {
422 diff-channels = <2 3>;
448 linux,rs485-enabled-at-boot-time;
449 rs485-rx-during-tx;
483 pinctrl-names = "default";
484 pinctrl-0 = <&pinctrl_gpio2>, <&pinctrl_gpio3>,