Lines Matching +full:io +full:- +full:channel +full:- +full:mux
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62p
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>
21 ain1_voltage_unmanaged: voltage-divider-ain1 {
22 compatible = "voltage-divider";
23 #io-channel-cells = <1>;
24 io-channels = <&ivy_adc1 0>;
25 full-ohms = <19>;
26 output-ohms = <1>;
30 ain1_current_unmanaged: current-sense-shunt-ain1 {
31 compatible = "current-sense-shunt";
32 #io-channel-cells = <0>;
33 io-channels = <&ivy_adc1 1>;
34 shunt-resistor-micro-ohms = <100000000>;
37 /* AIN1_MODE - SODIMM 216 */
38 ain1_mode_mux_ctrl: mux-controller-0 {
39 compatible = "gpio-mux";
40 pinctrl-names = "default";
41 pinctrl-0 = <&pinctrl_gpio_5>;
42 #mux-control-cells = <0>;
43 mux-gpios = <&main_gpio0 49 GPIO_ACTIVE_HIGH>;
46 ain1-voltage {
47 compatible = "io-channel-mux";
49 io-channels = <&ain1_voltage_unmanaged 0>;
50 io-channel-names = "parent";
51 mux-controls = <&ain1_mode_mux_ctrl>;
52 settle-time-us = <1000>;
55 ain1-current {
56 compatible = "io-channel-mux";
58 io-channels = <&ain1_current_unmanaged>;
59 io-channel-names = "parent";
60 mux-controls = <&ain1_mode_mux_ctrl>;
61 settle-time-us = <1000>;
65 ain2_voltage_unmanaged: voltage-divider-ain2 {
66 compatible = "voltage-divider";
67 #io-channel-cells = <1>;
68 io-channels = <&ivy_adc2 0>;
69 full-ohms = <19>;
70 output-ohms = <1>;
74 ain2_current_unmanaged: current-sense-shunt-ain2 {
75 compatible = "current-sense-shunt";
76 #io-channel-cells = <0>;
77 io-channels = <&ivy_adc2 1>;
78 shunt-resistor-micro-ohms = <100000000>;
81 /* AIN2_MODE - SODIMM 218 */
82 ain2_mode_mux_ctrl: mux-controller-1 {
83 compatible = "gpio-mux";
84 pinctrl-names = "default";
85 pinctrl-0 = <&pinctrl_gpio_6>;
86 #mux-control-cells = <0>;
87 mux-gpios = <&main_gpio0 50 GPIO_ACTIVE_HIGH>;
90 ain2-voltage {
91 compatible = "io-channel-mux";
93 io-channels = <&ain2_voltage_unmanaged 0>;
94 io-channel-names = "parent";
95 mux-controls = <&ain2_mode_mux_ctrl>;
96 settle-time-us = <1000>;
99 ain2-current {
100 compatible = "io-channel-mux";
102 io-channels = <&ain2_current_unmanaged>;
103 io-channel-names = "parent";
104 mux-controls = <&ain2_mode_mux_ctrl>;
105 settle-time-us = <1000>;
109 compatible = "gpio-leds";
110 pinctrl-names = "default";
111 pinctrl-0 = <&pinctrl_ivy_leds>;
113 /* D7 Blue - SODIMM 30 - LEDs.GPIO1 */
114 led-0 {
116 default-state = "off";
118 function-enumerator = <1>;
122 /* D7 Green - SODIMM 32 - LEDs.GPIO2 */
123 led-1 {
125 default-state = "off";
127 function-enumerator = <1>;
131 /* D7 Red - SODIMM 34 - LEDs.GPIO3 */
132 led-2 {
134 default-state = "off";
136 function-enumerator = <1>;
140 /* D8 Blue - SODIMM 36 - LEDs.GPIO4 */
141 led-3 {
143 default-state = "off";
145 function-enumerator = <2>;
149 /* D8 Green - SODIMM 54 - LEDs.GPIO5 */
150 led-4 {
152 default-state = "off";
154 function-enumerator = <2>;
158 /* D8 Red - SODIMM 44 - LEDs.GPIO6 */
159 led-5 {
161 default-state = "off";
163 function-enumerator = <2>;
167 /* D9 Blue - SODIMM 46 - LEDs.GPIO7 */
168 led-6 {
170 default-state = "off";
172 function-enumerator = <3>;
176 /* D9 Red - SODIMM 48 - LEDs.GPIO8 */
177 led-7 {
179 default-state = "off";
181 function-enumerator = <3>;
186 reg_3v2_ain1: regulator-3v2-ain1 {
187 compatible = "regulator-fixed";
188 regulator-max-microvolt = <3200000>;
189 regulator-min-microvolt = <3200000>;
190 regulator-name = "+3V2_AIN1";
193 reg_3v2_ain2: regulator-3v2-ain2 {
194 compatible = "regulator-fixed";
195 regulator-max-microvolt = <3200000>;
196 regulator-min-microvolt = <3200000>;
197 regulator-name = "+3V2_AIN2";
201 ivy-input-voltage {
202 compatible = "voltage-divider";
204 io-channels = <&som_adc 7>;
205 full-ohms = <204700>; /* 200K + 4.7K */
206 output-ohms = <4700>;
209 ivy-5v-voltage {
210 compatible = "voltage-divider";
212 io-channels = <&som_adc 6>;
213 full-ohms = <39000>; /* 27K + 12K */
214 output-ohms = <12000>;
217 ivy-3v3-voltage {
218 compatible = "voltage-divider";
220 io-channels = <&som_adc 5>;
221 full-ohms = <54000>; /* 27K + 27K */
222 output-ohms = <27000>;
225 ivy-1v8-voltage {
226 compatible = "voltage-divider";
228 io-channels = <&som_adc 4>;
229 full-ohms = <39000>; /* 12K + 27K */
230 output-ohms = <27000>;
235 pinctrl_ivy_leds: ivy-leds-default-pins {
236 pinctrl-single,pins = <
251 pinctrl-names = "default";
252 pinctrl-0 = <&pinctrl_rgmii1>, <&pinctrl_rgmii2>;
256 /* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
260 carrier_eth_phy: ethernet-phy@2 {
262 pinctrl-names = "default";
263 pinctrl-0 = <&pinctrl_eth2_rgmii_int>;
264 interrupt-parent = <&main_gpio0>;
266 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
270 /* Verdin ETH_1 (On-module PHY) */
277 phy-handle = <&carrier_eth_phy>;
278 phy-mode = "rgmii-rxid";
283 pinctrl-names = "default";
284 pinctrl-0 = <&pinctrl_pcie_1_reset>,
291 gpio-line-names =
387 gpio-line-names =
446 temperature-sensor@4f {
465 pinctrl-names = "default";
466 pinctrl-0 = <&pinctrl_gpio_7>;
467 interrupt-parent = <&main_gpio0>;
469 avdd-supply = <®_3v2_ain1>;
470 dvdd-supply = <®_3v2_ain1>;
471 vref-supply = <®_3v2_ain1>;
472 #address-cells = <1>;
473 #io-channel-cells = <1>;
474 #size-cells = <0>;
476 /* AIN1 0-33V Voltage Input */
477 channel@0 {
479 diff-channels = <0 1>;
482 /* AIN1 0-20mA Current Input */
483 channel@1 {
485 diff-channels = <2 3>;
492 pinctrl-names = "default";
493 pinctrl-0 = <&pinctrl_gpio_8>;
494 interrupt-parent = <&main_gpio0>;
496 avdd-supply = <®_3v2_ain2>;
497 dvdd-supply = <®_3v2_ain2>;
498 vref-supply = <®_3v2_ain2>;
499 #address-cells = <1>;
500 #io-channel-cells = <1>;
501 #size-cells = <0>;
503 /* AIN2 0-33V Voltage Input */
504 channel@0 {
506 diff-channels = <0 1>;
509 /* AIN2 0-20mA Current Input */
510 channel@1 {
512 diff-channels = <2 3>;
524 pinctrl-0 = <&pinctrl_main_spi1>,
528 cs-gpios = <0>,
534 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
536 spi-max-frequency = <18500000>;
542 address-width = <16>;
544 spi-max-frequency = <33000000>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&pinctrl_gpio_2>,
563 gpio-line-names =
566 "GPIO2", /* Verdin GPIO_2 - SODIMM 208 */
567 "GPIO3", /* Verdin GPIO_3 - SODIMM 210 */
625 rs485-rts-active-low;
626 rs485-rx-during-tx;
627 linux,rs485-enabled-at-boot-time;