ARM: dts: logicpd-torpedo-baseboard: Enable HDQ
diff mbox series

Message ID 20191112171156.5952-1-aford173@gmail.com
State New
Headers show
Series
  • ARM: dts: logicpd-torpedo-baseboard: Enable HDQ
Related show

Commit Message

Adam Ford Nov. 12, 2019, 5:11 p.m. UTC
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>

Comments

Tony Lindgren Nov. 14, 2019, 4:57 p.m. UTC | #1
* Adam Ford <aford173@gmail.com> [191112 09:12]:
> 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.

Applying into omap-for-v5.5/dt thanks. As we're close to the
merge window, these may need to wait we'll see.

Regards,

Tony

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi b/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi
index 449cc7616da6..f51b472b91b9 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi
+++ b/arch/arm/boot/dts/logicpd-torpedo-baseboard.dtsi
@@ -101,6 +101,12 @@ 
 	};
 };
 
+&hdqw1w {
+	pinctrl-names = "default";
+	pinctrl-0 = <&hdq_pins>;
+};
+
+
 &vpll2 {
 	regulator-always-on;
 };
@@ -168,6 +174,12 @@ 
 		>;
 	};
 
+	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 */