ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 label-mac-device = &wmac;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_system: system {
37 label = "ts-d084:blue:system";
38 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &spi {
44 status = "okay";
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <25000000>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 uboot: partition@0 {
57 reg = <0x0 0x20000>;
58 label = "u-boot";
59 read-only;
60 };
61
62 firmware: partition@20000 {
63 compatible = "tplink,firmware";
64 reg = <0x20000 0x7d0000>;
65 label = "firmware";
66 };
67
68 art: partition@7f0000 {
69 reg = <0x7f0000 0x10000>;
70 label = "art";
71 read-only;
72 };
73 };
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 mtd-mac-address = <&uboot 0x1fc00>;
81
82 gmac-config {
83 device = <&gmac>;
84
85 switch-phy-addr-swap = <0>;
86 switch-phy-swap = <0>;
87 };
88 };
89
90 &eth1 {
91 status = "okay";
92 compatible = "syscon", "simple-mfd";
93 };
94
95 &gpio {
96 status = "okay";
97 };
98
99 &uart {
100 status = "okay";
101 };
102
103 &usb {
104 dr_mode = "host";
105 status = "okay";
106 };
107
108 &usb_phy {
109 status = "okay";
110 };
111
112 &wmac {
113 status = "okay";
114 mtd-cal-data = <&art 0x1000>;
115 mtd-mac-address = <&uboot 0x1fc00>;
116 };