kernel: drop empty kmod-ledtrig-* packages
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iptime_a8004t.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
8 / {
9 compatible = "iptime,a8004t", "mediatek,mt7621-soc";
10 model = "ipTIME A8004T";
11
12 aliases {
13 led-boot = &led_cpu;
14 led-failsafe = &led_cpu;
15 led-running = &led_cpu;
16 led-upgrade = &led_cpu;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_cpu: cpu {
23 label = "orange:cpu";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 };
26
27 wlan2g {
28 label = "orange:wlan2g";
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "phy0radio";
31 };
32
33 wlan5g {
34 label = "orange:wlan5g";
35 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1radio";
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys";
42
43 reset {
44 label = "reset";
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 };
48
49 wps {
50 label = "wps";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_WPS_BUTTON>;
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <50000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 uboot: partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x20000>;
73 read-only;
74 };
75
76 partition@20000 {
77 label = "config";
78 reg = <0x20000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@30000 {
83 label = "factory";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 partition@40000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x40000 0xfc0000>;
92 };
93 };
94 };
95 };
96
97 &gmac0 {
98 mtd-mac-address = <&uboot 0x1fc20>;
99 };
100
101 &switch0 {
102 ports {
103 port@0 {
104 status = "okay";
105 label = "wan";
106 mtd-mac-address = <&uboot 0x1fc40>;
107 };
108
109 port@1 {
110 status = "okay";
111 label = "lan4";
112 };
113
114 port@2 {
115 status = "okay";
116 label = "lan3";
117 };
118
119 port@3 {
120 status = "okay";
121 label = "lan2";
122 };
123
124 port@4 {
125 status = "okay";
126 label = "lan1";
127 };
128 };
129 };
130
131 &pcie {
132 status = "okay";
133 };
134
135 &pcie0 {
136 wifi@0,0 {
137 compatible = "mediatek,mt76";
138 reg = <0x0000 0 0 0 0>;
139 mediatek,mtd-eeprom = <&factory 0x0000>;
140 ieee80211-freq-limit = <2400000 2500000>;
141 };
142 };
143
144 &pcie1 {
145 wifi@0,0 {
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&factory 0x8000>;
149 ieee80211-freq-limit = <5000000 6000000>;
150 };
151 };
152
153 &state_default {
154 gpio {
155 groups = "wdt", "jtag", "i2c";
156 function = "gpio";
157 };
158 };