X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_xiaomi_miwifi-mini.dts;h=9f5df5dd795a552786bf9b7795693900de78293c;hb=HEAD;hp=15493e978335dbf0dc41c53036a6d0209bd1856e;hpb=7140394903b1bfbbb589dafa524e2dbd6cd79862;p=openwrt%2Fstaging%2Fchunkeey.git diff --git a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts index 15493e9783..9f5df5dd79 100644 --- a/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts +++ b/target/linux/ramips/dts/mt7620a_xiaomi_miwifi-mini.dts @@ -1,5 +1,3 @@ -/dts-v1/; - #include "mt7620a.dtsi" #include @@ -25,25 +23,39 @@ compatible = "gpio-leds"; led_blue: blue { - label = "miwifi-mini:blue:status"; + label = "blue:status"; gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; default-state = "on"; }; yellow { - label = "miwifi-mini:yellow:status"; + label = "yellow:status"; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; }; red { - label = "miwifi-mini:red:status"; + label = "red:status"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; + + wan { + label = "green:wan"; + gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; + }; + + lan1 { + label = "green:lan1"; + gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + }; + + lan2 { + label = "green:lan2"; + gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; + }; }; keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; + compatible = "gpio-keys"; reset { label = "reset"; @@ -53,10 +65,6 @@ }; }; -&gpio0 { - status = "okay"; -}; - &gpio1 { status = "okay"; }; @@ -68,10 +76,11 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - spi-max-frequency = <10000000>; + spi-max-frequency = <70000000>; + m25p,fast-read; partitions { compatible = "fixed-partitions"; @@ -81,12 +90,12 @@ partition@0 { label = "u-boot"; reg = <0x0 0x30000>; + read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; - read-only; }; factory: partition@40000 { @@ -129,14 +138,14 @@ }; ðernet { - pinctrl-names = "default"; - pinctrl-0 = <&ephy_pins>; - mtd-mac-address = <&factory 0x28>; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; + mediatek,portmap = "llllw"; }; &wmac { - ralink,mtd-eeprom = <&factory 0>; + ralink,mtd-eeprom = <&factory 0x0>; pinctrl-names = "default"; pinctrl-0 = <&pa_pins>; }; @@ -153,11 +162,19 @@ }; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "i2c", "rgmii1"; - ralink,function = "gpio"; - }; +&state_default { + gpio { + groups = "ephy", "i2c", "rgmii1"; + function = "gpio"; + }; +}; + +&factory { + compatible = "nvmem-cells"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; }; };