ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 partition@70000 {
86 label = "art";
87 reg = <0x070000 0x010000>;
88 read-only;
89
90 nvmem-layout {
91 compatible = "fixed-layout";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 cal_art_1000: cal@1000 {
96 reg = <0x1000 0x440>;
97 };
98
99 macaddr_art_1002: macaddr@1002 {
100 compatible = "mac-base";
101 reg = <0x1002 0x6>;
102 #nvmem-cell-cells = <1>;
103 };
104 };
105 };
106
107 partition@80000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x080000 0xf80000>;
111 };
112 };
113 };
114 };
115
116 &usb0 {
117 status = "okay";
118 };
119
120 &usb_phy {
121 status = "okay";
122 };
123
124 &wmac {
125 status = "okay";
126
127 nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002 0>;
128 nvmem-cell-names = "calibration", "mac-address";
129 };