ramips: SamKnows SK-WB8 DTS cleanup
authorAndrew Yong <me@ndoo.sg>
Mon, 21 Nov 2016 15:24:57 +0000 (23:24 +0800)
committerJohn Crispin <john@phrozen.org>
Sat, 26 Nov 2016 21:35:52 +0000 (22:35 +0100)
Use gpio.h definition of GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW. Remove unused backup partition to increase available JFFS space. As long as U-Boot env variable "bootcount" is < 3 (reset to 0 after boot by init script) SamKnow's U-Boot will not attempt to boot from the backup flash address (0xe30000).

Signed-off-by: Andrew Yong <me@ndoo.sg>
target/linux/ramips/dts/SK-WB8.dts

index 171e837c6a697a609c965437c86432cd1d8c7926..87adc9ae1d943cd6dccfebbc1265db25ba6f45d7 100644 (file)
@@ -1,8 +1,8 @@
 /dts-v1/;
 
 #include "mt7621.dtsi"
-
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/gpio/gpio.h>
 
 / {
        model = "SamKnows Whitebox 8";
 
                wps {
                        label = "sk-wb8:green:wps";
-                       gpios = <&gpio1 14 1>;
+                       gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
                        label = "sk-wb8:green:usb";
-                       gpios = <&gpio1 15 1>;
+                       gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 
                poll-interval = <20>;
                wps {
                        label = "wps";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                reset {
                        label = "reset";
-                       gpios = <&gpio1 9 1>;
+                       gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                partition@50000 {
                        label = "firmware";
-                       reg = <0x50000 0x7b0000>;
-               };
-
-               partition@e30000 {
-                       label = "recovery";
-                       reg = <0xe30000 0x1d0000>;
+                       reg = <0x50000 0xfb0000>;
                };
 
        };