ath79: add support for Qxwlan E750A v4
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_qxwlan_e750x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds: leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "green:system";
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 sig1 {
38 label = "green:sig1";
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
40 };
41
42 sig2 {
43 label = "green:sig2";
44 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
45 };
46
47 wlan {
48 label = "green:wlan";
49 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy0tpt";
51 };
52 };
53 };
54
55 &pcie {
56 status = "okay";
57 };
58
59 &spi {
60 status = "okay";
61
62 num-cs = <1>;
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <25000000>;
68
69 partitions: partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x040000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "u-boot-env";
82 reg = <0x040000 0x010000>;
83 read-only;
84 };
85
86 pridata: partition@50000 {
87 label = "pri-data";
88 reg = <0x050000 0x010000>;
89 read-only;
90 };
91
92 art: partition@60000 {
93 label = "art";
94 reg = <0x060000 0x010000>;
95 read-only;
96 };
97 };
98 };
99 };
100
101 &ref {
102 clock-frequency = <40000000>;
103 };
104
105 &uart {
106 status = "okay";
107 };
108
109 &wmac {
110 status = "okay";
111
112 mtd-cal-data = <&art 0x1000>;
113 };