ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9344.dtsi"
7
8 / {
9         aliases {
10                 label-mac-device = &wmac;
11         };
12
13         keys {
14                 compatible = "gpio-keys";
15
16                 reset {
17                         linux,code = <KEY_RESTART>;
18                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
19                         debounce-interval = <60>;
20                 };
21         };
22 };
23
24 &ref {
25         clock-frequency = <40000000>;
26 };
27
28 &uart {
29         status = "okay";
30 };
31
32 &spi {
33         status = "okay";
34
35         num-cs = <1>;
36
37         flash@0 {
38                 compatible = "jedec,spi-nor";
39                 reg = <0>;
40                 spi-max-frequency = <25000000>;
41
42                 partitions {
43                         compatible = "fixed-partitions";
44                         #address-cells = <1>;
45                         #size-cells = <1>;
46
47                         uboot: partition@0 {
48                                 label = "u-boot";
49                                 reg = <0x000000 0x020000>;
50                                 read-only;
51                         };
52
53                         partition@20000 {
54                                 label = "partition-table";
55                                 reg = <0x020000 0x010000>;
56                                 read-only;
57                         };
58
59                         info: partition@30000 {
60                                 label = "info";
61                                 reg = <0x030000 0x010000>;
62                                 read-only;
63                         };
64
65                         partition@40000 {
66                                 label = "firmware";
67                                 reg = <0x040000 0x780000>;
68
69                                 compatible = "fixed-partitions";
70                                 #address-cells = <1>;
71                                 #size-cells = <1>;
72
73                                 partition@0 {
74                                         label = "kernel";
75                                         reg = <0x000000 0x200000>;
76                                 };
77
78                                 partition@200000 {
79                                         label = "rootfs";
80                                         reg = <0x200000 0x580000>;
81                                 };
82                         };
83
84                         partition@7c0000 {
85                                 label = "config";
86                                 reg = <0x7c0000 0x030000>;
87                                 read-only;
88                         };
89
90                         art: partition@7f0000 {
91                                 label = "art";
92                                 reg = <0x7f0000 0x010000>;
93                                 read-only;
94                         };
95                 };
96         };
97 };
98
99 &wmac {
100         status = "okay";
101
102         mtd-cal-data = <&art 0x1000>;
103         mtd-mac-address = <&info 0x08>;
104 };
105
106 &eth0 {
107         status = "okay";
108
109         phy-handle = <&swphy4>;
110
111         mtd-mac-address = <&info 0x8>;
112 };
113
114 &eth1 {
115         status = "okay";
116 };