xref: /freebsd/sys/contrib/device-tree/Bindings/pci/rockchip-dw-pcie-ep.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/pci/rockchip-dw-pcie-ep.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: DesignWare based PCIe Endpoint controller on Rockchip SoCs
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Niklas Cassel <cassel@kernel.org>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotdescription: |+
13*0e8011faSEmmanuel Vadot  RK3588 SoC PCIe Endpoint controller is based on the Synopsys DesignWare
14*0e8011faSEmmanuel Vadot  PCIe IP and thus inherits all the common properties defined in
15*0e8011faSEmmanuel Vadot  snps,dw-pcie-ep.yaml.
16*0e8011faSEmmanuel Vadot
17*0e8011faSEmmanuel VadotallOf:
18*0e8011faSEmmanuel Vadot  - $ref: /schemas/pci/snps,dw-pcie-ep.yaml#
19*0e8011faSEmmanuel Vadot  - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml#
20*0e8011faSEmmanuel Vadot
21*0e8011faSEmmanuel Vadotproperties:
22*0e8011faSEmmanuel Vadot  compatible:
23*0e8011faSEmmanuel Vadot    enum:
24*0e8011faSEmmanuel Vadot      - rockchip,rk3568-pcie-ep
25*0e8011faSEmmanuel Vadot      - rockchip,rk3588-pcie-ep
26*0e8011faSEmmanuel Vadot
27*0e8011faSEmmanuel Vadot  reg:
28*0e8011faSEmmanuel Vadot    items:
29*0e8011faSEmmanuel Vadot      - description: Data Bus Interface (DBI) registers
30*0e8011faSEmmanuel Vadot      - description: Data Bus Interface (DBI) shadow registers
31*0e8011faSEmmanuel Vadot      - description: Rockchip designed configuration registers
32*0e8011faSEmmanuel Vadot      - description: Memory region used to map remote RC address space
33*0e8011faSEmmanuel Vadot      - description: Internal Address Translation Unit (iATU) registers
34*0e8011faSEmmanuel Vadot
35*0e8011faSEmmanuel Vadot  reg-names:
36*0e8011faSEmmanuel Vadot    items:
37*0e8011faSEmmanuel Vadot      - const: dbi
38*0e8011faSEmmanuel Vadot      - const: dbi2
39*0e8011faSEmmanuel Vadot      - const: apb
40*0e8011faSEmmanuel Vadot      - const: addr_space
41*0e8011faSEmmanuel Vadot      - const: atu
42*0e8011faSEmmanuel Vadot
43*0e8011faSEmmanuel Vadotrequired:
44*0e8011faSEmmanuel Vadot  - interrupts
45*0e8011faSEmmanuel Vadot  - interrupt-names
46*0e8011faSEmmanuel Vadot
47*0e8011faSEmmanuel VadotunevaluatedProperties: false
48*0e8011faSEmmanuel Vadot
49*0e8011faSEmmanuel Vadotexamples:
50*0e8011faSEmmanuel Vadot  - |
51*0e8011faSEmmanuel Vadot    #include <dt-bindings/clock/rockchip,rk3588-cru.h>
52*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
53*0e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
54*0e8011faSEmmanuel Vadot    #include <dt-bindings/power/rk3588-power.h>
55*0e8011faSEmmanuel Vadot    #include <dt-bindings/reset/rockchip,rk3588-cru.h>
56*0e8011faSEmmanuel Vadot
57*0e8011faSEmmanuel Vadot    soc {
58*0e8011faSEmmanuel Vadot        #address-cells = <2>;
59*0e8011faSEmmanuel Vadot        #size-cells = <2>;
60*0e8011faSEmmanuel Vadot
61*0e8011faSEmmanuel Vadot        pcie3x4_ep: pcie-ep@fe150000 {
62*0e8011faSEmmanuel Vadot            compatible = "rockchip,rk3588-pcie-ep";
63*0e8011faSEmmanuel Vadot            reg = <0xa 0x40000000 0x0 0x00100000>,
64*0e8011faSEmmanuel Vadot                  <0xa 0x40100000 0x0 0x00100000>,
65*0e8011faSEmmanuel Vadot                  <0x0 0xfe150000 0x0 0x00010000>,
66*0e8011faSEmmanuel Vadot                  <0x9 0x00000000 0x0 0x40000000>,
67*0e8011faSEmmanuel Vadot                  <0xa 0x40300000 0x0 0x00100000>;
68*0e8011faSEmmanuel Vadot            reg-names = "dbi", "dbi2", "apb", "addr_space", "atu";
69*0e8011faSEmmanuel Vadot            clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>,
70*0e8011faSEmmanuel Vadot                     <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>,
71*0e8011faSEmmanuel Vadot                     <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>;
72*0e8011faSEmmanuel Vadot            clock-names = "aclk_mst", "aclk_slv",
73*0e8011faSEmmanuel Vadot                          "aclk_dbi", "pclk",
74*0e8011faSEmmanuel Vadot                          "aux", "pipe";
75*0e8011faSEmmanuel Vadot            interrupts = <GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH 0>,
76*0e8011faSEmmanuel Vadot                         <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH 0>,
77*0e8011faSEmmanuel Vadot                         <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH 0>,
78*0e8011faSEmmanuel Vadot                         <GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH 0>,
79*0e8011faSEmmanuel Vadot                         <GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH 0>,
80*0e8011faSEmmanuel Vadot                         <GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH 0>,
81*0e8011faSEmmanuel Vadot                         <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH 0>,
82*0e8011faSEmmanuel Vadot                         <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH 0>,
83*0e8011faSEmmanuel Vadot                         <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH 0>;
84*0e8011faSEmmanuel Vadot            interrupt-names = "sys", "pmc", "msg", "legacy", "err",
85*0e8011faSEmmanuel Vadot                              "dma0", "dma1", "dma2", "dma3";
86*0e8011faSEmmanuel Vadot            max-link-speed = <3>;
87*0e8011faSEmmanuel Vadot            num-lanes = <4>;
88*0e8011faSEmmanuel Vadot            phys = <&pcie30phy>;
89*0e8011faSEmmanuel Vadot            phy-names = "pcie-phy";
90*0e8011faSEmmanuel Vadot            power-domains = <&power RK3588_PD_PCIE>;
91*0e8011faSEmmanuel Vadot            resets = <&cru SRST_PCIE0_POWER_UP>, <&cru SRST_P_PCIE0>;
92*0e8011faSEmmanuel Vadot            reset-names = "pwr", "pipe";
93*0e8011faSEmmanuel Vadot        };
94*0e8011faSEmmanuel Vadot    };
95*0e8011faSEmmanuel Vadot...
96