[ramips] add ofpart info to the devicetrees
[openwrt.git] / target / linux / ramips / dts / UR-326N4G.dts
index fbcfa15..541e1db 100644 (file)
@@ -3,8 +3,6 @@
 /include/ "rt3050.dtsi"
 
 / {
-       #address-cells = <1>;
-       #size-cells = <1>;
        compatible = "UR-326N4G", "ralink,rt3052-soc";
        model = "UR-326N4G Wireless N router";
 
@@ -18,8 +16,8 @@
 
        palmbus@10000000 {
                sysc@0 {
-                       ralink,pinmmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
-                       ralink,gpiommux = "mdio";
+                       ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
+                       ralink,gpiomux = "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 {