ramips: fix wrong permissions on dts files
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_vocore_vocore.dtsi
index c5c26e77c803b968756810ef5564a7abdd5006a1..788c86f870b8686c2d7ab9b6e8bb56ad279685e8 100644 (file)
@@ -10,6 +10,7 @@
                led-failsafe = &led_status;
                led-running = &led_status;
                led-upgrade = &led_status;
+               label-mac-device = &ethernet;
        };
 
        gpio-export {
 
                led_status: status {
                        /* UARTF_RXD */
-                       label = "vocore:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
                };
 
                eth {
                        /* UARTF_DTR_N */
-                       label = "vocore:orange:eth";
+                       label = "orange:eth";
                        gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
 };
 
+&spi0 {
+       status = "okay";
+
+       flash@0 {
+               compatible = "jedec,spi-nor";
+               reg = <0>;
+               spi-max-frequency = <10000000>;
+
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "uboot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "uboot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               compatible = "nvmem-cells";
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               read-only;
+
+                               eeprom_factory_0: eeprom@0 {
+                                       reg = <0x0 0x200>;
+                               };
+
+                               macaddr_factory_4: macaddr@4 {
+                                       reg = <0x4 0x6>;
+                               };
+                       };
+
+                       firmware: partition@50000 {
+                               compatible = "denx,uimage";
+                               label = "firmware";
+                               /* reg property is set based on flash size in DTS files */
+                       };
+               };
+       };
+};
+
 &gpio1 {
        status = "okay";
 };
        status = "okay";
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "jtag", "uartf", "led";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "jtag", "uartf", "led";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
-};
-
-&ehci {
-       status = "okay";
-};
-
-&ohci {
-       status = "okay";
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &spi1 {