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;
16 led-boot = &led_power_blue;
17 led-failsafe = &led_power_blue;
18 led-running = &led_power_blue;
19 led-upgrade = &led_power_blue;
20 label-mac-device = ð0;
24 compatible = "gpio-keys";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-leds";
37 function = LED_FUNCTION_LAN;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
43 label = "blue:wifi2g";
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_STATUS;
55 color = <LED_COLOR_ID_RED>;
56 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
59 led_power_blue: power_blue {
60 function = LED_FUNCTION_POWER;
61 color = <LED_COLOR_ID_BLUE>;
62 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
67 label = "blue:wifi5g";
68 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
73 compatible = "linux,wdt-gpio";
74 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 /* hw_margin_ms is actually 300s but driver limits it to 60s */
77 hw_margin_ms = <60000>;
86 compatible = "jedec,spi-nor";
88 spi-max-frequency = <40000000>;
90 /* partitions are passed via bootloader */
92 compatible = "fixed-partitions";
98 reg = <0x000000 0x040000>;
103 label = "u-boot-env";
104 reg = <0x040000 0x010000>;
109 reg = <0x050000 0x060000>;
115 reg = <0x0b0000 0x7a0000>;
120 reg = <0x850000 0x7a0000>;
123 art: partition@ff0000 {
125 reg = <0xff0000 0x010000>;
129 compatible = "fixed-layout";
130 #address-cells = <1>;
133 macaddr_art_0: macaddr@0 {
134 compatible = "mac-base";
136 #nvmem-cell-cells = <1>;
139 cal_art_5000: calibration@5000 {
140 reg = <0x5000 0x844>;
151 phy5: ethernet-phy@5 {
161 pll-data = <0x82000000 0x80000101 0x80001313>;
163 nvmem-cells = <&macaddr_art_0 0>;
164 nvmem-cell-names = "mac-address";
166 phy-mode = "rgmii-id";
167 phy-handle = <&phy5>;
178 mtd-cal-data = <&art 0x1000>;
179 nvmem-cells = <&macaddr_art_0 1>;
180 nvmem-cell-names = "mac-address";
187 compatible = "qcom,ath10k";
188 reg = <0x0000 0 0 0 0>;
189 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 16>;
190 nvmem-cell-names = "calibration", "mac-address";