ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / tp9343_tplink_tl-wr940n-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "tp9343_tplink_tl-wr94x.dtsi"
4
5 / {
6 compatible = "tplink,tl-wr940n-v4", "qca,tp9343";
7 model = "TP-Link TL-WR940N v4";
8
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_system: system {
20 label = "blue:system";
21 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 qss {
26 label = "blue:qss";
27 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
28 };
29
30 wlan {
31 label = "blue:wlan";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 wan_blue {
37 label = "blue:wan";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 };
40
41 wan_red {
42 label = "red:wan";
43 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
44 };
45
46 lan1 {
47 label = "blue:lan1";
48 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
49 };
50
51 lan2 {
52 label = "blue:lan2";
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
54 };
55
56 lan3 {
57 label = "blue:lan3";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60
61 lan4 {
62 label = "blue:lan4";
63 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
64 };
65 };
66 };
67
68 &eth1 {
69 nvmem-cells = <&macaddr_uboot_1fc00>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 &uboot {
74 compatible = "nvmem-cells";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 macaddr_uboot_1fc00: macaddr@1fc00 {
79 reg = <0x1fc00 0x6>;
80 };
81 };