From 36c386697d8c058b86619ed3e86a7b95976d0df8 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 23 Jul 2014 07:49:54 +0000 Subject: ramips: fix gpio mapping on MZK-750DHP Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41811 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/dts/MZK-750DHP.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/dts/MZK-750DHP.dts') diff --git a/target/linux/ramips/dts/MZK-750DHP.dts b/target/linux/ramips/dts/MZK-750DHP.dts index a32a1cd882..ff664acf73 100644 --- a/target/linux/ramips/dts/MZK-750DHP.dts +++ b/target/linux/ramips/dts/MZK-750DHP.dts @@ -51,7 +51,7 @@ pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "i2c", "uartf", "mdio", "wdt", "spi refclk", "pa", "rgmii1", "rgmii2", "wled", "nd_sd"; + ralink,group = "i2c", "spi refclk", "rgmii1"; ralink,function = "gpio"; }; }; @@ -77,6 +77,18 @@ status = "okay"; }; + gpio-leds { + compatible = "gpio-leds"; + wps { + label = "mzk750:green:wps"; + gpios = <&gpio1 11 1>; + }; + power { + label = "mzk750:green:power"; + gpios = <&gpio1 15 1>; + }; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -87,5 +99,10 @@ gpios = <&gpio0 1 1>; linux,code = <0x100>; }; + s2 { + label = "wps"; + gpios = <&gpio0 2 1>; + linux,code = <0x211>; + }; }; }; -- cgit v1.2.3