ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_gehua_ghl-r-001.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 = "gehua,ghl-r-001", "mediatek,mt7621-soc";
11 model = "GeHua GHL-R-001";
12
13 leds {
14 compatible = "gpio-leds";
15
16 internet {
17 label = "ghl-r-001:blue:internet";
18 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
19 };
20
21 usb {
22 label = "ghl-r-001:blue:usb";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
25 linux,default-trigger = "usbport";
26 };
27 };
28
29 keys {
30 compatible = "gpio-keys";
31
32 reset {
33 label = "reset";
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38 };
39
40 &uartlite3 {
41 status = "okay";
42 };
43
44 &spi0 {
45 status = "okay";
46
47 flash@0 {
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <25000000>;
51 broken-flash-reset;
52 m25p,fast-read;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 factory: partition@40000 {
72 label = "factory";
73 reg = <0x40000 0x10000>;
74 read-only;
75 };
76
77 partition@50000 {
78 compatible = "denx,uimage";
79 label = "firmware";
80 reg = <0x50000 0x1fb0000>;
81 };
82 };
83 };
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &pcie0 {
91 wifi@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x0000>;
94 };
95 };
96
97 &pcie1 {
98 wifi@0,0 {
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x8000>;
101 ieee80211-freq-limit = <5000000 6000000>;
102
103 led {
104 led-sources = <2>;
105 led-active-low;
106 };
107 };
108 };
109
110 &gmac0 {
111 mtd-mac-address = <&factory 0xe000>;
112 };
113
114 &switch0 {
115 ports {
116 port@0 {
117 status = "okay";
118 label = "lan1";
119 };
120
121 port@1 {
122 status = "okay";
123 label = "lan2";
124 };
125
126 port@2 {
127 status = "okay";
128 label = "lan3";
129 };
130
131 port@4 {
132 status = "okay";
133 label = "wan";
134 mtd-mac-address = <&factory 0xe000>;
135 mtd-mac-address-increment = <1>;
136 };
137 };
138 };
139
140 &state_default {
141 gpio {
142 groups = "jtag", "wdt";
143 function = "gpio";
144 };
145 };