1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
12 compatible = "gpio-keys";
16 linux,code = <KEY_WPS_BUTTON>;
17 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
28 compatible = "mtd-concat";
30 devices = <&fwconcat0 &fwconcat1>;
33 compatible = "fixed-partitions";
38 compatible = "openwrt,uimage", "denx,uimage";
39 openwrt,ih-magic = <0x68737173>;
51 compatible = "jedec,spi-nor";
53 spi-max-frequency = <50000000>;
56 compatible = "fixed-partitions";
68 reg = <0x40000 0x10000>;
72 fwconcat0: partition@50000 {
74 reg = <0x50000 0xe30000>;
79 reg = <0xe80000 0x10000>;
83 fwconcat1: partition@e90000 {
85 reg = <0xe90000 0x160000>;
88 art: partition@ff0000 {
90 reg = <0xff0000 0x10000>;
93 compatible = "nvmem-cells";
96 compatible = "fixed-layout";
100 calibration_ath9k: calibration@1000 {
101 reg = <0x1000 0x440>;
104 precalibration_ath10k: pre-calibration@5000 {
105 reg = <0x5000 0x2f20>;
117 compatible = "qcom,ath10k";
120 nvmem-cells = <&precalibration_ath10k>;
121 nvmem-cell-names = "pre-calibration";
128 gpios = <11 GPIO_ACTIVE_LOW>;
130 line-name = "phy-reset";
137 phy0: ethernet-phy@0 {
140 qca,mib-poll-interval = <500>;
142 qca,ar8327-initvals = <
143 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
144 0x10 0x81000080 /* POWER_ON_STRAP */
145 0x50 0xcc35cc35 /* LED_CTRL0 */
146 0x54 0xcb37cb37 /* LED_CTRL1 */
147 0x58 0x00000000 /* LED_CTRL2 */
148 0x5c 0x00f3cf00 /* LED_CTRL3 */
149 0x7c 0x0000007e /* PORT0_STATUS */
157 pll-data = <0x03000101 0x00000101 0x00001919>;
160 phy-handle = <&phy0>;
166 nvmem-cells = <&calibration_ath9k>;
167 nvmem-cell-names = "calibration";