From 0755c2d117060a252674191b98bc852ccd8840fe Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Fri, 1 Jul 2016 11:23:06 +0200 Subject: brcm63xx: add pinctrl support Add and enable pincontrol drivers, and update dts(i) files with appropriate hogs. Signed-off-by: Jonas Gorski --- target/linux/brcm63xx/dts/p870hw-51a-v2.dts | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'target/linux/brcm63xx/dts/p870hw-51a-v2.dts') 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 = ; }; wps { label = "wps"; - gpios = <&gpio1 3 1>; + gpios = <&pinctrl 36 1>; linux,code = ; }; }; @@ -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>; +}; -- cgit v1.1