ath79: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9344_pcs_cap324.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
8 / {
9 model = "PowerCloud Systems CAP324";
10 compatible = "pcs,cap324", "qca,ar9344";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
25
26 reset {
27 label = "Reset button";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power_amber: power_amber {
38 label = "amber:power";
39 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
40 };
41
42 led_power_green: power_green {
43 label = "green:power";
44 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45 default-state = "on";
46 };
47
48 wlan_amber {
49 label = "amber:wlan";
50 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
51 linux,default-trigger = "phy1tpt";
52 };
53
54 wlan_green {
55 label = "green:wlan";
56 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
58 };
59
60 lan_amber {
61 label = "amber:lan";
62 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 };
64
65 lan_green {
66 label = "green:lan";
67 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
68 };
69 };
70 };
71
72 &ref {
73 clock-frequency = <25000000>;
74 };
75
76 &uart {
77 status = "okay";
78 };
79
80 &spi {
81 status = "okay";
82
83 num-cs = <1>;
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 uboot: partition@0 {
96 label = "u-boot";
97 reg = <0x000000 0x040000>;
98 read-only;
99 };
100
101 partition@40000 {
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
104 read-only;
105 };
106
107 partition@50000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x050000 0x0fa0000>;
111 };
112
113 art: partition@7f0000 {
114 label = "art";
115 reg = <0xff0000 0x010000>;
116 read-only;
117 };
118 };
119 };
120 };
121
122 &pcie {
123 status = "okay";
124
125 ath9k: wifi@0,0 {
126 compatible = "168c,0030";
127 reg = <0x0000 0 0 0 0>;
128 mtd-mac-address = <&art 0x0>;
129 mtd-mac-address-increment = <(-2)>;
130 mtd-cal-data = <&art 0x5000>;
131 qca,no-eeprom;
132 qca,disable-5ghz;
133 #gpio-cells = <2>;
134 gpio-controller;
135 };
136 };
137
138 &wmac {
139 status = "okay";
140
141 qca,disable-2ghz;
142 mtd-cal-data = <&art 0x1000>;
143 mtd-mac-address = <&art 0x0>;
144 mtd-mac-address-increment = <(-1)>;
145 };
146
147 &mdio0 {
148 status = "okay";
149
150 phy-mask = <0>;
151
152 phy0: ethernet-phy@0 {
153 reg = <0>;
154 phy-mode = "rgmii";
155 };
156 };
157
158 &eth0 {
159 status = "okay";
160
161 /* default for ar934x, except for 1000M */
162 pll-data = <0x06000000 0x00000101 0x00001616>;
163
164 mtd-mac-address = <&art 0x0>;
165
166 phy-mode = "rgmii";
167 phy-handle = <&phy0>;
168 };