ramips: add missing syscon compatible strings for MT7688 and RT3052
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.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 18 GPIO_ACTIVE_LOW>;
15 linux,code = <KEY_RESTART>;
16 };
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 wlan1 {
23 label = "orange:wlan1";
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 };
26
27 wlan0 {
28 label = "orange:wlan0";
29 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
30 };
31 };
32 };
33
34 &sdhci {
35 status = "okay";
36 };
37
38 &spi0 {
39 status = "okay";
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <40000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x0 0x30000>;
54 read-only;
55 };
56
57 partition@30000 {
58 label = "u-boot-env";
59 reg = <0x30000 0x2000>;
60 };
61
62 partition@32000 {
63 label = "2860";
64 reg = <0x32000 0x4000>;
65 };
66
67 partition@36000 {
68 label = "rtdev";
69 reg = <0x36000 0x2000>;
70 };
71
72 partition@38000 {
73 label = "Reserve";
74 reg = <0x38000 0x8000>;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81
82 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 macaddr_factory_e000: macaddr@e000 {
88 compatible = "mac-base";
89 reg = <0xe000 0x6>;
90 #nvmem-cell-cells = <1>;
91 };
92 };
93 };
94
95 partition@50000 {
96 label = "firmware";
97 reg = <0x50000 0xfa0000>;
98 compatible = "denx,uimage";
99 };
100
101 partition@ff0000 {
102 label = "nvram";
103 reg = <0xff0000 0x10000>;
104 read-only;
105 };
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &mdio {
115 ethphy4: ethernet-phy@4 {
116 reg = <4>;
117 };
118 };
119
120 &gmac0 {
121 nvmem-cells = <&macaddr_factory_e000 0>;
122 nvmem-cell-names = "mac-address";
123 };
124
125 &gmac1 {
126 status = "okay";
127 label = "wan";
128 phy-handle = <&ethphy4>;
129
130 nvmem-cells = <&macaddr_factory_e000 1>;
131 nvmem-cell-names = "mac-address";
132 };
133
134 &state_default {
135 gpio {
136 groups = "wdt", "jtag";
137 function = "gpio";
138 };
139 };