[OpenWrt-Devel] [PATCH v2 1/2] ath79: add pinmux to ar9330

Rocco Folino rocco at folino.io
Wed Jun 27 14:38:27 EDT 2018


This patch adds the pinmux support to the ar9330 used to disable the
JTAG or to enable switch LEDs

Signed-off-by: Rocco Folino <rocco at folino.io>
---
 target/linux/ath79/dts/ar9330.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi
index 3d3dd87f9b2f..65445de1f161 100644
--- a/target/linux/ath79/dts/ar9330.dtsi
+++ b/target/linux/ath79/dts/ar9330.dtsi
@@ -61,6 +61,24 @@
 				status = "disabled";
 			};
 
+			pinmux: pinmux at 18040028 {
+				compatible = "pinctrl-single";
+				reg = <0x18040028 0x8>;
+
+				pinctrl-single,bit-per-mux;
+				pinctrl-single,register-width = <32>;
+				pinctrl-single,function-mask = <0x1>;
+				#pinctrl-cells = <2>;
+
+				jtag_disable_pins: pinmux_jtag_disable_pins {
+					pinctrl-single,bits = <0x0 0x1 0x1>;
+				};
+
+				switch_led_pins: pinmux_switch_led_pins {
+					pinctrl-single,bits = <0x0 0x1f 0xf8>;
+				};
+			};
+
 			pll: pll-controller at 18050000 {
 				compatible = "qca,ar9330-pll";
 				reg = <0x18050000 0x100>;
-- 
2.17.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list