ath79: provide label MAC address
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9533_tplink_cpe210.dtsi
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         chosen {
11                 bootargs = "console=ttyS0,115200n8";
12         };
13
14         aliases {
15                 led-boot = &system;
16                 led-failsafe = &system;
17                 led-running = &system;
18                 led-upgrade = &system;
19                 label-mac-device = &eth0;
20         };
21
22         leds {
23                 compatible = "gpio-leds";
24
25                 lan {
26                         label = "tp-link:green:lan";
27                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28                 };
29
30                 link1 {
31                         label = "tp-link:green:link1";
32                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
33                 };
34
35                 link2 {
36                         label = "tp-link:green:link2";
37                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
38                 };
39
40                 link3 {
41                         label = "tp-link:green:link3";
42                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
43                 };
44
45                 system: link4 {
46                         label = "tp-link:green:link4";
47                         gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
48                 };
49         };
50
51         keys {
52                 compatible = "gpio-keys-polled";
53                 poll-interval = <100>;
54
55                 reset_button {
56                         label = "Reset button";
57                         linux,code = <KEY_RESTART>;
58                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
59                 };
60         };
61 };
62
63 &uart {
64         status = "okay";
65 };
66
67 &spi {
68         status = "okay";
69         num-cs = <1>;
70
71         flash@0 {
72                 #address-cells = <1>;
73                 #size-cells = <1>;
74                 compatible = "jedec,spi-nor";
75                 reg = <0>;
76                 spi-max-frequency = <25000000>;
77
78                 partitions {
79                         compatible = "fixed-partitions";
80                         #address-cells = <1>;
81                         #size-cells = <1>;
82
83                         uboot: partition@0 {
84                                 label = "u-boot";
85                                 reg = <0x000000 0x020000>;
86                                 read-only;
87                         };
88
89                         partition@20000 {
90                                 label = "partition-table";
91                                 reg = <0x020000 0x10000>;
92                                 read-only;
93                         };
94
95                         info: partition@30000 {
96                                 label = "info";
97                                 reg = <0x030000 0x10000>;
98                                 read-only;
99                         };
100
101                         partition@40000 {
102                                 label = "firmware";
103                                 reg = <0x040000 0x780000>;
104                                 compatible = "tplink,firmware";
105                         };
106
107                         config: partition@7c0000 {
108                                 label = "config";
109                                 reg = <0x7c0000 0x30000>;
110                                 read-only;
111                         };
112
113                         art: partition@7f0000 {
114                                 label = "art";
115                                 reg = <0x7f0000 0x10000>;
116                                 read-only;
117                         };
118                 };
119         };
120 };
121
122 &eth0 {
123         status = "okay";
124         phy-handle = <&swphy4>;
125         mtd-mac-address = <&info 0x8>;
126 };
127
128 &eth1 {
129         compatible = "syscon", "simple-mfd";
130 };
131
132 &wmac {
133         status = "okay";
134         mtd-cal-data = <&art 0x1000>;
135         mtd-mac-address = <&info 0x8>;
136 };