X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FGL-MT300N-V2.dts;h=b41a9ae669b950ab4506cda2bbab3079a325e20d;hb=8e6bc1a5beec6a9829ad77e0b8ace2ab106772ee;hp=e40c4cf7dfea9dc5e0772f6b747f3d839fa9586b;hpb=abbfcc85259a4f6658c61e99dd3d2d3567e3eb3a;p=openwrt%2Fstaging%2Fwigyori.git diff --git a/target/linux/ramips/dts/GL-MT300N-V2.dts b/target/linux/ramips/dts/GL-MT300N-V2.dts index e40c4cf7df..b41a9ae669 100644 --- a/target/linux/ramips/dts/GL-MT300N-V2.dts +++ b/target/linux/ramips/dts/GL-MT300N-V2.dts @@ -6,9 +6,13 @@ #include /{ - compatible = "gl-inet,gl-mt300n-v2", "ralink,mt7620an-soc"; + compatible = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc"; model = "GL-MT300N-V2"; + aliases { + led-status = &led_power; + }; + chosen { bootargs = "console=ttyS0,115200"; }; @@ -21,6 +25,12 @@ gpio-leds { compatible = "gpio-leds"; + led_power: power { + label = "gl-mt300n-v2:green:power"; + default-state = "on"; + gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + }; + wan { label = "gl-mt300n-v2:blue:wan"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; @@ -34,8 +44,6 @@ gpio-keys { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset { @@ -64,23 +72,22 @@ usb { gpio-export,name = "usb"; gpio-export,output = <1>; - gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; + gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; }; }; - }; &pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "i2s"; + ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s"; ralink,function = "gpio"; }; }; }; ðernet { - mtd-mac-address = <&factory 0x4000>; + mtd-mac-address = <&factory 0x4>; }; &wmac { @@ -92,38 +99,46 @@ status = "okay"; m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; m25p,chunked-io = <32>; - 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; - }; - - partition@50000 { - label = "firmware"; - reg = <0x50000 0xfb0000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + 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; + }; + + partition@50000 { + label = "firmware"; + reg = <0x50000 0xfb0000>; + }; }; }; }; +&uart1 { + status = "okay"; +}; + &ehci { status = "okay"; };