ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_adslr_g7.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "adslr,g7", "mediatek,mt7621-soc";
11 model = "ADSLR G7";
12
13 aliases {
14 led-boot = &led_sys;
15 led-failsafe = &led_sys;
16 led-running = &led_sys;
17 led-upgrade = &led_sys;
18 label-mac-device = &gmac0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_sys: sys {
25 label = "g7:blue:sys";
26 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40 };
41
42 &spi0 {
43 status = "okay";
44
45 flash@0 {
46 compatible = "jedec,spi-nor";
47 reg = <0>;
48 spi-max-frequency = <40000000>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "u-boot";
57 reg = <0x0 0x30000>;
58 read-only;
59 };
60
61 partition@30000 {
62 label = "u-boot-env";
63 reg = <0x30000 0x10000>;
64 read-only;
65 };
66
67 factory: partition@40000 {
68 label = "factory";
69 reg = <0x40000 0x10000>;
70 read-only;
71 };
72
73 partition@50000 {
74 compatible = "denx,uimage";
75 label = "firmware";
76 reg = <0x50000 0xfb0000>;
77 };
78 };
79 };
80 };
81
82 &pcie {
83 status = "okay";
84 };
85
86 &pcie0 {
87 wifi@0,0 {
88 compatible = "mediatek,mt76";
89 reg = <0x0000 0 0 0 0>;
90 mediatek,mtd-eeprom = <&factory 0x0000>;
91 ieee80211-freq-limit = <2400000 2500000>;
92 };
93 };
94
95 &pcie1 {
96 wifi@0,0 {
97 compatible = "mediatek,mt76";
98 reg = <0x0000 0 0 0 0>;
99 mediatek,mtd-eeprom = <&factory 0x8000>;
100 ieee80211-freq-limit = <5000000 6000000>;
101 };
102 };
103
104 &gmac0 {
105 mtd-mac-address = <&factory 0xe00c>;
106 };
107
108 &switch0 {
109 ports {
110 port@0 {
111 status = "okay";
112 label = "lan1";
113 };
114
115 port@1 {
116 status = "okay";
117 label = "lan2";
118 };
119
120 port@2 {
121 status = "okay";
122 label = "lan3";
123 };
124
125 port@3 {
126 status = "okay";
127 label = "lan4";
128 };
129
130 port@4 {
131 status = "okay";
132 label = "wan";
133 mtd-mac-address = <&factory 0xe00c>;
134 mtd-mac-address-increment = <1>;
135 };
136 };
137 };
138
139 &state_default {
140 gpio {
141 groups = "i2c", "uart3", "wdt";
142 function = "gpio";
143 };
144 };