ath79: add support for UniFi UK-Ultra
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
index bfad3ff306ec7eada0d68d259d314cfaaf6fe31d..60d6fbc895ac6596e9f4e78bfa3a86b65770356b 100644 (file)
@@ -1,10 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include "qca956x.dtsi"
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca956x.dtsi"
-
 / {
        aliases {
                led-boot = &led_white;
                led-upgrade = &led_blue;
        };
 
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
-       };
-
-       leds {
+       leds: leds {
                compatible = "gpio-leds";
 
                led_white: led_white {
-                       label = "ubnt:white:dome";
+                       label = "white:dome";
                        gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
                };
 
                led_blue: led_blue {
-                       label = "ubnt:blue:dome";
+                       label = "blue:dome";
                        gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
                };
        };
        };
 };
 
-&uart {
-       status = "okay";
-};
-
-&gpio {
-       status = "okay";
-};
-
 &pcie {
        status = "okay";
 };
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                        };
 
                        partition@70000 {
+                               /* Combine kernel0 & kernel1 */
                                label = "firmware";
-                               reg = <0x070000 0x790000>;
+                               reg = <0x070000 0xf20000>;
                                compatible = "denx,uimage";
                        };
 
-                       partition@800000 {
-                               label = "ubnt-airos";
-                               reg = <0x800000 0x790000>;
-                               read-only;
-                       };
-
                        partition@f90000 {
                                label = "bs";
                                reg = <0xf90000 0x020000>;
                                label = "art";
                                reg = <0xff0000 0x010000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_art_0: macaddr@0 {
+                                               reg = <0x0 0x6>;
+                                       };
+                               };
                        };
                };
        };