8b3329113f70ec209d0d7eac2c1eb6a11b59eceb
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_iodata_wn-xx-xr.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 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wps {
24 label = "iodata:green:wps";
25 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
26 };
27
28 led_power: power {
29 label = "iodata:green:power";
30 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42
43 repeater {
44 label = "repeater";
45 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
46 linux,code = <BTN_0>;
47 linux,input-type = <EV_SW>;
48 };
49
50 wps {
51 label = "wps";
52 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 };
55 };
56 };
57
58 &nand {
59 status = "okay";
60
61 partitions: partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x0100000>;
69 read-only;
70 };
71
72 partition@100000 {
73 label = "u-boot-env";
74 reg = <0x0100000 0x0100000>;
75 read-only;
76 };
77
78 factory: partition@200000 {
79 label = "factory";
80 reg = <0x0200000 0x0100000>;
81 };
82
83 partition@300000 {
84 label = "SecondBoot";
85 reg = <0x0300000 0x0100000>;
86 read-only;
87 };
88
89 partition@400000 {
90 label = "kernel";
91 reg = <0x0400000 0x0400000>;
92 };
93
94 partition@800000 {
95 label = "ubi";
96 reg = <0x0800000 0x2e00000>;
97 };
98
99 partition@3600000 {
100 label = "Config";
101 reg = <0x3600000 0x0100000>;
102 read-only;
103 };
104
105 partition@3700000 {
106 label = "firmware_2";
107 reg = <0x3700000 0x3200000>;
108 };
109
110 partition@6900000 {
111 label = "Config_2";
112 reg = <0x6900000 0x0100000>;
113 read-only;
114 };
115
116 partition@6a00000 {
117 label = "persist";
118 reg = <0x6a00000 0x0100000>;
119 };
120 };
121 };
122
123 &ethernet {
124 mtd-mac-address = <&factory 0xe000>;
125 };
126
127 &pcie {
128 status = "okay";
129 };
130
131 &state_default {
132 gpio {
133 ralink,group = "uart2", "uart3", "wdt";
134 ralink,function = "gpio";
135 };
136 };
137
138 &xhci {
139 status = "disabled";
140 };