ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7240_tplink.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7240.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 label-mac-device = &ath9k;
16 };
17
18 keys {
19 compatible = "gpio-keys";
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 wps {
29 label = "wps";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds: leds {
37 compatible = "gpio-leds";
38
39 pinctrl-names = "default";
40 pinctrl-0 = <&pinmux_switch_led_pins>;
41
42 led_system: system {
43 label = "green:system";
44 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45 };
46
47 qss {
48 label = "green:qss";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
50 };
51 };
52
53 ath9k-leds {
54 compatible = "gpio-leds";
55
56 wlan {
57 function = LED_FUNCTION_WLAN;
58 color = <LED_COLOR_ID_GREEN>;
59 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <25000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 uboot: partition@0 {
79 reg = <0x0 0x20000>;
80 label = "u-boot";
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 macaddr_uboot_1fc00: macaddr@1fc00 {
89 compatible = "mac-base";
90 reg = <0x1fc00 0x6>;
91 #nvmem-cell-cells = <1>;
92 };
93 };
94 };
95
96 partition@20000 {
97 compatible = "tplink,firmware";
98 reg = <0x20000 0x3d0000>;
99 label = "firmware";
100 };
101
102 art: partition@3f0000 {
103 reg = <0x3f0000 0x10000>;
104 label = "art";
105 read-only;
106 };
107 };
108 };
109 };
110
111 &eth1 {
112 status = "okay";
113 };
114
115 &pcie {
116 status = "okay";
117
118 ath9k: wifi@0,0 {
119 reg = <0x0000 0 0 0 0>;
120 qca,no-eeprom;
121 nvmem-cells = <&macaddr_uboot_1fc00 0>;
122 nvmem-cell-names = "mac-address";
123 #gpio-cells = <2>;
124 gpio-controller;
125 };
126 };
127
128 &pinmux {
129 pinmux_switch_led_pins: switch_led_pins {
130 pinctrl-single,bits = <0x0 0x0 0xf8>;
131 };
132 };