lantiq: add support for indicating the boot state using three leds
[openwrt/staging/stintel.git] / target / linux / lantiq / dts / FRITZ3370.dts
index f5ad2c1bcc512cf61e7f4af32c79610cf717132f..216f5ffca04d011bfdd33cf858e2482e7b19f448 100644 (file)
@@ -6,7 +6,17 @@
        model = "FRITZ3370 - Fritz!Box WLAN 3370";
 
        chosen {
-               bootargs = "console=ttyLTQ0,115200 init=/etc/preinit rootfstype=jffs2";
+               bootargs = "console=ttyLTQ0,115200 ubi.mtd=1,512 root=/dev/mtdblock9";
+
+               leds {
+                       boot = &power_green;
+                       failsafe = &power_red;
+                       running = &power_green;
+
+                       dsl = &dsl;
+                       internet = &info_green;
+                       wifi = &wifi;
+               };
        };
 
        memory@0 {
                                #size-cells = <1>;
 
                                partition@0 {
-                                       label = "firmware";
-                                       reg = <0x00000 0x3400000>;
+                                       label = "kernel";
+                                       reg = <0x0 0x400000>;
+                               };
+
+                               partition@400000 {
+                                       label = "rootfs_ubi";
+                                       reg = <0x400000 0x3000000>;
                                };
 
                                partition@3400000 {
                                        lantiq,groups = "spi", "spi_cs4";
                                        lantiq,function = "gpio";
                                };
-                               nand_out {
-                                       lantiq,groups = "nand cle", "nand ale", "nand rd", "ebu a23", "ebu a24";
-                                       lantiq,function = "ebu";
-                                       lantiq,direction = <1>;
-                                       lantiq,pull = <0>;
-                               };
-                               nand_in {
-                                       lantiq,groups = "nand rdy";
-                                       lantiq,function = "ebu";
-                                       lantiq,direction = <0>;
-                                       lantiq,open-drain = <1>;
-                                       lantiq,pull = <2>;
-                               };
                                mdio {
                                        lantiq,groups = "mdio";
                                        lantiq,function = "mdio";
                                };
+                               nand {
+                                       lantiq,groups = "nand cle", "nand ale",
+                                                       "nand rd", "nand cs1", "nand rdy";
+                                       lantiq,function = "ebu";
+                                       lantiq,pull = <1>;
+                               };
                                phy-rst {
                                        lantiq,pins = "io37", "io44";
                                        lantiq,pull = <0>;
                                #size-cells = <0>;
                                reg = <0>;
                                mac-address = [ 00 11 22 33 44 55 ];
+                               lantiq,switch;
 
                                ethernet@0 {
                                        compatible = "lantiq,xrx200-pdi-port";
                m25p80@0 {
                        #address-cells = <1>;
                        #size-cells = <1>;
-                       compatible = "mx25l2005a";
+                       compatible = "jedec,spi-nor";
                        reg = <0 0>;
-                       linux,modalias = "m25p80", "mx25l2005a";
                        spi-max-frequency = <1000000>;
 
                        ath9k_cal: partition@0 {
        };
 
        ath9k_eep {
-               compatible = "ath9k,eeprom-mtd";
+               compatible = "ath9k,eeprom";
                ath,eep-flash = <&ath9k_cal 0x985>;
                ath,eep-endian;
                ath,eep-swap;
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               power_green: power {
                        label = "power";
                        gpios = <&gpio 32 1>;
+                       default-state = "keep";
                };
-               power2 {
+               power_red: power2 {
                        label = "power2";
                        gpios = <&gpio 33 1>;
                };
                        label = "info_red";
                        gpios = <&gpio 34 1>;
                };
-               wifi {
+               wifi: wifi {
                        label = "wifi";
                        gpios = <&gpio 35 1>;
                };
-               dsl {
+               dsl: dsl {
                        label = "dsl";
                        gpios = <&gpio 36 1>;
                };
                        label = "lan";
                        gpios = <&gpio 38 1>;
                };
-               info_green {
+               info_green: info_green {
                        label = "info_green";
                        gpios = <&gpio 47 1>;
                };