ath79: tweak the position of factory partition for wr818
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c58-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 "qca9561_tplink_archer-c5x.dtsi"
8
9 / {
10         compatible = "tplink,archer-c58-v1", "qca,qca9560";
11         model = "TP-LINK Archer C58 v1";
12
13         aliases {
14                 led-boot = &power;
15                 led-failsafe = &power;
16                 led-running = &power;
17                 led-upgrade = &power;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 power: power {
24                         label = "tp-link:green:power";
25                         gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
26                         default-state = "on";
27                 };
28
29                 wlan2g {
30                         label = "tp-link:green:wlan2g";
31                         gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
32                         linux,default-trigger = "phy1tpt";
33                 };
34
35                 wlan5g {
36                         label = "tp-link:green:wlan5g";
37                         gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
38                         linux,default-trigger = "phy0tpt";
39                 };
40
41                 wan_green {
42                         label = "tp-link:green:wan";
43                         gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
44                 };
45
46                 wan_amber {
47                         label = "tp-link:amber:wan";
48                         gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
49                 };
50
51                 lan {
52                         label = "tp-link:green:lan";
53                         gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
54                 };
55
56                 wps {
57                         label = "tp-link:green:wps";
58                         gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
59                 };
60         };
61 };
62
63 &spi {
64         status = "okay";
65         num-cs = <1>;
66
67         flash@0 {
68                 compatible = "jedec,spi-nor";
69                 reg = <0>;
70                 spi-max-frequency = <25000000>;
71
72                 partitions {
73                         compatible = "fixed-partitions";
74                         #address-cells = <1>;
75                         #size-cells = <1>;
76
77                         partition@0 {
78                                 label = "u-boot";
79                                 reg = <0x000000 0x010000>;
80                                 read-only;
81                         };
82
83                         mac: partition@10000 {
84                                 label = "mac";
85                                 reg = <0x010000 0x010000>;
86                                 read-only;
87                         };
88
89                         partition@20000 {
90                                 compatible = "denx,uimage";
91                                 label = "firmware";
92                                 reg = <0x020000 0x7c0000>;
93                         };
94
95                         partition@7e0000 {
96                                 label = "tplink";
97                                 reg = <0x7e0000 0x010000>;
98                                 read-only;
99                         };
100
101                         art: partition@7f0000 {
102                                 label = "art";
103                                 reg = <0x7f0000 0x010000>;
104                                 read-only;
105                         };
106                 };
107         };
108 };
109
110 &eth0 {
111         status = "okay";
112         mtd-mac-address = <&mac 0x8>;
113         mtd-mac-address-increment = <1>;
114 };
115
116 &eth1 {
117         status = "okay";
118         mtd-mac-address = <&mac 0x8>;
119 };
120
121 &wmac {
122         status = "okay";
123         mtd-cal-data = <&art 0x1000>;
124         mtd-mac-address = <&mac 0x8>;
125 };