ramips: create DTSI for ASUS RT-AC51U and RT-AC54U
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7620a_asus_rt-ac5x.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 keys {
8 compatible = "gpio-keys";
9
10 reset {
11 label = "reset";
12 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
13 linux,code = <KEY_RESTART>;
14 };
15
16 wps {
17 label = "wps";
18 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_WPS_BUTTON>;
20 };
21 };
22 };
23
24 &spi0 {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <10000000>;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "u-boot";
39 reg = <0x0 0x30000>;
40 read-only;
41 };
42
43 partition@30000 {
44 label = "u-boot-env";
45 reg = <0x30000 0x10000>;
46 read-only;
47 };
48
49 factory: partition@40000 {
50 label = "factory";
51 reg = <0x40000 0x10000>;
52 read-only;
53 };
54
55 partition@50000 {
56 compatible = "denx,uimage";
57 label = "firmware";
58 reg = <0x50000 0xfb0000>;
59 };
60 };
61 };
62 };
63
64 &ehci {
65 status = "okay";
66 };
67
68 &ohci {
69 status = "okay";
70 };
71
72 &gpio0 {
73 enable-leds {
74 gpio-hog;
75 line-name = "enable-leds";
76 output-low;
77 gpios = <10 GPIO_ACTIVE_HIGH>;
78 };
79 };
80
81 &gpio3 {
82 status = "okay";
83 };
84
85 &ethernet {
86 mediatek,portmap = "wllll";
87 };
88
89 &wmac {
90 ralink,mtd-eeprom = <&factory 0x0>;
91 };
92
93 &pcie {
94 status = "okay";
95 };