ramips: simplify palmbus/{i2c,spi} in device DTS files
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3352_zyxel_nbg-419n-v2.dts
index 05cf4a380a839682d2b9f331543897ca8d3ac11c..53a5c54ec61af3858ab2e4fe348677c987caebd2 100644 (file)
                led-upgrade = &led_power;
        };
 
-       palmbus@10000000 {
-               spi@b00 {
-                       status = "okay";
-                       m25p80@0 {
-                               compatible = "jedec,spi-nor";
-                               reg = <0 0>;
-                               spi-max-frequency = <10000000>;
-
-                               partitions {
-                                       compatible = "fixed-partitions";
-                                       #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 {
-                                               compatible = "denx,uimage";
-                                               label = "firmware";
-                                               reg = <0x50000 0x7b0000>;
-                                       };
-                               };
-                       };
-               };
-       };
-
        leds {
                compatible = "gpio-leds";
 
        };
 };
 
+&spi0 {
+       status = "okay";
+
+       m25p80@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0 0>;
+               spi-max-frequency = <10000000>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #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 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               reg = <0x50000 0x7b0000>;
+                       };
+               };
+       };
+};
+
 &state_default {
        gpio {
                groups = "i2c", "jtag", "rgmii", "mdio", "uartf";