ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9533_tplink_tl-wr802n.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 "qca953x.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 = &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 &wmac {
78 status = "okay";
79
80 mtd-cal-data = <&art 0x1000>;
81 mtd-mac-address = <&uboot 0x1fc00>;
82 };
83
84 &eth0 {
85 status = "okay";
86
87 phy-handle = <&swphy4>;
88
89 mtd-mac-address = <&uboot 0x1fc00>;
90 mtd-mac-address-increment = <1>;
91 };
92
93 &eth1 {
94 compatible = "syscon", "simple-mfd";
95 };