1 // SPDX-License-Identifier: GPL-2.0
3 * DTS File for HiSilicon Hi3798cv200 SoC.
5 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
8 #include <dt-bindings/clock/histb-clock.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/phy/phy.h>
12 #include <dt-bindings/reset/ti-syscon.h>
15 compatible = "hisilicon,hi3798cv200";
16 interrupt-parent = <&gic>;
21 compatible = "arm,psci-0.2";
30 compatible = "arm,cortex-a53";
33 enable-method = "psci";
37 compatible = "arm,cortex-a53";
40 enable-method = "psci";
44 compatible = "arm,cortex-a53";
47 enable-method = "psci";
51 compatible = "arm,cortex-a53";
54 enable-method = "psci";
58 gic: interrupt-controller@f1001000 {
59 compatible = "arm,gic-400";
60 reg = <0x0 0xf1001000 0x0 0x1000>, /* GICD */
61 <0x0 0xf1002000 0x0 0x100>; /* GICC */
63 #interrupt-cells = <3>;
68 compatible = "arm,armv8-timer";
69 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
71 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
73 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
75 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
80 compatible = "simple-bus";
83 ranges = <0x0 0x0 0xf0000000 0x10000000>;
85 crg: clock-reset-controller@8a22000 {
86 compatible = "hisilicon,hi3798cv200-crg", "syscon", "simple-mfd";
87 reg = <0x8a22000 0x1000>;
91 gmacphyrst: reset-controller {
92 compatible = "ti,syscon-reset";
95 0xcc 12 0xcc 12 0 0 (ASSERT_CLEAR | DEASSERT_SET | STATUS_NONE)
96 0xcc 13 0xcc 13 0 0 (ASSERT_CLEAR | DEASSERT_SET | STATUS_NONE)
101 sysctrl: system-controller@8000000 {
102 compatible = "hisilicon,hi3798cv200-sysctrl", "syscon";
103 reg = <0x8000000 0x1000>;
108 perictrl: peripheral-controller@8a20000 {
109 compatible = "hisilicon,hi3798cv200-perictrl", "syscon",
111 reg = <0x8a20000 0x1000>;
112 #address-cells = <1>;
114 ranges = <0x0 0x8a20000 0x1000>;
116 usb2_phy1: usb2-phy@120 {
117 compatible = "hisilicon,hi3798cv200-usb2-phy";
119 clocks = <&crg HISTB_USB2_PHY1_REF_CLK>;
120 resets = <&crg 0xbc 4>;
121 #address-cells = <1>;
124 usb2_phy1_port0: phy@0 {
127 resets = <&crg 0xbc 8>;
130 usb2_phy1_port1: phy@1 {
133 resets = <&crg 0xbc 9>;
137 usb2_phy2: usb2-phy@124 {
138 compatible = "hisilicon,hi3798cv200-usb2-phy";
140 clocks = <&crg HISTB_USB2_PHY2_REF_CLK>;
141 resets = <&crg 0xbc 6>;
142 #address-cells = <1>;
145 usb2_phy2_port0: phy@0 {
148 resets = <&crg 0xbc 10>;
153 compatible = "hisilicon,hi3798cv200-combphy";
156 clocks = <&crg HISTB_COMBPHY0_CLK>;
157 resets = <&crg 0x188 4>;
158 assigned-clocks = <&crg HISTB_COMBPHY0_CLK>;
159 assigned-clock-rates = <100000000>;
160 hisilicon,fixed-mode = <PHY_TYPE_USB3>;
164 compatible = "hisilicon,hi3798cv200-combphy";
167 clocks = <&crg HISTB_COMBPHY1_CLK>;
168 resets = <&crg 0x188 12>;
169 assigned-clocks = <&crg HISTB_COMBPHY1_CLK>;
170 assigned-clock-rates = <100000000>;
171 hisilicon,mode-select-bits = <0x0008 11 (0x3 << 11)>;
175 pmx0: pinconf@8a21000 {
176 compatible = "pinconf-single";
177 reg = <0x8a21000 0x180>;
178 pinctrl-single,register-width = <32>;
179 pinctrl-single,function-mask = <7>;
180 pinctrl-single,gpio-range = <
181 &range 0 8 2 /* GPIO 0 */
182 &range 8 1 0 /* GPIO 1 */
187 &range 16 5 0 /* GPIO 2 */
189 &range 24 4 1 /* GPIO 3 */
193 &range 30 4 2 /* GPIO 4 */
196 &range 38 3 2 /* GPIO 6 */
198 &range 46 8 1 /* GPIO 7 */
199 &range 54 8 1 /* GPIO 8 */
200 &range 64 7 1 /* GPIO 9 */
202 &range 72 6 1 /* GPIO 10 */
205 &range 80 6 1 /* GPIO 11 */
207 &range 88 8 0 /* GPIO 12 */
211 #pinctrl-single,gpio-range-cells = <3>;
215 uart0: serial@8b00000 {
216 compatible = "arm,pl011", "arm,primecell";
217 reg = <0x8b00000 0x1000>;
218 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
219 clocks = <&sysctrl HISTB_UART0_CLK>, <&sysctrl HISTB_UART0_CLK>;
220 clock-names = "uartclk", "apb_pclk";
224 uart2: serial@8b02000 {
225 compatible = "arm,pl011", "arm,primecell";
226 reg = <0x8b02000 0x1000>;
227 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
228 clocks = <&crg HISTB_UART2_CLK>, <&crg HISTB_UART2_CLK>;
229 clock-names = "uartclk", "apb_pclk";
234 compatible = "hisilicon,hix5hd2-i2c";
235 reg = <0x8b10000 0x1000>;
236 #address-cells = <1>;
238 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
239 clock-frequency = <400000>;
240 clocks = <&crg HISTB_I2C0_CLK>;
245 compatible = "hisilicon,hix5hd2-i2c";
246 reg = <0x8b11000 0x1000>;
247 #address-cells = <1>;
249 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
250 clock-frequency = <400000>;
251 clocks = <&crg HISTB_I2C1_CLK>;
256 compatible = "hisilicon,hix5hd2-i2c";
257 reg = <0x8b12000 0x1000>;
258 #address-cells = <1>;
260 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
261 clock-frequency = <400000>;
262 clocks = <&crg HISTB_I2C2_CLK>;
267 compatible = "hisilicon,hix5hd2-i2c";
268 reg = <0x8b13000 0x1000>;
269 #address-cells = <1>;
271 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
272 clock-frequency = <400000>;
273 clocks = <&crg HISTB_I2C3_CLK>;
278 compatible = "hisilicon,hix5hd2-i2c";
279 reg = <0x8b14000 0x1000>;
280 #address-cells = <1>;
282 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
283 clock-frequency = <400000>;
284 clocks = <&crg HISTB_I2C4_CLK>;
289 compatible = "arm,pl022", "arm,primecell";
290 reg = <0x8b1a000 0x1000>;
291 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
293 cs-gpios = <&gpio7 1 0>;
294 clocks = <&crg HISTB_SPI0_CLK>, <&crg HISTB_SPI0_CLK>;
295 clock-names = "sspclk", "apb_pclk";
296 #address-cells = <1>;
302 compatible = "snps,dw-mshc";
303 reg = <0x9820000 0x10000>;
304 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
305 clocks = <&crg HISTB_SDIO0_CIU_CLK>,
306 <&crg HISTB_SDIO0_BIU_CLK>;
307 clock-names = "biu", "ciu";
308 resets = <&crg 0x9c 4>;
309 reset-names = "reset";
314 compatible = "hisilicon,hi3798cv200-dw-mshc";
315 reg = <0x9830000 0x10000>;
316 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
317 clocks = <&crg HISTB_MMC_CIU_CLK>,
318 <&crg HISTB_MMC_BIU_CLK>,
319 <&crg HISTB_MMC_SAMPLE_CLK>,
320 <&crg HISTB_MMC_DRV_CLK>;
321 clock-names = "ciu", "biu", "ciu-sample", "ciu-drive";
322 resets = <&crg 0xa0 4>;
323 reset-names = "reset";
327 gpio0: gpio@8b20000 {
328 compatible = "arm,pl061", "arm,primecell";
329 reg = <0x8b20000 0x1000>;
330 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
333 interrupt-controller;
334 #interrupt-cells = <2>;
335 gpio-ranges = <&pmx0 0 0 8>;
336 clocks = <&crg HISTB_APB_CLK>;
337 clock-names = "apb_pclk";
341 gpio1: gpio@8b21000 {
342 compatible = "arm,pl061", "arm,primecell";
343 reg = <0x8b21000 0x1000>;
344 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
347 interrupt-controller;
348 #interrupt-cells = <2>;
356 clocks = <&crg HISTB_APB_CLK>;
357 clock-names = "apb_pclk";
361 gpio2: gpio@8b22000 {
362 compatible = "arm,pl061", "arm,primecell";
363 reg = <0x8b22000 0x1000>;
364 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
367 interrupt-controller;
368 #interrupt-cells = <2>;
369 gpio-ranges = <&pmx0 0 16 5 &pmx0 5 21 3>;
370 clocks = <&crg HISTB_APB_CLK>;
371 clock-names = "apb_pclk";
375 gpio3: gpio@8b23000 {
376 compatible = "arm,pl061", "arm,primecell";
377 reg = <0x8b23000 0x1000>;
378 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
381 interrupt-controller;
382 #interrupt-cells = <2>;
389 clocks = <&crg HISTB_APB_CLK>;
390 clock-names = "apb_pclk";
394 gpio4: gpio@8b24000 {
395 compatible = "arm,pl061", "arm,primecell";
396 reg = <0x8b24000 0x1000>;
397 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
400 interrupt-controller;
401 #interrupt-cells = <2>;
402 gpio-ranges = <&pmx0 0 30 4 &pmx0 4 34 3 &pmx0 7 37 1>;
403 clocks = <&crg HISTB_APB_CLK>;
404 clock-names = "apb_pclk";
408 gpio5: gpio@8004000 {
409 compatible = "arm,pl061", "arm,primecell";
410 reg = <0x8004000 0x1000>;
411 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
414 interrupt-controller;
415 #interrupt-cells = <2>;
416 clocks = <&crg HISTB_APB_CLK>;
417 clock-names = "apb_pclk";
421 gpio6: gpio@8b26000 {
422 compatible = "arm,pl061", "arm,primecell";
423 reg = <0x8b26000 0x1000>;
424 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
427 interrupt-controller;
428 #interrupt-cells = <2>;
429 gpio-ranges = <&pmx0 0 38 3 &pmx0 0 41 5>;
430 clocks = <&crg HISTB_APB_CLK>;
431 clock-names = "apb_pclk";
435 gpio7: gpio@8b27000 {
436 compatible = "arm,pl061", "arm,primecell";
437 reg = <0x8b27000 0x1000>;
438 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
441 interrupt-controller;
442 #interrupt-cells = <2>;
443 gpio-ranges = <&pmx0 0 46 8>;
444 clocks = <&crg HISTB_APB_CLK>;
445 clock-names = "apb_pclk";
449 gpio8: gpio@8b28000 {
450 compatible = "arm,pl061", "arm,primecell";
451 reg = <0x8b28000 0x1000>;
452 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
455 interrupt-controller;
456 #interrupt-cells = <2>;
457 gpio-ranges = <&pmx0 0 54 8>;
458 clocks = <&crg HISTB_APB_CLK>;
459 clock-names = "apb_pclk";
463 gpio9: gpio@8b29000 {
464 compatible = "arm,pl061", "arm,primecell";
465 reg = <0x8b29000 0x1000>;
466 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
469 interrupt-controller;
470 #interrupt-cells = <2>;
471 gpio-ranges = <&pmx0 0 64 7 &pmx0 71 1>;
472 clocks = <&crg HISTB_APB_CLK>;
473 clock-names = "apb_pclk";
477 gpio10: gpio@8b2a000 {
478 compatible = "arm,pl061", "arm,primecell";
479 reg = <0x8b2a000 0x1000>;
480 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
483 interrupt-controller;
484 #interrupt-cells = <2>;
485 gpio-ranges = <&pmx0 0 72 6 &pmx0 6 78 1 &pmx0 7 79 1>;
486 clocks = <&crg HISTB_APB_CLK>;
487 clock-names = "apb_pclk";
491 gpio11: gpio@8b2b000 {
492 compatible = "arm,pl061", "arm,primecell";
493 reg = <0x8b2b000 0x1000>;
494 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
497 interrupt-controller;
498 #interrupt-cells = <2>;
499 gpio-ranges = <&pmx0 0 80 6 &pmx0 6 70 2>;
500 clocks = <&crg HISTB_APB_CLK>;
501 clock-names = "apb_pclk";
505 gpio12: gpio@8b2c000 {
506 compatible = "arm,pl061", "arm,primecell";
507 reg = <0x8b2c000 0x1000>;
508 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
511 interrupt-controller;
512 #interrupt-cells = <2>;
513 gpio-ranges = <&pmx0 0 88 8>;
514 clocks = <&crg HISTB_APB_CLK>;
515 clock-names = "apb_pclk";
519 gmac0: ethernet@9840000 {
520 compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
521 reg = <0x9840000 0x1000>,
523 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
524 clocks = <&crg HISTB_ETH0_MAC_CLK>,
525 <&crg HISTB_ETH0_MACIF_CLK>;
526 clock-names = "mac_core", "mac_ifc";
527 resets = <&crg 0xcc 8>,
530 reset-names = "mac_core", "mac_ifc", "phy";
534 gmac1: ethernet@9841000 {
535 compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
536 reg = <0x9841000 0x1000>,
538 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
539 clocks = <&crg HISTB_ETH1_MAC_CLK>,
540 <&crg HISTB_ETH1_MACIF_CLK>;
541 clock-names = "mac_core", "mac_ifc";
542 resets = <&crg 0xcc 9>,
545 reset-names = "mac_core", "mac_ifc", "phy";
550 compatible = "hisilicon,hix5hd2-ir";
551 reg = <0x8001000 0x1000>;
552 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
553 clocks = <&sysctrl HISTB_IR_CLK>;
558 compatible = "hisilicon,hi3798cv200-pcie";
559 reg = <0x9860000 0x1000>,
561 <0x2000000 0x01000000>;
562 reg-names = "control", "rc-dbi", "config";
563 #address-cells = <3>;
566 bus-range = <0x00 0xff>;
568 ranges = <0x81000000 0x0 0x00000000 0x4f00000 0x0 0x100000
569 0x82000000 0x0 0x3000000 0x3000000 0x0 0x01f00000>;
570 interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
571 interrupt-names = "msi";
572 #interrupt-cells = <1>;
573 interrupt-map-mask = <0 0 0 0>;
574 interrupt-map = <0 0 0 0 &gic 0 131 IRQ_TYPE_LEVEL_HIGH>;
575 clocks = <&crg HISTB_PCIE_AUX_CLK>,
576 <&crg HISTB_PCIE_PIPE_CLK>,
577 <&crg HISTB_PCIE_SYS_CLK>,
578 <&crg HISTB_PCIE_BUS_CLK>;
579 clock-names = "aux", "pipe", "sys", "bus";
580 resets = <&crg 0x18c 6>, <&crg 0x18c 5>, <&crg 0x18c 4>;
581 reset-names = "soft", "sys", "bus";
582 phys = <&combphy1 PHY_TYPE_PCIE>;
588 compatible = "generic-ohci";
589 reg = <0x9880000 0x10000>;
590 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
591 clocks = <&crg HISTB_USB2_BUS_CLK>,
592 <&crg HISTB_USB2_12M_CLK>,
593 <&crg HISTB_USB2_48M_CLK>;
594 clock-names = "bus", "clk12", "clk48";
595 resets = <&crg 0xb8 12>;
597 phys = <&usb2_phy1_port0>;
603 compatible = "generic-ehci";
604 reg = <0x9890000 0x10000>;
605 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
606 clocks = <&crg HISTB_USB2_BUS_CLK>,
607 <&crg HISTB_USB2_PHY_CLK>,
608 <&crg HISTB_USB2_UTMI_CLK>;
609 clock-names = "bus", "phy", "utmi";
610 resets = <&crg 0xb8 12>,
613 reset-names = "bus", "phy", "utmi";
614 phys = <&usb2_phy1_port0>;