8632011de3a7779658ead87e896f3e261e69cbf7
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_pisen_ts-d084.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Pisen TS-D084";
10 compatible = "pisen,ts-d084", "qca,ar9331";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &wmac;
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 = "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 &uart {
95 status = "okay";
96 };
97
98 &usb {
99 dr_mode = "host";
100 status = "okay";
101 };
102
103 &usb_phy {
104 status = "okay";
105 };
106
107 &wmac {
108 status = "okay";
109 mtd-cal-data = <&art 0x1000>;
110 mtd-mac-address = <&uboot 0x1fc00>;
111 };