ath79: add support for MikroTik RouterBOARD 750 r2 (hEX lite)
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_trendnet_tew-823dru.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
8 / {
9 compatible = "trendnet,tew-823dru", "qca,qca9558";
10 model = "TRENDNET TEW-823DRU";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 power_orange {
23 label = "orange:power";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 };
26
27 led_power_green: power_green {
28 label = "green:power";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 };
31
32 planet_green {
33 label = "green:planet";
34 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
35 };
36
37 planet_orange {
38 label = "orange:planet";
39 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "Reset button";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
51 };
52
53 wps {
54 label = "WPS button";
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
58 };
59 };
60 };
61
62 &pcie0 {
63 status = "okay";
64 };
65
66 &pcie1 {
67 status = "okay";
68 };
69
70 &usb_phy0 {
71 status = "okay";
72 };
73
74 &usb0 {
75 status = "okay";
76 };
77
78 &usb_phy1 {
79 status = "okay";
80 };
81
82 &usb1 {
83 status = "okay";
84 };
85
86 &spi {
87 status = "okay";
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x030000>;
102 read-only;
103 };
104
105 partition@30000 {
106 label = "nvram";
107 reg = <0x030000 0x010000>;
108 read-only;
109 };
110
111 partition@40000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x040000 0xef0000>;
115 };
116
117 partition@f30000 {
118 label = "lang";
119 reg = <0xf30000 0x030000>;
120 read-only;
121 };
122
123 partition@f60000 {
124 label = "my-dlink";
125 reg = <0xf60000 0x080000>;
126 read-only;
127 };
128
129 partition@fe0000 {
130 label = "mac";
131 reg = <0xfe0000 0x010000>;
132 read-only;
133 };
134
135 art: partition@ff0000 {
136 label = "art";
137 reg = <0xff0000 0x010000>;
138 read-only;
139 };
140 };
141 };
142 };
143
144 &mdio0 {
145 status = "okay";
146
147 phy0: ethernet-phy@0 {
148 reg = <0>;
149 qca,ar8327-initvals = <
150 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
151 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
152 0x10 0x81000080 /* POWER_ON_STRAP */
153 0x7c 0x0000007e /* PORT0_STATUS */
154 0x94 0x0000007e /* PORT6 STATUS */
155 >;
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 phy-handle = <&phy0>;
163 pll-data = <0x56000000 0x00000101 0x00001616>;
164
165 gmac-config {
166 device = <&gmac>;
167 rgmii-enabled = <1>;
168 };
169 };
170
171 &eth1 {
172 status = "okay";
173
174 pll-data = <0x03000101 0x00000101 0x00001616>;
175
176 fixed-link {
177 speed = <1000>;
178 full-duplex;
179 };
180 };
181
182 &wmac {
183 status = "okay";
184
185 mtd-cal-data = <&art 0x1000>;
186 };