ath79: qca: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043nd-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_tplink_tl-wr1043n.dtsi"
4
5 / {
6 compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563";
7 model = "TP-Link TL-WR1043ND v4";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 gpio-export {
14 compatible = "gpio-export";
15 #size-cells = <0>;
16
17 gpio_usb_power {
18 gpio-export,name = "tp-link:power:usb";
19 gpio-export,output = <1>;
20 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
21 };
22 };
23 };
24
25 &spi {
26 status = "okay";
27
28 flash@0 {
29 compatible = "jedec,spi-nor";
30 reg = <0>;
31 spi-max-frequency = <25000000>;
32
33 partitions {
34 compatible = "fixed-partitions";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x000000 0x020000>;
41 read-only;
42 };
43
44 partition@20000 {
45 compatible = "tplink,firmware";
46 label = "firmware";
47 reg = <0x020000 0xf30000>;
48 };
49
50 info: partition@f50000 {
51 label = "info";
52 reg = <0xf50000 0x020000>;
53 read-only;
54
55 nvmem-layout {
56 compatible = "fixed-layout";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 macaddr_info_8: macaddr@8 {
61 reg = <0x8 0x6>;
62 };
63 };
64 };
65
66 partition@f70000 {
67 label = "config";
68 reg = <0xf70000 0x050000>;
69 read-only;
70 };
71
72 partition@fc0000 {
73 label = "partition-table";
74 reg = <0xfc0000 0x010000>;
75 read-only;
76 };
77
78 partition@fd0000 {
79 label = "logs";
80 reg = <0xfd0000 0x020000>;
81 read-only;
82 };
83
84 art: partition@ff0000 {
85 label = "art";
86 reg = <0xff0000 0x010000>;
87 read-only;
88 };
89 };
90 };
91 };
92
93 &leds {
94 usb {
95 label = "green:usb";
96 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
97 trigger-sources = <&hub_port0>;
98 linux,default-trigger = "usbport";
99 };
100 };
101
102 &usb_phy0 {
103 status = "okay";
104 };
105
106 &usb0 {
107 status = "okay";
108 };
109
110 &eth0 {
111 nvmem-cells = <&macaddr_info_8>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &wmac {
116 mtd-cal-data = <&art 0x1000>;
117
118 nvmem-cells = <&macaddr_info_8>;
119 nvmem-cell-names = "mac-address";
120 };