ath79: small wr1043nd-v4 fixes
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9331_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                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <100>;
32
33                 button@0 {
34                         label = "reset";
35                         linux,code = <KEY_RESTART>;
36                         gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
37                 };
38         };
39 };
40
41 &ref {
42         clock-frequency = <25000000>;
43 };
44
45 &uart {
46         status = "okay";
47 };
48
49 &gpio {
50         status = "okay";
51 };
52
53 &usb {
54         dr_mode = "host";
55         status = "okay";
56 };
57
58 &usb_phy {
59         status = "okay";
60 };
61
62 &spi {
63         num-chipselects = <1>;
64         status = "okay";
65
66         /* Winbond 25Q128FVSG SPI flash */
67         spiflash: w25q128@0 {
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70                 compatible = "winbond,w25q128", "jedec,spi-nor";
71                 spi-max-frequency = <104000000>;
72                 reg = <0>;
73         };
74 };