ramips: drop redundant chosen/bootargs
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_re305-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
11 model = "TP-Link RE305 v1";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &ethernet;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29
30 wps {
31 label = "wps";
32 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_power: power {
41 label = "re305-v1:blue:power";
42 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan2g {
46 label = "re305-v1:blue:wlan2g";
47 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50
51 wlan5g {
52 label = "re305-v1:blue:wlan5g";
53 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56
57 rssi1 {
58 label = "re305-v1:red:rssi";
59 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
60 };
61
62 rssi2 {
63 label = "re305-v1:blue:rssi";
64 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <50000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x0 0x20000>;
85 read-only;
86 };
87
88 partition@20000 {
89 compatible = "tplink,firmware";
90 label = "firmware";
91 reg = <0x20000 0x5e0000>;
92 };
93
94 config: partition@600000 {
95 label = "config";
96 reg = <0x600000 0x50000>;
97 read-only;
98 };
99
100 /*
101 The flash space between 0x650000 and 0x7f0000 is blank in the
102 stock firmware so it is left out as well.
103 */
104
105 radio: partition@7f0000 {
106 label = "radio";
107 reg = <0x7f0000 0x10000>;
108 read-only;
109 };
110 };
111 };
112 };
113
114 &state_default {
115 gpio {
116 groups = "refclk", "wdt", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an";
117 function = "gpio";
118 };
119 };
120
121 &pcie {
122 status = "okay";
123 };
124
125 &pcie0 {
126 mt76@0,0 {
127 compatible = "mediatek,mt76";
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&radio 0x8000>;
130 ieee80211-freq-limit = <5000000 6000000>;
131 mtd-mac-address = <&config 0x10008>;
132 mtd-mac-address-increment = <2>;
133 };
134 };
135
136 &wmac {
137 status = "okay";
138
139 mediatek,mtd-eeprom = <&radio 0x0>;
140 mtd-mac-address = <&config 0x10008>;
141 mtd-mac-address-increment = <1>;
142 };
143
144 &ethernet {
145 mtd-mac-address = <&config 0x10008>;
146 };