X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt3352_dlink_dir-615-h1.dts;h=79d4717f57bda766ac418776fd53c322c1af4b33;hp=5fddd808422e3a73c411518c06ad0b4d9201f007;hb=HEAD;hpb=22a21b0c18ebce7b7040ce693621f5c77983f3e5 diff --git a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts index 5fddd80842..8ed29c8dee 100644 --- a/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts +++ b/target/linux/ramips/dts/rt3352_dlink_dir-615-h1.dts @@ -1,9 +1,8 @@ -/dts-v1/; - #include "rt3352.dtsi" #include #include +#include / { compatible = "dlink,dir-615-h1", "ralink,rt3352-soc"; @@ -21,28 +20,33 @@ compatible = "gpio-leds"; status { - label = "dir-615-h1:amber:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; led_status_green: status2 { - label = "dir-615-h1:green:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; default-state = "on"; }; wan { - label = "dir-615-h1:amber:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; }; wan2 { - label = "dir-615-h1:green:wan"; + function = LED_FUNCTION_WAN; + color = ; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; wps { - label = "dir-615-h1:blue:wps"; + function = LED_FUNCTION_WPS; + color = ; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; }; }; @@ -68,7 +72,7 @@ &spi0 { status = "okay"; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; @@ -90,10 +94,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 { @@ -113,7 +131,8 @@ }; ðernet { - mtd-mac-address = <&factory 0x28>; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; pinctrl-names = "default"; pinctrl-0 = <&rgmii_pins &mdio_pins>; }; @@ -123,5 +142,6 @@ }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; };