ath79: drop and consolidate redundant chosen/bootargs
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9563_nec_wg1200cr.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 model = "NEC Aterm WG1200CR";
11 compatible = "nec,wg1200cr", "qca,qca9563";
12
13 aliases {
14 led-boot = &power_green;
15 led-failsafe = &power_red;
16 led-running = &power_green;
17 led-upgrade = &power_green;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22 /* other LEDs are connected to ath10k (QCA9888) gpiochip */
23
24 power_green: power_green {
25 label = "wg1200cr:green:power";
26 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
27 default-state = "on";
28 };
29
30 power_red: power_red {
31 label = "wg1200cr:red:power";
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 debounce-interval = <60>;
44 };
45
46 wps {
47 label = "wps";
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 debounce-interval = <60>;
51 };
52
53 bridge {
54 label = "br";
55 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
56 linux,code = <BTN_0>;
57 linux,input-type = <EV_SW>;
58 debounce-interval = <60>;
59 };
60
61 converter {
62 label = "cnv";
63 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
64 linux,code = <BTN_0>;
65 linux,input-type = <EV_SW>;
66 debounce-interval = <60>;
67 };
68 };
69 };
70
71 &spi {
72 status = "okay";
73 num-cs = <1>;
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x040000>;
88 read-only;
89 };
90
91 partition@40000 {
92 label = "devdata";
93 reg = <0x040000 0x010000>;
94 read-only;
95 };
96
97 partition@50000 {
98 label = "devconf";
99 reg = <0x050000 0x010000>;
100 read-only;
101 };
102
103 partition@60000 {
104 label = "misc";
105 reg = <0x060000 0x010000>;
106 read-only;
107 };
108
109 partition@70000 {
110 label = "wifimngdata";
111 reg = <0x070000 0x010000>;
112 read-only;
113 };
114
115 partition@80000 {
116 compatible = "seama";
117 label = "firmware";
118 reg = <0x080000 0x770000>;
119 };
120
121 partition@7f0000 {
122 label = "art";
123 reg = <0x7f0000 0x010000>;
124 read-only;
125 };
126 };
127 };
128 };
129
130 &mdio0 {
131 status = "okay";
132
133 phy0: ethernet-phy@0 {
134 reg = <0>;
135
136 qca,ar8327-initvals = <
137 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
138 0x50 0xcc35cc35 /* LED_CTRL0 */
139 0x54 0xca35ca35 /* LED_CTRL1 */
140 0x58 0xc935c935 /* LED_CTRL2 */
141 0x5c 0x03ffff00 /* LED_CTRL3 */
142 0x7c 0x0000007e /* PORT0_STATUS */
143 >;
144 };
145 };
146
147 &eth0 {
148 status = "okay";
149
150 pll-data = <0x03000101 0x00000101 0x00001919>;
151
152 phy-mode = "sgmii";
153 phy-handle = <&phy0>;
154 };
155
156 &pcie {
157 status = "okay";
158
159 wifi@0,0 {
160 compatible = "pci168c,0056";
161 reg = <0x0000 0 0 0 0>;
162 };
163 };
164
165 &uart {
166 status = "okay";
167 };
168
169 &wmac {
170 status = "okay";
171 qca,no-eeprom;
172 };