From: Rocco Folino Date: Wed, 27 Jun 2018 18:38:27 +0000 (+0200) Subject: ath79: add pinmux to ar9330 X-Git-Tag: v19.07.0-rc1~3288 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b575288ebdda335502219528c40d26b8e339376;p=openwrt%2Fstaging%2Fpepe2k.git ath79: add pinmux to ar9330 This patch adds the pinmux support to the ar9330 used to disable the JTAG or to enable switch LEDs Signed-off-by: Rocco Folino --- diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi index 3d3dd87f9b..65445de1f1 100644 --- a/target/linux/ath79/dts/ar9330.dtsi +++ b/target/linux/ath79/dts/ar9330.dtsi @@ -61,6 +61,24 @@ status = "disabled"; }; + pinmux: pinmux@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@18050000 { compatible = "qca,ar9330-pll"; reg = <0x18050000 0x100>;