sunxi: 6.6: set testing kernel
[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 &pinmux {
64 pinmux_led_eth_pins: pinmux_led_eth_pins {
65 pinctrl-single,bits = <0x8 0x2b000000 0xff000000>, <0xc 0x00002d00 0x0000ff00>;
66 };
67 };
68
69 &spi {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 uboot: partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x030000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "firmware";
90 reg = <0x030000 0xfc0000>;
91 compatible = "denx,uimage";
92 };
93
94 art: partition@ff0000 {
95 label = "art";
96 reg = <0xff0000 0x010000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &eth0 {
104 status = "okay";
105
106 phy-handle = <&swphy4>;
107
108 mtd-mac-address = <&uboot 0x2e010>;
109 };
110
111 &eth1 {
112 mtd-mac-address = <&uboot 0x2e018>;
113 };
114
115 &wmac {
116 status = "okay";
117
118 mtd-cal-data = <&art 0x1000>;
119 };
120
121 &pcie0 {
122 status = "okay";
123
124 wifi@0,0 {
125 compatible = "pci168c,003c";
126 reg = <0x0000 0 0 0 0>;
127 };
128 };
129
130 &usb_phy {
131 status = "okay";
132 };
133
134 &usb0 {
135 status = "okay";
136 };