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