lantiq: dts: assign the NAND pins to the nand-controller node
[openwrt/staging/rmilecki.git] / target / linux / lantiq / files / arch / mips / boot / dts / FRITZ7412.dts
index 98d2992d3af022d41ed8e80b50275c23327cff0d..43216d66bef37c068af633e01fbbf89f0e611858 100644 (file)
        model = "AVM FRITZ!Box 7412";
 
        chosen {
-               bootargs = "console=ttyLTQ0,115200 mem=126M vpe1_load_addr=0x87e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
+               bootargs = "console=ttyLTQ0,115200";
        };
 
        aliases {
                led-boot = &power_green;
                led-failsafe = &power_red;
                led-running = &power_green;
+               led-upgrade = &power_red;
 
                led-dsl = &info;
                led-wifi = &wifi;
                
                wps {
                        label = "wps";
-                       gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
                
                dect {
                        label = "dect";
-                       gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_PHONE>;
                };
        };
 };
 
 &localbus {
-       nand@0 {
+       flash@0 {
                compatible = "lantiq,nand-xway";
                bank-width = <2>;
                reg = <0 0x0 0x2000000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
                lantiq,cs = <1>;
 
+               pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
+               pinctrl-names = "default";
+
                partitions {
                        compatible = "fixed-partitions";
                        #address-cells = <1>;
        pinctrl-0 = <&state_default>;
 
        state_default: pinmux {
-               mdio {
-                       lantiq,groups = "mdio";
-                       lantiq,function = "mdio";
-               };
                pcie-rst {
                        lantiq,pins = "io11";
                        lantiq,open-drain = <1>;
                        lantiq,output = <1>;
                };
-               nand-mux {
-                       lantiq,groups = "nand cle", "nand ale",
-                       "nand rd", "nand cs1",
-                       "nand rdy";
-                       lantiq,function = "ebu";
-               };
-               nand-pins {
-                       lantiq,pins = "io13", "io24", "io49";
-                       lantiq,pull = <1>;
-               };
        };
 };