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>
11 led-failsafe = &led_wan;
12 led-upgrade = &led_wan;
16 compatible = "gpio-keys";
20 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
25 label = "Reset button";
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 compatible = "gpio-leds";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
50 compatible = "jedec,spi-nor";
52 spi-max-frequency = <50000000>;
55 compatible = "fixed-partitions";
61 reg = <0x000000 0x040000>;
67 reg = <0x040000 0x010000>;
72 reg = <0x050000 0x010000>;
78 reg = <0x060000 0x0e0000>;
84 reg = <0x140000 0x090000>;
90 reg = <0x1d0000 0x010000>;
96 reg = <0x1e0000 0x010000>;
102 reg = <0x1f0000 0x010000>;
105 compatible = "nvmem-cells";
106 #address-cells = <1>;
109 macaddr_art_0: macaddr@0 {
113 cal_art_1000: cal@1000 {
114 reg = <0x1000 0x440>;
117 cal_art_5000: cal@5000 {
118 reg = <0x5000 0x844>;
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
135 reg = <0x0 0x1000000>;
141 reg = <0x1000000 0x800000>;
144 ubi: partition@1800000 {
154 compatible = "qcom,ath10k";
157 nvmem-cells = <&macaddr_art_0>, <&cal_art_5000>;
158 nvmem-cell-names = "mac-address", "calibration";
159 mac-address-increment = <4>;
166 nvmem-cells = <&macaddr_art_0>, <&cal_art_1000>;
167 nvmem-cell-names = "mac-address", "calibration";
168 mac-address-increment = <3>;
182 phy0: ethernet-phy@0 {
185 qca,ar8327-initvals = <
186 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
187 0x50 0xcf37cf37 /* LED Control Register 0 */
188 0x54 0x00000000 /* LED Control Register 1 */
189 0x58 0x00000000 /* LED Control Register 2 */
190 0x5c 0x0030c300 /* LED Control Register 3 */
191 0x7c 0x0000007e /* PORT0_STATUS */
199 nvmem-cells = <&macaddr_art_0>;
200 nvmem-cell-names = "mac-address";
201 mac-address-increment = <1>;
202 phy-handle = <&phy0>;
203 pll-data = <0xa6000000 0x00000101 0x00001616>;