[ramips] add ofpart info to the devicetrees
[openwrt.git] / target / linux / ramips / dts / WL-351.dts
index f73a01a..a913bec 100644 (file)
@@ -3,8 +3,6 @@
 /include/ "rt3050.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        compatible = "WL-351", "ralink,rt3052-soc";
        model = "Sitecom WL-351 v1 002";
 
@@ -19,8 +17,8 @@
 
        palmbus@10000000 {
                sysc@0 {
-                       ralink,pinmmux = "uartlite", "jtag", "sdram", "rgmii";
-                       ralink,gpiommux = "i2c", "spi", "mdio";
+                       ralink,pinmux = "uartlite", "jtag", "sdram", "rgmii";
+                       ralink,gpiomux = "i2c", "spi", "mdio";
                        ralink,uartmux = "gpio";
                        ralink,wdtmux = <1>;
                };
                device-width = <2>;
                #address-cells = <1>;
                #size-cells = <1>;
+
+               partition@0 {
+                       label = "u-boot";
+                       reg = <0x0 0x30000>;
+                       read-only;
+               };
+
+               partition@30000 {
+                       label = "u-boot-env";
+                       reg = <0x30000 0x10000>;
+                       read-only;
+               };
+
+               factory: partition@40000 {
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+                       read-only;
+               };
+
+               partition@50000 {
+                       label = "firmware";
+                       reg = <0x50000 0x3b0000>;
+               };
        };
 
        ethernet@10100000 {
                compatible = "gpio-leds";
                power {
                        label = "wl-351:amber:power";
-                       gpio = <&gpio0 8 1>;
+                       gpios = <&gpio0 8 1>;
                };
                unpopulated {
                        label = "wl-351:amber:unpopulated";
-                       gpio = <&gpio0 12 1>;
+                       gpios = <&gpio0 12 1>;
                };
                unpopulated2 {
                        label = "wl-351:blue:unpopulated";
-                       gpio = <&gpio0 13 1>;
+                       gpios = <&gpio0 13 1>;
                };
        };
 
                poll-interval = <20>;
                reset {
                        label = "reset";
-                       gpio = <&gpio0 10 1>;
+                       gpios = <&gpio0 10 1>;
                        linux,code = <0x198>;
                };
                wps {
                        label = "wps";
-                       gpio = <&gpio0 0 1>;
+                       gpios = <&gpio0 0 1>;
                        linux,code = <0x211>;
                };
        };