ramips: only add spidev node in for WrtNode2R (and not for 2P)
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_r6260_r6350_r6850.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "mediatek,mt7621-soc";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 led_power: power {
27                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28                 };
29
30                 led_usb: usb {
31                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
32                         trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
33                         linux,default-trigger = "usbport";
34                 };
35
36                 led_internet: internet {
37                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
38                 };
39
40                 led_wifi: wifi {
41                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
42                         linux,default-trigger = "phy0tpt";
43                 };
44         };
45
46         keys {
47                 compatible = "gpio-keys";
48
49                 wps {
50                         label = "wps";
51                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
52                         linux,code = <KEY_WPS_BUTTON>;
53                 };
54
55                 reset {
56                         label = "reset";
57                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
58                         linux,code = <KEY_RESTART>;
59                 };
60         };
61
62         reg_usb_vbus: regulator {
63                 compatible = "regulator-fixed";
64                 regulator-name = "usb_vbus";
65                 regulator-min-microvolt = <5000000>;
66                 regulator-max-microvolt = <5000000>;
67                 gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
68                 enable-active-high;
69         };
70 };
71
72 &nand {
73         status = "okay";
74
75         partitions {
76                 compatible = "fixed-partitions";
77                 #address-cells = <1>;
78                 #size-cells = <1>;
79
80                 partition@0 {
81                         label = "u-boot";
82                         reg = <0x0 0x100000>;
83                         read-only;
84                 };
85
86                 partition@100000 {
87                         label = "SC PART_MAP";
88                         reg = <0x100000 0x100000>;
89                         read-only;
90                 };
91
92                 partition@200000 {
93                         label = "kernel";
94                         reg = <0x200000 0x400000>;
95                 };
96
97                 partition@600000 {
98                         label = "ubi";
99                         reg = <0x600000 0x2800000>;
100                 };
101
102                 partition@2e00000 {
103                         label = "reserved0";
104                         reg = <0x2e00000 0x1800000>;
105                         read-only;
106                 };
107
108                 factory: partition@4600000 {
109                         label = "factory";
110                         reg = <0x4600000 0x200000>;
111                         read-only;
112                 };
113
114                 partition@4800000 {
115                         label = "reserved1";
116                         reg = <0x4800000 0x3800000>;
117                         read-only;
118                 };
119         };
120 };
121
122 &xhci {
123         vbus-supply = <&reg_usb_vbus>;
124 };
125
126 &pcie {
127         status = "okay";
128 };
129
130 &pcie0 {
131         wifi@0,0 {
132                 compatible = "mediatek,mt76";
133                 reg = <0x0 0 0 0 0>;
134                 mediatek,mtd-eeprom = <&factory 0x8000>;
135                 ieee80211-freq-limit = <5000000 6000000>;
136         };
137 };
138
139 &pcie1 {
140         wifi@0,0 {
141                 compatible = "mediatek,mt76";
142                 reg = <0x0 0 0 0 0>;
143                 mediatek,mtd-eeprom = <&factory 0x0>;
144                 ieee80211-freq-limit = <2400000 2500000>;
145         };
146 };
147
148 &ethernet {
149         mtd-mac-address = <&factory 0x4>;
150 };
151
152 &pinctrl {
153         state_default: pinctrl0 {
154                 gpio {
155                         ralink,group = "uart3", "uart2", "jtag", "wdt";
156                         ralink,function = "gpio";
157                 };
158         };
159 };