blob: a65c09ec054967bfd94727859b2267155882f513 [file] [log] [blame]
Hans de Goededb325e82015-04-15 19:03:49 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
Hans de Goededb325e82015-04-15 19:03:49 +020021 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
43 */
44
Hans de Goededb325e82015-04-15 19:03:49 +020045#include <dt-bindings/interrupt-controller/arm-gic.h>
46#include <dt-bindings/thermal/thermal.h>
47
Jagan Teki1e097442018-08-05 00:40:09 +053048#include <dt-bindings/clock/sun6i-a31-ccu.h>
Andre Przywarafa15e502022-09-13 00:52:52 +010049#include <dt-bindings/clock/sun6i-rtc.h>
Jagan Teki1e097442018-08-05 00:40:09 +053050#include <dt-bindings/reset/sun6i-a31-ccu.h>
Hans de Goededb325e82015-04-15 19:03:49 +020051
52/ {
53 interrupt-parent = <&gic>;
Samuel Holland8d6fe612022-04-27 15:31:24 -050054 #address-cells = <1>;
55 #size-cells = <1>;
Hans de Goededb325e82015-04-15 19:03:49 +020056
57 aliases {
58 ethernet0 = &gmac;
59 };
60
61 chosen {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 ranges;
65
Samuel Holland8d6fe612022-04-27 15:31:24 -050066 simplefb_hdmi: framebuffer-lcd0-hdmi {
Hans de Goede6ef1be32015-06-02 15:53:40 +020067 compatible = "allwinner,simple-framebuffer",
68 "simple-framebuffer";
Hans de Goededb325e82015-04-15 19:03:49 +020069 allwinner,pipeline = "de_be0-lcd0-hdmi";
Jagan Teki1e097442018-08-05 00:40:09 +053070 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
71 <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>,
72 <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>,
73 <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>;
Hans de Goededb325e82015-04-15 19:03:49 +020074 status = "disabled";
75 };
76
Samuel Holland8d6fe612022-04-27 15:31:24 -050077 simplefb_lcd: framebuffer-lcd0 {
Hans de Goededb325e82015-04-15 19:03:49 +020078 compatible = "allwinner,simple-framebuffer",
79 "simple-framebuffer";
80 allwinner,pipeline = "de_be0-lcd0";
Jagan Teki1e097442018-08-05 00:40:09 +053081 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
82 <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>,
83 <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>;
Hans de Goededb325e82015-04-15 19:03:49 +020084 status = "disabled";
85 };
86 };
87
88 timer {
89 compatible = "arm,armv7-timer";
90 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
94 clock-frequency = <24000000>;
95 arm,cpu-registers-not-fw-configured;
96 };
97
98 cpus {
99 enable-method = "allwinner,sun6i-a31";
100 #address-cells = <1>;
101 #size-cells = <0>;
102
103 cpu0: cpu@0 {
104 compatible = "arm,cortex-a7";
105 device_type = "cpu";
106 reg = <0>;
Jagan Teki1e097442018-08-05 00:40:09 +0530107 clocks = <&ccu CLK_CPU>;
Hans de Goededb325e82015-04-15 19:03:49 +0200108 clock-latency = <244144>; /* 8 32k periods */
Samuel Holland8d6fe612022-04-27 15:31:24 -0500109 operating-points =
Hans de Goede6ef1be32015-06-02 15:53:40 +0200110 /* kHz uV */
Samuel Holland8d6fe612022-04-27 15:31:24 -0500111 <1008000 1200000>,
112 <864000 1200000>,
113 <720000 1100000>,
114 <480000 1000000>;
Hans de Goededb325e82015-04-15 19:03:49 +0200115 #cooling-cells = <2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200116 };
117
Samuel Holland8d6fe612022-04-27 15:31:24 -0500118 cpu1: cpu@1 {
Hans de Goededb325e82015-04-15 19:03:49 +0200119 compatible = "arm,cortex-a7";
120 device_type = "cpu";
121 reg = <1>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500122 clocks = <&ccu CLK_CPU>;
123 clock-latency = <244144>; /* 8 32k periods */
124 operating-points =
125 /* kHz uV */
126 <1008000 1200000>,
127 <864000 1200000>,
128 <720000 1100000>,
129 <480000 1000000>;
130 #cooling-cells = <2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200131 };
132
Samuel Holland8d6fe612022-04-27 15:31:24 -0500133 cpu2: cpu@2 {
Hans de Goededb325e82015-04-15 19:03:49 +0200134 compatible = "arm,cortex-a7";
135 device_type = "cpu";
136 reg = <2>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500137 clocks = <&ccu CLK_CPU>;
138 clock-latency = <244144>; /* 8 32k periods */
139 operating-points =
140 /* kHz uV */
141 <1008000 1200000>,
142 <864000 1200000>,
143 <720000 1100000>,
144 <480000 1000000>;
145 #cooling-cells = <2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200146 };
147
Samuel Holland8d6fe612022-04-27 15:31:24 -0500148 cpu3: cpu@3 {
Hans de Goededb325e82015-04-15 19:03:49 +0200149 compatible = "arm,cortex-a7";
150 device_type = "cpu";
151 reg = <3>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500152 clocks = <&ccu CLK_CPU>;
153 clock-latency = <244144>; /* 8 32k periods */
154 operating-points =
155 /* kHz uV */
156 <1008000 1200000>,
157 <864000 1200000>,
158 <720000 1100000>,
159 <480000 1000000>;
160 #cooling-cells = <2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200161 };
162 };
163
164 thermal-zones {
Samuel Holland8d6fe612022-04-27 15:31:24 -0500165 cpu-thermal {
Hans de Goededb325e82015-04-15 19:03:49 +0200166 /* milliseconds */
167 polling-delay-passive = <250>;
168 polling-delay = <1000>;
169 thermal-sensors = <&rtp>;
170
171 cooling-maps {
172 map0 {
173 trip = <&cpu_alert0>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500174 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
175 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
176 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
177 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
Hans de Goededb325e82015-04-15 19:03:49 +0200178 };
179 };
180
181 trips {
Andre Przywara3b798212024-04-19 17:59:52 +0100182 cpu_alert0: cpu-alert0 {
Hans de Goededb325e82015-04-15 19:03:49 +0200183 /* milliCelsius */
184 temperature = <70000>;
185 hysteresis = <2000>;
186 type = "passive";
187 };
188
Andre Przywara3b798212024-04-19 17:59:52 +0100189 cpu_crit: cpu-crit {
Hans de Goededb325e82015-04-15 19:03:49 +0200190 /* milliCelsius */
191 temperature = <100000>;
192 hysteresis = <2000>;
193 type = "critical";
194 };
195 };
196 };
197 };
198
Hans de Goededb325e82015-04-15 19:03:49 +0200199 pmu {
Samuel Holland8d6fe612022-04-27 15:31:24 -0500200 compatible = "arm,cortex-a7-pmu";
Hans de Goededb325e82015-04-15 19:03:49 +0200201 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
202 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
203 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
204 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
205 };
206
207 clocks {
208 #address-cells = <1>;
209 #size-cells = <1>;
210 ranges;
211
Samuel Holland8d6fe612022-04-27 15:31:24 -0500212 osc24M: clk-24M {
Hans de Goededb325e82015-04-15 19:03:49 +0200213 #clock-cells = <0>;
214 compatible = "fixed-clock";
215 clock-frequency = <24000000>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500216 clock-accuracy = <50000>;
217 clock-output-names = "osc24M";
Hans de Goededb325e82015-04-15 19:03:49 +0200218 };
219
Samuel Holland8d6fe612022-04-27 15:31:24 -0500220 osc32k: clk-32k {
Hans de Goededb325e82015-04-15 19:03:49 +0200221 #clock-cells = <0>;
222 compatible = "fixed-clock";
223 clock-frequency = <32768>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500224 clock-accuracy = <50000>;
225 clock-output-names = "ext_osc32k";
Hans de Goededb325e82015-04-15 19:03:49 +0200226 };
227
Hans de Goededb325e82015-04-15 19:03:49 +0200228 /*
Hans de Goede6ef1be32015-06-02 15:53:40 +0200229 * The following two are dummy clocks, placeholders
230 * used in the gmac_tx clock. The gmac driver will
231 * choose one parent depending on the PHY interface
232 * mode, using clk_set_rate auto-reparenting.
233 *
234 * The actual TX clock rate is not controlled by the
235 * gmac_tx clock.
Hans de Goededb325e82015-04-15 19:03:49 +0200236 */
Samuel Holland8d6fe612022-04-27 15:31:24 -0500237 mii_phy_tx_clk: clk-mii-phy-tx {
Hans de Goededb325e82015-04-15 19:03:49 +0200238 #clock-cells = <0>;
239 compatible = "fixed-clock";
240 clock-frequency = <25000000>;
241 clock-output-names = "mii_phy_tx";
242 };
243
Samuel Holland8d6fe612022-04-27 15:31:24 -0500244 gmac_int_tx_clk: clk-gmac-int-tx {
Hans de Goededb325e82015-04-15 19:03:49 +0200245 #clock-cells = <0>;
246 compatible = "fixed-clock";
247 clock-frequency = <125000000>;
248 clock-output-names = "gmac_int_tx";
249 };
250
Jagan Teki1e097442018-08-05 00:40:09 +0530251 gmac_tx_clk: clk@1c200d0 {
Hans de Goededb325e82015-04-15 19:03:49 +0200252 #clock-cells = <0>;
253 compatible = "allwinner,sun7i-a20-gmac-clk";
254 reg = <0x01c200d0 0x4>;
255 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
256 clock-output-names = "gmac_tx";
257 };
258 };
259
Jagan Teki1e097442018-08-05 00:40:09 +0530260 de: display-engine {
261 compatible = "allwinner,sun6i-a31-display-engine";
262 allwinner,pipelines = <&fe0>, <&fe1>;
263 status = "disabled";
264 };
265
Samuel Holland8d6fe612022-04-27 15:31:24 -0500266 soc {
Hans de Goededb325e82015-04-15 19:03:49 +0200267 compatible = "simple-bus";
268 #address-cells = <1>;
269 #size-cells = <1>;
270 ranges;
271
Jagan Teki1e097442018-08-05 00:40:09 +0530272 dma: dma-controller@1c02000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200273 compatible = "allwinner,sun6i-a31-dma";
274 reg = <0x01c02000 0x1000>;
275 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530276 clocks = <&ccu CLK_AHB1_DMA>;
277 resets = <&ccu RST_AHB1_DMA>;
Hans de Goededb325e82015-04-15 19:03:49 +0200278 #dma-cells = <1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200279 };
280
Jagan Teki1e097442018-08-05 00:40:09 +0530281 tcon0: lcd-controller@1c0c000 {
282 compatible = "allwinner,sun6i-a31-tcon";
283 reg = <0x01c0c000 0x1000>;
284 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500285 dmas = <&dma 11>;
286 resets = <&ccu RST_AHB1_LCD0>,
287 <&ccu RST_AHB1_LVDS>;
288 reset-names = "lcd",
289 "lvds";
Jagan Teki1e097442018-08-05 00:40:09 +0530290 clocks = <&ccu CLK_AHB1_LCD0>,
291 <&ccu CLK_LCD0_CH0>,
Samuel Holland8d6fe612022-04-27 15:31:24 -0500292 <&ccu CLK_LCD0_CH1>,
293 <&ccu 15>;
Jagan Teki1e097442018-08-05 00:40:09 +0530294 clock-names = "ahb",
295 "tcon-ch0",
Samuel Holland8d6fe612022-04-27 15:31:24 -0500296 "tcon-ch1",
297 "lvds-alt";
Jagan Teki1e097442018-08-05 00:40:09 +0530298 clock-output-names = "tcon0-pixel-clock";
Samuel Holland8d6fe612022-04-27 15:31:24 -0500299 #clock-cells = <0>;
Jagan Teki1e097442018-08-05 00:40:09 +0530300
301 ports {
302 #address-cells = <1>;
303 #size-cells = <0>;
304
305 tcon0_in: port@0 {
306 #address-cells = <1>;
307 #size-cells = <0>;
308 reg = <0>;
309
310 tcon0_in_drc0: endpoint@0 {
311 reg = <0>;
312 remote-endpoint = <&drc0_out_tcon0>;
313 };
314
315 tcon0_in_drc1: endpoint@1 {
316 reg = <1>;
317 remote-endpoint = <&drc1_out_tcon0>;
318 };
319 };
320
321 tcon0_out: port@1 {
322 #address-cells = <1>;
323 #size-cells = <0>;
324 reg = <1>;
325
326 tcon0_out_hdmi: endpoint@1 {
327 reg = <1>;
328 remote-endpoint = <&hdmi_in_tcon0>;
329 allwinner,tcon-channel = <1>;
330 };
331 };
332 };
333 };
334
335 tcon1: lcd-controller@1c0d000 {
336 compatible = "allwinner,sun6i-a31-tcon";
337 reg = <0x01c0d000 0x1000>;
338 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500339 dmas = <&dma 12>;
340 resets = <&ccu RST_AHB1_LCD1>,
341 <&ccu RST_AHB1_LVDS>;
342 reset-names = "lcd", "lvds";
Jagan Teki1e097442018-08-05 00:40:09 +0530343 clocks = <&ccu CLK_AHB1_LCD1>,
344 <&ccu CLK_LCD1_CH0>,
Samuel Holland8d6fe612022-04-27 15:31:24 -0500345 <&ccu CLK_LCD1_CH1>,
346 <&ccu 15>;
Jagan Teki1e097442018-08-05 00:40:09 +0530347 clock-names = "ahb",
348 "tcon-ch0",
Samuel Holland8d6fe612022-04-27 15:31:24 -0500349 "tcon-ch1",
350 "lvds-alt";
Jagan Teki1e097442018-08-05 00:40:09 +0530351 clock-output-names = "tcon1-pixel-clock";
Samuel Holland8d6fe612022-04-27 15:31:24 -0500352 #clock-cells = <0>;
Jagan Teki1e097442018-08-05 00:40:09 +0530353
354 ports {
355 #address-cells = <1>;
356 #size-cells = <0>;
357
358 tcon1_in: port@0 {
359 #address-cells = <1>;
360 #size-cells = <0>;
361 reg = <0>;
362
363 tcon1_in_drc0: endpoint@0 {
364 reg = <0>;
365 remote-endpoint = <&drc0_out_tcon1>;
366 };
367
368 tcon1_in_drc1: endpoint@1 {
369 reg = <1>;
370 remote-endpoint = <&drc1_out_tcon1>;
371 };
372 };
373
374 tcon1_out: port@1 {
375 #address-cells = <1>;
376 #size-cells = <0>;
377 reg = <1>;
378
379 tcon1_out_hdmi: endpoint@1 {
380 reg = <1>;
381 remote-endpoint = <&hdmi_in_tcon1>;
382 allwinner,tcon-channel = <1>;
383 };
384 };
385 };
386 };
387
388 mmc0: mmc@1c0f000 {
389 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededb325e82015-04-15 19:03:49 +0200390 reg = <0x01c0f000 0x1000>;
Jagan Teki1e097442018-08-05 00:40:09 +0530391 clocks = <&ccu CLK_AHB1_MMC0>,
392 <&ccu CLK_MMC0>,
393 <&ccu CLK_MMC0_OUTPUT>,
394 <&ccu CLK_MMC0_SAMPLE>;
Hans de Goededb325e82015-04-15 19:03:49 +0200395 clock-names = "ahb",
396 "mmc",
397 "output",
398 "sample";
Jagan Teki1e097442018-08-05 00:40:09 +0530399 resets = <&ccu RST_AHB1_MMC0>;
Hans de Goededb325e82015-04-15 19:03:49 +0200400 reset-names = "ahb";
401 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500402 pinctrl-names = "default";
403 pinctrl-0 = <&mmc0_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +0200404 status = "disabled";
405 #address-cells = <1>;
406 #size-cells = <0>;
407 };
408
Jagan Teki1e097442018-08-05 00:40:09 +0530409 mmc1: mmc@1c10000 {
410 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededb325e82015-04-15 19:03:49 +0200411 reg = <0x01c10000 0x1000>;
Jagan Teki1e097442018-08-05 00:40:09 +0530412 clocks = <&ccu CLK_AHB1_MMC1>,
413 <&ccu CLK_MMC1>,
414 <&ccu CLK_MMC1_OUTPUT>,
415 <&ccu CLK_MMC1_SAMPLE>;
Hans de Goededb325e82015-04-15 19:03:49 +0200416 clock-names = "ahb",
417 "mmc",
418 "output",
419 "sample";
Jagan Teki1e097442018-08-05 00:40:09 +0530420 resets = <&ccu RST_AHB1_MMC1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200421 reset-names = "ahb";
422 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500423 pinctrl-names = "default";
424 pinctrl-0 = <&mmc1_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +0200425 status = "disabled";
426 #address-cells = <1>;
427 #size-cells = <0>;
428 };
429
Jagan Teki1e097442018-08-05 00:40:09 +0530430 mmc2: mmc@1c11000 {
431 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededb325e82015-04-15 19:03:49 +0200432 reg = <0x01c11000 0x1000>;
Jagan Teki1e097442018-08-05 00:40:09 +0530433 clocks = <&ccu CLK_AHB1_MMC2>,
434 <&ccu CLK_MMC2>,
435 <&ccu CLK_MMC2_OUTPUT>,
436 <&ccu CLK_MMC2_SAMPLE>;
Hans de Goededb325e82015-04-15 19:03:49 +0200437 clock-names = "ahb",
438 "mmc",
439 "output",
440 "sample";
Jagan Teki1e097442018-08-05 00:40:09 +0530441 resets = <&ccu RST_AHB1_MMC2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200442 reset-names = "ahb";
443 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
444 status = "disabled";
445 #address-cells = <1>;
446 #size-cells = <0>;
447 };
448
Jagan Teki1e097442018-08-05 00:40:09 +0530449 mmc3: mmc@1c12000 {
450 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededb325e82015-04-15 19:03:49 +0200451 reg = <0x01c12000 0x1000>;
Jagan Teki1e097442018-08-05 00:40:09 +0530452 clocks = <&ccu CLK_AHB1_MMC3>,
453 <&ccu CLK_MMC3>,
454 <&ccu CLK_MMC3_OUTPUT>,
455 <&ccu CLK_MMC3_SAMPLE>;
Hans de Goededb325e82015-04-15 19:03:49 +0200456 clock-names = "ahb",
457 "mmc",
458 "output",
459 "sample";
Jagan Teki1e097442018-08-05 00:40:09 +0530460 resets = <&ccu RST_AHB1_MMC3>;
Hans de Goededb325e82015-04-15 19:03:49 +0200461 reset-names = "ahb";
462 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
463 status = "disabled";
464 #address-cells = <1>;
465 #size-cells = <0>;
466 };
467
Jagan Teki1e097442018-08-05 00:40:09 +0530468 hdmi: hdmi@1c16000 {
469 compatible = "allwinner,sun6i-a31-hdmi";
470 reg = <0x01c16000 0x1000>;
471 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
472 clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>,
473 <&ccu CLK_HDMI_DDC>,
474 <&ccu CLK_PLL_VIDEO0_2X>,
475 <&ccu CLK_PLL_VIDEO1_2X>;
476 clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1";
477 resets = <&ccu RST_AHB1_HDMI>;
Jagan Teki1e097442018-08-05 00:40:09 +0530478 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
479 dmas = <&dma 13>, <&dma 13>, <&dma 14>;
480 status = "disabled";
481
482 ports {
483 #address-cells = <1>;
484 #size-cells = <0>;
485
486 hdmi_in: port@0 {
487 #address-cells = <1>;
488 #size-cells = <0>;
489 reg = <0>;
490
491 hdmi_in_tcon0: endpoint@0 {
492 reg = <0>;
493 remote-endpoint = <&tcon0_out_hdmi>;
494 };
495
496 hdmi_in_tcon1: endpoint@1 {
497 reg = <1>;
498 remote-endpoint = <&tcon1_out_hdmi>;
499 };
500 };
501
502 hdmi_out: port@1 {
Jagan Teki1e097442018-08-05 00:40:09 +0530503 reg = <1>;
504 };
505 };
506 };
507
508 usb_otg: usb@1c19000 {
Hans de Goede7d831822015-08-05 17:39:14 +0200509 compatible = "allwinner,sun6i-a31-musb";
510 reg = <0x01c19000 0x0400>;
Jagan Teki1e097442018-08-05 00:40:09 +0530511 clocks = <&ccu CLK_AHB1_OTG>;
512 resets = <&ccu RST_AHB1_OTG>;
Hans de Goede7d831822015-08-05 17:39:14 +0200513 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
514 interrupt-names = "mc";
515 phys = <&usbphy 0>;
516 phy-names = "usb";
517 extcon = <&usbphy 0>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500518 dr_mode = "otg";
Hans de Goede7d831822015-08-05 17:39:14 +0200519 status = "disabled";
520 };
521
Jagan Teki1e097442018-08-05 00:40:09 +0530522 usbphy: phy@1c19400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200523 compatible = "allwinner,sun6i-a31-usb-phy";
524 reg = <0x01c19400 0x10>,
525 <0x01c1a800 0x4>,
526 <0x01c1b800 0x4>;
527 reg-names = "phy_ctrl",
528 "pmu1",
529 "pmu2";
Jagan Teki1e097442018-08-05 00:40:09 +0530530 clocks = <&ccu CLK_USB_PHY0>,
531 <&ccu CLK_USB_PHY1>,
532 <&ccu CLK_USB_PHY2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200533 clock-names = "usb0_phy",
534 "usb1_phy",
535 "usb2_phy";
Jagan Teki1e097442018-08-05 00:40:09 +0530536 resets = <&ccu RST_USB_PHY0>,
537 <&ccu RST_USB_PHY1>,
538 <&ccu RST_USB_PHY2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200539 reset-names = "usb0_reset",
540 "usb1_reset",
541 "usb2_reset";
542 status = "disabled";
543 #phy-cells = <1>;
544 };
545
Jagan Teki1e097442018-08-05 00:40:09 +0530546 ehci0: usb@1c1a000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200547 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
548 reg = <0x01c1a000 0x100>;
549 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530550 clocks = <&ccu CLK_AHB1_EHCI0>;
551 resets = <&ccu RST_AHB1_EHCI0>;
Hans de Goededb325e82015-04-15 19:03:49 +0200552 phys = <&usbphy 1>;
553 phy-names = "usb";
554 status = "disabled";
555 };
556
Jagan Teki1e097442018-08-05 00:40:09 +0530557 ohci0: usb@1c1a400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200558 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
559 reg = <0x01c1a400 0x100>;
560 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530561 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
562 resets = <&ccu RST_AHB1_OHCI0>;
Hans de Goededb325e82015-04-15 19:03:49 +0200563 phys = <&usbphy 1>;
564 phy-names = "usb";
565 status = "disabled";
566 };
567
Jagan Teki1e097442018-08-05 00:40:09 +0530568 ehci1: usb@1c1b000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200569 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
570 reg = <0x01c1b000 0x100>;
571 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530572 clocks = <&ccu CLK_AHB1_EHCI1>;
573 resets = <&ccu RST_AHB1_EHCI1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200574 phys = <&usbphy 2>;
575 phy-names = "usb";
576 status = "disabled";
577 };
578
Jagan Teki1e097442018-08-05 00:40:09 +0530579 ohci1: usb@1c1b400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200580 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
581 reg = <0x01c1b400 0x100>;
582 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530583 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
584 resets = <&ccu RST_AHB1_OHCI1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200585 phys = <&usbphy 2>;
586 phy-names = "usb";
587 status = "disabled";
588 };
589
Jagan Teki1e097442018-08-05 00:40:09 +0530590 ohci2: usb@1c1c400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200591 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
592 reg = <0x01c1c400 0x100>;
593 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530594 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
595 resets = <&ccu RST_AHB1_OHCI2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200596 status = "disabled";
597 };
598
Jagan Teki1e097442018-08-05 00:40:09 +0530599 ccu: clock@1c20000 {
600 compatible = "allwinner,sun6i-a31-ccu";
601 reg = <0x01c20000 0x400>;
Andre Przywarafa15e502022-09-13 00:52:52 +0100602 clocks = <&osc24M>, <&rtc CLK_OSC32K>;
Jagan Teki1e097442018-08-05 00:40:09 +0530603 clock-names = "hosc", "losc";
604 #clock-cells = <1>;
605 #reset-cells = <1>;
606 };
607
608 pio: pinctrl@1c20800 {
Hans de Goededb325e82015-04-15 19:03:49 +0200609 compatible = "allwinner,sun6i-a31-pinctrl";
610 reg = <0x01c20800 0x400>;
611 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
612 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
613 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
614 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Andre Przywarafa15e502022-09-13 00:52:52 +0100615 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>,
616 <&rtc CLK_OSC32K>;
Jagan Teki1e097442018-08-05 00:40:09 +0530617 clock-names = "apb", "hosc", "losc";
Hans de Goededb325e82015-04-15 19:03:49 +0200618 gpio-controller;
619 interrupt-controller;
Hans de Goede7d831822015-08-05 17:39:14 +0200620 #interrupt-cells = <3>;
Hans de Goededb325e82015-04-15 19:03:49 +0200621 #gpio-cells = <3>;
622
Samuel Holland8d6fe612022-04-27 15:31:24 -0500623 gmac_gmii_pins: gmac-gmii-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530624 pins = "PA0", "PA1", "PA2", "PA3",
625 "PA4", "PA5", "PA6", "PA7",
626 "PA8", "PA9", "PA10", "PA11",
627 "PA12", "PA13", "PA14", "PA15",
628 "PA16", "PA17", "PA18", "PA19",
629 "PA20", "PA21", "PA22", "PA23",
630 "PA24", "PA25", "PA26", "PA27";
631 function = "gmac";
632 /*
633 * data lines in GMII mode run at 125MHz and
634 * might need a higher signal drive strength
635 */
636 drive-strength = <30>;
Hans de Goededb325e82015-04-15 19:03:49 +0200637 };
638
Samuel Holland8d6fe612022-04-27 15:31:24 -0500639 gmac_mii_pins: gmac-mii-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530640 pins = "PA0", "PA1", "PA2", "PA3",
641 "PA8", "PA9", "PA11",
642 "PA12", "PA13", "PA14", "PA19",
643 "PA20", "PA21", "PA22", "PA23",
644 "PA24", "PA26", "PA27";
645 function = "gmac";
646 };
647
Samuel Holland8d6fe612022-04-27 15:31:24 -0500648 gmac_rgmii_pins: gmac-rgmii-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530649 pins = "PA0", "PA1", "PA2", "PA3",
650 "PA9", "PA10", "PA11",
651 "PA12", "PA13", "PA14", "PA19",
652 "PA20", "PA25", "PA26", "PA27";
653 function = "gmac";
654 /*
655 * data lines in RGMII mode use DDR mode
656 * and need a higher signal drive strength
657 */
658 drive-strength = <40>;
659 };
660
Samuel Holland8d6fe612022-04-27 15:31:24 -0500661 i2c0_pins: i2c0-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530662 pins = "PH14", "PH15";
663 function = "i2c0";
Hans de Goededb325e82015-04-15 19:03:49 +0200664 };
665
Samuel Holland8d6fe612022-04-27 15:31:24 -0500666 i2c1_pins: i2c1-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530667 pins = "PH16", "PH17";
668 function = "i2c1";
Hans de Goededb325e82015-04-15 19:03:49 +0200669 };
670
Samuel Holland8d6fe612022-04-27 15:31:24 -0500671 i2c2_pins: i2c2-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530672 pins = "PH18", "PH19";
673 function = "i2c2";
674 };
675
Samuel Holland8d6fe612022-04-27 15:31:24 -0500676 lcd0_rgb888_pins: lcd0-rgb888-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530677 pins = "PD0", "PD1", "PD2", "PD3",
678 "PD4", "PD5", "PD6", "PD7",
679 "PD8", "PD9", "PD10", "PD11",
680 "PD12", "PD13", "PD14", "PD15",
681 "PD16", "PD17", "PD18", "PD19",
682 "PD20", "PD21", "PD22", "PD23",
683 "PD24", "PD25", "PD26", "PD27";
684 function = "lcd0";
Hans de Goededb325e82015-04-15 19:03:49 +0200685 };
686
Samuel Holland8d6fe612022-04-27 15:31:24 -0500687 mmc0_pins: mmc0-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530688 pins = "PF0", "PF1", "PF2",
Hans de Goede6ef1be32015-06-02 15:53:40 +0200689 "PF3", "PF4", "PF5";
Jagan Teki1e097442018-08-05 00:40:09 +0530690 function = "mmc0";
691 drive-strength = <30>;
692 bias-pull-up;
Hans de Goededb325e82015-04-15 19:03:49 +0200693 };
694
Samuel Holland8d6fe612022-04-27 15:31:24 -0500695 mmc1_pins: mmc1-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530696 pins = "PG0", "PG1", "PG2", "PG3",
Hans de Goededb325e82015-04-15 19:03:49 +0200697 "PG4", "PG5";
Jagan Teki1e097442018-08-05 00:40:09 +0530698 function = "mmc1";
699 drive-strength = <30>;
700 bias-pull-up;
Hans de Goededb325e82015-04-15 19:03:49 +0200701 };
702
Samuel Holland8d6fe612022-04-27 15:31:24 -0500703 mmc2_4bit_pins: mmc2-4bit-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530704 pins = "PC6", "PC7", "PC8", "PC9",
Hans de Goede5834fe32015-10-13 23:57:03 +0200705 "PC10", "PC11";
Jagan Teki1e097442018-08-05 00:40:09 +0530706 function = "mmc2";
707 drive-strength = <30>;
708 bias-pull-up;
Hans de Goede5834fe32015-10-13 23:57:03 +0200709 };
710
Samuel Holland8d6fe612022-04-27 15:31:24 -0500711 mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530712 pins = "PC6", "PC7", "PC8", "PC9",
Hans de Goede5834fe32015-10-13 23:57:03 +0200713 "PC10", "PC11", "PC12",
714 "PC13", "PC14", "PC15",
715 "PC24";
Jagan Teki1e097442018-08-05 00:40:09 +0530716 function = "mmc2";
717 drive-strength = <30>;
718 bias-pull-up;
Hans de Goede5834fe32015-10-13 23:57:03 +0200719 };
720
Samuel Holland8d6fe612022-04-27 15:31:24 -0500721 mmc3_8bit_emmc_pins: mmc3-8bit-emmc-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530722 pins = "PC6", "PC7", "PC8", "PC9",
Hans de Goede19888a42016-03-14 17:37:09 +0100723 "PC10", "PC11", "PC12",
724 "PC13", "PC14", "PC15",
725 "PC24";
Jagan Teki1e097442018-08-05 00:40:09 +0530726 function = "mmc3";
727 drive-strength = <40>;
728 bias-pull-up;
Hans de Goededb325e82015-04-15 19:03:49 +0200729 };
730
Samuel Holland8d6fe612022-04-27 15:31:24 -0500731 spdif_tx_pin: spdif-tx-pin {
Jagan Teki1e097442018-08-05 00:40:09 +0530732 pins = "PH28";
733 function = "spdif";
Hans de Goededb325e82015-04-15 19:03:49 +0200734 };
735
Samuel Holland8d6fe612022-04-27 15:31:24 -0500736 uart0_ph_pins: uart0-ph-pins {
Jagan Teki1e097442018-08-05 00:40:09 +0530737 pins = "PH20", "PH21";
738 function = "uart0";
Hans de Goededb325e82015-04-15 19:03:49 +0200739 };
740 };
741
Jagan Teki1e097442018-08-05 00:40:09 +0530742 timer@1c20c00 {
Hans de Goededb325e82015-04-15 19:03:49 +0200743 compatible = "allwinner,sun4i-a10-timer";
744 reg = <0x01c20c00 0xa0>;
745 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
746 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
747 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
748 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
Samuel Holland8d6fe612022-04-27 15:31:24 -0500749 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
750 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededb325e82015-04-15 19:03:49 +0200751 clocks = <&osc24M>;
752 };
753
Jagan Teki1e097442018-08-05 00:40:09 +0530754 wdt1: watchdog@1c20ca0 {
Hans de Goededb325e82015-04-15 19:03:49 +0200755 compatible = "allwinner,sun6i-a31-wdt";
756 reg = <0x01c20ca0 0x20>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500757 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
758 clocks = <&osc24M>;
Hans de Goededb325e82015-04-15 19:03:49 +0200759 };
760
Jagan Teki1e097442018-08-05 00:40:09 +0530761 spdif: spdif@1c21000 {
762 #sound-dai-cells = <0>;
763 compatible = "allwinner,sun6i-a31-spdif";
764 reg = <0x01c21000 0x400>;
765 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
766 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
767 resets = <&ccu RST_APB1_SPDIF>;
768 clock-names = "apb", "spdif";
769 dmas = <&dma 2>, <&dma 2>;
770 dma-names = "rx", "tx";
771 status = "disabled";
772 };
773
774 i2s0: i2s@1c22000 {
775 #sound-dai-cells = <0>;
776 compatible = "allwinner,sun6i-a31-i2s";
777 reg = <0x01c22000 0x400>;
778 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
779 clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
780 resets = <&ccu RST_APB1_DAUDIO0>;
781 clock-names = "apb", "mod";
782 dmas = <&dma 3>, <&dma 3>;
783 dma-names = "rx", "tx";
784 status = "disabled";
785 };
786
787 i2s1: i2s@1c22400 {
788 #sound-dai-cells = <0>;
789 compatible = "allwinner,sun6i-a31-i2s";
790 reg = <0x01c22400 0x400>;
791 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
792 clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
793 resets = <&ccu RST_APB1_DAUDIO1>;
794 clock-names = "apb", "mod";
795 dmas = <&dma 4>, <&dma 4>;
796 dma-names = "rx", "tx";
797 status = "disabled";
798 };
799
800 lradc: lradc@1c22800 {
Hans de Goede19888a42016-03-14 17:37:09 +0100801 compatible = "allwinner,sun4i-a10-lradc-keys";
802 reg = <0x01c22800 0x100>;
803 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
804 status = "disabled";
805 };
806
Jagan Teki1e097442018-08-05 00:40:09 +0530807 rtp: rtp@1c25000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200808 compatible = "allwinner,sun6i-a31-ts";
809 reg = <0x01c25000 0x100>;
810 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
811 #thermal-sensor-cells = <0>;
812 };
813
Jagan Teki1e097442018-08-05 00:40:09 +0530814 uart0: serial@1c28000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200815 compatible = "snps,dw-apb-uart";
816 reg = <0x01c28000 0x400>;
817 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
818 reg-shift = <2>;
819 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530820 clocks = <&ccu CLK_APB2_UART0>;
821 resets = <&ccu RST_APB2_UART0>;
Hans de Goededb325e82015-04-15 19:03:49 +0200822 dmas = <&dma 6>, <&dma 6>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100823 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200824 status = "disabled";
825 };
826
Jagan Teki1e097442018-08-05 00:40:09 +0530827 uart1: serial@1c28400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200828 compatible = "snps,dw-apb-uart";
829 reg = <0x01c28400 0x400>;
830 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
831 reg-shift = <2>;
832 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530833 clocks = <&ccu CLK_APB2_UART1>;
834 resets = <&ccu RST_APB2_UART1>;
Hans de Goededb325e82015-04-15 19:03:49 +0200835 dmas = <&dma 7>, <&dma 7>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100836 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200837 status = "disabled";
838 };
839
Jagan Teki1e097442018-08-05 00:40:09 +0530840 uart2: serial@1c28800 {
Hans de Goededb325e82015-04-15 19:03:49 +0200841 compatible = "snps,dw-apb-uart";
842 reg = <0x01c28800 0x400>;
843 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
844 reg-shift = <2>;
845 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530846 clocks = <&ccu CLK_APB2_UART2>;
847 resets = <&ccu RST_APB2_UART2>;
Hans de Goededb325e82015-04-15 19:03:49 +0200848 dmas = <&dma 8>, <&dma 8>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100849 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200850 status = "disabled";
851 };
852
Jagan Teki1e097442018-08-05 00:40:09 +0530853 uart3: serial@1c28c00 {
Hans de Goededb325e82015-04-15 19:03:49 +0200854 compatible = "snps,dw-apb-uart";
855 reg = <0x01c28c00 0x400>;
856 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
857 reg-shift = <2>;
858 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530859 clocks = <&ccu CLK_APB2_UART3>;
860 resets = <&ccu RST_APB2_UART3>;
Hans de Goededb325e82015-04-15 19:03:49 +0200861 dmas = <&dma 9>, <&dma 9>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100862 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200863 status = "disabled";
864 };
865
Jagan Teki1e097442018-08-05 00:40:09 +0530866 uart4: serial@1c29000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200867 compatible = "snps,dw-apb-uart";
868 reg = <0x01c29000 0x400>;
869 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
870 reg-shift = <2>;
871 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530872 clocks = <&ccu CLK_APB2_UART4>;
873 resets = <&ccu RST_APB2_UART4>;
Hans de Goededb325e82015-04-15 19:03:49 +0200874 dmas = <&dma 10>, <&dma 10>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100875 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200876 status = "disabled";
877 };
878
Jagan Teki1e097442018-08-05 00:40:09 +0530879 uart5: serial@1c29400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200880 compatible = "snps,dw-apb-uart";
881 reg = <0x01c29400 0x400>;
882 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
883 reg-shift = <2>;
884 reg-io-width = <4>;
Jagan Teki1e097442018-08-05 00:40:09 +0530885 clocks = <&ccu CLK_APB2_UART5>;
886 resets = <&ccu RST_APB2_UART5>;
Hans de Goededb325e82015-04-15 19:03:49 +0200887 dmas = <&dma 22>, <&dma 22>;
Andre Przywara3e435d12023-04-02 01:17:07 +0100888 dma-names = "tx", "rx";
Hans de Goededb325e82015-04-15 19:03:49 +0200889 status = "disabled";
890 };
891
Jagan Teki1e097442018-08-05 00:40:09 +0530892 i2c0: i2c@1c2ac00 {
Hans de Goededb325e82015-04-15 19:03:49 +0200893 compatible = "allwinner,sun6i-a31-i2c";
894 reg = <0x01c2ac00 0x400>;
895 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530896 clocks = <&ccu CLK_APB2_I2C0>;
897 resets = <&ccu RST_APB2_I2C0>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500898 pinctrl-names = "default";
899 pinctrl-0 = <&i2c0_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +0200900 status = "disabled";
901 #address-cells = <1>;
902 #size-cells = <0>;
903 };
904
Jagan Teki1e097442018-08-05 00:40:09 +0530905 i2c1: i2c@1c2b000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200906 compatible = "allwinner,sun6i-a31-i2c";
907 reg = <0x01c2b000 0x400>;
908 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530909 clocks = <&ccu CLK_APB2_I2C1>;
910 resets = <&ccu RST_APB2_I2C1>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500911 pinctrl-names = "default";
912 pinctrl-0 = <&i2c1_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +0200913 status = "disabled";
914 #address-cells = <1>;
915 #size-cells = <0>;
916 };
917
Jagan Teki1e097442018-08-05 00:40:09 +0530918 i2c2: i2c@1c2b400 {
Hans de Goededb325e82015-04-15 19:03:49 +0200919 compatible = "allwinner,sun6i-a31-i2c";
920 reg = <0x01c2b400 0x400>;
921 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530922 clocks = <&ccu CLK_APB2_I2C2>;
923 resets = <&ccu RST_APB2_I2C2>;
Samuel Holland8d6fe612022-04-27 15:31:24 -0500924 pinctrl-names = "default";
925 pinctrl-0 = <&i2c2_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +0200926 status = "disabled";
927 #address-cells = <1>;
928 #size-cells = <0>;
929 };
930
Jagan Teki1e097442018-08-05 00:40:09 +0530931 i2c3: i2c@1c2b800 {
Hans de Goededb325e82015-04-15 19:03:49 +0200932 compatible = "allwinner,sun6i-a31-i2c";
933 reg = <0x01c2b800 0x400>;
934 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530935 clocks = <&ccu CLK_APB2_I2C3>;
936 resets = <&ccu RST_APB2_I2C3>;
Hans de Goededb325e82015-04-15 19:03:49 +0200937 status = "disabled";
938 #address-cells = <1>;
939 #size-cells = <0>;
940 };
941
Jagan Teki1e097442018-08-05 00:40:09 +0530942 gmac: ethernet@1c30000 {
Hans de Goededb325e82015-04-15 19:03:49 +0200943 compatible = "allwinner,sun7i-a20-gmac";
944 reg = <0x01c30000 0x1054>;
945 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
946 interrupt-names = "macirq";
Jagan Teki1e097442018-08-05 00:40:09 +0530947 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
Hans de Goededb325e82015-04-15 19:03:49 +0200948 clock-names = "stmmaceth", "allwinner_gmac_tx";
Jagan Teki1e097442018-08-05 00:40:09 +0530949 resets = <&ccu RST_AHB1_EMAC>;
Hans de Goededb325e82015-04-15 19:03:49 +0200950 reset-names = "stmmaceth";
951 snps,pbl = <2>;
952 snps,fixed-burst;
953 snps,force_sf_dma_mode;
954 status = "disabled";
Samuel Holland8d6fe612022-04-27 15:31:24 -0500955
956 mdio: mdio {
957 compatible = "snps,dwmac-mdio";
958 #address-cells = <1>;
959 #size-cells = <0>;
960 };
Hans de Goededb325e82015-04-15 19:03:49 +0200961 };
962
Jagan Teki1e097442018-08-05 00:40:09 +0530963 crypto: crypto-engine@1c15000 {
964 compatible = "allwinner,sun6i-a31-crypto",
965 "allwinner,sun4i-a10-crypto";
Hans de Goede19888a42016-03-14 17:37:09 +0100966 reg = <0x01c15000 0x1000>;
967 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530968 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
Hans de Goede19888a42016-03-14 17:37:09 +0100969 clock-names = "ahb", "mod";
Jagan Teki1e097442018-08-05 00:40:09 +0530970 resets = <&ccu RST_AHB1_SS>;
Hans de Goede19888a42016-03-14 17:37:09 +0100971 reset-names = "ahb";
972 };
973
Jagan Teki1e097442018-08-05 00:40:09 +0530974 codec: codec@1c22c00 {
975 #sound-dai-cells = <0>;
976 compatible = "allwinner,sun6i-a31-codec";
977 reg = <0x01c22c00 0x400>;
978 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
979 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
980 clock-names = "apb", "codec";
981 resets = <&ccu RST_APB1_CODEC>;
982 dmas = <&dma 15>, <&dma 15>;
983 dma-names = "rx", "tx";
984 status = "disabled";
985 };
986
987 timer@1c60000 {
Hans de Goede6ef1be32015-06-02 15:53:40 +0200988 compatible = "allwinner,sun6i-a31-hstimer",
989 "allwinner,sun7i-a20-hstimer";
Hans de Goededb325e82015-04-15 19:03:49 +0200990 reg = <0x01c60000 0x1000>;
991 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
992 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
993 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
994 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +0530995 clocks = <&ccu CLK_AHB1_HSTIMER>;
996 resets = <&ccu RST_AHB1_HSTIMER>;
Hans de Goededb325e82015-04-15 19:03:49 +0200997 };
998
Jagan Teki1e097442018-08-05 00:40:09 +0530999 spi0: spi@1c68000 {
Hans de Goededb325e82015-04-15 19:03:49 +02001000 compatible = "allwinner,sun6i-a31-spi";
1001 reg = <0x01c68000 0x1000>;
1002 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +05301003 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001004 clock-names = "ahb", "mod";
1005 dmas = <&dma 23>, <&dma 23>;
1006 dma-names = "rx", "tx";
Jagan Teki1e097442018-08-05 00:40:09 +05301007 resets = <&ccu RST_AHB1_SPI0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001008 status = "disabled";
Samuel Holland8d6fe612022-04-27 15:31:24 -05001009 #address-cells = <1>;
1010 #size-cells = <0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001011 };
1012
Jagan Teki1e097442018-08-05 00:40:09 +05301013 spi1: spi@1c69000 {
Hans de Goededb325e82015-04-15 19:03:49 +02001014 compatible = "allwinner,sun6i-a31-spi";
1015 reg = <0x01c69000 0x1000>;
1016 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +05301017 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
Hans de Goededb325e82015-04-15 19:03:49 +02001018 clock-names = "ahb", "mod";
1019 dmas = <&dma 24>, <&dma 24>;
1020 dma-names = "rx", "tx";
Jagan Teki1e097442018-08-05 00:40:09 +05301021 resets = <&ccu RST_AHB1_SPI1>;
Hans de Goededb325e82015-04-15 19:03:49 +02001022 status = "disabled";
Samuel Holland8d6fe612022-04-27 15:31:24 -05001023 #address-cells = <1>;
1024 #size-cells = <0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001025 };
1026
Jagan Teki1e097442018-08-05 00:40:09 +05301027 spi2: spi@1c6a000 {
Hans de Goededb325e82015-04-15 19:03:49 +02001028 compatible = "allwinner,sun6i-a31-spi";
1029 reg = <0x01c6a000 0x1000>;
1030 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +05301031 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
Hans de Goededb325e82015-04-15 19:03:49 +02001032 clock-names = "ahb", "mod";
1033 dmas = <&dma 25>, <&dma 25>;
1034 dma-names = "rx", "tx";
Jagan Teki1e097442018-08-05 00:40:09 +05301035 resets = <&ccu RST_AHB1_SPI2>;
Hans de Goededb325e82015-04-15 19:03:49 +02001036 status = "disabled";
Samuel Holland8d6fe612022-04-27 15:31:24 -05001037 #address-cells = <1>;
1038 #size-cells = <0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001039 };
1040
Jagan Teki1e097442018-08-05 00:40:09 +05301041 spi3: spi@1c6b000 {
Hans de Goededb325e82015-04-15 19:03:49 +02001042 compatible = "allwinner,sun6i-a31-spi";
1043 reg = <0x01c6b000 0x1000>;
1044 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Jagan Teki1e097442018-08-05 00:40:09 +05301045 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
Hans de Goededb325e82015-04-15 19:03:49 +02001046 clock-names = "ahb", "mod";
1047 dmas = <&dma 26>, <&dma 26>;
1048 dma-names = "rx", "tx";
Jagan Teki1e097442018-08-05 00:40:09 +05301049 resets = <&ccu RST_AHB1_SPI3>;
Hans de Goededb325e82015-04-15 19:03:49 +02001050 status = "disabled";
Samuel Holland8d6fe612022-04-27 15:31:24 -05001051 #address-cells = <1>;
1052 #size-cells = <0>;
Hans de Goededb325e82015-04-15 19:03:49 +02001053 };
1054
Jagan Teki1e097442018-08-05 00:40:09 +05301055 gic: interrupt-controller@1c81000 {
Samuel Holland8d6fe612022-04-27 15:31:24 -05001056 compatible = "arm,gic-400";
Hans de Goededb325e82015-04-15 19:03:49 +02001057 reg = <0x01c81000 0x1000>,
Jagan Teki1e097442018-08-05 00:40:09 +05301058 <0x01c82000 0x2000>,
Hans de Goededb325e82015-04-15 19:03:49 +02001059 <0x01c84000 0x2000>,
1060 <0x01c86000 0x2000>;
1061 interrupt-controller;
1062 #interrupt-cells = <3>;
1063 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1064 };
1065
Jagan Teki1e097442018-08-05 00:40:09 +05301066 fe0: display-frontend@1e00000 {
1067 compatible = "allwinner,sun6i-a31-display-frontend";
1068 reg = <0x01e00000 0x20000>;
1069 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1070 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
1071 <&ccu CLK_DRAM_FE0>;
1072 clock-names = "ahb", "mod",
1073 "ram";
1074 resets = <&ccu RST_AHB1_FE0>;
1075
1076 ports {
1077 #address-cells = <1>;
1078 #size-cells = <0>;
1079
1080 fe0_out: port@1 {
1081 #address-cells = <1>;
1082 #size-cells = <0>;
1083 reg = <1>;
1084
1085 fe0_out_be0: endpoint@0 {
1086 reg = <0>;
1087 remote-endpoint = <&be0_in_fe0>;
1088 };
1089
1090 fe0_out_be1: endpoint@1 {
1091 reg = <1>;
1092 remote-endpoint = <&be1_in_fe0>;
1093 };
1094 };
1095 };
1096 };
1097
1098 fe1: display-frontend@1e20000 {
1099 compatible = "allwinner,sun6i-a31-display-frontend";
1100 reg = <0x01e20000 0x20000>;
1101 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
1102 clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>,
1103 <&ccu CLK_DRAM_FE1>;
1104 clock-names = "ahb", "mod",
1105 "ram";
1106 resets = <&ccu RST_AHB1_FE1>;
1107
1108 ports {
1109 #address-cells = <1>;
1110 #size-cells = <0>;
1111
1112 fe1_out: port@1 {
1113 #address-cells = <1>;
1114 #size-cells = <0>;
1115 reg = <1>;
1116
1117 fe1_out_be0: endpoint@0 {
1118 reg = <0>;
1119 remote-endpoint = <&be0_in_fe1>;
1120 };
1121
1122 fe1_out_be1: endpoint@1 {
1123 reg = <1>;
1124 remote-endpoint = <&be1_in_fe1>;
1125 };
1126 };
1127 };
1128 };
1129
1130 be1: display-backend@1e40000 {
1131 compatible = "allwinner,sun6i-a31-display-backend";
1132 reg = <0x01e40000 0x10000>;
1133 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1134 clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>,
1135 <&ccu CLK_DRAM_BE1>;
1136 clock-names = "ahb", "mod",
1137 "ram";
1138 resets = <&ccu RST_AHB1_BE1>;
1139
Jagan Teki1e097442018-08-05 00:40:09 +05301140 ports {
1141 #address-cells = <1>;
1142 #size-cells = <0>;
1143
1144 be1_in: port@0 {
1145 #address-cells = <1>;
1146 #size-cells = <0>;
1147 reg = <0>;
1148
1149 be1_in_fe0: endpoint@0 {
1150 reg = <0>;
1151 remote-endpoint = <&fe0_out_be1>;
1152 };
1153
1154 be1_in_fe1: endpoint@1 {
1155 reg = <1>;
1156 remote-endpoint = <&fe1_out_be1>;
1157 };
1158 };
1159
1160 be1_out: port@1 {
1161 #address-cells = <1>;
1162 #size-cells = <0>;
1163 reg = <1>;
1164
1165 be1_out_drc1: endpoint@1 {
1166 reg = <1>;
1167 remote-endpoint = <&drc1_in_be1>;
1168 };
1169 };
1170 };
1171 };
1172
1173 drc1: drc@1e50000 {
1174 compatible = "allwinner,sun6i-a31-drc";
1175 reg = <0x01e50000 0x10000>;
1176 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1177 clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>,
1178 <&ccu CLK_DRAM_DRC1>;
1179 clock-names = "ahb", "mod",
1180 "ram";
1181 resets = <&ccu RST_AHB1_DRC1>;
1182
Jagan Teki1e097442018-08-05 00:40:09 +05301183 ports {
1184 #address-cells = <1>;
1185 #size-cells = <0>;
1186
1187 drc1_in: port@0 {
1188 #address-cells = <1>;
1189 #size-cells = <0>;
1190 reg = <0>;
1191
1192 drc1_in_be1: endpoint@1 {
1193 reg = <1>;
1194 remote-endpoint = <&be1_out_drc1>;
1195 };
1196 };
1197
1198 drc1_out: port@1 {
1199 #address-cells = <1>;
1200 #size-cells = <0>;
1201 reg = <1>;
1202
1203 drc1_out_tcon0: endpoint@0 {
1204 reg = <0>;
1205 remote-endpoint = <&tcon0_in_drc1>;
1206 };
1207
1208 drc1_out_tcon1: endpoint@1 {
1209 reg = <1>;
1210 remote-endpoint = <&tcon1_in_drc1>;
1211 };
1212 };
1213 };
1214 };
1215
1216 be0: display-backend@1e60000 {
1217 compatible = "allwinner,sun6i-a31-display-backend";
1218 reg = <0x01e60000 0x10000>;
1219 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1220 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
1221 <&ccu CLK_DRAM_BE0>;
1222 clock-names = "ahb", "mod",
1223 "ram";
1224 resets = <&ccu RST_AHB1_BE0>;
1225
Jagan Teki1e097442018-08-05 00:40:09 +05301226 ports {
1227 #address-cells = <1>;
1228 #size-cells = <0>;
1229
1230 be0_in: port@0 {
1231 #address-cells = <1>;
1232 #size-cells = <0>;
1233 reg = <0>;
1234
1235 be0_in_fe0: endpoint@0 {
1236 reg = <0>;
1237 remote-endpoint = <&fe0_out_be0>;
1238 };
1239
1240 be0_in_fe1: endpoint@1 {
1241 reg = <1>;
1242 remote-endpoint = <&fe1_out_be0>;
1243 };
1244 };
1245
1246 be0_out: port@1 {
Jagan Teki1e097442018-08-05 00:40:09 +05301247 reg = <1>;
1248
Samuel Holland8d6fe612022-04-27 15:31:24 -05001249 be0_out_drc0: endpoint {
Jagan Teki1e097442018-08-05 00:40:09 +05301250 remote-endpoint = <&drc0_in_be0>;
1251 };
1252 };
1253 };
1254 };
1255
1256 drc0: drc@1e70000 {
1257 compatible = "allwinner,sun6i-a31-drc";
1258 reg = <0x01e70000 0x10000>;
1259 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1260 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
1261 <&ccu CLK_DRAM_DRC0>;
1262 clock-names = "ahb", "mod",
1263 "ram";
1264 resets = <&ccu RST_AHB1_DRC0>;
1265
Jagan Teki1e097442018-08-05 00:40:09 +05301266 ports {
1267 #address-cells = <1>;
1268 #size-cells = <0>;
1269
1270 drc0_in: port@0 {
Jagan Teki1e097442018-08-05 00:40:09 +05301271 reg = <0>;
1272
Samuel Holland8d6fe612022-04-27 15:31:24 -05001273 drc0_in_be0: endpoint {
Jagan Teki1e097442018-08-05 00:40:09 +05301274 remote-endpoint = <&be0_out_drc0>;
1275 };
1276 };
1277
1278 drc0_out: port@1 {
1279 #address-cells = <1>;
1280 #size-cells = <0>;
1281 reg = <1>;
1282
1283 drc0_out_tcon0: endpoint@0 {
1284 reg = <0>;
1285 remote-endpoint = <&tcon0_in_drc0>;
1286 };
1287
1288 drc0_out_tcon1: endpoint@1 {
1289 reg = <1>;
1290 remote-endpoint = <&tcon1_in_drc0>;
1291 };
1292 };
1293 };
1294 };
1295
1296 rtc: rtc@1f00000 {
Samuel Holland8d6fe612022-04-27 15:31:24 -05001297 #clock-cells = <1>;
Hans de Goededb325e82015-04-15 19:03:49 +02001298 compatible = "allwinner,sun6i-a31-rtc";
1299 reg = <0x01f00000 0x54>;
1300 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1301 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Samuel Holland8d6fe612022-04-27 15:31:24 -05001302 clocks = <&osc32k>;
1303 clock-output-names = "osc32k";
Hans de Goededb325e82015-04-15 19:03:49 +02001304 };
1305
Samuel Holland8d6fe612022-04-27 15:31:24 -05001306 r_intc: interrupt-controller@1f00c00 {
Jagan Teki1e097442018-08-05 00:40:09 +05301307 compatible = "allwinner,sun6i-a31-r-intc";
Hans de Goededb325e82015-04-15 19:03:49 +02001308 interrupt-controller;
1309 #interrupt-cells = <2>;
Jagan Teki1e097442018-08-05 00:40:09 +05301310 reg = <0x01f00c00 0x400>;
Hans de Goededb325e82015-04-15 19:03:49 +02001311 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1312 };
1313
Jagan Teki1e097442018-08-05 00:40:09 +05301314 prcm@1f01400 {
Hans de Goededb325e82015-04-15 19:03:49 +02001315 compatible = "allwinner,sun6i-a31-prcm";
1316 reg = <0x01f01400 0x200>;
1317
Andre Przywara3b798212024-04-19 17:59:52 +01001318 ar100: ar100-clk {
Hans de Goededb325e82015-04-15 19:03:49 +02001319 compatible = "allwinner,sun6i-a31-ar100-clk";
1320 #clock-cells = <0>;
Andre Przywarafa15e502022-09-13 00:52:52 +01001321 clocks = <&rtc CLK_OSC32K>, <&osc24M>,
Jagan Teki1e097442018-08-05 00:40:09 +05301322 <&ccu CLK_PLL_PERIPH>,
1323 <&ccu CLK_PLL_PERIPH>;
Hans de Goededb325e82015-04-15 19:03:49 +02001324 clock-output-names = "ar100";
1325 };
1326
Andre Przywara3b798212024-04-19 17:59:52 +01001327 ahb0: ahb0-clk {
Hans de Goededb325e82015-04-15 19:03:49 +02001328 compatible = "fixed-factor-clock";
1329 #clock-cells = <0>;
1330 clock-div = <1>;
1331 clock-mult = <1>;
1332 clocks = <&ar100>;
1333 clock-output-names = "ahb0";
1334 };
1335
Andre Przywara3b798212024-04-19 17:59:52 +01001336 apb0: apb0-clk {
Hans de Goededb325e82015-04-15 19:03:49 +02001337 compatible = "allwinner,sun6i-a31-apb0-clk";
1338 #clock-cells = <0>;
1339 clocks = <&ahb0>;
1340 clock-output-names = "apb0";
1341 };
1342
Andre Przywara3b798212024-04-19 17:59:52 +01001343 apb0_gates: apb0-gates-clk {
Hans de Goededb325e82015-04-15 19:03:49 +02001344 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1345 #clock-cells = <1>;
1346 clocks = <&apb0>;
1347 clock-output-names = "apb0_pio", "apb0_ir",
1348 "apb0_timer", "apb0_p2wi",
1349 "apb0_uart", "apb0_1wire",
1350 "apb0_i2c";
1351 };
1352
Andre Przywara3b798212024-04-19 17:59:52 +01001353 ir_clk: ir-clk {
Hans de Goededb325e82015-04-15 19:03:49 +02001354 #clock-cells = <0>;
1355 compatible = "allwinner,sun4i-a10-mod0-clk";
Andre Przywarafa15e502022-09-13 00:52:52 +01001356 clocks = <&rtc CLK_OSC32K>, <&osc24M>;
Hans de Goededb325e82015-04-15 19:03:49 +02001357 clock-output-names = "ir";
1358 };
1359
Andre Przywara3b798212024-04-19 17:59:52 +01001360 apb0_rst: apb0-rst {
Hans de Goededb325e82015-04-15 19:03:49 +02001361 compatible = "allwinner,sun6i-a31-clock-reset";
1362 #reset-cells = <1>;
1363 };
1364 };
1365
Jagan Teki1e097442018-08-05 00:40:09 +05301366 cpucfg@1f01c00 {
Hans de Goededb325e82015-04-15 19:03:49 +02001367 compatible = "allwinner,sun6i-a31-cpuconfig";
1368 reg = <0x01f01c00 0x300>;
1369 };
1370
Jagan Teki1e097442018-08-05 00:40:09 +05301371 ir: ir@1f02000 {
Samuel Holland8d6fe612022-04-27 15:31:24 -05001372 compatible = "allwinner,sun6i-a31-ir";
Hans de Goededb325e82015-04-15 19:03:49 +02001373 clocks = <&apb0_gates 1>, <&ir_clk>;
1374 clock-names = "apb", "ir";
1375 resets = <&apb0_rst 1>;
1376 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1377 reg = <0x01f02000 0x40>;
1378 status = "disabled";
1379 };
1380
Jagan Teki1e097442018-08-05 00:40:09 +05301381 r_pio: pinctrl@1f02c00 {
Hans de Goededb325e82015-04-15 19:03:49 +02001382 compatible = "allwinner,sun6i-a31-r-pinctrl";
1383 reg = <0x01f02c00 0x400>;
1384 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1385 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
Andre Przywarafa15e502022-09-13 00:52:52 +01001386 clocks = <&apb0_gates 0>, <&osc24M>, <&rtc CLK_OSC32K>;
Jagan Teki1e097442018-08-05 00:40:09 +05301387 clock-names = "apb", "hosc", "losc";
Hans de Goededb325e82015-04-15 19:03:49 +02001388 gpio-controller;
1389 interrupt-controller;
Hans de Goede19888a42016-03-14 17:37:09 +01001390 #interrupt-cells = <3>;
Hans de Goededb325e82015-04-15 19:03:49 +02001391 #gpio-cells = <3>;
1392
Samuel Holland8d6fe612022-04-27 15:31:24 -05001393 s_ir_rx_pin: s-ir-rx-pin {
Jagan Teki1e097442018-08-05 00:40:09 +05301394 pins = "PL4";
1395 function = "s_ir";
Hans de Goededb325e82015-04-15 19:03:49 +02001396 };
1397
Samuel Holland8d6fe612022-04-27 15:31:24 -05001398 s_p2wi_pins: s-p2wi-pins {
Jagan Teki1e097442018-08-05 00:40:09 +05301399 pins = "PL0", "PL1";
1400 function = "s_p2wi";
Hans de Goededb325e82015-04-15 19:03:49 +02001401 };
1402 };
1403
Jagan Teki1e097442018-08-05 00:40:09 +05301404 p2wi: i2c@1f03400 {
Hans de Goededb325e82015-04-15 19:03:49 +02001405 compatible = "allwinner,sun6i-a31-p2wi";
1406 reg = <0x01f03400 0x400>;
1407 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1408 clocks = <&apb0_gates 3>;
1409 clock-frequency = <100000>;
1410 resets = <&apb0_rst 3>;
1411 pinctrl-names = "default";
Samuel Holland8d6fe612022-04-27 15:31:24 -05001412 pinctrl-0 = <&s_p2wi_pins>;
Hans de Goededb325e82015-04-15 19:03:49 +02001413 status = "disabled";
1414 #address-cells = <1>;
1415 #size-cells = <0>;
1416 };
1417 };
1418};