ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_alfa-network_ac1200rm.dts
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com>
4 * All rights reserved.
5 */
6
7 #include "mt7620a.dtsi"
8
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11
12 / {
13 compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc";
14 model = "ALFA Network AC1200RM";
15
16 aliases {
17 led-boot = &led_wps;
18 led-failsafe = &led_wps;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "reset";
30 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 wlan2g {
39 label = "green:wlan2g";
40 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
41 };
42
43 led_wps: wps {
44 label = "green:wps";
45 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
46 };
47 };
48 };
49
50 &ehci {
51 status = "okay";
52 };
53
54 &ethernet {
55 pinctrl-names = "default";
56 pinctrl-0 = <&ephy_pins>;
57
58 nvmem-cells = <&macaddr_factory_28>;
59 nvmem-cell-names = "mac-address";
60
61 mediatek,portmap = "llllw";
62 };
63
64 &gpio1 {
65 status = "okay";
66 };
67
68 &gpio2 {
69 status = "okay";
70 };
71
72 &gpio3 {
73 status = "okay";
74 };
75
76 &ohci {
77 status = "okay";
78 };
79
80 &pcie {
81 status = "okay";
82 };
83
84 &pcie0 {
85 mt76@0,0 {
86 reg = <0x0000 0 0 0 0>;
87 mediatek,mtd-eeprom = <&factory 0x8000>;
88 ieee80211-freq-limit = <5000000 6000000>;
89
90 led {
91 led-sources = <2>;
92 led-active-low;
93 };
94 };
95 };
96
97 &state_default {
98 gpio {
99 groups = "nd_sd", "spi refclk", "wled";
100 function = "gpio";
101 };
102 };
103
104 &spi0 {
105 status = "okay";
106
107 flash@0 {
108 compatible = "jedec,spi-nor";
109 reg = <0>;
110 spi-max-frequency = <10000000>;
111
112 partitions {
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 partition@0 {
118 label = "u-boot";
119 reg = <0x0 0x30000>;
120 read-only;
121 };
122
123 partition@30000 {
124 label = "u-boot-env";
125 reg = <0x30000 0x1000>;
126 };
127
128 partition@31000 {
129 label = "config";
130 reg = <0x31000 0xf000>;
131 read-only;
132 };
133
134 factory: partition@40000 {
135 label = "factory";
136 reg = <0x40000 0x10000>;
137 read-only;
138 };
139
140 partition@50000 {
141 compatible = "denx,uimage";
142 label = "firmware";
143 reg = <0x50000 0xfb0000>;
144 };
145 };
146 };
147 };
148
149 &wmac {
150 ralink,mtd-eeprom = <&factory 0x0>;
151 };
152
153 &factory {
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 macaddr_factory_28: macaddr@28 {
159 reg = <0x28 0x6>;
160 };
161 };