ramips: improve Skylab SKW92A support
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / K2G.dts
index 7aed533c33f2e003a67575f6f9a06413b0d90211..f8ccad10b83bc05a997bdb786fddfd1161fb2f53 100644 (file)
        model = "Phicomm K2G";
 
        aliases {
+               led-boot = &led_blue;
+               led-failsafe = &led_blue;
+               led-running = &led_blue;
+               led-upgrade = &led_blue;
                serial0 = &uartlite;
        };
 
@@ -34,8 +38,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
@@ -50,8 +52,6 @@
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <24000000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       u-boot@0 {
+                       partition@0 {
                                reg = <0x0 0x30000>;
+                               label = "u-boot";
                                read-only;
                        };
 
-                       u-boot-env@30000 {
+                       partition@30000 {
                                reg = <0x30000 0x10000>;
+                               label = "u-boot-env";
                                read-only;
                        };
 
-                       factory: factory@40000 {
+                       factory: partition@40000 {
                                reg = <0x40000 0x10000>;
+                               label = "factory";
                                read-only;
                        };
 
-                       permanent_config@50000 {
+                       partition@50000 {
                                reg = <0x50000 0x50000>;
+                               label = "permanent_config";
                                read-only;
                        };
 
-                       firmware@a0000 {
+                       partition@a0000 {
                                reg = <0xa0000 0x760000>;
+                               label = "firmware";
                        };
                };
        };
 
 &pcie {
        status = "okay";
+};
 
-       pcie-bridge {
-               mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&factory 0x8000>;
-                       ieee80211-freq-limit = <5000000 6000000>;
-               };
+&pcie0 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x8000>;
+               ieee80211-freq-limit = <5000000 6000000>;
        };
 };