use immediate set in target Makefiles
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV4518PWR01.dtsi
index 069970782753a856aec476b7d45fc3f44edb07f1..2145d074b3e13e42f8e0fb14c9b17c2a7475e557 100644 (file)
@@ -3,6 +3,17 @@
 / {
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power;
+                       failsafe = &power;
+                       running = &power;
+
+                       dsl = &dsl;
+                       internet = &online;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-                               partition@0 {
-                                       label = "uboot";
-                                       reg = <0x00000 0x10000>; /* 64 KB */
-                                       read-only;
-                               };
-
-                               partition@10000 {
-                                       label = "uboot_env";
-                                       reg = <0x10000 0x10000>; /* 64 KB */
-                                       read-only;
-                               };
-
-                               partition@20000 {
-                                       label = "firmware";
-                                       reg = <0x20000 0x3d0000>;
-                               };
-
-                               partition@400000 {
-                                       label = "boardconfig";
-                                       reg = <0x3f0000 0x10000>;
-                                       read-only;
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       partition@0 {
+                                               label = "uboot";
+                                               reg = <0x00000 0x10000>; /* 64 KB */
+                                               read-only;
+                                       };
+
+                                       partition@10000 {
+                                               label = "uboot_env";
+                                               reg = <0x10000 0x10000>; /* 64 KB */
+                                               read-only;
+                                       };
+
+                                       partition@20000 {
+                                               label = "firmware";
+                                               reg = <0x20000 0x3d0000>;
+                                       };
+
+                                       boardconfig: partition@400000 {
+                                               label = "boardconfig";
+                                               reg = <0x3f0000 0x10000>;
+                                               read-only;
+                                       };
                                };
                        };
 
                                lantiq,shadow = <0x0>;
                        };
 
-                       mac_addr {
-                               compatible = "lantiq,eth-mac";
-                               reg = <0 0x3f0016 0x6>;
-                               mac-increment = <2>;
-                       };
-
                        ath5k_eep {
                                compatible = "ath5k,eeprom";
-                               reg = <0 0x3f0400 0x1000
-                                       0 0x3f0016 0x6>;
+                               ath,eep-flash = <&boardconfig 0x400>;
+                               ath,mac-offset = <0x16>;
                                ath,mac-increment = <1>;
                                ath,eep-swap;
                        };
 
                etop@E180000 {
                        phy-mode = "mii";
+                       mtd-mac-address = <&boardconfig 0x16>;
                };
 
                ifxhcd@E101000 {
 
        gpio-leds {
                compatible = "gpio-leds";
-               power {
+               power: power {
                        label = "power";
                        gpios = <&gpio 3 0>;
+                       default-state = "keep";
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&gpio 4 1>;
                };
-               online {
+               online: online {
                        label = "online";
                        gpios = <&gpio 5 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpio 6 1>;
                };
                        label = "dsl2";
                        gpios = <&gpio 8 1>;
                };
-               usb {
+               usb: usb {
                        label = "usb";
                        gpios = <&gpio 19 1>;
                };