ramips: add support for Asus RT-N10P V3 / RT-N11P B1 / RT-N12 VP B1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_asus_rt-n1x.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2
3 #include "mt7628an.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 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28 };
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <40000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "u-boot";
46 reg = <0x0 0x30000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 factory: partition@40000 {
57 label = "factory";
58 reg = <0x40000 0x10000>;
59 read-only;
60 };
61
62 partition@50000 {
63 compatible = "denx,uimage";
64 label = "firmware";
65 reg = <0x50000 0x7b0000>;
66 };
67 };
68 };
69 };
70
71 &ethernet {
72 mtd-mac-address = <&factory 0x4>;
73 };
74
75 &esw {
76 mediatek,portmap = <0x2f>;
77 };
78
79 &wmac {
80 status = "okay";
81 };
82
83 &state_default {
84 gpio {
85 groups = "i2c", "p0led_an", "p1led_an", "refclk", "wled_an";
86 function = "gpio";
87 };
88 };
89
90 &usbphy {
91 status = "disabled";
92 };
93
94 &ehci {
95 status = "disabled";
96 };
97
98 &ohci {
99 status = "disabled";
100 };