ramips: mt7621: use higher SPI clock speed on Mikrotik rbm11g and rbm33g
[openwrt/.git] / target / linux / ramips / dts / mt7621_mikrotik_routerboard-m11g.dts
index bd58aea951fae6f7d6b263f111bee75f23a1c624..cb13590017658f6021c27635f7a097b7b423b1af 100644 (file)
 &spi0 {
        status = "okay";
 
-       w25q128@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               // XXX empiric value to obtain actual 10MHz SCK at the chip
-               spi-max-frequency = <3125000>;
+               spi-max-frequency = <33000000>;
 
                partitions {
                        compatible = "fixed-partitions";
                                label = "RouterBoot";
                                reg = <0x0 0x40000>;
                                read-only;
-                               compatible = "fixed-partitions";
+                               compatible = "mikrotik,routerboot-partitions";
                                #address-cells = <1>;
                                #size-cells = <1>;
 
                                partition@0 {
                                        label = "bootloader1";
-                                       reg = <0x0 0xf000>;
+                                       reg = <0x0 0x0>;
                                        read-only;
                                };
 
-                               hard_config: partition@f000 {
-                                       label = "hard_config";
-                                       reg = <0xf000 0x1000>;
+                               hard_config: hard_config {
                                        read-only;
                                };
 
                                        read-only;
                                };
 
-                               partition@20000 {
-                                       label = "soft_config";
-                                       reg = <0x20000 0x1000>;
+                               soft_config {
                                };
 
                                partition@30000 {
        };
 };
 
-&gmac0 {
-       mtd-mac-address = <&hard_config 0x0010>;
-       mtd-mac-address-increment = <1>;
-};
-
 &switch0 {
        ports {
                port@0 {