kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_haier-sim_wr1800k.dtsi
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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 label-mac-device = &gmac1;
12 led-boot = &led_status_red;
13 led-failsafe = &led_status_blue;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_blue;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 bootargs-override = "console=ttyS0,115200";
21 };
22
23 keys {
24 compatible = "gpio-keys";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31
32 wps {
33 label = "wps";
34 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_status_blue: led-0 {
43 color = <LED_COLOR_ID_BLUE>;
44 function = LED_FUNCTION_STATUS;
45 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
46 };
47
48 led_status_green: led-1 {
49 color = <LED_COLOR_ID_GREEN>;
50 function = LED_FUNCTION_STATUS;
51 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
52 };
53
54 led_status_red: led-2 {
55 color = <LED_COLOR_ID_RED>;
56 function = LED_FUNCTION_STATUS;
57 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &gmac0 {
63 nvmem-cells = <&macaddr_factory_8004 0>;
64 nvmem-cell-names = "mac-address";
65 };
66
67 &gmac1 {
68 status = "okay";
69 label = "wan";
70 phy-handle = <&ethphy4>;
71
72 nvmem-cells = <&macaddr_factory_8004 (-3)>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &ethphy4 {
77 /delete-property/ interrupts;
78 };
79
80 &nand {
81 status = "okay";
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x0000000 0x0080000>;
91 read-only;
92 };
93
94 partition@80000 {
95 label = "u-boot-env";
96 reg = <0x0080000 0x0080000>;
97 };
98
99 partition@100000 {
100 label = "factory";
101 reg = <0x0100000 0x0080000>;
102 read-only;
103
104 nvmem-layout {
105 compatible = "fixed-layout";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 eeprom_factory_0: eeprom@0 {
110 reg = <0x0 0xe00>;
111 };
112
113 macaddr_factory_8004: macaddr@8004 {
114 compatible = "mac-base";
115 reg = <0x8004 0x6>;
116 #nvmem-cell-cells = <1>;
117 };
118 };
119 };
120
121 partition@180000 {
122 label = "firmware";
123 reg = <0x0180000 0x7a80000>;
124
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
127 #size-cells = <1>;
128
129 partition@0 {
130 label = "kernel";
131 reg = <0x0000000 0x0400000>;
132 };
133
134 partition@400000 {
135 label = "ubi";
136 reg = <0x0400000 0x7680000>;
137 };
138 };
139
140 /* last 128KiB *32 is reserved for bad blocks management */
141 };
142 };
143
144 &pcie {
145 status = "okay";
146 };
147
148 &pcie1 {
149 wifi@0,0 {
150 compatible = "mediatek,mt76";
151 reg = <0x0000 0 0 0 0>;
152 nvmem-cells = <&eeprom_factory_0>;
153 nvmem-cell-names = "eeprom";
154 mediatek,disable-radar-background;
155 };
156 };
157
158 &state_default {
159 gpio {
160 groups = "i2c", "uart3", "wdt";
161 function = "gpio";
162 };
163 };
164
165 &switch0 {
166 ports {
167 port@1 {
168 status = "okay";
169 label = "lan3";
170 };
171
172 port@2 {
173 status = "okay";
174 label = "lan2";
175 };
176
177 port@3 {
178 status = "okay";
179 label = "lan1";
180 };
181 };
182 };
183
184 &xhci {
185 status = "disabled";
186 };