ath79: remove model name from LED labels
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9331_8dev_carambola2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "8devices Carambola2";
10 compatible = "8dev,carambola2", "qca,ar9331";
11
12 aliases {
13 serial0 = &uart;
14 label-mac-device = &wmac;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wlan {
21 label = "green:wlan";
22 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
23 linux,default-trigger = "phy0tpt";
24 };
25
26 eth0 {
27 label = "orange:eth0";
28 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
29 };
30
31 eth1 {
32 label = "orange:eth1";
33 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 wps {
41 label = "wps";
42 linux,code = <KEY_WPS_BUTTON>;
43 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };
47
48 &ref {
49 clock-frequency = <40000000>;
50 };
51
52 &uart {
53 status = "okay";
54 };
55
56 &usb {
57 dr_mode = "host";
58 status = "okay";
59 };
60
61 &usb_phy {
62 status = "okay";
63 };
64
65 &spi {
66 num-chipselects = <0>;
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 spi-max-frequency = <50000000>;
72 reg = <0>;
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 0x040000>;
82 read-only;
83 };
84
85 partition@40000 {
86 label = "u-boot-env";
87 reg = <0x040000 0x010000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0xfa0000>;
95 };
96
97 art: partition@ff0000 {
98 label = "art";
99 reg = <0xff0000 0x010000>;
100 read-only;
101 };
102 };
103 };
104 };
105
106 &mdio0 {
107 status = "okay";
108 };
109
110 &eth0 {
111 status = "okay";
112 mtd-mac-address = <&art 0x0>;
113
114 gmac-config {
115 device = <&gmac>;
116
117 switch-phy-addr-swap = <1>;
118 switch-phy-swap = <1>;
119 };
120 };
121
122 &eth1 {
123 status = "okay";
124 mtd-mac-address = <&art 0x6>;
125 };
126
127 &wmac {
128 status = "okay";
129 mtd-cal-data = <&art 0x1000>;
130 };