X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FNewifi-D1.dts;h=5368b19ea1593068b7365b4c8e56724f159c6442;hp=89bc8515a62d2d4c6e75a3b932f7ff7a6ce7ab6d;hb=feb0a0bf22143326b3b3515ab0bb4682194dc75a;hpb=dabdd123c90cd299c7cfe5501833e853b7519a6f diff --git a/target/linux/ramips/dts/Newifi-D1.dts b/target/linux/ramips/dts/Newifi-D1.dts index 89bc8515a6..5368b19ea1 100644 --- a/target/linux/ramips/dts/Newifi-D1.dts +++ b/target/linux/ramips/dts/Newifi-D1.dts @@ -2,9 +2,11 @@ #include "mt7621.dtsi" +#include #include / { + compatible = "lenovo,newifi-d1", "mediatek,mt7621-soc"; model = "Newifi-D1"; memory@0 { @@ -21,17 +23,17 @@ status-red { label = "newifi-d1:red:status"; - gpios = <&gpio0 14 1>; + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; status-green { label = "newifi-d1:green:status"; - gpios = <&gpio0 13 1>; + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; statys-blue { label = "newifi-d1:blue:status"; - gpios = <&gpio0 16 1>; + gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; }; }; @@ -43,7 +45,7 @@ reset { label = "reset"; - gpios = <&gpio0 15 1>; + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -55,13 +57,13 @@ usb2power { gpio-export,name = "usb2power"; gpio-export,output = <1>; - gpios = <&gpio0 9 0>; + gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; }; usb3power { gpio-export,name = "usb3power"; gpio-export,output = <1>; - gpios = <&gpio0 11 0>; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; }; @@ -104,7 +106,7 @@ partition@50000 { label = "firmware"; - reg = <0x50000 0x2000000>; + reg = <0x50000 0x1fb0000>; }; }; };