[lantiq] add devicetrees
[openwrt.git] / target / linux / lantiq / image / DGN1000B.dts
index 9fac104..1fc8052 100644 (file)
@@ -3,6 +3,8 @@
 /include/ "amazonse.dtsi"
 
 / {
 /include/ "amazonse.dtsi"
 
 / {
+       model = "DGN1000B - Netgear DGN1000B";
+
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
        };
        chosen {
                bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
        };
        };
 
        fpi@10000000 {
        };
 
        fpi@10000000 {
-               #address-cells = <1>;
-               #size-cells = <1>;
-
                gpio: pinmux@E100B10 {
                gpio: pinmux@E100B10 {
-                       compatible = "lantiq,pinctrl-ase";
                        pinctrl-names = "default";
                        pinctrl-0 = <&state_default>;
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&state_default>;
 
-                       #gpio-cells = <2>;
-                       gpio-controller;
-                       reg = <0xE100B10 0xA0>;
-
                        state_default: pinmux {
                                spi {
                                        lantiq,groups = "spi", "spi_cs1";
                        state_default: pinmux {
                                spi {
                                        lantiq,groups = "spi", "spi_cs1";
                                        lantiq,groups = "asc";
                                        lantiq,function = "asc";
                                };
                                        lantiq,groups = "asc";
                                        lantiq,function = "asc";
                                };
-                               exin {
-                                       lantiq,groups = "exin1", "exin2";
-                                       lantiq,function = "exin";
-                               };
-                               conf_in {
-                                       lantiq,pins = "io0", "io29"; /* nand rdy */
+                               keys_in {
+                                       lantiq,pins = "io0",/* "io25", */"io29";
                                        lantiq,pull = <2>;
                                        lantiq,pull = <2>;
+                                       lantiq,open-drain = <1>;
                                };
                        };
                };
 
                                };
                        };
                };
 
-               adsl: dsl@E116000 {
-                       compatible = "lantiq,dsl-xway";
-                       interrupt-parent = <&icu0>;
-                       interrupts = <63 96>;
-               };
-
                etop@E180000 {
                etop@E180000 {
-                       compatible = "lantiq,etop-xway";
-                       reg = <0xE180000 0x40000>;
-                       interrupt-parent = <&icu0>;
-                       interrupts = <105 109>;
-                       phy-mode = "ephy";
+                       phy-mode = "mii";
                        mac-address = [ 00 11 22 33 44 55 ];
                };
 
                spi@E100800 {
                        mac-address = [ 00 11 22 33 44 55 ];
                };
 
                spi@E100800 {
-                       compatible = "lantiq,spi-xway";
-                       reg = <0xE100800 0x100>;
-                       interrupt-parent = <&icu0>;
-                       interrupts = <24 25 26>;
-                       #address-cells = <1>;
-                       #size-cells = <1>;
-
                        m25p80@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
                        m25p80@0 {
                                #address-cells = <1>;
                                #size-cells = <1>;
-                               compatible = "s25fl129p0";
+                               compatible = "mx25l3205d";
                                reg = <0 0>;
                                reg = <0 0>;
-                               linux,modalias = "m25p80", "mx25l3205d";
+                               linux,modalias = "m25p80", "mx25l64";
                                spi-max-frequency = <5000000>;
 
                                partition@0 {
                                spi-max-frequency = <5000000>;
 
                                partition@0 {
                                };
                        };
                };
                                };
                        };
                };
+               ifxhcd@E101000 {
+                       status = "okay";
+               };
        };
        };
-       
-       /* missing button on <&gpio 25 0> */
-/*     gpio-keys {
-               compatible = "gpio-keys";
-               interrupt-parent = <&icu0>;
-               interrupts = <30 31>;
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <100>;
+
                reset {
                reset {
-                       label = "Reset";
-                       gpios = <&gpio 0 0>;
-                       gpio-key,wakeup;
+                       label = "reset";
+                       gpios = <&gpio 0 1>;
                        linux,code = <0x100>;
                };
                        linux,code = <0x100>;
                };
+               rfkill {
+                       label = "rfkill";
+                       gpios = <&gpio 25 1>;
+                       linux,code = <0xf7>;
+               };
                wps {
                wps {
-                       label = "WPS";
+                       label = "wps";
                        gpios = <&gpio 29 1>;
                        gpios = <&gpio 29 1>;
-                       gpio-key,wakeup;
-                       linux,code = <0x100>;
+                       linux,code = <0x211>;
                };
        };
                };
        };
-*/
+
        gpio-leds {
        gpio-leds {
-               compatible = "gpio-leds";
-               festnetz {
-                       label = "DSL";
+               cmpatible = "gpio-leds";
+               dsl {
+                       label = "dsl";
                        gpios = <&gpio 1 1>;
                        default-state = "on";
                };
                        gpios = <&gpio 1 1>;
                        default-state = "on";
                };
-               internet1 {
-                       label = "Internet1";
+               online {
+                       label = "online";
                        gpios = <&gpio 2 1>;
                        default-state = "on";
                };
                        gpios = <&gpio 2 1>;
                        default-state = "on";
                };
-               internet2 {
-                       label = "Internet2";
+               online2 {
+                       label = "online2";
                        gpios = <&gpio 3 1>;
                        default-state = "on";
                };
                wps {
                        gpios = <&gpio 3 1>;
                        default-state = "on";
                };
                wps {
-                       label = "WPS";
+                       label = "wps";
                        gpios = <&gpio 4 1>;
                        default-state = "on";
                };
                        gpios = <&gpio 4 1>;
                        default-state = "on";
                };