brcm63xx: fix DTS LEDs and buttons
authorJonas Gorski <jogo@openwrt.org>
Sat, 28 Feb 2015 19:59:50 +0000 (19:59 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sat, 28 Feb 2015 19:59:50 +0000 (19:59 +0000)
- A4001N/A4001N1: fix swapped green and red LEDs
- CVG834G: add missing LED
- RTA1320: reorder LEDs by GPIO#
- V2500V: add missing LEDs and buttons
- WAP-5813n: fix WPS button (GPIO 35)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44577

target/linux/brcm63xx/dts/a4001n.dts
target/linux/brcm63xx/dts/a4001n1.dts
target/linux/brcm63xx/dts/cvg834g.dts
target/linux/brcm63xx/dts/rta1320.dts
target/linux/brcm63xx/dts/v2500v-bb.dts
target/linux/brcm63xx/dts/wap-5813n.dts

index 1f8eaf66e9c7ba5bd35af1fbdcc244be4cee974d..cb172bba841cdf37dc6b781b951201428c21bdb1 100644 (file)
                        label = "A4001N:red:inet";
                        gpios = <&gpio0 1 0>;
                };
-               power_red {
-                       label = "A4001N:red:power";
-                       gpios = <&gpio0 4 0>;
-               };
                power_green {
                        label = "A4001N:green:power";
-                       gpios = <&gpio0 8 0>;
+                       gpios = <&gpio0 4 0>;
                        default-state = "on";
                };
+               power_red {
+                       label = "A4001N:red:power";
+                       gpios = <&gpio0 8 0>;
+               };
                usb_green {
                        label = "A4001N:green:usb";
                        gpios = <&gpio0 10 1>;
index d45210f56dd58fa5217c6ed4e1fa05c123f07a41..17bd64321bea407e718f113260ef5d48a127fbfb 100644 (file)
                        label = "A4001N1:green:ppp";
                        gpios = <&gpio0 3 1>;
                };
-               power_red {
-                       label = "A4001N1:red:power";
+               power_green {
+                       label = "A4001N1:green:power";
                        gpios = <&gpio0 4 1>;
+                       default-state = "on";
                };
                ppp_red {
                        label = "A4001N1:red:ppp";
                        label = "A4001N1:red:3g";
                        gpios = <&gpio0 7 1>;
                };
-               power_green {
-                       label = "A4001N1:green:power";
+               power_red {
+                       label = "A4001N1:red:power";
                        gpios = <&gpio0 8 1>;
-                       default-state = "on";
                };
                wlan_green {
                        label = "A4001N1:green:wlan";
index 84810033bf496a136cedb5e272d670100bdf8638..d75316b38b42348972c333d6064b2dd6a7137fd2 100644 (file)
@@ -5,6 +5,16 @@
 / {
        model = "Netgear CVG834G";
        compatible = "netgear,cvg834g", "brcm,bcm6348";
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               power_green {
+                       label = "CVG834G:green:power";
+                       gpios = <&gpio1 5 0>;
+                       default-state = "on";
+               };
+       };
 };
 
 &pflash {
index aa98da111b5a7e1c983b941d7228f7e4d1bae1ed..30c1f1405253597374cbce78caf78f2bd1d488ba 100644 (file)
@@ -9,24 +9,23 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               green_adsl {
-                       label = "RTA1320_16M:green:adsl";
-                       gpios = <&gpio0 3 1>;
-               };
-               green_ppp {
-                       label = "RTA1320_16M:green:ppp";
-                       gpios = <&gpio0 4 1>;
-               };
                green_power {
                        label = "RTA1320_16M:green:power";
                        gpios = <&gpio0 0 1>;
                        default-state = "on";
                };
-
                green_stop {
                        label = "RTA1320_16M:green:stop";
                        gpios = <&gpio0 1 1>;
                };
+               green_adsl {
+                       label = "RTA1320_16M:green:adsl";
+                       gpios = <&gpio0 3 1>;
+               };
+               green_ppp {
+                       label = "RTA1320_16M:green:ppp";
+                       gpios = <&gpio0 4 1>;
+               };
        };
 };
 
index 3959ffb3ed56a6da49b571448124292b3cb72f7a..5f06c6361faec4630591f628d72e0d4036007bb9 100644 (file)
@@ -5,6 +5,45 @@
 / {
        model = "BT Voyager V2500V";
        compatible = "bt,v2500v-bb", "brcm,bcm6348";
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+               debounce-interval = <60>;
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 31 1>;
+                       linux,code = <0x198>;
+               };
+       };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               power_green {
+                       label = "V2500V_BB:green:power";
+                       gpios = <&gpio0 0 1>;
+               };
+               power_red {
+                       label = "V2500V_BB:red:power";
+                       gpios = <&gpio0 1 1>;
+               };
+               adsl_green {
+                       label = "V2500V_BB:green:adsl";
+                       gpios = <&gpio0 2 1>;
+               };
+               ppp_green {
+                       label = "V2500V_BB:green:ppp";
+                       gpios = <&gpio0 3 1>;
+               };
+               wireless_green {
+                       label = "V2500V_BB:green:wireless";
+                       gpios = <&gpio0 6 1>;
+               };
+       };
 };
 
 &pflash {
index 0d168d23384809a6cc4d85e58e660d1cc55ab8d1..f7765d59cb5138a156a439e9a571b6396a3f0716 100644 (file)
@@ -25,7 +25,7 @@
                };
                wps {
                        label = "wps";
-                       gpios = <&gpio1 1 1>;
+                       gpios = <&gpio1 3 1>;
                        linux,code = <0x211>;
                };
        };