ath79: remove model name from LED labels
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9341_pcs_cr3000.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "PowerCloud Systems CR3000";
10 compatible = "pcs,cr3000", "qca,ar9341";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
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 wps {
34 label = "WPS button";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 label = "amber:power";
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 default-state = "on";
48 };
49
50 wlan2g {
51 label = "blue:wlan";
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
54 };
55
56 wan {
57 label = "blue:wan";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60
61 lan1 {
62 label = "blue:lan1";
63 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
64 };
65
66 lan2 {
67 label = "blue:lan2";
68 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
69 };
70
71 lan3 {
72 label = "blue:lan3";
73 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
74 };
75
76 lan4 {
77 label = "blue:lan4";
78 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
79 };
80 };
81 };
82
83 &ref {
84 clock-frequency = <25000000>;
85 };
86
87 &uart {
88 status = "okay";
89 };
90
91 &spi {
92 num-cs = <1>;
93
94 status = "okay";
95
96 flash@0 {
97 compatible = "jedec,spi-nor";
98 reg = <0>;
99 spi-max-frequency = <25000000>;
100
101 partitions {
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 uboot: partition@0 {
107 label = "u-boot";
108 reg = <0x000000 0x040000>;
109 read-only;
110 };
111
112 partition@40000 {
113 label = "u-boot-env";
114 reg = <0x040000 0x010000>;
115 read-only;
116 };
117
118 partition@50000 {
119 compatible = "denx,uimage";
120 label = "firmware";
121 reg = <0x050000 0x07a0000>;
122 };
123
124 art: partition@7f0000 {
125 label = "art";
126 reg = <0x7f0000 0x010000>;
127 read-only;
128 };
129 };
130 };
131 };
132
133 &wmac {
134 status = "okay";
135
136 mtd-cal-data = <&art 0x1000>;
137 };
138
139 &eth0 {
140 status = "okay";
141
142 phy-handle = <&swphy0>;
143 mtd-mac-address = <&art 0x0>;
144 mtd-mac-address-increment = <1>;
145 };
146
147 &eth1 {
148 phy-handle = <&swphy4>;
149 pll-data = <0x06000000 0x00000101 0x00001616>;
150
151 mtd-mac-address = <&art 0x0>;
152
153 gmac-config {
154 device = <&gmac>;
155 switch-phy-swap = <1>;
156 };
157 };