ath79: move dts-v1 statement to ath79.dtsi
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
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 = &wmac;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "tp-link:green:system";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &uart {
38 status = "okay";
39 };
40
41 &spi {
42 status = "okay";
43
44 num-cs = <1>;
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <50000000>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 uboot: partition@0 {
57 label = "u-boot";
58 reg = <0x000000 0x020000>;
59 read-only;
60 };
61
62 partition@20000 {
63 label = "firmware";
64 reg = <0x020000 0x3d0000>;
65 compatible = "tplink,firmware";
66 };
67
68 art: partition@3f0000 {
69 label = "art";
70 reg = <0x3f0000 0x010000>;
71 read-only;
72 };
73 };
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 phy-handle = <&swphy4>;
81
82 mtd-mac-address = <&uboot 0x1fc00>;
83 mtd-mac-address-increment = <1>;
84 };
85
86 &eth1 {
87 compatible = "syscon", "simple-mfd";
88 };
89
90 &wmac {
91 status = "okay";
92
93 mtd-cal-data = <&art 0x1000>;
94 mtd-mac-address = <&uboot 0x1fc00>;
95 };