ARM: dts: logicpd-torpedo-baseboard: Enable HDQ
authorAdam Ford <aford173@gmail.com>
Tue, 12 Nov 2019 17:11:56 +0000 (11:11 -0600)
committerTony Lindgren <tony@atomide.com>
Thu, 14 Nov 2019 16:56:42 +0000 (08:56 -0800)
The baseboard of the Logic PD Torpedo development kit has a socket
for a rechargable battery.  The battery is monitored by a charger
which can communicate of the the 1-wire HDQ pin.

This patch enables the pinmux for the HDQ pin.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi

index 184e462d96ab1e5e8579110bee93979ebaf1a12d..16ff104aa040148363edb9f475b015da97c652b0 100644 (file)
        };
 };
 
+&hdqw1w {
+       pinctrl-names = "default";
+       pinctrl-0 = <&hdq_pins>;
+};
+
+
 &vpll2 {
        regulator-always-on;
 };
                >;
        };
 
+       hdq_pins: hdq_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x21c6, PIN_INPUT_PULLUP | MUX_MODE0) /* hdq_sio */
+               >;
+       };
+
        pwm_pins: pinmux_pwm_pins {
                pinctrl-single,pins = <
                        OMAP3_CORE1_IOPAD(0x20B8, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE3)       /* gpmc_ncs5.gpt_10_pwm_evt */