X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7620a_engenius_esr600.dts;h=f8429a021b8f8035fb7752b87d2c85a57abd4693;hb=01996b785dcef61e6dadb50f61a13f905f3e497d;hp=ea895ac6eab5121192e752569f5924b1d96ee321;hpb=6972e498d33ec896c676b7af91e3bfb00aa846a1;p=openwrt%2Fstaging%2Fjow.git diff --git a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts index ea895ac6ea..f8429a021b 100644 --- a/target/linux/ramips/dts/mt7620a_engenius_esr600.dts +++ b/target/linux/ramips/dts/mt7620a_engenius_esr600.dts @@ -4,6 +4,7 @@ #include #include +#include / { compatible = "engenius,esr600", "ralink,mt7620a-soc"; @@ -24,7 +25,8 @@ compatible = "gpio-leds"; led_power: power { - label = "amber:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; @@ -97,16 +99,40 @@ 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>; + }; + }; }; - iNIC_rf: partition@50000 { + partition@50000 { label = "iNIC_rf"; reg = <0x50000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom_iNIC_rf_0: eeprom@0 { + reg = <0x0 0x200>; + }; + + macaddr_iNIC_rf_4: macaddr@4 { + reg = <0x4 0x6>; + }; + }; }; partition@60000 { @@ -134,7 +160,8 @@ pinctrl-names = "default"; pinctrl-0 = <&rgmii1_pins &mdio_pins>; - mtd-mac-address = <&iNIC_rf 0x4>; + nvmem-cells = <&macaddr_iNIC_rf_4>; + nvmem-cell-names = "mac-address"; port@5 { status = "okay"; @@ -178,12 +205,14 @@ wifi@0,0 { compatible = "pci1814,5592"; reg = <0x0 0 0 0 0>; - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; }; &wmac { - ralink,mtd-eeprom = <&iNIC_rf 0x0>; + nvmem-cells = <&eeprom_iNIC_rf_0>; + nvmem-cell-names = "eeprom"; }; &ehci {