ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.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 = &led_power_green;
15                 led-failsafe = &led_power_red;
16                 led-running = &led_power_green;
17                 led-upgrade = &led_power_green;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22                 /* other LEDs are connected to ath10k (QCA9888) gpiochip */
23
24                 led_power_green: power_green {
25                         label = "wg1200cr:green:power";
26                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
27                         default-state = "on";
28                 };
29
30                 led_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
74         num-cs = <1>;
75
76         flash@0 {
77                 compatible = "jedec,spi-nor";
78                 reg = <0>;
79                 spi-max-frequency = <25000000>;
80
81                 partitions {
82                         compatible = "fixed-partitions";
83                         #address-cells = <1>;
84                         #size-cells = <1>;
85
86                         partition@0 {
87                                 label = "u-boot";
88                                 reg = <0x000000 0x040000>;
89                                 read-only;
90                         };
91
92                         partition@40000 {
93                                 label = "devdata";
94                                 reg = <0x040000 0x010000>;
95                                 read-only;
96                         };
97
98                         partition@50000 {
99                                 label = "devconf";
100                                 reg = <0x050000 0x010000>;
101                                 read-only;
102                         };
103
104                         partition@60000 {
105                                 label = "misc";
106                                 reg = <0x060000 0x010000>;
107                                 read-only;
108                         };
109
110                         partition@70000 {
111                                 label = "wifimngdata";
112                                 reg = <0x070000 0x010000>;
113                                 read-only;
114                         };
115
116                         partition@80000 {
117                                 compatible = "seama";
118                                 label = "firmware";
119                                 reg = <0x080000 0x770000>;
120                         };
121
122                         partition@7f0000 {
123                                 label = "art";
124                                 reg = <0x7f0000 0x010000>;
125                                 read-only;
126                         };
127                 };
128         };
129 };
130
131 &mdio0 {
132         status = "okay";
133
134         phy0: ethernet-phy@0 {
135                 reg = <0>;
136
137                 qca,ar8327-initvals = <
138                         0x04 0x00000080 /* PORT0 PAD MODE CTRL */
139                         0x50 0xcc35cc35 /* LED_CTRL0 */
140                         0x54 0xca35ca35 /* LED_CTRL1 */
141                         0x58 0xc935c935 /* LED_CTRL2 */
142                         0x5c 0x03ffff00 /* LED_CTRL3 */
143                         0x7c 0x0000007e /* PORT0_STATUS */
144                 >;
145         };
146 };
147
148 &eth0 {
149         status = "okay";
150
151         pll-data = <0x03000101 0x00000101 0x00001919>;
152
153         phy-mode = "sgmii";
154         phy-handle = <&phy0>;
155 };
156
157 &pcie {
158         status = "okay";
159
160         wifi@0,0 {
161                 compatible = "pci168c,0056";
162                 reg = <0x0000 0 0 0 0>;
163         };
164 };
165
166 &uart {
167         status = "okay";
168 };
169
170 &wmac {
171         status = "okay";
172
173         qca,no-eeprom;
174 };