1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
11 /delete-property/ bootargs;
15 led-boot = &led_power_blue;
16 led-failsafe = &led_power_blue;
17 led-running = &led_power_blue;
18 led-upgrade = &led_power_blue;
19 label-mac-device = ð0;
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 compatible = "gpio-leds";
36 function = LED_FUNCTION_LAN;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 label = "blue:wifi2g";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 function = LED_FUNCTION_STATUS;
48 color = <LED_COLOR_ID_GREEN>;
49 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_STATUS;
54 color = <LED_COLOR_ID_RED>;
55 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
58 led_power_blue: power_blue {
59 function = LED_FUNCTION_POWER;
60 color = <LED_COLOR_ID_BLUE>;
61 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
66 label = "blue:wifi5g";
67 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
72 compatible = "linux,wdt-gpio";
73 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 /* hw_margin_ms is actually 300s but driver limits it to 60s */
76 hw_margin_ms = <60000>;
85 compatible = "jedec,spi-nor";
87 spi-max-frequency = <40000000>;
89 /* partitions are passed via bootloader */
91 compatible = "fixed-partitions";
97 reg = <0x000000 0x040000>;
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
108 reg = <0x050000 0x060000>;
114 reg = <0x0b0000 0x7a0000>;
119 reg = <0x850000 0x7a0000>;
122 art: partition@ff0000 {
124 reg = <0xff0000 0x010000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 macaddr_art_0: macaddr@0 {
133 compatible = "mac-base";
135 #nvmem-cell-cells = <1>;
138 cal_art_5000: calibration@5000 {
139 reg = <0x5000 0x844>;
150 phy5: ethernet-phy@5 {
160 pll-data = <0x82000000 0x80000101 0x80001313>;
162 nvmem-cells = <&macaddr_art_0 0>;
163 nvmem-cell-names = "mac-address";
165 phy-mode = "rgmii-id";
166 phy-handle = <&phy5>;
177 mtd-cal-data = <&art 0x1000>;
178 nvmem-cells = <&macaddr_art_0 1>;
179 nvmem-cell-names = "mac-address";
186 compatible = "qcom,ath10k";
187 reg = <0x0000 0 0 0 0>;
188 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 16>;
189 nvmem-cell-names = "calibration", "mac-address";