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