ramips: increase SPI frequency for ASUS RT-AC51U/RT-AC54U
[oweals/openwrt.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
31                 spi-max-frequency = <50000000>;
32                 m25p,fast-read;
33
34                 partitions {
35                         compatible = "fixed-partitions";
36                         #address-cells = <1>;
37                         #size-cells = <1>;
38
39                         partition@0 {
40                                 label = "u-boot";
41                                 reg = <0x0 0x30000>;
42                                 read-only;
43                         };
44
45                         partition@30000 {
46                                 label = "u-boot-env";
47                                 reg = <0x30000 0x10000>;
48                                 read-only;
49                         };
50
51                         factory: partition@40000 {
52                                 label = "factory";
53                                 reg = <0x40000 0x10000>;
54                                 read-only;
55                         };
56
57                         partition@50000 {
58                                 compatible = "denx,uimage";
59                                 label = "firmware";
60                                 reg = <0x50000 0xfb0000>;
61                         };
62                 };
63         };
64 };
65
66 &ehci {
67         status = "okay";
68 };
69
70 &ohci {
71         status = "okay";
72 };
73
74 &gpio0 {
75         enable-leds {
76                 gpio-hog;
77                 line-name = "enable-leds";
78                 output-low;
79                 gpios = <10 GPIO_ACTIVE_HIGH>;
80         };
81 };
82
83 &gpio3 {
84         status = "okay";
85 };
86
87 &ethernet {
88         mediatek,portmap = "wllll";
89 };
90
91 &wmac {
92         ralink,mtd-eeprom = <&factory 0x0>;
93 };
94
95 &pcie {
96         status = "okay";
97 };