2cc9d46fac53605ae7ded1482e95d1d86d70af67
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_compex_wpj531-16m.dts
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 compatible = "compex,wpj531-16m", "qca,qca9531";
10 model = "Compex WPJ531 (16MB flash)";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_sig4;
15 led-failsafe = &led_sig4;
16 led-running = &led_sig4;
17 led-upgrade = &led_sig4;
18 };
19
20 beeper {
21 compatible = "gpio-beeper";
22 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "reset";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinmux_led_eth_pins>;
40
41 sig1 {
42 label = "red:sig1";
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 };
45
46 sig2 {
47 label = "yellow:sig2";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 };
50
51 sig3 {
52 label = "green:sig3";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 };
55
56 led_sig4: sig4 {
57 label = "green:sig4";
58 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &uart {
64 status = "okay";
65 };
66
67 &pinmux {
68 pinmux_led_eth_pins: pinmux_led_eth_pins {
69 pinctrl-single,bits = <0x8 0x2b000000 0xff000000>, <0xc 0x00002d00 0x0000ff00>;
70 };
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <25000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 uboot: partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x030000>;
89 read-only;
90 };
91
92 partition@30000 {
93 label = "firmware";
94 reg = <0x030000 0xfc0000>;
95 compatible = "denx,uimage";
96 };
97
98 art: partition@ff0000 {
99 label = "art";
100 reg = <0xff0000 0x010000>;
101 read-only;
102 };
103 };
104 };
105 };
106
107 &eth0 {
108 status = "okay";
109
110 phy-handle = <&swphy4>;
111
112 mtd-mac-address = <&uboot 0x2e010>;
113 };
114
115 &eth1 {
116 mtd-mac-address = <&uboot 0x2e018>;
117 };
118
119 &wmac {
120 status = "okay";
121
122 mtd-cal-data = <&art 0x1000>;
123 };
124
125 &pcie0 {
126 status = "okay";
127
128 wifi@0,0 {
129 compatible = "pci168c,003c";
130 reg = <0x0000 0 0 0 0>;
131 };
132 };
133
134 &usb_phy {
135 status = "okay";
136 };
137
138 &usb0 {
139 status = "okay";
140 };