X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620n_comfast_cf-wr800n.dts;h=bc35b82033b789ccb41ce90decc0685f2154c53d;hb=01996b785dcef61e6dadb50f61a13f905f3e497d;hp=df5b464dfdc0b9ffa7158bf4be17adc381cc0f41;hpb=22a21b0c18ebce7b7040ce693621f5c77983f3e5;p=openwrt%2Fstaging%2Fjow.git diff --git a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts index df5b464dfd..bc35b82033 100644 --- a/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts +++ b/target/linux/ramips/dts/mt7620n_comfast_cf-wr800n.dts @@ -1,9 +1,8 @@ -/dts-v1/; - #include "mt7620n.dtsi" #include #include +#include / { compatible = "comfast,cf-wr800n", "ralink,mt7620n-soc"; @@ -24,17 +23,18 @@ compatible = "gpio-leds"; ethernet { - label = "cf-wr800n:white:ethernet"; + label = "white:ethernet"; gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; }; wifi { - label = "cf-wr800n:white:wifi"; + label = "white:wifi"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; }; led_wps: wps { - label = "cf-wr800n:white:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; }; }; @@ -50,10 +50,6 @@ }; }; -&gpio0 { - status = "okay"; -}; - &gpio1 { status = "okay"; }; @@ -69,7 +65,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; @@ -91,10 +87,24 @@ read-only; }; - factory: partition@40000 { + partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x200>; + }; + + macaddr_factory_4: macaddr@4 { + reg = <0x4 0x6>; + }; + }; }; partition@50000 { @@ -107,11 +117,13 @@ }; ðernet { - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; &state_default {