kernel: bump 6.1 to 6.1.89
[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 #include <dt-bindings/leds/common.h>
8
9 / {
10 chosen {
11 /delete-property/ bootargs;
12 };
13
14 aliases {
15 led-boot = &led_status_green;
16 led-failsafe = &led_status_green;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_green;
19 label-mac-device = &eth0;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 pinctrl-names = "default";
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 status_red {
38 function = LED_FUNCTION_STATUS;
39 color = <LED_COLOR_ID_RED>;
40 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
41 };
42
43 led_status_green: status_green {
44 function = LED_FUNCTION_STATUS;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
47 };
48
49 status_blue {
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
53 };
54 };
55
56 watchdog {
57 compatible = "linux,wdt-gpio";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
59 hw_algo = "toggle";
60 /* hw_margin_ms is actually 300s but driver limits it to 60s */
61 hw_margin_ms = <60000>;
62 always-running;
63 };
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 nvmem-layout {
113 compatible = "fixed-layout";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 macaddr_art_0: macaddr@0 {
118 compatible = "mac-base";
119 reg = <0x0 0x6>;
120 #nvmem-cell-cells = <1>;
121 };
122 };
123 };
124 };
125 };
126 };
127
128 &eth0 {
129 status = "okay";
130
131 phy-handle = <&swphy4>;
132
133 nvmem-cells = <&macaddr_art_0 0>;
134 nvmem-cell-names = "mac-address";
135 };
136
137 &eth1 {
138 /* Workaround: keep the Ethernet interfaces order/mapping correct
139 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
140 */
141 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
142
143 nvmem-cells = <&macaddr_art_0 1>;
144 nvmem-cell-names = "mac-address";
145 };
146
147 &wmac {
148 status = "okay";
149
150 mtd-cal-data = <&art 0x1000>;
151 nvmem-cells = <&macaddr_art_0 2>;
152 nvmem-cell-names = "mac-address";
153 };