1*4882a593Smuzhiyun* Rockchip AXI PCIe Root Port Bridge DT description 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun- #address-cells: Address representation for root ports, set to <3> 5*4882a593Smuzhiyun- #size-cells: Size representation for root ports, set to <2> 6*4882a593Smuzhiyun- #interrupt-cells: specifies the number of cells needed to encode an 7*4882a593Smuzhiyun interrupt source. The value must be 1. 8*4882a593Smuzhiyun- compatible: Should contain "rockchip,rk3399-pcie" 9*4882a593Smuzhiyun- reg: Two register ranges as listed in the reg-names property 10*4882a593Smuzhiyun- reg-names: Must include the following names 11*4882a593Smuzhiyun - "axi-base" 12*4882a593Smuzhiyun - "apb-base" 13*4882a593Smuzhiyun- clocks: Must contain an entry for each entry in clock-names. 14*4882a593Smuzhiyun See ../clocks/clock-bindings.txt for details. 15*4882a593Smuzhiyun- clock-names: Must include the following entries: 16*4882a593Smuzhiyun - "aclk" 17*4882a593Smuzhiyun - "aclk-perf" 18*4882a593Smuzhiyun - "hclk" 19*4882a593Smuzhiyun - "pm" 20*4882a593Smuzhiyun- msi-map: Maps a Requester ID to an MSI controller and associated 21*4882a593Smuzhiyun msi-specifier data. See ./pci-msi.txt 22*4882a593Smuzhiyun- interrupts: Three interrupt entries must be specified. 23*4882a593Smuzhiyun- interrupt-names: Must include the following names 24*4882a593Smuzhiyun - "sys" 25*4882a593Smuzhiyun - "legacy" 26*4882a593Smuzhiyun - "client" 27*4882a593Smuzhiyun- resets: Must contain seven entries for each entry in reset-names. 28*4882a593Smuzhiyun See ../reset/reset.txt for details. 29*4882a593Smuzhiyun- reset-names: Must include the following names 30*4882a593Smuzhiyun - "core" 31*4882a593Smuzhiyun - "mgmt" 32*4882a593Smuzhiyun - "mgmt-sticky" 33*4882a593Smuzhiyun - "pipe" 34*4882a593Smuzhiyun - "pm" 35*4882a593Smuzhiyun - "aclk" 36*4882a593Smuzhiyun - "pclk" 37*4882a593Smuzhiyun- pinctrl-names : The pin control state names 38*4882a593Smuzhiyun- pinctrl-0: The "default" pinctrl state 39*4882a593Smuzhiyun- #interrupt-cells: specifies the number of cells needed to encode an 40*4882a593Smuzhiyun interrupt source. The value must be 1. 41*4882a593Smuzhiyun- interrupt-map-mask and interrupt-map: standard PCI properties 42*4882a593Smuzhiyun 43*4882a593SmuzhiyunRequired properties for legacy PHY model (deprecated): 44*4882a593Smuzhiyun- phys: From PHY bindings: Phandle for the Generic PHY for PCIe. 45*4882a593Smuzhiyun- phy-names: MUST be "pcie-phy". 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunRequired properties for per-lane PHY model (preferred): 48*4882a593Smuzhiyun- phys: Must contain an phandle to a PHY for each entry in phy-names. 49*4882a593Smuzhiyun- phy-names: Must include 4 entries for all 4 lanes even if some of 50*4882a593Smuzhiyun them won't be used for your cases. Entries are of the form "pcie-phy-N": 51*4882a593Smuzhiyun where N ranges from 0 to 3. 52*4882a593Smuzhiyun (see example below and you MUST also refer to ../phy/rockchip-pcie-phy.txt 53*4882a593Smuzhiyun for changing the #phy-cells of phy node to support it) 54*4882a593Smuzhiyun 55*4882a593SmuzhiyunOptional Property: 56*4882a593Smuzhiyun- aspm-no-l0s: RC won't support ASPM L0s. This property is needed if 57*4882a593Smuzhiyun using 24MHz OSC for RC's PHY. 58*4882a593Smuzhiyun- ep-gpios: contain the entry for pre-reset GPIO 59*4882a593Smuzhiyun- num-lanes: number of lanes to use 60*4882a593Smuzhiyun- vpcie12v-supply: The phandle to the 12v regulator to use for PCIe. 61*4882a593Smuzhiyun- vpcie3v3-supply: The phandle to the 3.3v regulator to use for PCIe. 62*4882a593Smuzhiyun- vpcie1v8-supply: The phandle to the 1.8v regulator to use for PCIe. 63*4882a593Smuzhiyun- vpcie0v9-supply: The phandle to the 0.9v regulator to use for PCIe. 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun*Interrupt controller child node* 66*4882a593SmuzhiyunThe core controller provides a single interrupt for legacy INTx. The PCIe node 67*4882a593Smuzhiyunshould contain an interrupt controller node as a target for the PCI 68*4882a593Smuzhiyun'interrupt-map' property. This node represents the domain at which the four 69*4882a593SmuzhiyunINTx interrupts are decoded and routed. 70*4882a593Smuzhiyun 71*4882a593Smuzhiyun 72*4882a593SmuzhiyunRequired properties for Interrupt controller child node: 73*4882a593Smuzhiyun- interrupt-controller: identifies the node as an interrupt controller 74*4882a593Smuzhiyun- #address-cells: specifies the number of cells needed to encode an 75*4882a593Smuzhiyun address. The value must be 0. 76*4882a593Smuzhiyun- #interrupt-cells: specifies the number of cells needed to encode an 77*4882a593Smuzhiyun interrupt source. The value must be 1. 78*4882a593Smuzhiyun 79*4882a593SmuzhiyunExample: 80*4882a593Smuzhiyun 81*4882a593Smuzhiyunpcie0: pcie@f8000000 { 82*4882a593Smuzhiyun compatible = "rockchip,rk3399-pcie"; 83*4882a593Smuzhiyun #address-cells = <3>; 84*4882a593Smuzhiyun #size-cells = <2>; 85*4882a593Smuzhiyun clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>, 86*4882a593Smuzhiyun <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>; 87*4882a593Smuzhiyun clock-names = "aclk", "aclk-perf", 88*4882a593Smuzhiyun "hclk", "pm"; 89*4882a593Smuzhiyun bus-range = <0x0 0x1>; 90*4882a593Smuzhiyun interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>, 91*4882a593Smuzhiyun <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>, 92*4882a593Smuzhiyun <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>; 93*4882a593Smuzhiyun interrupt-names = "sys", "legacy", "client"; 94*4882a593Smuzhiyun assigned-clocks = <&cru SCLK_PCIEPHY_REF>; 95*4882a593Smuzhiyun assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; 96*4882a593Smuzhiyun assigned-clock-rates = <100000000>; 97*4882a593Smuzhiyun ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; 98*4882a593Smuzhiyun ranges = <0x83000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x600000 99*4882a593Smuzhiyun 0x81000000 0x0 0xfa600000 0x0 0xfa600000 0x0 0x100000>; 100*4882a593Smuzhiyun num-lanes = <4>; 101*4882a593Smuzhiyun msi-map = <0x0 &its 0x0 0x1000>; 102*4882a593Smuzhiyun reg = <0x0 0xf8000000 0x0 0x2000000>, <0x0 0xfd000000 0x0 0x1000000>; 103*4882a593Smuzhiyun reg-names = "axi-base", "apb-base"; 104*4882a593Smuzhiyun resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>, 105*4882a593Smuzhiyun <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE> , 106*4882a593Smuzhiyun <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>; 107*4882a593Smuzhiyun reset-names = "core", "mgmt", "mgmt-sticky", "pipe", 108*4882a593Smuzhiyun "pm", "pclk", "aclk"; 109*4882a593Smuzhiyun /* deprecated legacy PHY model */ 110*4882a593Smuzhiyun phys = <&pcie_phy>; 111*4882a593Smuzhiyun phy-names = "pcie-phy"; 112*4882a593Smuzhiyun pinctrl-names = "default"; 113*4882a593Smuzhiyun pinctrl-0 = <&pcie_clkreq>; 114*4882a593Smuzhiyun #interrupt-cells = <1>; 115*4882a593Smuzhiyun interrupt-map-mask = <0 0 0 7>; 116*4882a593Smuzhiyun interrupt-map = <0 0 0 1 &pcie0_intc 0>, 117*4882a593Smuzhiyun <0 0 0 2 &pcie0_intc 1>, 118*4882a593Smuzhiyun <0 0 0 3 &pcie0_intc 2>, 119*4882a593Smuzhiyun <0 0 0 4 &pcie0_intc 3>; 120*4882a593Smuzhiyun pcie0_intc: interrupt-controller { 121*4882a593Smuzhiyun interrupt-controller; 122*4882a593Smuzhiyun #address-cells = <0>; 123*4882a593Smuzhiyun #interrupt-cells = <1>; 124*4882a593Smuzhiyun }; 125*4882a593Smuzhiyun}; 126*4882a593Smuzhiyun 127*4882a593Smuzhiyunpcie0: pcie@f8000000 { 128*4882a593Smuzhiyun ... 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun /* preferred per-lane PHY model */ 131*4882a593Smuzhiyun phys = <&pcie_phy 0>, <&pcie_phy 1>, <&pcie_phy 2>, <&pcie_phy 3>; 132*4882a593Smuzhiyun phy-names = "pcie-phy-0", "pcie-phy-1", "pcie-phy-2", "pcie-phy-3"; 133*4882a593Smuzhiyun 134*4882a593Smuzhiyun ... 135*4882a593Smuzhiyun}; 136