ath79: qca: convert to nvmem-layout
[openwrt/staging/wigyori.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 &pcie {
43 status = "okay";
44 };
45
46 &spi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <25000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x000000 0x060000>;
62 read-only;
63 };
64
65 partition@60000 {
66 label = "u-boot-env";
67 reg = <0x060000 0x010000>;
68 read-only;
69 };
70
71 partition@70000 {
72 /* Combine kernel0 & kernel1 */
73 label = "firmware";
74 reg = <0x070000 0xf20000>;
75 compatible = "denx,uimage";
76 };
77
78 partition@f90000 {
79 label = "bs";
80 reg = <0xf90000 0x020000>;
81 };
82
83 partition@fb0000 {
84 label = "cfg";
85 reg = <0xfb0000 0x040000>;
86 read-only;
87 };
88
89 art: partition@ff0000 {
90 label = "art";
91 reg = <0xff0000 0x010000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 macaddr_art_0: macaddr@0 {
100 reg = <0x0 0x6>;
101 };
102 };
103 };
104 };
105 };
106 };
107
108 &wmac {
109 status = "okay";
110
111 mtd-cal-data = <&art 0x1000>;
112 };