ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_compex_wpj344-16m.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "compex,wpj344-16m", "qca,ar9344";
11 model = "Compex WPJ344 (16MB flash)";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status: status {
25 function = LED_FUNCTION_STATUS;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 };
29
30 sig1 {
31 label = "red:sig1";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 };
34
35 sig2 {
36 label = "yellow:sig2";
37 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
38 };
39
40 sig3 {
41 label = "green:sig3";
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
43 };
44
45 sig4 {
46 label = "green:sig4";
47 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
58 };
59 };
60 };
61
62 &ref {
63 clock-frequency = <40000000>;
64 };
65
66 &spi {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <25000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 uboot: partition@0 {
80 label = "u-boot";
81 reg = <0x000000 0x030000>;
82 read-only;
83
84 nvmem-layout {
85 compatible = "fixed-layout";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 macaddr_uboot_2e010: macaddr@2e010 {
90 reg = <0x2e010 0x6>;
91 };
92 };
93 };
94
95 partition@30000 {
96 label = "firmware";
97 reg = <0x030000 0xfc0000>;
98 compatible = "denx,uimage";
99 };
100
101 art: partition@ff0000 {
102 label = "art";
103 reg = <0xff0000 0x010000>;
104 read-only;
105 };
106 };
107 };
108 };
109
110 &usb {
111 status = "okay";
112 };
113
114 &usb_phy {
115 status = "okay";
116 };
117
118 &pcie {
119 status = "okay";
120 };
121
122 &wmac {
123 status = "okay";
124
125 mtd-cal-data = <&art 0x1000>;
126 };
127
128 &mdio0 {
129 status = "okay";
130
131 phy0: ethernet-phy@0 {
132 reg = <0>;
133 phy-mode = "rgmii";
134
135 qca,ar8327-initvals = <
136 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
137 0x10 0x80000080 /* POWER_ON_STRAP */
138 0x50 0x00000000 /* LED_CTRL0 */
139 0x54 0xc737c737 /* LED_CTRL1 */
140 0x58 0x00000000 /* LED_CTRL2 */
141 0x5c 0x00c30c00 /* LED_CTRL3 */
142 0x7c 0x0000007e /* PORT0_STATUS */
143 >;
144 };
145 };
146
147 &eth0 {
148 status = "okay";
149
150 pll-data = <0x06000000 0x00000101 0x00001616>;
151
152 nvmem-cells = <&macaddr_uboot_2e010>;
153 nvmem-cell-names = "mac-address";
154
155 phy-mode = "rgmii";
156 phy-handle = <&phy0>;
157 };