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>
12 led-failsafe = &led_wan;
13 led-upgrade = &led_wan;
17 compatible = "gpio-keys";
21 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_WPS_BUTTON>;
26 label = "Reset button";
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-leds";
36 function = LED_FUNCTION_WAN;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_WLAN;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 compatible = "jedec,spi-nor";
55 spi-max-frequency = <50000000>;
58 compatible = "fixed-partitions";
64 reg = <0x000000 0x040000>;
70 reg = <0x040000 0x010000>;
75 reg = <0x050000 0x010000>;
81 reg = <0x060000 0x0e0000>;
87 reg = <0x140000 0x090000>;
93 reg = <0x1d0000 0x010000>;
99 reg = <0x1e0000 0x010000>;
105 reg = <0x1f0000 0x010000>;
109 compatible = "fixed-layout";
110 #address-cells = <1>;
113 macaddr_art_0: macaddr@0 {
114 compatible = "mac-base";
116 #nvmem-cell-cells = <1>;
119 cal_art_1000: cal@1000 {
120 reg = <0x1000 0x440>;
123 cal_art_5000: cal@5000 {
124 reg = <0x5000 0x844>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
142 reg = <0x0 0x1000000>;
148 reg = <0x1000000 0x800000>;
151 ubi: partition@1800000 {
161 compatible = "qcom,ath10k";
164 nvmem-cells = <&macaddr_art_0 4>, <&cal_art_5000>;
165 nvmem-cell-names = "mac-address", "calibration";
172 nvmem-cells = <&macaddr_art_0 3>, <&cal_art_1000>;
173 nvmem-cell-names = "mac-address", "calibration";
187 phy0: ethernet-phy@0 {
190 qca,ar8327-initvals = <
191 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
192 0x50 0xcf37cf37 /* LED Control Register 0 */
193 0x54 0x00000000 /* LED Control Register 1 */
194 0x58 0x00000000 /* LED Control Register 2 */
195 0x5c 0x0030c300 /* LED Control Register 3 */
196 0x7c 0x0000007e /* PORT0_STATUS */
204 nvmem-cells = <&macaddr_art_0 1>;
205 nvmem-cell-names = "mac-address";
206 phy-handle = <&phy0>;
207 pll-data = <0xa6000000 0x00000101 0x00001616>;