2018-06-26 07:30:46 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
|
|
|
#include "qca956x.dtsi"
|
|
|
|
|
|
|
|
/ {
|
2019-09-06 22:43:19 +00:00
|
|
|
aliases {
|
|
|
|
led-boot = &led_white;
|
|
|
|
led-failsafe = &led_white;
|
|
|
|
led-running = &led_blue;
|
|
|
|
led-upgrade = &led_blue;
|
|
|
|
};
|
|
|
|
|
2018-06-26 07:30:46 +00:00
|
|
|
chosen {
|
|
|
|
bootargs = "console=ttyS0,115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2019-09-06 22:43:19 +00:00
|
|
|
led_white: led_white {
|
2018-06-26 07:30:46 +00:00
|
|
|
label = "ubnt:white:dome";
|
2018-12-30 21:41:55 +00:00
|
|
|
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
2018-06-26 07:30:46 +00:00
|
|
|
};
|
|
|
|
|
2019-09-06 22:43:19 +00:00
|
|
|
led_blue: led_blue {
|
2018-06-26 07:30:46 +00:00
|
|
|
label = "ubnt:blue:dome";
|
2018-12-30 21:41:55 +00:00
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
2018-06-26 07:30:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
status = "okay";
|
|
|
|
num-cs = <1>;
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <25000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x060000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@60000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x060000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@70000 {
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x070000 0x790000>;
|
2018-11-22 12:37:56 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-06-26 07:30:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@800000 {
|
|
|
|
label = "ubnt-airos";
|
|
|
|
reg = <0x800000 0x790000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@f90000 {
|
|
|
|
label = "bs";
|
|
|
|
reg = <0xf90000 0x020000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@fb0000 {
|
|
|
|
label = "cfg";
|
|
|
|
reg = <0xfb0000 0x040000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2019-11-22 13:42:47 +00:00
|
|
|
art: partition@ff0000 {
|
|
|
|
label = "art";
|
2018-06-26 07:30:46 +00:00
|
|
|
reg = <0xff0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
2019-10-24 13:29:14 +00:00
|
|
|
|
2019-11-22 13:42:47 +00:00
|
|
|
mtd-cal-data = <&art 0x1000>;
|
2018-06-26 07:30:46 +00:00
|
|
|
};
|