1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2cb7aa33aSEmmanuel Vadot%YAML 1.2 3cb7aa33aSEmmanuel Vadot--- 4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/pci/rockchip,rk3399-pcie-ep.yaml# 5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6cb7aa33aSEmmanuel Vadot 7cb7aa33aSEmmanuel Vadottitle: Rockchip AXI PCIe Endpoint 8cb7aa33aSEmmanuel Vadot 9cb7aa33aSEmmanuel Vadotmaintainers: 10cb7aa33aSEmmanuel Vadot - Shawn Lin <shawn.lin@rock-chips.com> 11cb7aa33aSEmmanuel Vadot 12cb7aa33aSEmmanuel VadotallOf: 13cb7aa33aSEmmanuel Vadot - $ref: /schemas/pci/pci-ep.yaml# 14cb7aa33aSEmmanuel Vadot - $ref: rockchip,rk3399-pcie-common.yaml# 15cb7aa33aSEmmanuel Vadot 16cb7aa33aSEmmanuel Vadotproperties: 17cb7aa33aSEmmanuel Vadot compatible: 18cb7aa33aSEmmanuel Vadot const: rockchip,rk3399-pcie-ep 19cb7aa33aSEmmanuel Vadot 20cb7aa33aSEmmanuel Vadot reg: true 21cb7aa33aSEmmanuel Vadot 22cb7aa33aSEmmanuel Vadot reg-names: 23cb7aa33aSEmmanuel Vadot items: 24cb7aa33aSEmmanuel Vadot - const: apb-base 25cb7aa33aSEmmanuel Vadot - const: mem-base 26cb7aa33aSEmmanuel Vadot 27cb7aa33aSEmmanuel Vadot rockchip,max-outbound-regions: 28cb7aa33aSEmmanuel Vadot description: Maximum number of outbound regions 29cb7aa33aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 30cb7aa33aSEmmanuel Vadot maximum: 32 31cb7aa33aSEmmanuel Vadot default: 32 32cb7aa33aSEmmanuel Vadot 33cb7aa33aSEmmanuel Vadotrequired: 34cb7aa33aSEmmanuel Vadot - rockchip,max-outbound-regions 35cb7aa33aSEmmanuel Vadot 36cb7aa33aSEmmanuel VadotunevaluatedProperties: false 37cb7aa33aSEmmanuel Vadot 38cb7aa33aSEmmanuel Vadotexamples: 39cb7aa33aSEmmanuel Vadot - | 40cb7aa33aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 41cb7aa33aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 42cb7aa33aSEmmanuel Vadot #include <dt-bindings/clock/rk3399-cru.h> 43cb7aa33aSEmmanuel Vadot 44cb7aa33aSEmmanuel Vadot bus { 45cb7aa33aSEmmanuel Vadot #address-cells = <2>; 46cb7aa33aSEmmanuel Vadot #size-cells = <2>; 47cb7aa33aSEmmanuel Vadot 48cb7aa33aSEmmanuel Vadot pcie-ep@f8000000 { 49cb7aa33aSEmmanuel Vadot compatible = "rockchip,rk3399-pcie-ep"; 50*f126890aSEmmanuel Vadot reg = <0x0 0xfd000000 0x0 0x1000000>, <0x0 0xfa000000 0x0 0x2000000>; 51cb7aa33aSEmmanuel Vadot reg-names = "apb-base", "mem-base"; 52cb7aa33aSEmmanuel Vadot clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, 53cb7aa33aSEmmanuel Vadot <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; 54cb7aa33aSEmmanuel Vadot clock-names = "aclk", "aclk-perf", 55cb7aa33aSEmmanuel Vadot "hclk", "pm"; 56cb7aa33aSEmmanuel Vadot max-functions = /bits/ 8 <8>; 57cb7aa33aSEmmanuel Vadot num-lanes = <4>; 58cb7aa33aSEmmanuel Vadot resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, 59cb7aa33aSEmmanuel Vadot <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE> , 60cb7aa33aSEmmanuel Vadot <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>; 61cb7aa33aSEmmanuel Vadot reset-names = "core", "mgmt", "mgmt-sticky", "pipe", 62cb7aa33aSEmmanuel Vadot "pm", "pclk", "aclk"; 63cb7aa33aSEmmanuel Vadot phys = <&pcie_phy 0>, <&pcie_phy 1>, <&pcie_phy 2>, <&pcie_phy 3>; 64cb7aa33aSEmmanuel Vadot phy-names = "pcie-phy-0", "pcie-phy-1", "pcie-phy-2", "pcie-phy-3"; 65cb7aa33aSEmmanuel Vadot rockchip,max-outbound-regions = <16>; 66*f126890aSEmmanuel Vadot pinctrl-names = "default"; 67*f126890aSEmmanuel Vadot pinctrl-0 = <&pcie_clkreqnb_cpm>; 68cb7aa33aSEmmanuel Vadot }; 69cb7aa33aSEmmanuel Vadot }; 70cb7aa33aSEmmanuel Vadot... 71