ramips: only add spidev node in for WrtNode2R (and not for 2P)
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621-001.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "asiarf,ap7621-001", "mediatek,mt7621-soc";
11         model = "AsiaRF AP7621-001";
12
13         chosen {
14                 bootargs = "console=ttyS0,57600";
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 wlan1 {
31                         label = "ap7621-001:orange:wlan1";
32                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33                 };
34
35                 wlan0 {
36                         label = "ap7621-001:orange:wlan0";
37                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
38                 };
39         };
40 };
41
42 &sdhci {
43         status = "okay";
44 };
45
46 &spi0 {
47         status = "okay";
48
49         flash@0 {
50                 compatible = "jedec,spi-nor";
51                 reg = <0>;
52                 spi-max-frequency = <40000000>;
53
54                 partitions {
55                         compatible = "fixed-partitions";
56                         #address-cells = <1>;
57                         #size-cells = <1>;
58
59                         partition@0 {
60                                 label = "u-boot";
61                                 reg = <0x0 0x30000>;
62                                 read-only;
63                         };
64
65                         partition@30000 {
66                                 label = "u-boot-env";
67                                 reg = <0x30000 0x2000>;
68                         };
69
70                         partition@32000 {
71                                 label = "2860";
72                                 reg = <0x32000 0x4000>;
73                         };
74
75                         partition@36000 {
76                                 label = "rtdev";
77                                 reg = <0x36000 0x2000>;
78                         };
79
80                         partition@38000 {
81                                 label = "Reserve";
82                                 reg = <0x38000 0x8000>;
83                         };
84
85                         factory: partition@40000 {
86                                 label = "factory";
87                                 reg = <0x40000 0x10000>;
88                                 read-only;
89                         };
90
91                         partition@50000 {
92                                 label = "firmware";
93                                 reg = <0x50000 0xfa0000>;
94                                 compatible = "denx,uimage";
95                         };
96
97                         partition@ff0000 {
98                                 label = "nvram";
99                                 reg = <0xff0000 0x10000>;
100                                 read-only;
101                         };
102                 };
103         };
104 };
105
106 &pcie {
107         status = "okay";
108 };
109
110 &ethernet {
111         mtd-mac-address = <&factory 0xe000>;
112         mediatek,portmap = "llllw";
113 };
114
115 &pinctrl {
116         state_default: pinctrl0 {
117                 gpio {
118                         ralink,group = "wdt", "jtag";
119                         ralink,function = "gpio";
120                 };
121         };
122 };
123