qoriq: use 6.1 by default and drop 5.15
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_qxwlan_e558.dtsi
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 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 label-mac-device = &eth0;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "Reset button";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 wlan {
33 function = LED_FUNCTION_WLAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0tpt";
37 };
38
39 led_system: system {
40 label = "green:system";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 default-state = "on";
43 };
44
45 sig1 {
46 label = "green:sig1";
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
48 };
49
50 sig2 {
51 label = "green:sig2";
52 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &pcie0 {
58 status = "okay";
59 };
60
61 &pcie1 {
62 status = "okay";
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <25000000>;
72
73 partitions: partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x000000 0x040000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "u-boot-env";
86 reg = <0x040000 0x010000>;
87 read-only;
88 };
89
90 pridata: partition@50000 {
91 label = "pri-data";
92 reg = <0x050000 0x010000>;
93 read-only;
94
95 nvmem-layout {
96 compatible = "fixed-layout";
97 #address-cells = <1>;
98 #size-cells = <1>;
99
100 macaddr_pridata_400: macaddr@400 {
101 compatible = "mac-base";
102 reg = <0x400 0x6>;
103 #nvmem-cell-cells = <1>;
104 };
105 };
106 };
107
108 art: partition@60000 {
109 label = "art";
110 reg = <0x060000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &mdio0 {
118 status = "okay";
119
120 phy0: ethernet-phy@0 {
121 reg = <0>;
122
123 qca,ar8327-initvals = <
124 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
125 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
126 0x10 0x81000080 /* POWER_ON_STRAP */
127 0x50 0xcc35cc35 /* LED_CTRL0 */
128 0x54 0xca35ca35 /* LED_CTRL1 */
129 0x58 0xc935c935 /* LED_CTRL2 */
130 0x5c 0x03ffff00 /* LED_CTRL3 */
131 0x7c 0x0000007e /* PORT0_STATUS */
132 0x94 0x0000007e /* PORT6 STATUS */
133 >;
134 };
135 };
136
137 &eth0 {
138 status = "okay";
139
140 pll-data = <0x56000000 0x00000101 0x00001616>;
141
142 phy-handle = <&phy0>;
143
144 nvmem-cells = <&macaddr_pridata_400 1>;
145 nvmem-cell-names = "mac-address";
146 };
147
148 &eth1 {
149 status = "okay";
150
151 pll-data = <0x03000101 0x00000101 0x00001616>;
152
153 nvmem-cells = <&macaddr_pridata_400 0>;
154 nvmem-cell-names = "mac-address";
155
156 fixed-link {
157 speed = <1000>;
158 full-duplex;
159 };
160 };
161
162 &usb_phy0 {
163 status = "okay";
164 };
165
166 &usb0 {
167 status = "okay";
168 };
169
170 &usb_phy1 {
171 status = "okay";
172 };
173
174 &usb1 {
175 status = "okay";
176 };
177
178 &wmac {
179 status = "okay";
180
181 mtd-cal-data = <&art 0x1000>;
182 };