dnsmasq: rework network interface ignore
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_motorola_mwr03.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.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 model = "Motorola MWR03";
11 compatible = "motorola,mwr03", "mediatek,mt7628an-soc";
12
13 aliases {
14 led-boot = &led_status_orange;
15 led-failsafe = &led_status_orange;
16 led-running = &led_status_white;
17 led-upgrade = &led_status_orange;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_status_orange: status_orange {
34 function = LED_FUNCTION_STATUS;
35 color = <LED_COLOR_ID_ORANGE>;
36 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
37 };
38
39 led_status_white: status_white {
40 function = LED_FUNCTION_STATUS;
41 color = <LED_COLOR_ID_WHITE>;
42 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
43 };
44 };
45 };
46
47 &spi0 {
48 status = "okay";
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <80000000>;
54 m25p,fast-read;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "bootloader";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "config";
69 reg = <0x30000 0x10000>;
70 read-only;
71 };
72
73 partition@40000 {
74 label = "factory";
75 reg = <0x40000 0x10000>;
76 read-only;
77
78 nvmem-layout {
79 compatible = "fixed-layout";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 eeprom_factory_0: eeprom@0 {
84 reg = <0x0 0x400>;
85 };
86
87 eeprom_factory_8000: eeprom@8000 {
88 reg = <0x8000 0x200>;
89 };
90
91 macaddr_factory_4: macaddr@4 {
92 compatible = "mac-base";
93 reg = <0x4 0x6>;
94 #nvmem-cell-cells = <1>;
95 };
96 };
97 };
98
99 partition@50000 {
100 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x50000 0x7b0000>;
103 };
104 };
105 };
106 };
107
108 &state_default {
109 gpio {
110 groups = "i2c", "i2s";
111 function = "gpio";
112 };
113 };
114
115 &usbphy {
116 status = "disabled";
117 };
118
119 &ehci {
120 status = "disabled";
121 };
122
123 &ohci {
124 status = "disabled";
125 };
126
127 &ethernet {
128 nvmem-cells = <&macaddr_factory_4 (-1)>;
129 nvmem-cell-names = "mac-address";
130 };
131
132 &esw {
133 mediatek,portmap = <0x3e>;
134 mediatek,portdisable = <0x30>;
135 };
136
137 &pcie {
138 status = "okay";
139 };
140
141 &pcie0 {
142 wifi@0,0 {
143 reg = <0x0000 0 0 0 0>;
144 nvmem-cells = <&eeprom_factory_8000>;
145 nvmem-cell-names = "eeprom";
146 ieee80211-freq-limit = <5000000 6000000>;
147 };
148 };
149
150 &wmac {
151 status = "okay";
152
153 nvmem-cells = <&eeprom_factory_0>;
154 nvmem-cell-names = "eeprom";
155 };