fb01ce43c67d8c00b87344a711ac2fda4671233d
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_dpt_module.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 = "DPTechnics DPT-Module";
11 compatible = "dptechnics,dpt-module", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 system {
21 label = "dpt-module:green: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_LOW>;
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 };