x86: Add kmod-dwmac-intel
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7981b-jcg-q30-pro.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "mt7981.dtsi"
8
9 / {
10 model = "JCG Q30 PRO";
11 compatible = "jcg,q30-pro", "mediatek,mt7981";
12
13 aliases {
14 serial0 = &uart0;
15 label-mac-device = &gmac0;
16 led-boot = &led_status_red;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_blue;
19 led-upgrade = &led_status_blue;
20 };
21
22 chosen {
23 stdout-path = "serial0:115200n8";
24 };
25
26 memory {
27 reg = <0 0x40000000 0 0x10000000>;
28 };
29
30 gpio-keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 led_status_red: red {
44 label = "red:status";
45 gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
46 };
47
48 led_status_blue: blue {
49 label = "blue:status";
50 gpios = <&pio 13 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &eth {
56 status = "okay";
57
58 gmac0: mac@0 {
59 compatible = "mediatek,eth-mac";
60 reg = <0>;
61 phy-mode = "2500base-x";
62
63 nvmem-cells = <&macaddr_lan>;
64 nvmem-cell-names = "mac-address";
65
66 fixed-link {
67 speed = <2500>;
68 full-duplex;
69 pause;
70 };
71 };
72 };
73
74 &mdio_bus {
75 switch: switch@1f {
76 compatible = "mediatek,mt7531";
77 reg = <31>;
78 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
79 interrupt-controller;
80 #interrupt-cells = <1>;
81 interrupt-parent = <&pio>;
82 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
83 };
84 };
85
86 &spi0 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&spi0_flash_pins>;
89 status = "okay";
90
91 spi_nand@0 {
92 compatible = "spi-nand";
93 #address-cells = <1>;
94 #size-cells = <1>;
95 reg = <0>;
96
97 spi-max-frequency = <52000000>;
98 spi-tx-bus-width = <4>;
99 spi-rx-bus-width = <4>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 partition@0 {
107 label = "bl2";
108 reg = <0x0000000 0x0100000>;
109 read-only;
110 };
111
112 partition@100000 {
113 label = "u-boot-env";
114 reg = <0x0100000 0x0080000>;
115 };
116
117 factory: partition@180000 {
118 label = "Factory";
119 reg = <0x0180000 0x0200000>;
120 read-only;
121
122 nvmem-layout {
123 compatible = "fixed-layout";
124 #address-cells = <1>;
125 #size-cells = <1>;
126
127 macaddr_wan: macaddr@a0024 {
128 reg = <0xa0024 0x6>;
129 };
130
131 macaddr_lan: macaddr@a002a {
132 reg = <0xa002a 0x6>;
133 };
134 };
135 };
136
137 partition@380000 {
138 label = "fip";
139 reg = <0x0380000 0x0200000>;
140 read-only;
141 };
142
143 partition@580000 {
144 label = "ubi";
145 reg = <0x0580000 0x7000000>;
146 };
147 };
148 };
149 };
150
151 &switch {
152 ports {
153 #address-cells = <1>;
154 #size-cells = <0>;
155
156 port@0 {
157 reg = <0>;
158 label = "wan";
159 nvmem-cells = <&macaddr_wan>;
160 nvmem-cell-names = "mac-address";
161 };
162
163 port@1 {
164 reg = <1>;
165 label = "lan1";
166 };
167
168 port@2 {
169 reg = <2>;
170 label = "lan2";
171 };
172
173 port@3 {
174 reg = <3>;
175 label = "lan3";
176 };
177
178 port@6 {
179 reg = <6>;
180 ethernet = <&gmac0>;
181 phy-mode = "2500base-x";
182
183 fixed-link {
184 speed = <2500>;
185 full-duplex;
186 pause;
187 };
188 };
189 };
190 };
191
192 &pio {
193 spi0_flash_pins: spi0-pins {
194 mux {
195 function = "spi";
196 groups = "spi0", "spi0_wp_hold";
197 };
198
199 conf-pu {
200 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
201 drive-strength = <8>;
202 mediatek,pull-up-adv = <0>; /* bias-disable */
203 };
204
205 conf-pd {
206 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
207 drive-strength = <8>;
208 mediatek,pull-up-adv = <0>; /* bias-disable */
209 };
210 };
211 };
212
213 &uart0 {
214 status = "okay";
215 };
216
217 &watchdog {
218 status = "okay";
219 };
220
221 &wifi {
222 status = "okay";
223
224 mediatek,mtd-eeprom = <&factory 0x0>;
225 };