Commit 215113ab authored by Kever Yang's avatar Kever Yang Committed by Manivannan Sadhasivam
Browse files

dt-bindings: PCI: dw: rockchip: Add rk3576 support



rk3576 is using DWC PCIe controller, with msi interrupt directly to GIC
instead of using GIC ITS, so
- no ITS support is required and the 'msi-map' is not required,
- a new 'msi' interrupt is needed.

Co-developed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarKever Yang <kever.yang@rock-chips.com>
[mani: changed 'its' to 'ITS' in the binding, spelling mistake fix]
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20250414145110.11275-2-kever.yang@rock-chips.com
parent cc9f71da
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -65,7 +65,11 @@ properties:
          tx_cpl_timeout, cor_err_sent, nf_err_sent, f_err_sent, cor_err_rx,
          nf_err_rx, f_err_rx, radm_qoverflow
      - description:
          eDMA write channel 0 interrupt
          If the matching interrupt name is "msi", then this is the combined
          MSI line interrupt, which is to support MSI interrupts output to GIC
          controller via GIC SPI interrupt instead of GIC ITS interrupt.
          If the matching interrupt name is "dma0", then this is the eDMA write
          channel 0 interrupt.
      - description:
          eDMA write channel 1 interrupt
      - description:
@@ -81,7 +85,9 @@ properties:
      - const: msg
      - const: legacy
      - const: err
      - const: dma0
      - enum:
          - msi
          - dma0
      - const: dma1
      - const: dma2
      - const: dma3
+49 −6
Original line number Diff line number Diff line
@@ -16,16 +16,13 @@ description: |+
  PCIe IP and thus inherits all the common properties defined in
  snps,dw-pcie.yaml.

allOf:
  - $ref: /schemas/pci/snps,dw-pcie.yaml#
  - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml#

properties:
  compatible:
    oneOf:
      - const: rockchip,rk3568-pcie
      - items:
          - enum:
              - rockchip,rk3576-pcie
              - rockchip,rk3588-pcie
          - const: rockchip,rk3568-pcie

@@ -71,9 +68,55 @@ properties:

  vpcie3v3-supply: true

allOf:
  - $ref: /schemas/pci/snps,dw-pcie.yaml#
  - $ref: /schemas/pci/rockchip-dw-pcie-common.yaml#
  - if:
      not:
        properties:
          compatible:
            contains:
              const: rockchip,rk3576-pcie
    then:
      required:
        - msi-map

  - if:
      properties:
        compatible:
          contains:
            const: rockchip,rk3576-pcie
    then:
      properties:
        interrupts:
          minItems: 6
          maxItems: 6
        interrupt-names:
          items:
            - const: sys
            - const: pmc
            - const: msg
            - const: legacy
            - const: err
            - const: msi
    else:
      properties:
        interrupts:
          minItems: 5
        interrupt-names:
          minItems: 5
          items:
            - const: sys
            - const: pmc
            - const: msg
            - const: legacy
            - const: err
            - const: dma0
            - const: dma1
            - const: dma2
            - const: dma3


unevaluatedProperties: false

examples: