ec94e30a8c656525ecda71b3aae0cd3d1094342a
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_wavlink_wl-wn573hx1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "wavlink,wl-wn573hx1", "mediatek,mt7621-soc";
10 model = "WAVLINK WL-WN573HX1";
11
12 aliases {
13 led-boot = &led_status_blue;
14 led-failsafe = &led_status_blue;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_blue;
17 label-mac-device = &gmac0;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200";
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_status_blue:status_led {
38 label = "blue:status_led";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
40 };
41
42 };
43 };
44
45 &gmac0 {
46 nvmem-cells = <&macaddr_factory_3fff4>;
47 nvmem-cell-names = "mac-address";
48 };
49
50 &mdio {
51 ethphy4: ethernet-phy@4 {
52 reg = <4>;
53 };
54 };
55
56 &pcie {
57 status = "okay";
58 };
59
60 &pcie1 {
61 wifi@0,0 {
62 compatible = "mediatek,mt76";
63 reg = <0x0000 0 0 0 0>;
64 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
65 nvmem-cell-names = "eeprom", "precal";
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71 flash@0 {
72 compatible = "jedec,spi-nor";
73 reg = <0>;
74 spi-max-frequency = <14000000>;
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x00000 0x30000>;
83 };
84
85 partition@30000 {
86 label = "config";
87 reg = <0x30000 0x10000>;
88 };
89
90 factory: partition@50000 {
91 label = "factory";
92 reg = <0x50000 0x40000>;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 eeprom_factory_0: eeprom@0 {
100 reg = <0x0 0xe00>;
101 };
102
103 precal_factory_e10: precal@e10 {
104 reg = <0xe10 0x19c10>;
105 };
106
107 macaddr_factory_3fff4: macaddr@3fff4 {
108 reg = <0x3fff4 0x6>;
109 };
110 };
111 };
112
113 partition@90000 {
114 compatible = "denx,uimage";
115 label = "firmware";
116 reg = <0x90000 0xf70000>;
117 };
118 };
119 };
120 };
121
122 &gmac0 {
123 nvmem-cells = <&macaddr_factory_3fff4>;
124 nvmem-cell-names = "mac-address";
125 };
126
127 &mdio {
128 ethphy4: ethernet-phy@4 {
129 reg = <4>;
130 };
131 };
132
133 &switch0 {
134 ports {
135 port@3 {
136 status = "okay";
137 label = "lan";
138 };
139 };
140 };