ath79: add support for TP-Link MR-3040 v2
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9331_onion_omega.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10         model = "Onion Omega";
11         compatible = "onion,omega", "qca,ar9331";
12
13         aliases {
14                 serial0 = &uart;
15         };
16
17         leds {
18                 compatible = "gpio-leds";
19
20                 system {
21                         label = "onion:amber:system";
22                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
23                         default-state = "off";
24                 };
25         };
26
27         keys {
28                 compatible = "gpio-keys-polled";
29                 poll-interval = <100>;
30
31                 button0 {
32                         label = "reset";
33                         linux,code = <KEY_RESTART>;
34                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
35                 };
36         };
37 };
38
39 &ref {
40         clock-frequency = <25000000>;
41 };
42
43 &uart {
44         status = "okay";
45 };
46
47 &gpio {
48         status = "okay";
49 };
50
51 &usb {
52         dr_mode = "host";
53         status = "okay";
54 };
55
56 &usb_phy {
57         status = "okay";
58 };
59
60 &spi {
61         num-chipselects = <1>;
62         status = "okay";
63
64         /* Winbond 25Q128FVSG SPI flash */
65         flash@0 {
66                 compatible = "winbond,w25q128", "jedec,spi-nor";
67                 spi-max-frequency = <104000000>;
68                 reg = <0>;
69         };
70 };