ath79: increase kernel partition size for CPE610v1
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpe610-v1.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 "ar9344.dtsi"
8
9 / {
10         model = "TP-Link CPE610 v1";
11         compatible = "tplink,cpe610-v1", "qca,ar9344";
12
13         aliases {
14                 led-boot = &system;
15                 led-failsafe = &system;
16                 led-upgrade = &system;
17         };
18
19         leds {
20                 compatible = "gpio-leds";
21
22                 system: lan {
23                         label = "tp-link:green:lan";
24                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25                 };
26
27                 wlan5g {
28                         label = "tp-link:green:wlan5g";
29                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
30                         linux,default-trigger = "phy0tpt";
31                 };
32         };
33
34         keys {
35                 compatible = "gpio-keys";
36
37                 reset {
38                         linux,code = <KEY_RESTART>;
39                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
40                         debounce-interval = <60>;
41                 };
42         };
43
44 };
45
46 &ref {
47         clock-frequency = <40000000>;
48 };
49
50 &uart {
51         status = "okay";
52 };
53
54 &spi {
55         num-cs = <1>;
56
57         status = "okay";
58
59         flash@0 {
60                 compatible = "jedec,spi-nor";
61                 reg = <0>;
62                 spi-max-frequency = <25000000>;
63
64                 partitions {
65                         compatible = "fixed-partitions";
66                         #address-cells = <1>;
67                         #size-cells = <1>;
68
69                         uboot: partition@0 {
70                                 label = "u-boot";
71                                 reg = <0x000000 0x020000>;
72                                 read-only;
73                         };
74
75                         partition@20000 {
76                                 label = "partition-table";
77                                 reg = <0x020000 0x010000>;
78                                 read-only;
79                         };
80
81                         info: partition@30000 {
82                                 label = "info";
83                                 reg = <0x030000 0x010000>;
84                                 read-only;
85                         };
86
87                         partition@40000 {
88                                 label = "firmware";
89                                 reg = <0x040000 0x780000>;
90
91                                 compatible = "fixed-partitions";
92                                 #address-cells = <1>;
93                                 #size-cells = <1>;
94
95                                 partition@0 {
96                                         label = "kernel";
97                                         reg = <0x000000 0x200000>;
98                                 };
99
100                                 partition@200000 {
101                                         label = "rootfs";
102                                         reg = <0x200000 0x580000>;
103                                 };
104                         };
105
106                         partition@7c0000 {
107                                 label = "config";
108                                 reg = <0x7c0000 0x030000>;
109                                 read-only;
110                         };
111
112                         art: partition@7f0000 {
113                                 label = "art";
114                                 reg = <0x7f0000 0x010000>;
115                                 read-only;
116                         };
117                 };
118         };
119 };
120
121 &wmac {
122         status = "okay";
123
124         mtd-cal-data = <&art 0x1000>;
125         mtd-mac-address = <&info 0x08>;
126 };
127
128 &eth0 {
129         status = "okay";
130
131         mtd-mac-address = <&info 0x08>;
132
133         phy-mode = "mii";
134         phy-handle = <&swphy4>;
135 };
136
137 &eth1 {
138         status = "okay";
139         compatible = "syscon", "simple-mfd";
140 };