2 * DTS File for HiSilicon Hi3798cv200 SoC.
4 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
6 * Released under the GPLv2 only.
7 * SPDX-License-Identifier: GPL-2.0
10 #include <dt-bindings/clock/histb-clock.h>
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/phy/phy.h>
14 #include <dt-bindings/reset/ti-syscon.h>
17 compatible = "hisilicon,hi3798cv200";
18 interrupt-parent = <&gic>;
23 compatible = "arm,psci-0.2";
32 compatible = "arm,cortex-a53";
35 enable-method = "psci";
39 compatible = "arm,cortex-a53";
42 enable-method = "psci";
46 compatible = "arm,cortex-a53";
49 enable-method = "psci";
53 compatible = "arm,cortex-a53";
56 enable-method = "psci";
60 gic: interrupt-controller@f1001000 {
61 compatible = "arm,gic-400";
62 reg = <0x0 0xf1001000 0x0 0x1000>, /* GICD */
63 <0x0 0xf1002000 0x0 0x100>; /* GICC */
65 #interrupt-cells = <3>;
70 compatible = "arm,armv8-timer";
71 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
73 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
75 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
77 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
82 compatible = "simple-bus";
85 ranges = <0x0 0x0 0xf0000000 0x10000000>;
87 crg: clock-reset-controller@8a22000 {
88 compatible = "hisilicon,hi3798cv200-crg", "syscon", "simple-mfd";
89 reg = <0x8a22000 0x1000>;
93 gmacphyrst: reset-controller {
94 compatible = "ti,syscon-reset";
97 <0xcc 12 0xcc 12 0 0 (ASSERT_CLEAR |
98 DEASSERT_SET|STATUS_NONE)>,
99 <0xcc 13 0xcc 13 0 0 (ASSERT_CLEAR |
100 DEASSERT_SET|STATUS_NONE)>;
104 sysctrl: system-controller@8000000 {
105 compatible = "hisilicon,hi3798cv200-sysctrl", "syscon";
106 reg = <0x8000000 0x1000>;
111 perictrl: peripheral-controller@8a20000 {
112 compatible = "hisilicon,hi3798cv200-perictrl", "syscon",
114 reg = <0x8a20000 0x1000>;
115 #address-cells = <1>;
117 ranges = <0x0 0x8a20000 0x1000>;
119 usb2_phy1: usb2-phy@120 {
120 compatible = "hisilicon,hi3798cv200-usb2-phy";
122 clocks = <&crg HISTB_USB2_PHY1_REF_CLK>;
123 resets = <&crg 0xbc 4>;
124 #address-cells = <1>;
127 usb2_phy1_port0: phy@0 {
130 resets = <&crg 0xbc 8>;
133 usb2_phy1_port1: phy@1 {
136 resets = <&crg 0xbc 9>;
140 usb2_phy2: usb2-phy@124 {
141 compatible = "hisilicon,hi3798cv200-usb2-phy";
143 clocks = <&crg HISTB_USB2_PHY2_REF_CLK>;
144 resets = <&crg 0xbc 6>;
145 #address-cells = <1>;
148 usb2_phy2_port0: phy@0 {
151 resets = <&crg 0xbc 10>;
156 compatible = "hisilicon,hi3798cv200-combphy";
159 clocks = <&crg HISTB_COMBPHY0_CLK>;
160 resets = <&crg 0x188 4>;
161 assigned-clocks = <&crg HISTB_COMBPHY0_CLK>;
162 assigned-clock-rates = <100000000>;
163 hisilicon,fixed-mode = <PHY_TYPE_USB3>;
167 compatible = "hisilicon,hi3798cv200-combphy";
170 clocks = <&crg HISTB_COMBPHY1_CLK>;
171 resets = <&crg 0x188 12>;
172 assigned-clocks = <&crg HISTB_COMBPHY1_CLK>;
173 assigned-clock-rates = <100000000>;
174 hisilicon,mode-select-bits = <0x0008 11 (0x3 << 11)>;
178 pmx0: pinconf@8a21000 {
179 compatible = "pinconf-single";
180 reg = <0x8a21000 0x180>;
181 pinctrl-single,register-width = <32>;
182 pinctrl-single,function-mask = <7>;
183 pinctrl-single,gpio-range = <
184 &range 0 8 2 /* GPIO 0 */
185 &range 8 1 0 /* GPIO 1 */
190 &range 16 5 0 /* GPIO 2 */
192 &range 24 4 1 /* GPIO 3 */
196 &range 30 4 2 /* GPIO 4 */
199 &range 38 3 2 /* GPIO 6 */
201 &range 46 8 1 /* GPIO 7 */
202 &range 54 8 1 /* GPIO 8 */
203 &range 64 7 1 /* GPIO 9 */
205 &range 72 6 1 /* GPIO 10 */
208 &range 80 6 1 /* GPIO 11 */
210 &range 88 8 0 /* GPIO 12 */
214 #pinctrl-single,gpio-range-cells = <3>;
218 uart0: serial@8b00000 {
219 compatible = "arm,pl011", "arm,primecell";
220 reg = <0x8b00000 0x1000>;
221 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
222 clocks = <&sysctrl HISTB_UART0_CLK>;
223 clock-names = "apb_pclk";
227 uart2: serial@8b02000 {
228 compatible = "arm,pl011", "arm,primecell";
229 reg = <0x8b02000 0x1000>;
230 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
231 clocks = <&crg HISTB_UART2_CLK>;
232 clock-names = "apb_pclk";
237 compatible = "hisilicon,hix5hd2-i2c";
238 reg = <0x8b10000 0x1000>;
239 #address-cells = <1>;
241 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
242 clock-frequency = <400000>;
243 clocks = <&crg HISTB_I2C0_CLK>;
248 compatible = "hisilicon,hix5hd2-i2c";
249 reg = <0x8b11000 0x1000>;
250 #address-cells = <1>;
252 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
253 clock-frequency = <400000>;
254 clocks = <&crg HISTB_I2C1_CLK>;
259 compatible = "hisilicon,hix5hd2-i2c";
260 reg = <0x8b12000 0x1000>;
261 #address-cells = <1>;
263 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
264 clock-frequency = <400000>;
265 clocks = <&crg HISTB_I2C2_CLK>;
270 compatible = "hisilicon,hix5hd2-i2c";
271 reg = <0x8b13000 0x1000>;
272 #address-cells = <1>;
274 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
275 clock-frequency = <400000>;
276 clocks = <&crg HISTB_I2C3_CLK>;
281 compatible = "hisilicon,hix5hd2-i2c";
282 reg = <0x8b14000 0x1000>;
283 #address-cells = <1>;
285 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
286 clock-frequency = <400000>;
287 clocks = <&crg HISTB_I2C4_CLK>;
292 compatible = "arm,pl022", "arm,primecell";
293 reg = <0x8b1a000 0x1000>;
294 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
296 cs-gpios = <&gpio7 1 0>;
297 clocks = <&crg HISTB_SPI0_CLK>;
298 clock-names = "apb_pclk";
299 #address-cells = <1>;
305 compatible = "snps,dw-mshc";
306 reg = <0x9820000 0x10000>;
307 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
308 clocks = <&crg HISTB_SDIO0_CIU_CLK>,
309 <&crg HISTB_SDIO0_BIU_CLK>;
310 clock-names = "ciu", "biu";
311 resets = <&crg 0x9c 4>;
312 reset-names = "reset";
317 compatible = "hisilicon,hi3798cv200-dw-mshc";
318 reg = <0x9830000 0x10000>;
319 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
320 clocks = <&crg HISTB_MMC_CIU_CLK>,
321 <&crg HISTB_MMC_BIU_CLK>,
322 <&crg HISTB_MMC_SAMPLE_CLK>,
323 <&crg HISTB_MMC_DRV_CLK>;
324 clock-names = "ciu", "biu", "ciu-sample", "ciu-drive";
325 resets = <&crg 0xa0 4>;
326 reset-names = "reset";
330 gpio0: gpio@8b20000 {
331 compatible = "arm,pl061", "arm,primecell";
332 reg = <0x8b20000 0x1000>;
333 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
336 interrupt-controller;
337 #interrupt-cells = <2>;
338 gpio-ranges = <&pmx0 0 0 8>;
339 clocks = <&crg HISTB_APB_CLK>;
340 clock-names = "apb_pclk";
344 gpio1: gpio@8b21000 {
345 compatible = "arm,pl061", "arm,primecell";
346 reg = <0x8b21000 0x1000>;
347 interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
350 interrupt-controller;
351 #interrupt-cells = <2>;
359 clocks = <&crg HISTB_APB_CLK>;
360 clock-names = "apb_pclk";
364 gpio2: gpio@8b22000 {
365 compatible = "arm,pl061", "arm,primecell";
366 reg = <0x8b22000 0x1000>;
367 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
370 interrupt-controller;
371 #interrupt-cells = <2>;
372 gpio-ranges = <&pmx0 0 16 5 &pmx0 5 21 3>;
373 clocks = <&crg HISTB_APB_CLK>;
374 clock-names = "apb_pclk";
378 gpio3: gpio@8b23000 {
379 compatible = "arm,pl061", "arm,primecell";
380 reg = <0x8b23000 0x1000>;
381 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
384 interrupt-controller;
385 #interrupt-cells = <2>;
392 clocks = <&crg HISTB_APB_CLK>;
393 clock-names = "apb_pclk";
397 gpio4: gpio@8b24000 {
398 compatible = "arm,pl061", "arm,primecell";
399 reg = <0x8b24000 0x1000>;
400 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
403 interrupt-controller;
404 #interrupt-cells = <2>;
405 gpio-ranges = <&pmx0 0 30 4 &pmx0 4 34 3 &pmx0 7 37 1>;
406 clocks = <&crg HISTB_APB_CLK>;
407 clock-names = "apb_pclk";
411 gpio5: gpio@8004000 {
412 compatible = "arm,pl061", "arm,primecell";
413 reg = <0x8004000 0x1000>;
414 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
417 interrupt-controller;
418 #interrupt-cells = <2>;
419 clocks = <&crg HISTB_APB_CLK>;
420 clock-names = "apb_pclk";
424 gpio6: gpio@8b26000 {
425 compatible = "arm,pl061", "arm,primecell";
426 reg = <0x8b26000 0x1000>;
427 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
430 interrupt-controller;
431 #interrupt-cells = <2>;
432 gpio-ranges = <&pmx0 0 38 3 &pmx0 0 41 5>;
433 clocks = <&crg HISTB_APB_CLK>;
434 clock-names = "apb_pclk";
438 gpio7: gpio@8b27000 {
439 compatible = "arm,pl061", "arm,primecell";
440 reg = <0x8b27000 0x1000>;
441 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
444 interrupt-controller;
445 #interrupt-cells = <2>;
446 gpio-ranges = <&pmx0 0 46 8>;
447 clocks = <&crg HISTB_APB_CLK>;
448 clock-names = "apb_pclk";
452 gpio8: gpio@8b28000 {
453 compatible = "arm,pl061", "arm,primecell";
454 reg = <0x8b28000 0x1000>;
455 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
458 interrupt-controller;
459 #interrupt-cells = <2>;
460 gpio-ranges = <&pmx0 0 54 8>;
461 clocks = <&crg HISTB_APB_CLK>;
462 clock-names = "apb_pclk";
466 gpio9: gpio@8b29000 {
467 compatible = "arm,pl061", "arm,primecell";
468 reg = <0x8b29000 0x1000>;
469 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
472 interrupt-controller;
473 #interrupt-cells = <2>;
474 gpio-ranges = <&pmx0 0 64 7 &pmx0 71 1>;
475 clocks = <&crg HISTB_APB_CLK>;
476 clock-names = "apb_pclk";
480 gpio10: gpio@8b2a000 {
481 compatible = "arm,pl061", "arm,primecell";
482 reg = <0x8b2a000 0x1000>;
483 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
486 interrupt-controller;
487 #interrupt-cells = <2>;
488 gpio-ranges = <&pmx0 0 72 6 &pmx0 6 78 1 &pmx0 7 79 1>;
489 clocks = <&crg HISTB_APB_CLK>;
490 clock-names = "apb_pclk";
494 gpio11: gpio@8b2b000 {
495 compatible = "arm,pl061", "arm,primecell";
496 reg = <0x8b2b000 0x1000>;
497 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
500 interrupt-controller;
501 #interrupt-cells = <2>;
502 gpio-ranges = <&pmx0 0 80 6 &pmx0 6 70 2>;
503 clocks = <&crg HISTB_APB_CLK>;
504 clock-names = "apb_pclk";
508 gpio12: gpio@8b2c000 {
509 compatible = "arm,pl061", "arm,primecell";
510 reg = <0x8b2c000 0x1000>;
511 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
514 interrupt-controller;
515 #interrupt-cells = <2>;
516 gpio-ranges = <&pmx0 0 88 8>;
517 clocks = <&crg HISTB_APB_CLK>;
518 clock-names = "apb_pclk";
522 gmac0: ethernet@9840000 {
523 compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
524 reg = <0x9840000 0x1000>,
526 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
527 clocks = <&crg HISTB_ETH0_MAC_CLK>,
528 <&crg HISTB_ETH0_MACIF_CLK>;
529 clock-names = "mac_core", "mac_ifc";
530 resets = <&crg 0xcc 8>,
533 reset-names = "mac_core", "mac_ifc", "phy";
537 gmac1: ethernet@9841000 {
538 compatible = "hisilicon,hi3798cv200-gmac", "hisilicon,hisi-gmac-v2";
539 reg = <0x9841000 0x1000>,
541 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
542 clocks = <&crg HISTB_ETH1_MAC_CLK>,
543 <&crg HISTB_ETH1_MACIF_CLK>;
544 clock-names = "mac_core", "mac_ifc";
545 resets = <&crg 0xcc 9>,
548 reset-names = "mac_core", "mac_ifc", "phy";
553 compatible = "hisilicon,hix5hd2-ir";
554 reg = <0x8001000 0x1000>;
555 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
556 clocks = <&sysctrl HISTB_IR_CLK>;
561 compatible = "hisilicon,hi3798cv200-pcie";
562 reg = <0x9860000 0x1000>,
564 <0x2000000 0x01000000>;
565 reg-names = "control", "rc-dbi", "config";
566 #address-cells = <3>;
571 ranges = <0x81000000 0x0 0x00000000 0x4f00000 0x0 0x100000
572 0x82000000 0x0 0x3000000 0x3000000 0x0 0x01f00000>;
573 interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
574 interrupt-names = "msi";
575 #interrupt-cells = <1>;
576 interrupt-map-mask = <0 0 0 0>;
577 interrupt-map = <0 0 0 0 &gic 0 131 IRQ_TYPE_LEVEL_HIGH>;
578 clocks = <&crg HISTB_PCIE_AUX_CLK>,
579 <&crg HISTB_PCIE_PIPE_CLK>,
580 <&crg HISTB_PCIE_SYS_CLK>,
581 <&crg HISTB_PCIE_BUS_CLK>;
582 clock-names = "aux", "pipe", "sys", "bus";
583 resets = <&crg 0x18c 6>, <&crg 0x18c 5>, <&crg 0x18c 4>;
584 reset-names = "soft", "sys", "bus";
585 phys = <&combphy1 PHY_TYPE_PCIE>;
591 compatible = "generic-ohci";
592 reg = <0x9880000 0x10000>;
593 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
594 clocks = <&crg HISTB_USB2_BUS_CLK>,
595 <&crg HISTB_USB2_12M_CLK>,
596 <&crg HISTB_USB2_48M_CLK>;
597 clock-names = "bus", "clk12", "clk48";
598 resets = <&crg 0xb8 12>;
600 phys = <&usb2_phy1_port0>;
606 compatible = "generic-ehci";
607 reg = <0x9890000 0x10000>;
608 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
609 clocks = <&crg HISTB_USB2_BUS_CLK>,
610 <&crg HISTB_USB2_PHY_CLK>,
611 <&crg HISTB_USB2_UTMI_CLK>;
612 clock-names = "bus", "phy", "utmi";
613 resets = <&crg 0xb8 12>,
616 reset-names = "bus", "phy", "utmi";
617 phys = <&usb2_phy1_port0>;