aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/ZBT-WE826.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/ZBT-WE826.dtsi')
-rw-r--r--target/linux/ramips/dts/ZBT-WE826.dtsi45
1 files changed, 7 insertions, 38 deletions
diff --git a/target/linux/ramips/dts/ZBT-WE826.dtsi b/target/linux/ramips/dts/ZBT-WE826.dtsi
index 02d546cfc6..dcfcb8500b 100644
--- a/target/linux/ramips/dts/ZBT-WE826.dtsi
+++ b/target/linux/ramips/dts/ZBT-WE826.dtsi
@@ -1,8 +1,11 @@
#include "mt7620a.dtsi"
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
+ compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
+
chosen {
bootargs = "console=ttyS0,115200";
};
@@ -11,15 +14,15 @@
compatible = "gpio-leds";
power {
label = "zbt-we826:green:power";
- gpios = <&gpio1 14 0>;
+ gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
usb {
label = "zbt-we826:green:usb";
- gpios = <&gpio1 15 0>;
+ gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
};
air {
label = "zbt-we826:green:wifi";
- gpios = <&gpio3 0 1>;
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
};
@@ -30,7 +33,7 @@
poll-interval = <20>;
reset {
label = "reset";
- gpios = <&gpio0 1 1>;
+ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
@@ -48,40 +51,6 @@
status = "okay";
};
-&spi0 {
- status = "okay";
-
- en25q128@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <10000000>;
-
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- firmware: partition@50000 {
- label = "firmware";
- };
- };
-};
-
&sdhci {
status = "okay";
};