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