ath79: ubnt-unifi: make u-boot-env partition read-only
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_white;
11 led-failsafe = &led_white;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_white: led_white {
20 label = "white:dome";
21 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_blue: led_blue {
25 label = "blue:dome";
26 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "Reset button";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40 };
41
42 &uart {
43 status = "okay";
44 };
45
46 &pcie {
47 status = "okay";
48 };
49
50 &spi {
51 status = "okay";
52 num-cs = <1>;
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <25000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x000000 0x060000>;
67 read-only;
68 };
69
70 partition@60000 {
71 label = "u-boot-env";
72 reg = <0x060000 0x010000>;
73 read-only;
74 };
75
76 partition@70000 {
77 label = "firmware";
78 reg = <0x070000 0x790000>;
79 compatible = "denx,uimage";
80 };
81
82 partition@800000 {
83 label = "ubnt-airos";
84 reg = <0x800000 0x790000>;
85 read-only;
86 };
87
88 partition@f90000 {
89 label = "bs";
90 reg = <0xf90000 0x020000>;
91 };
92
93 partition@fb0000 {
94 label = "cfg";
95 reg = <0xfb0000 0x040000>;
96 read-only;
97 };
98
99 art: partition@ff0000 {
100 label = "art";
101 reg = <0xff0000 0x010000>;
102 read-only;
103 };
104 };
105 };
106 };
107
108 &wmac {
109 status = "okay";
110
111 mtd-cal-data = <&art 0x1000>;
112 };