ath79: qca: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wr841-v8.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341_tplink.dtsi"
4
5 / {
6 model = "TP-Link TL-WR841N/ND v8";
7 compatible = "tplink,tl-wr841-v8", "qca,ar9341";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 rfkill {
17 label = "WiFi";
18 linux,code = <KEY_RFKILL>;
19 linux,input-type = <EV_SW>;
20 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
21 debounce-interval = <60>;
22 };
23
24 reset {
25 label = "Reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31 };
32
33 &spi {
34 status = "okay";
35
36 flash@0 {
37 compatible = "jedec,spi-nor";
38 reg = <0>;
39 spi-max-frequency = <25000000>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 uboot: partition@0 {
47 label = "u-boot";
48 reg = <0x000000 0x020000>;
49 read-only;
50 };
51
52 partition@20000 {
53 compatible = "tplink,firmware";
54 label = "firmware";
55 reg = <0x020000 0x3d0000>;
56 };
57
58 art: partition@3f0000 {
59 label = "art";
60 reg = <0x3f0000 0x010000>;
61 read-only;
62 };
63 };
64 };
65 };
66
67 &eth0 {
68 nvmem-cells = <&macaddr_uboot_1fc00>;
69 nvmem-cell-names = "mac-address";
70 mac-address-increment = <(-1)>;
71 };
72
73 &eth1 {
74 nvmem-cells = <&macaddr_uboot_1fc00>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &wmac {
79 mtd-cal-data = <&art 0x1000>;
80
81 nvmem-cells = <&macaddr_uboot_1fc00>;
82 nvmem-cell-names = "mac-address";
83 };
84
85 &uboot {
86 compatible = "nvmem-cells";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 macaddr_uboot_1fc00: macaddr@1fc00 {
91 reg = <0x1fc00 0x6>;
92 };
93 };