ramips: consolidate Netgear devices for mt7628
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_netgear_r6xxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
15 linux,code = <KEY_RESTART>;
16 };
17 };
18 };
19
20 &spi0 {
21 status = "okay";
22
23 flash@0 {
24 compatible = "jedec,spi-nor";
25 reg = <0>;
26 spi-max-frequency = <86000000>;
27 m25p,fast-read;
28
29 partitions: partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x0 0x40000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x20000>;
43 read-only;
44 };
45
46 partition@60000 {
47 label = "nvram";
48 reg = <0x60000 0x30000>;
49 read-only;
50 };
51 };
52 };
53 };
54
55 &wmac {
56 status = "okay";
57 };
58
59 &ethernet {
60 mtd-mac-address = <&factory 0x4>;
61 };
62
63 &pcie {
64 status = "okay";
65 };
66
67 &pcie0 {
68 wifi5: wifi@0,0 {
69 reg = <0x0000 0 0 0 0>;
70 mediatek,mtd-eeprom = <&factory 0x8000>;
71 ieee80211-freq-limit = <5000000 6000000>;
72 };
73 };