ramips: add support for Netgear R6080
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7628an_netgear_r6080.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 = "netgear,r6080", "mediatek,mt7628an-soc";
11 model = "Netgear R6080";
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 38 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 lan {
35 label = "r6080:green:lan";
36 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
37 };
38
39 led_power: power {
40 label = "r6080:green:power";
41 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
42 };
43
44 wlan2g_green {
45 label = "r6080:green:wlan2g";
46 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49
50 wlan2g_orange {
51 label = "r6080:orange:wlan2g";
52 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
53 };
54
55 wan_green {
56 label = "r6080:green:wan";
57 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
58 };
59
60 wan_orange {
61 label = "r6080:orange:wan";
62 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
63 };
64 };
65 };
66
67 &state_default {
68 gpio {
69 groups = "p0led_an", "p1led_an", "p2led_an", "p3led_an",
70 "p4led_an", "wdt", "wled_an";
71 function = "gpio";
72 };
73 };
74
75 &spi0 {
76 status = "okay";
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <86000000>;
82 m25p,fast-read;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "u-boot";
91 reg = <0x0 0x40000>;
92 read-only;
93 };
94
95 factory: partition@40000 {
96 label = "factory";
97 reg = <0x40000 0x20000>;
98 read-only;
99 };
100
101 partition@60000 {
102 label = "nvram";
103 reg = <0x60000 0x30000>;
104 read-only;
105 };
106
107 partition@90000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x90000 0x760000>;
111 };
112
113 partition@7f0000 {
114 label = "reserved";
115 reg = <0x7f0000 0x10000>;
116 read-only;
117 };
118 };
119 };
120 };
121
122 &wmac {
123 status = "okay";
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x4>;
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &pcie0 {
135 wifi@0,0 {
136 reg = <0x0000 0 0 0 0>;
137 mediatek,mtd-eeprom = <&factory 0x8000>;
138 ieee80211-freq-limit = <5000000 6000000>;
139 };
140 };
141
142 &ehci {
143 status = "disabled";
144 };
145
146 &ohci {
147 status = "disabled";
148 };