// 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"
-
/ {
- chosen {
- bootargs = "console=ttyS0,115200n8";
+ aliases {
+ led-boot = &led_white;
+ led-failsafe = &led_white;
+ led-running = &led_blue;
+ led-upgrade = &led_blue;
};
- leds {
+ leds: leds {
compatible = "gpio-leds";
- wifi_ac {
- label = "ubnt:white:dome";
- gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
- default-state = "off";
- linux,default-trigger = "phy0tpt";
+ led_white: led_white {
+ label = "white:dome";
+ gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
- wifi_n {
- label = "ubnt:blue:dome";
- gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
- default-state = "off";
- linux,default-trigger = "phy1tpt";
+ led_blue: led_blue {
+ label = "blue:dome";
+ gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
};
-
};
keys {
compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
reset {
label = "Reset button";
};
};
-&uart {
- status = "okay";
-};
-
-&gpio {
- status = "okay";
-};
-
&pcie {
status = "okay";
};
&spi {
status = "okay";
- num-cs = <1>;
flash@0 {
- #address-cells = <1>;
- #size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
};
partition@70000 {
+ /* Combine kernel0 & kernel1 */
label = "firmware";
- reg = <0x070000 0x790000>;
- };
-
- partition@800000 {
- label = "ubnt-airos";
- reg = <0x800000 0x790000>;
- read-only;
+ reg = <0x070000 0xf20000>;
+ compatible = "denx,uimage";
};
partition@f90000 {
label = "bs";
reg = <0xf90000 0x020000>;
- read-only;
};
partition@fb0000 {
read-only;
};
- eeprom: partition@ff0000 {
- label = "EEPROM";
+ art: partition@ff0000 {
+ 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>;
+ };
+ };
};
};
};
&wmac {
status = "okay";
- mtd-cal-data = <&eeprom 0x1000>;
- mtd-mac-address = <&eeprom 0x0>;
+
+ mtd-cal-data = <&art 0x1000>;
};