ath79: provide label MAC address
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e5.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 "qca953x.dtsi"
8
9 / {
10 compatible = "comfast,cf-e5", "qca,qca9531";
11 model = "COMFAST CF-E5/E7";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 button0 {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30 pinctrl-names = "default";
31 pinctrl-0 = <&jtag_disable_pins &led_wan_pin>;
32
33 wan {
34 label = "cf-e5:blue:wan";
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 };
37
38 lan {
39 label = "cf-e5:blue:lan";
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "cf-e5:blue:wlan";
45 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 rssi0 {
50 label = "cf-e5:blue:rssi0";
51 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
52 };
53
54 rssi1 {
55 label = "cf-e5:blue:rssi1";
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
57 };
58
59 rssi2 {
60 label = "cf-e5:blue:rssi2";
61 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 };
63 };
64 };
65
66 &uart {
67 status = "okay";
68 };
69
70 &usb0 {
71 #address-cells = <1>;
72 #size-cells = <0>;
73 status = "okay";
74
75 hub_port: port@1 {
76 reg = <1>;
77 #trigger-source-cells = <0>;
78 };
79 };
80
81 &usb_phy {
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87 num-cs = <1>;
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x010000>;
102 read-only;
103 };
104
105 art: partition@10000 {
106 label = "art";
107 reg = <0x010000 0x010000>;
108 read-only;
109 };
110
111 partition@20000 {
112 compatible = "denx,uimage";
113 label = "firmware";
114 reg = <0x020000 0xfd0000>;
115 };
116
117 partition@ff0000 {
118 label = "art-backup";
119 reg = <0xff0000 0x010000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &eth0 {
127 status = "okay";
128 mtd-mac-address = <&art 0x0>;
129 phy-handle = <&swphy4>;
130 };
131
132 &eth1 {
133 mtd-mac-address = <&art 0x6>;
134 };
135
136 &wmac {
137 status = "okay";
138 mtd-cal-data = <&art 0x1000>;
139 };
140
141 &pinmux {
142 led_wan_pin: pinmux_led_wan_pin {
143 pinctrl-single,bits = <0x4 0x0 0xff>;
144 };
145 };