ath79: fix nanobeam ac ethernet interface
[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 num-cs = <1>;
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <50000000>;
69 m25p,fast-read;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x000000 0x060000>;
79 read-only;
80 };
81
82 partition@60000 {
83 label = "u-boot-env";
84 reg = <0x060000 0x010000>;
85 };
86
87 art: partition@70000 {
88 label = "art";
89 reg = <0x070000 0x010000>;
90 read-only;
91 };
92
93 partition@80000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x080000 0xf80000>;
97 };
98 };
99 };
100 };
101
102 &uart {
103 status = "okay";
104 };
105
106 &usb0 {
107 status = "okay";
108
109 #address-cells = <1>;
110 #size-cells = <0>;
111
112 hub_port0: port@1 {
113 reg = <1>;
114 #trigger-source-cells = <0>;
115 };
116 };
117
118 &usb_phy {
119 status = "okay";
120 };
121
122 &wmac {
123 status = "okay";
124
125 mtd-cal-data = <&art 0x1000>;
126 };