ath79: WNDR3700 v1/v2: make u-boot env partition writable
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_ubnt_acb-isp.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 "qca953x.dtsi"
8
9 / {
10 compatible = "ubnt,acb-isp", "qca,qca9533";
11 model = "Ubiquiti airCube ISP";
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &spi {
26 status = "okay";
27 num-cs = <1>;
28
29 flash@0 {
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <25000000>;
33
34 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x000000 0x040000>;
42 read-only;
43 };
44
45 partition@40000 {
46 label = "u-boot-env";
47 reg = <0x040000 0x010000>;
48 read-only;
49 };
50
51 partition@50000 {
52 compatible = "denx,uimage";
53 label = "firmware";
54 reg = <0x050000 0xf60000>;
55 };
56
57 partition@fb0000 {
58 label = "cfg";
59 reg = <0xfb0000 0x040000>;
60 read-only;
61 };
62
63 eeprom: partition@ff0000 {
64 label = "EEPROM";
65 reg = <0xff0000 0x010000>;
66 read-only;
67 };
68 };
69 };
70 };
71
72 &uart {
73 status = "okay";
74 };
75
76 &eth0 {
77 status = "okay";
78 mtd-mac-address = <&eeprom 0x0>;
79 phy-handle = <&swphy4>;
80 };
81
82 &eth1 {
83 status = "okay";
84 mtd-mac-address = <&eeprom 0x6>;
85
86 gmac-config {
87 device = <&gmac>;
88 };
89 };
90
91 &wmac {
92 status = "okay";
93 mtd-cal-data = <&eeprom 0x1000>;
94 mtd-mac-address = <&eeprom 0x1002>;
95 };