658164fe08becede30924149fce8554a6d685694
[openwrt/staging/wigyori.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 reg = <0xe000 0x6>;
89 };
90 };
91 };
92
93 partition@50000 {
94 label = "firmware";
95 reg = <0x50000 0xfa0000>;
96 compatible = "denx,uimage";
97 };
98
99 partition@ff0000 {
100 label = "nvram";
101 reg = <0xff0000 0x10000>;
102 read-only;
103 };
104 };
105 };
106 };
107
108 &pcie {
109 status = "okay";
110 };
111
112 &gmac0 {
113 nvmem-cells = <&macaddr_factory_e000>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &state_default {
118 gpio {
119 groups = "wdt", "jtag";
120 function = "gpio";
121 };
122 };