ramips: DTS rework
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / CARAMBOLA.dts
index f222e8d6f5c2a4879904c7107a163ada4fef6a90..e38c49f9574f6a2a3e8cb6a13f84306a2849884f 100644 (file)
@@ -1,37 +1,18 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
 
 / {
        compatible = "CARAMBOLA", "ralink,rt3050-soc";
        model = "8devices Carambola";
 
-       memorydetect {
-               ralink,memory = <0x0 0x200000 0x4000000>;
-       };
-
        chosen {
-               bootargs = "console=ttyS0,115200 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
-       };
-
-       palmbus@10000000 {
-               sysc@0 {
-                       ralink,pinmux = "uartlite", "sdram", "rgmii";
-                       ralink,gpiomux = "i2c", "spi", "jtag", "mdio";
-                       ralink,uartmux = "gpio";
-                       ralink,wdtmux = <1>;
-               };
-
-               gpio0: gpio@600 {
-                       status = "okay";
-               };
-
+               bootargs = "console=ttyS0,115200";
        };
 
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
-
                bank-width = <2>;
                device-width = <2>;
                #address-cells = <1>;
                };
        };
 
-       ethernet@10100000 {
-               status = "okay";
+       i2c-gpio {
+               compatible = "i2c-gpio";
+               gpios = <&gpio0 1 0 &gpio0 2 0>;
+               i2c-gpio,delay-us = <10>;
        };
+};
 
-       esw@10110000 {
-               status = "okay";
-               ralink,portmap = <0x3f>;
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       wmac@10180000 {
-               status = "okay";
-       };
+&ethernet {
+       mtd-mac-address = <&factory 0x28>;
+};
 
-       otg@101c0000 {
-               status = "okay";
-       };
+&esw {
+       mediatek,portmap = <0x3f>;
+};
 
-       i2c-gpio {
-               compatible = "i2c-gpio";
+&wmac {
+       ralink,mtd-eeprom = <&factory 0>;
+};
 
-               gpios = <&gpio0 1 0 &gpio0 2 0>;
-               i2c-gpio,delay-us = <10>;
-       };
+&otg {
+       status = "okay";
 };