a85f99881ce50b454881665e50ed8671ff4684f4
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9563_compex_wpj563.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Compex WPJ563";
10 compatible = "compex,wpj563", "qca,qca9563";
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 19 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 2 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 sig1 {
40 label = "wpj563:green:sig1";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 };
43
44 sig2 {
45 label = "wpj563:green:sig2";
46 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
47 };
48
49 sig3 {
50 label = "wpj563:green:sig4";
51 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
52 };
53
54 led_sig4: sig4 {
55 label = "wpj563:green:sig4";
56 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &pcie {
62 status = "okay";
63 };
64
65 &spi {
66 status = "okay";
67
68 num-cs = <1>;
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <25000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 uboot: partition@0 {
81 label = "u-boot";
82 reg = <0x000000 0x030000>;
83 read-only;
84 };
85
86 partition@30000 {
87 compatible = "denx,uimage";
88 label = "firmware";
89 reg = <0x030000 0xfc0000>;
90 };
91
92 art: partition@ff0000 {
93 label = "art";
94 reg = <0xff0000 0x010000>;
95 read-only;
96 };
97 };
98 };
99 };
100
101 &mdio0 {
102 status = "okay";
103
104 phy-mask = <0>;
105
106 phy0: ethernet-phy@0 {
107 reg = <0>;
108 phy-mode = "sgmii";
109 qca,mib-poll-interval = <500>;
110
111 qca,ar8327-initvals = <
112 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
113 0x7c 0x0000007e /* PORT0_STATUS */
114 >;
115 };
116 };
117
118 &eth0 {
119 status = "okay";
120
121 pll-data = <0x03000101 0x00000101 0x00001919>;
122
123 mtd-mac-address = <&uboot 0x2e010>;
124 phy-mode = "sgmii";
125 phy-handle = <&phy0>;
126 };
127
128 &usb_phy0 {
129 status = "okay";
130 };
131
132 &usb0 {
133 status = "okay";
134 };
135
136 &uart {
137 status = "okay";
138 };
139
140 &wmac {
141 status = "okay";
142
143 mtd-cal-data = <&art 0x1000>;
144 };