ramips: removing unnecessary compatibility for TP-Link Archer C2 v1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_t5004.dts
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 compatible = "iptime,t5004", "mediatek,mt7621-soc";
11 model = "ipTIME T5004";
12
13 aliases {
14 led-boot = &led_cpu;
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_cpu: led-0 {
24 color = <LED_COLOR_ID_BLUE>;
25 function = LED_FUNCTION_CPU;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39 };
40
41 &nand {
42 status = "okay";
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x80000>;
52 read-only;
53 };
54
55 partition@80000 {
56 label = "config";
57 reg = <0x80000 0xc0000>;
58 read-only;
59 };
60
61 partition@140000 {
62 label = "firmware";
63 reg = <0x140000 0x7e40000>;
64
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "kernel";
71 reg = <0x0 0x400000>;
72 };
73
74 partition@400000 {
75 label = "ubi";
76 reg = <0x400000 0x7a40000>;
77 };
78 };
79 };
80 };
81
82 &state_default {
83 gpio {
84 groups = "i2c", "wdt";
85 function = "gpio";
86 };
87 };
88
89 &gmac1 {
90 status = "okay";
91 label = "wan";
92 phy-handle = <&ethphy0>;
93 };
94
95 &mdio {
96 ethphy0: ethernet-phy@0 {
97 reg = <0>;
98 };
99 };
100
101 &switch0 {
102 ports {
103 port@1 {
104 status = "okay";
105 label = "lan4";
106 };
107
108 port@2 {
109 status = "okay";
110 label = "lan3";
111 };
112
113 port@3 {
114 status = "okay";
115 label = "lan2";
116 };
117
118 port@4 {
119 status = "okay";
120 label = "lan1";
121 };
122 };
123 };
124
125 &xhci {
126 status = "disabled";
127 };