[source] ramips: SamKnows SK-WB8 DTS cleanup

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 26 13:40:19 PST 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/a7de18718d4853e5387f51651573c79bc8a81169

commit a7de18718d4853e5387f51651573c79bc8a81169
Author: Andrew Yong <me at ndoo.sg>
AuthorDate: Mon Nov 21 23:24:57 2016 +0800

    ramips: SamKnows SK-WB8 DTS cleanup
    
    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 at ndoo.sg>
---
 target/linux/ramips/dts/SK-WB8.dts | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/target/linux/ramips/dts/SK-WB8.dts b/target/linux/ramips/dts/SK-WB8.dts
index 171e837..87adc9a 100644
--- a/target/linux/ramips/dts/SK-WB8.dts
+++ b/target/linux/ramips/dts/SK-WB8.dts
@@ -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";
@@ -21,12 +21,12 @@
 
 		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>;
 		};
 	};
 
@@ -37,12 +37,12 @@
 		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>;
 		};
 	};
@@ -78,12 +78,7 @@
 
 		partition at 50000 {
 			label = "firmware";
-			reg = <0x50000 0x7b0000>;
-		};
-
-		partition at e30000 {
-			label = "recovery";
-			reg = <0xe30000 0x1d0000>;
+			reg = <0x50000 0xfb0000>;
 		};
 
 	};



More information about the lede-commits mailing list