ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
10 model = "GB-PC1";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 system {
33 label = "gb-pc1:green:system";
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 };
36
37 led_status: status {
38 label = "gb-pc1:green:status";
39 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 };
41
42 lan1 {
43 label = "gb-pc1:green:lan1";
44 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
45 };
46
47 lan2 {
48 label = "gb-pc1:green:lan2";
49 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
50 };
51 };
52 };
53
54 &sdhci {
55 status = "okay";
56 };
57
58 &spi0 {
59 status = "okay";
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <80000000>;
65 broken-flash-reset;
66 m25p,fast-read;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0x1fb0000>;
95 };
96 };
97 };
98 };
99
100 &pcie {
101 status = "okay";
102 };
103
104 &gmac0 {
105 mtd-mac-address = <&factory 0xe000>;
106 };
107
108 &switch0 {
109 ports {
110 port@0 {
111 status = "okay";
112 label = "lan1";
113 };
114
115 port@4 {
116 status = "okay";
117 label = "lan2";
118 };
119 };
120 };
121
122 &state_default {
123 gpio {
124 groups = "jtag", "rgmii2", "uart3", "wdt";
125 function = "gpio";
126 };
127 };