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