kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_openmesh_a60.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 status_blue {
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
39 };
40
41 status_red {
42 function = LED_FUNCTION_STATUS;
43 color = <LED_COLOR_ID_RED>;
44 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
45 };
46
47 led_status_green: status_green {
48 function = LED_FUNCTION_STATUS;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
51 };
52 };
53
54 watchdog {
55 compatible = "linux,wdt-gpio";
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 hw_algo = "toggle";
58 /* hw_margin_ms is actually 300s but driver limits it to 60s */
59 hw_margin_ms = <60000>;
60 always-running;
61 };
62 };
63
64 &usb_phy1 {
65 status = "okay";
66 };
67
68 &usb1 {
69 status = "okay";
70 };
71
72 &spi {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <40000000>;
79
80 /* partitions are passed via bootloader */
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "u-boot";
88 reg = <0x000000 0x040000>;
89 read-only;
90 };
91
92 partition@40000 {
93 label = "u-boot-env";
94 reg = <0x040000 0x010000>;
95 };
96
97 partition@50000 {
98 label = "custom";
99 reg = <0x050000 0x060000>;
100 read-only;
101 };
102
103 partition@b0000 {
104 label = "inactive";
105 reg = <0x0b0000 0x7a0000>;
106 };
107
108 partition@850000 {
109 label = "inactive2";
110 reg = <0x850000 0x7a0000>;
111 };
112
113 art: partition@ff0000 {
114 label = "ART";
115 reg = <0xff0000 0x010000>;
116 read-only;
117
118 nvmem-layout {
119 compatible = "fixed-layout";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 macaddr_art_0: macaddr@0 {
124 compatible = "mac-base";
125 reg = <0x0 0x6>;
126 #nvmem-cell-cells = <1>;
127 };
128
129 macaddr_art_6: macaddr@6 {
130 reg = <0x6 0x6>;
131 };
132
133 cal_art_5000: calibration@5000 {
134 reg = <0x5000 0x844>;
135 };
136 };
137 };
138 };
139 };
140 };
141
142 &mdio0 {
143 status = "okay";
144
145 phy1: ethernet-phy@1 {
146 reg = <1>;
147 eee-broken-100tx;
148 eee-broken-1000t;
149 };
150
151 phy2: ethernet-phy@2 {
152 reg = <2>;
153 eee-broken-100tx;
154 eee-broken-1000t;
155 at803x-override-sgmii-link-check;
156 };
157 };
158
159 &eth0 {
160 status = "okay";
161
162 pll-data = <0x82000101 0x80000101 0x80001313>;
163
164 nvmem-cells = <&macaddr_art_0 0>;
165 nvmem-cell-names = "mac-address";
166
167 phy-mode = "rgmii-id";
168 phy-handle = <&phy1>;
169
170 gmac-config {
171 device = <&gmac>;
172 rgmii-enabled = <1>;
173 rxd-delay = <3>;
174 rxdv-delay = <3>;
175 txd-delay = <0>;
176 txen-delay = <0>;
177 };
178 };
179
180 &eth1 {
181 status = "okay";
182
183 pll-data = <0x03000101 0x80000101 0x80001313>;
184
185 nvmem-cells = <&macaddr_art_6>;
186 nvmem-cell-names = "mac-address";
187
188 qca955x-sgmii-fixup;
189
190 phy-handle = <&phy2>;
191 };
192
193 &wmac {
194 status = "okay";
195
196 mtd-cal-data = <&art 0x1000>;
197 nvmem-cells = <&macaddr_art_0 2>;
198 nvmem-cell-names = "mac-address";
199 };
200
201 &pcie0 {
202 status = "okay";
203
204 wifi@0,0 {
205 compatible = "qcom,ath10k";
206 reg = <0x0000 0 0 0 0>;
207 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 16>;
208 nvmem-cell-names = "calibration", "mac-address";
209 };
210 };