d25bf5756022e5cd83a1e801f6293cc3dbef04f9
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_tplink_eap613-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
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 = "tplink,eap613-v1", "mediatek,mt7621-soc";
11 model = "TP-Link EAP613 v1";
12
13 aliases {
14 label-mac-device = &gmac0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_status: status {
29 label = "blue:status";
30 color = <LED_COLOR_ID_BLUE>;
31 function = LED_FUNCTION_STATUS;
32 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45 };
46
47 &spi0 {
48 status = "okay";
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <20000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x80000>;
63 read-only;
64 };
65
66 partition@80000 {
67 label = "partition-table";
68 reg = <0x80000 0x10000>;
69 read-only;
70 };
71
72 partition@90000 {
73 compatible = "nvmem-cells";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 label = "product-info";
78 reg = <0x90000 0x10000>;
79 read-only;
80
81 macaddr: macaddr@8 {
82 reg = <0x8 0x6>;
83 };
84 };
85
86 partition@a0000 {
87 compatible = "denx,fit";
88 label = "firmware";
89 reg = <0xa0000 0xcf0000>;
90 };
91
92 partition@d90000 {
93 label = "user-config";
94 reg = <0xd90000 0x60000>;
95 read-only;
96 };
97
98 partition@f30000 {
99 label = "mutil-log";
100 reg = <0xf30000 0x80000>;
101 read-only;
102 };
103
104 partition@fb0000 {
105 label = "oops";
106 reg = <0xfb0000 0x40000>;
107 read-only;
108 };
109
110 radio: partition@ff0000 {
111 label = "radio";
112 reg = <0xff0000 0x10000>;
113 read-only;
114 };
115 };
116 };
117 };
118
119 &state_default {
120 gpio {
121 groups = "uart3";
122 function = "gpio";
123 };
124 };
125
126 &pcie {
127 status = "okay";
128 };
129
130 &pcie1 {
131 wifi@0,0 {
132 compatible = "mediatek,mt76";
133 reg = <0x0000 0 0 0 0>;
134 mediatek,mtd-eeprom = <&radio 0x0>;
135 mediatek,disable-radar-background;
136 };
137 };
138
139 &gmac0 {
140 nvmem-cells = <&macaddr>;
141 nvmem-cell-names = "mac-address";
142 };
143
144 &switch0 {
145 ports {
146 port@0 {
147 status = "okay";
148 label = "lan";
149 };
150 };
151 };