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