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/p870hw-51a-v2.dts | |
parent | fd1096e351b7cfb0a7eb8bee7eceff52e7c7c499 (diff) | |
download | mtk-20170518-0755c2d117060a252674191b98bc852ccd8840fe.zip mtk-20170518-0755c2d117060a252674191b98bc852ccd8840fe.tar.gz mtk-20170518-0755c2d117060a252674191b98bc852ccd8840fe.tar.bz2 |
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/p870hw-51a-v2.dts')
-rw-r--r-- | target/linux/brcm63xx/dts/p870hw-51a-v2.dts | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/target/linux/brcm63xx/dts/p870hw-51a-v2.dts b/target/linux/brcm63xx/dts/p870hw-51a-v2.dts index 962d474..eea3021 100644 --- a/target/linux/brcm63xx/dts/p870hw-51a-v2.dts +++ b/target/linux/brcm63xx/dts/p870hw-51a-v2.dts @@ -21,12 +21,12 @@ reset { label = "reset"; - gpios = <&gpio1 2 1>; + gpios = <&pinctrl 35 1>; linux,code = <KEY_RESTART>; }; wps { label = "wps"; - gpios = <&gpio1 3 1>; + gpios = <&pinctrl 36 1>; linux,code = <KEY_WPS_BUTTON>; }; }; @@ -36,24 +36,24 @@ power_green { label = "P870HW-51a:green:power"; - gpios = <&gpio0 0 0>; + gpios = <&pinctrl 0 0>; default-state = "on"; }; dsl_green { label = "P870HW-51a:green:dsl"; - gpios = <&gpio0 2 1>; + gpios = <&pinctrl 2 1>; }; inet_green { label = "P870HW-51a:green:inet"; - gpios = <&gpio0 22 1>; + gpios = <&pinctrl 22 1>; }; wps_orange { label = "P870HW-51a:orange:wps"; - gpios = <&gpio0 24 1>; + gpios = <&pinctrl 24 1>; }; inet_red { label = "P870HW-51a:red:inet"; - gpios = <&gpio1 1 1>; + gpios = <&pinctrl 33 1>; }; }; }; @@ -79,3 +79,8 @@ reg = <0x3f0000 0x010000>; }; }; + +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pci>; +}; |