ramips: fix wrong permissions on dts files
[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 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 lan {
30 label = "green:lan";
31 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power: power {
35 label = "green:power";
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
37 };
38
39 wlan2g_green {
40 label = "green:wlan2g";
41 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44
45 wlan2g_orange {
46 label = "orange:wlan2g";
47 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
48 };
49
50 wan_green {
51 label = "green:wan";
52 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
53 };
54
55 wan_orange {
56 label = "orange:wan";
57 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &spi0 {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <86000000>;
69 m25p,fast-read;
70
71 partitions: partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x40000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 compatible = "nvmem-cells";
84 label = "factory";
85 reg = <0x40000 0x20000>;
86 #address-cells = <1>;
87 #size-cells = <1>;
88 read-only;
89
90 eeprom_factory_0: eeprom@0 {
91 reg = <0x0 0x400>;
92 };
93
94 eeprom_factory_8000: eeprom@8000 {
95 reg = <0x8000 0x200>;
96 };
97
98 macaddr_factory_4: macaddr@4 {
99 reg = <0x4 0x6>;
100 };
101 };
102
103 partition@60000 {
104 label = "nvram";
105 reg = <0x60000 0x30000>;
106 read-only;
107 };
108 };
109 };
110 };
111
112 &wmac {
113 status = "okay";
114
115 nvmem-cells = <&eeprom_factory_0>;
116 nvmem-cell-names = "eeprom";
117 };
118
119 &ethernet {
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
122 };
123
124 &pcie {
125 status = "okay";
126 };
127
128 &pcie0 {
129 wifi5: wifi@0,0 {
130 reg = <0x0000 0 0 0 0>;
131 nvmem-cells = <&eeprom_factory_8000>;
132 nvmem-cell-names = "eeprom";
133 ieee80211-freq-limit = <5000000 6000000>;
134 };
135 };