f0d3e0b61781d9962c4be4958f48fc9ba4d01c03
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_alfa-network_r36a.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 gpio_export: gpio-export {
14 compatible = "gpio-export";
15 #size-cells = <0>;
16
17 watchdog-enable {
18 gpio-export,name = "watchdog-enable";
19 gpio-export,output = <1>;
20 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
21 };
22 };
23
24 keys: keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 };
33 };
34
35 watchdog {
36 compatible = "linux,wdt-gpio";
37 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
38 hw_algo = "toggle";
39 hw_margin_ms = <25000>;
40 always-running;
41 };
42 };
43
44 &eth0 {
45 status = "okay";
46
47 phy-handle = <&swphy4>;
48 };
49
50 &pinmux {
51 enable_gpio4: pinmux_enable_gpio4 {
52 pinctrl-single,bits = <0x04 0x0 0xff>;
53 };
54
55 enable_gpio16: pinmux_enable_gpio16 {
56 pinctrl-single,bits = <0x10 0x0 0xff>;
57 };
58 };
59
60 &spi {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <50000000>;
67 m25p,fast-read;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x060000>;
77 read-only;
78 };
79
80 partition@60000 {
81 label = "u-boot-env";
82 reg = <0x060000 0x010000>;
83 };
84
85 art: partition@70000 {
86 label = "art";
87 reg = <0x070000 0x010000>;
88 read-only;
89 };
90
91 partition@80000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x080000 0xf80000>;
95 };
96 };
97 };
98 };
99
100 &uart {
101 status = "okay";
102 };
103
104 &usb0 {
105 status = "okay";
106
107 #address-cells = <1>;
108 #size-cells = <0>;
109
110 hub_port0: port@1 {
111 reg = <1>;
112 #trigger-source-cells = <0>;
113 };
114 };
115
116 &usb_phy {
117 status = "okay";
118 };
119
120 &wmac {
121 status = "okay";
122
123 mtd-cal-data = <&art 0x1000>;
124 };