diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2016-07-01 11:23:06 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-06-10 12:40:37 +0200 |
commit | 0755c2d117060a252674191b98bc852ccd8840fe (patch) | |
tree | e401b5b808066ea553fe9f5817378110ed91ffff /target/linux/brcm63xx/dts/dgnd3700v1.dts | |
parent | fd1096e351b7cfb0a7eb8bee7eceff52e7c7c499 (diff) | |
download | upstream-0755c2d117060a252674191b98bc852ccd8840fe.tar.gz upstream-0755c2d117060a252674191b98bc852ccd8840fe.tar.bz2 upstream-0755c2d117060a252674191b98bc852ccd8840fe.zip |
brcm63xx: add pinctrl support
Add and enable pincontrol drivers, and update dts(i) files with
appropriate hogs.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/dts/dgnd3700v1.dts')
-rw-r--r-- | target/linux/brcm63xx/dts/dgnd3700v1.dts | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/target/linux/brcm63xx/dts/dgnd3700v1.dts b/target/linux/brcm63xx/dts/dgnd3700v1.dts index 2b6248b19a..7701bd013a 100644 --- a/target/linux/brcm63xx/dts/dgnd3700v1.dts +++ b/target/linux/brcm63xx/dts/dgnd3700v1.dts @@ -21,17 +21,17 @@ wlan { label = "wlan"; - gpios = <&gpio0 10 1>; + gpios = <&pinctrl 10 1>; linux,code = <KEY_WLAN>; }; reset { label = "reset"; - gpios = <&gpio0 12 1>; + gpios = <&pinctrl 12 1>; linux,code = <KEY_RESTART>; }; wps { label = "wps"; - gpios = <&gpio1 3 1>; + gpios = <&pinctrl 35 1>; linux,code = <KEY_WPS_BUTTON>; }; }; @@ -41,48 +41,48 @@ dsl_green { label = "DGND3700v1_3800B:green:dsl"; - gpios = <&gpio0 2 1>; + gpios = <&pinctrl 2 1>; }; inet_red { label = "DGND3700v1_3800B:red:inet"; - gpios = <&gpio0 4 1>; + gpios = <&pinctrl 4 1>; }; inet_green { label = "DGND3700v1_3800B:green:inet"; - gpios = <&gpio0 5 1>; + gpios = <&pinctrl 5 1>; }; wps_green { label = "DGND3700v1_3800B:green:wps"; - gpios = <&gpio0 11 1>; + gpios = <&pinctrl 11 1>; }; usbfront_green { label = "DGND3700v1_3800B:green:usb-front"; - gpios = <&gpio0 13 1>; + gpios = <&pinctrl 13 1>; }; usbback_green { label = "DGND3700v1_3800B:green:usb-back"; - gpios = <&gpio0 14 1>; + gpios = <&pinctrl 14 1>; }; power_red { label = "DGND3700v1_3800B:red:power"; - gpios = <&gpio0 22 1>; + gpios = <&pinctrl 22 1>; }; lan_green { label = "DGND3700v1_3800B:green:lan"; - gpios = <&gpio0 23 1>; + gpios = <&pinctrl 23 1>; }; power_green { label = "DGND3700v1_3800B:green:power"; - gpios = <&gpio0 24 1>; + gpios = <&pinctrl 24 1>; default-state = "on"; }; wifi2g_green { label = "DGND3700v1_3800B:green:wifi2g"; - gpios = <&gpio0 26 1>; + gpios = <&pinctrl 26 1>; }; wifi5g_blue { label = "DGND3700v1_3800B:blue:wifi5g"; - gpios = <&gpio0 27 1>; + gpios = <&pinctrl 27 1>; }; }; }; @@ -113,4 +113,9 @@ label = "nvram"; reg = <0x1fe0000 0x20000>; }; +}; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pci>; }; |