Lines Matching +full:current +full:- +full:sense +full:- +full:shunt

1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 * https://www.toradex.com/computer-on-modules/verdin-arm-family/ti-am62
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>;
25 /* AIN1 Current w/o AIN1_MODE gpio control */
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_gpio_5>;
38 #mux-control-cells = <0>;
39 mux-gpios = <&main_gpio0 40 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>;
69 /* AIN2 Current w/o AIN2_MODE gpio control */
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_gpio_6>;
82 #mux-control-cells = <0>;
83 mux-gpios = <&main_gpio0 36 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>;
231 pinctrl_ivy_leds: ivy-leds-default-pins {
232 pinctrl-single,pins =
249 /* MDIO, shared by Verdin ETH_1 (On-module PHY) and Verdin ETH_2_RGMII */
253 cpsw3g_phy1: ethernet-phy@2 {
255 pinctrl-names = "default";
256 pinctrl-0 = <&pinctrl_eth2_rgmii_int>;
257 interrupt-parent = <&main_gpio0>;
259 ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
270 phy-handle = <&cpsw3g_phy1>;
271 phy-mode = "rgmii-rxid";
276 pinctrl-names = "default";
277 pinctrl-0 = <&pinctrl_ctrl_sleep_moci>,
283 gpio-line-names =
374 pinctrl-names = "default";
375 pinctrl-0 = <&pinctrl_qspi1_dqs_gpio>;
376 gpio-line-names =
471 temperature-sensor@4f {
490 pinctrl-names = "default";
491 pinctrl-0 = <&pinctrl_gpio_7>;
492 interrupt-parent = <&main_gpio0>;
494 avdd-supply = <&reg_3v2_ain1>;
495 dvdd-supply = <&reg_3v2_ain1>;
496 vref-supply = <&reg_3v2_ain1>;
497 #address-cells = <1>;
498 #io-channel-cells = <1>;
499 #size-cells = <0>;
501 /* AIN1 0-33V Voltage Input */
504 diff-channels = <0 1>;
507 /* AIN1 0-20mA Current Input */
510 diff-channels = <2 3>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&pinctrl_gpio_8>;
519 interrupt-parent = <&main_gpio0>;
521 avdd-supply = <&reg_3v2_ain2>;
522 dvdd-supply = <&reg_3v2_ain2>;
523 vref-supply = <&reg_3v2_ain2>;
524 #address-cells = <1>;
525 #io-channel-cells = <1>;
526 #size-cells = <0>;
528 /* AIN2 0-33V Voltage Input */
531 diff-channels = <0 1>;
534 /* AIN2 0-20mA Current Input */
537 diff-channels = <2 3>;
549 pinctrl-0 = <&pinctrl_spi1>,
553 cs-gpios = <0>,
559 compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
561 spi-max-frequency = <18500000>;
567 address-width = <16>;
569 spi-max-frequency = <33000000>;
585 pinctrl-names = "default";
586 pinctrl-0 = <&pinctrl_gpio_2>,
589 gpio-line-names =
592 "GPIO2", /* Verdin GPIO_2 - SODIMM 208 */
593 "GPIO3", /* Verdin GPIO_3 - SODIMM 210 */
651 linux,rs485-enabled-at-boot-time;
652 rs485-rts-active-low;
653 rs485-rx-during-tx;