ath79: provide label MAC address
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7241_tplink.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar7241.dtsi"
7
8 / {
9 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &ath9k;
15 };
16
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27
28 qss {
29 label = "qss";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 gpio_leds: gpio-leds {
37 compatible = "gpio-leds";
38
39 led_system: system {
40 label = "tp-link:green:system";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 };
43
44 qss {
45 label = "tp-link:green:qss";
46 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
47 };
48 };
49 };
50
51 &spi {
52 status = "okay";
53 num-cs = <1>;
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <25000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 uboot: partition@0 {
66 reg = <0x0 0x20000>;
67 label = "u-boot";
68 read-only;
69 };
70
71 partition@20000 {
72 compatible = "tplink,firmware";
73 reg = <0x20000 0x3d0000>;
74 label = "firmware";
75 };
76
77 partition@3f0000 {
78 reg = <0x3f0000 0x10000>;
79 label = "art";
80 read-only;
81 };
82 };
83 };
84 };
85
86 &pcie {
87 status = "okay";
88
89 ath9k: wifi@0,0 {
90 reg = <0x0000 0 0 0 0>;
91 #gpio-cells = <2>;
92 gpio-controller;
93 qca,no-eeprom;
94 mtd-mac-address = <&uboot 0x1fc00>;
95 };
96 };
97
98 &eth0 {
99 status = "okay";
100
101 mtd-mac-address = <&uboot 0x1fc00>;
102 mtd-mac-address-increment = <(-1)>;
103 };
104
105 &eth1 {
106 status = "okay";
107
108 mtd-mac-address = <&uboot 0x1fc00>;
109 mtd-mac-address-increment = <1>;
110 };
111
112 &gpio {
113 status = "okay";
114 };
115
116 &uart {
117 status = "okay";
118 };