X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt3352_zyxel_nbg-419n-v2.dts;h=f00fd58b71f928e159a57ce9b9f72bc01795bd4f;hb=01996b785dcef61e6dadb50f61a13f905f3e497d;hp=95044fca9fe67734efd21aad24b25c2f51172827;hpb=1eceab3fc0f9875da0cc6b83be4438593f617287;p=openwrt%2Fstaging%2Fjow.git diff --git a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts index 95044fca9f..f00fd58b71 100644 --- a/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts +++ b/target/linux/ramips/dts/rt3352_zyxel_nbg-419n-v2.dts @@ -1,9 +1,8 @@ -/dts-v1/; - #include "rt3352.dtsi" #include #include +#include / { compatible = "zyxel,nbg-419n-v2", "ralink,rt3352-soc"; @@ -20,17 +19,20 @@ compatible = "gpio-leds"; led_power: power { - label = "nbg-419n2:green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; wps { - label = "nbg-419n2:green:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; usb { - label = "nbg-419n2:green:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; @@ -64,7 +66,7 @@ flash@0 { compatible = "jedec,spi-nor"; - reg = <0 0>; + reg = <0>; spi-max-frequency = <10000000>; partitions { @@ -84,10 +86,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_28: macaddr@28 { + reg = <0x28 0x6>; + }; + }; }; partition@50000 { @@ -107,7 +123,8 @@ }; ðernet { - mtd-mac-address = <&factory 0x28>; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; }; &esw { @@ -115,7 +132,8 @@ }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; &ehci {