ramips/rt288x,rt3883: Name DTS files based on scheme
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / CARAMBOLA.dts
index c33ed420bf30b003f22c4f0a5661a7bd2b0171ee..aaaea8fd4edccb7e7c4c799f11e08460088f5ead 100644 (file)
@@ -1,77 +1,83 @@
 /dts-v1/;
 
-/include/ "rt3050.dtsi"
+#include "rt3050.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "CARAMBOLA", "ralink,rt3050-soc";
+       compatible = "8devices,carambola", "ralink,rt3050-soc";
        model = "8devices Carambola";
 
        chosen {
                bootargs = "console=ttyS0,115200";
        };
 
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
-
                bank-width = <2>;
                device-width = <2>;
-               #address-cells = <1>;
-               #size-cells = <1>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
 
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
 
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
 
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x7b0000>;
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               reg = <0x50000 0x7b0000>;
+                       };
                };
        };
 
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x28>;
+       i2c-gpio {
+               compatible = "i2c-gpio";
+               gpios = <&gpio0 1 GPIO_ACTIVE_HIGH &gpio0 2 GPIO_ACTIVE_HIGH>;
+               i2c-gpio,delay-us = <10>;
        };
+};
 
-       esw@10110000 {
-               ralink,portmap = <0x3f>;
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
+                       ralink,function = "gpio";
+               };
        };
+};
 
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
+&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";
 };