ath79: add support for TP-Link WDR3500 v1
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_pisen_ts-d084.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9331.dtsi"
8
9 / {
10 model = "Pisen TS-D084";
11 compatible = "pisen,ts-d084", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_system: system {
36 label = "ts-d084:blue:system";
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
38 };
39 };
40 };
41
42 &spi {
43 status = "okay";
44
45 flash@0 {
46 compatible = "jedec,spi-nor";
47 reg = <0>;
48 spi-max-frequency = <25000000>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 uboot: partition@0 {
56 reg = <0x0 0x20000>;
57 label = "u-boot";
58 read-only;
59 };
60
61 firmware: partition@20000 {
62 compatible = "tplink,firmware";
63 reg = <0x20000 0x7d0000>;
64 label = "firmware";
65 };
66
67 art: partition@7f0000 {
68 reg = <0x7f0000 0x10000>;
69 label = "art";
70 read-only;
71 };
72 };
73 };
74 };
75
76 &eth0 {
77 status = "okay";
78
79 mtd-mac-address = <&uboot 0x1fc00>;
80
81 gmac-config {
82 device = <&gmac>;
83
84 switch-phy-addr-swap = <0>;
85 switch-phy-swap = <0>;
86 };
87 };
88
89 &eth1 {
90 status = "okay";
91 compatible = "syscon", "simple-mfd";
92 };
93
94 &gpio {
95 status = "okay";
96 };
97
98 &uart {
99 status = "okay";
100 };
101
102 &usb {
103 dr_mode = "host";
104 status = "okay";
105 };
106
107 &usb_phy {
108 status = "okay";
109 };
110
111 &wmac {
112 status = "okay";
113 mtd-cal-data = <&art 0x1000>;
114 mtd-mac-address = <&uboot 0x1fc00>;
115 };