lantiq: move partitions into partion table node
[openwrt.git] / target / linux / lantiq / dts / H201L.dts
index 5cb5612..e6e514f 100644 (file)
@@ -7,6 +7,17 @@
 
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+
+               leds {
+                       boot = &power_green;
+                       failsafe = &power_green;
+                       running = &power_green;
+
+                       dsl = &dsl;
+                       internet = &online;
+                       usb = &usb;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-                               partition@0 {
-                                       label = "uboot";
-                                       reg = <0x00000 0x20000>;
-                                       read-only;
-                               };
-
-                               partition@20000 {
-                                       label = "uboot_env";
-                                       reg = <0x20000 0x10000>;
-                                       read-only;
-                               };
-
-                               partition@30000 {
-                                       label = "firmware";
-                                       reg = <0x30000 0x7d0000>;
+                               partitions {
+                                       compatible = "fixed-partitions";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       partition@0 {
+                                               label = "uboot";
+                                               reg = <0x00000 0x20000>;
+                                               read-only;
+                                       };
+
+                                       partition@20000 {
+                                               label = "uboot_env";
+                                               reg = <0x20000 0x10000>;
+                                               read-only;
+                                       };
+
+                                       partition@30000 {
+                                               label = "firmware";
+                                               reg = <0x30000 0x7d0000>;
+                                       };
                                };
                        };
                };
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
-                       label = "power";
+               power_green: power {
+                       label = "h201l:green:power";
                        gpios = <&gpio 19 1>;
-                       default-state = "on";
+                       default-state = "keep";
                };
-               online {
-                       label = "online";
+               online: online {
+                       label = "h201l:green:internet";
                        gpios = <&gpio 37 1>;
                };
-               dsl {
-                       label = "dsl";
+               dsl: dsl {
+                       label = "h201l:green:dsl";
                        gpios = <&gpio 4 1>;
                };
                phone {
-                       label = "phone";
+                       label = "h201l:green:phone";
                        gpios = <&gpio 39 1>;
                };
                wps {
-                       label = "wps";
+                       label = "h201l:green:wps";
                        gpios = <&gpio 22 1>;
                };
-               wifi {
-                       label = "wifi";
+               wifi: wifi {
+                       label = "h201l:green:wlan";
                        gpios = <&gpio 6 1>;
                };
-               usb {
-                       label = "usb";
+               usb: usb {
+                       label = "h201l:green:usb";
                        gpios = <&gpio 14 1>;
                };
        };