0bc6d4fa28436a04a48496622c51f33a7e945c28
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_plasmacloud_pa300.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 chosen {
10 /delete-property/ bootargs;
11 };
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_green;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_green;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 pinctrl-names = "default";
25
26 reset {
27 label = "reset";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 status_red {
37 label = "red:status";
38 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
39 };
40
41 led_status_green: status_green {
42 label = "green:status";
43 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
44 };
45
46 status_blue {
47 label = "blue:status";
48 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
49 };
50 };
51
52 watchdog {
53 compatible = "linux,wdt-gpio";
54 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
55 hw_algo = "toggle";
56 /* hw_margin_ms is actually 300s but driver limits it to 60s */
57 hw_margin_ms = <60000>;
58 always-running;
59 };
60 };
61
62 &uart {
63 status = "okay";
64 };
65
66 &spi {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <25000000>;
73
74 /* partitions are passed via bootloader */
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x000000 0x040000>;
83 read-only;
84 };
85
86 partition@40000 {
87 label = "u-boot-env";
88 reg = <0x040000 0x040000>;
89 };
90
91 partition@80000 {
92 label = "custom";
93 reg = <0x080000 0x140000>;
94 read-only;
95 };
96
97 partition@1c0000 {
98 label = "inactive";
99 reg = <0x1c0000 0x700000>;
100 };
101
102 partition@8c0000 {
103 label = "inactive2";
104 reg = <0x8c0000 0x700000>;
105 };
106
107 art: partition@fc0000 {
108 label = "ART";
109 reg = <0xfc0000 0x040000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &eth0 {
117 status = "okay";
118
119 phy-handle = <&swphy4>;
120
121 mtd-mac-address = <&art 0x0>;
122 };
123
124 &eth1 {
125 /* Workaround: keep the Ethernet interfaces order/mapping correct
126 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
127 */
128 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
129
130 mtd-mac-address = <&art 0x0>;
131 mtd-mac-address-increment = <1>;
132 };
133
134 &wmac {
135 status = "okay";
136
137 mtd-cal-data = <&art 0x1000>;
138 mtd-mac-address = <&art 0x0>;
139 mtd-mac-address-increment = <2>;
140 };