oxnas: drop target
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_compex_wpj344-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 "ar9344.dtsi"
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 label = "wpj344:green:status";
26 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 };
28
29 sig1 {
30 label = "wpj344:red:sig1";
31 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
32 };
33
34 sig2 {
35 label = "wpj344:yellow:sig2";
36 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
37 };
38
39 sig3 {
40 label = "wpj344:green:sig3";
41 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
42 };
43
44 sig4 {
45 label = "wpj344:green:sig4";
46 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys";
52
53 reset {
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
57 };
58 };
59 };
60
61 &ref {
62 clock-frequency = <40000000>;
63 };
64
65 &uart {
66 status = "okay";
67 };
68
69 &spi {
70 status = "okay";
71
72 num-cs = <1>;
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <25000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 uboot: partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x030000>;
87 read-only;
88 };
89
90 partition@30000 {
91 label = "firmware";
92 reg = <0x030000 0xfc0000>;
93 compatible = "denx,uimage";
94 };
95
96 art: partition@ff0000 {
97 label = "art";
98 reg = <0xff0000 0x010000>;
99 read-only;
100 };
101 };
102 };
103 };
104
105 &usb {
106 status = "okay";
107 };
108
109 &usb_phy {
110 status = "okay";
111 };
112
113 &pcie {
114 status = "okay";
115 };
116
117 &wmac {
118 status = "okay";
119
120 mtd-cal-data = <&art 0x1000>;
121 };
122
123 &mdio0 {
124 status = "okay";
125
126 phy-mask = <0>;
127
128 phy0: ethernet-phy@0 {
129 reg = <0>;
130 phy-mode = "rgmii";
131
132 qca,ar8327-initvals = <
133 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
134 0x10 0x80000080 /* POWER_ON_STRIP */
135 0x50 0x00000000 /* LED_CTRL0 */
136 0x54 0xc737c737 /* LED_CTRL1 */
137 0x58 0x00000000 /* LED_CTRL2 */
138 0x5c 0x00c30c00 /* LED_CTRL3 */
139 0x7c 0x0000007e /* PORT0_STATUS */
140 >;
141 };
142 };
143
144 &eth0 {
145 status = "okay";
146
147 pll-data = <0x06000000 0x00000101 0x00001616>;
148
149 mtd-mac-address = <&uboot 0x2e010>;
150
151 phy-mode = "rgmii";
152 phy-handle = <&phy0>;
153 };