ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9531_comfast_cf-wr752ac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10 compatible = "comfast,cf-wr752ac-v1", "qca,qca9531";
11 model = "COMFAST CF-WR752AC v1";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_lan;
16 led-failsafe = &led_lan;
17 led-upgrade = &led_lan;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins &pinmux_led_rssihigh &pinmux_led_rssilow>;
25
26 led_lan: lan {
27 label = "cf-wr752ac-v1:blue:lan";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 };
30
31 rssihigh {
32 label = "cf-wr752ac-v1:green:rssihigh";
33 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 };
35
36 rssilow {
37 label = "cf-wr752ac-v1:red:rssilow";
38 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys";
44
45 button {
46 label = "reset";
47 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
50 };
51 };
52 };
53
54 &pinmux {
55 pinmux_led_rssihigh: pinmux_led_rssihigh {
56 pinctrl-single,bits = <0xc 0x0 0xff000000>;
57 };
58
59 pinmux_led_rssilow: pinmux_led_rssilow {
60 pinctrl-single,bits = <0x8 0x0 0xff000000>;
61 };
62 };
63
64 &pcie0 {
65 status = "okay";
66 };
67
68 &spi {
69 status = "okay";
70
71 num-cs = <1>;
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x010000>;
86 read-only;
87 };
88
89 art: partition@10000 {
90 label = "art";
91 reg = <0x010000 0x010000>;
92 read-only;
93 };
94
95 partition@20000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x020000 0xfd0000>;
99 };
100
101 partition@ff0000 {
102 label = "nvram";
103 reg = <0xff0000 0x010000>;
104 read-only;
105 };
106 };
107 };
108 };
109
110 &uart {
111 status = "okay";
112 };
113
114 &eth0 {
115 status = "okay";
116
117 phy-handle = <&swphy4>;
118
119 mtd-mac-address = <&art 0x0>;
120 };
121
122 &eth1 {
123 compatible = "syscon", "simple-mfd";
124 };
125
126 &wmac {
127 status = "okay";
128
129 mtd-cal-data = <&art 0x1000>;
130
131 mtd-mac-address = <&art 0x0>;
132 mtd-mac-address-increment = <10>;
133 };