ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_jjplus_jwap230.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "jjPlus JWAP230";
11 compatible = "jjplus,jwap230", "qca,qca9558";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_power: led-0 {
24 color = <LED_COLOR_ID_GREEN>;
25 function = LED_FUNCTION_POWER;
26 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
27 };
28
29 led-1 {
30 color = <LED_COLOR_ID_GREEN>;
31 function-enumerator = <0>;
32 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
33 };
34
35 led-2 {
36 color = <LED_COLOR_ID_GREEN>;
37 function-enumerator = <1>;
38 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &pcie0 {
44 status = "okay";
45 };
46
47 &pcie1 {
48 status = "okay";
49 };
50
51 &spi {
52 status = "okay";
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <25000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x000000 0x040000>;
67 read-only;
68 };
69
70 partition@40000 {
71 label = "u-boot-env";
72 reg = <0x040000 0x010000>;
73 };
74
75 partition@50000 {
76 compatible = "denx,uimage";
77 label = "firmware";
78 reg = <0x050000 0xfa0000>;
79 };
80
81 art: partition@ff0000 {
82 label = "art";
83 reg = <0xff0000 0x010000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 macaddr_art_lan: macaddr@0 {
92 reg = <0x0 0x6>;
93 };
94
95 macaddr_art_wan: macaddr@6 {
96 reg = <0x6 0x6>;
97 };
98
99 calibration_art_wlan: calibration@1000 {
100 reg = <0x1000 0x440>;
101 };
102 };
103 };
104 };
105 };
106 };
107
108 &mdio0 {
109 status = "okay";
110
111 switch@0 {
112 compatible = "qca,ar8327";
113 reg = <0>;
114
115 qca,ar8327-initvals = <
116 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
117 0x58 0xffb7ffb7 /* LED_CTRL2 */
118 0x5c 0x03ffff00 /* LED_CTRL3 */
119 0x7c 0x0000007e /* PORT0_STATUS */
120 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
121 0x94 0x0000007e /* PORT6_STATUS */
122 >;
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128
129 nvmem-cells = <&macaddr_art_wan>;
130 nvmem-cell-names = "mac-address";
131
132 pll-data = <0xae000000 0x80000101 0x80001313>;
133
134 fixed-link {
135 speed = <1000>;
136 full-duplex;
137 };
138
139 gmac_config: gmac-config {
140 device = <&gmac>;
141
142 rxdv-delay = <3>;
143 rxd-delay = <3>;
144 txen-delay = <0>;
145 txd-delay = <0>;
146 rgmii-enabled = <1>;
147 };
148 };
149
150 &eth1 {
151 status = "okay";
152
153 nvmem-cells = <&macaddr_art_lan>;
154 nvmem-cell-names = "mac-address";
155
156 pll-data = <0x03000101 0x00000101 0x00001313>;
157
158 fixed-link {
159 speed = <1000>;
160 full-duplex;
161 };
162 };
163
164 &wmac {
165 status = "okay";
166 nvmem-cells = <&calibration_art_wlan>;
167 nvmem-cell-names = "calibration";
168 };
169
170 &usb_phy0 {
171 status = "okay";
172 };
173
174 &usb0 {
175 status = "okay";
176 };
177
178 &usb_phy1 {
179 status = "okay";
180 };
181
182 &usb1 {
183 status = "okay";
184 };