1431b53b8SKishon Vijay Abraham I# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2431b53b8SKishon Vijay Abraham I# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ 3431b53b8SKishon Vijay Abraham I%YAML 1.2 4431b53b8SKishon Vijay Abraham I--- 5*f5501623SRob Herring$id: http://devicetree.org/schemas/pci/ti,j721e-pci-host.yaml# 6*f5501623SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 7431b53b8SKishon Vijay Abraham I 8431b53b8SKishon Vijay Abraham Ititle: TI J721E PCI Host (PCIe Wrapper) 9431b53b8SKishon Vijay Abraham I 10431b53b8SKishon Vijay Abraham Imaintainers: 11431b53b8SKishon Vijay Abraham I - Kishon Vijay Abraham I <kishon@ti.com> 12431b53b8SKishon Vijay Abraham I 13431b53b8SKishon Vijay Abraham IallOf: 14*f5501623SRob Herring - $ref: cdns-pcie-host.yaml# 15431b53b8SKishon Vijay Abraham I 16431b53b8SKishon Vijay Abraham Iproperties: 17431b53b8SKishon Vijay Abraham I compatible: 183f1f870cSKishon Vijay Abraham I oneOf: 193201f355SKishon Vijay Abraham I - const: ti,j721e-pcie-host 203201f355SKishon Vijay Abraham I - description: PCIe controller in AM64 213201f355SKishon Vijay Abraham I items: 223201f355SKishon Vijay Abraham I - const: ti,am64-pcie-host 233201f355SKishon Vijay Abraham I - const: ti,j721e-pcie-host 243f1f870cSKishon Vijay Abraham I - description: PCIe controller in J7200 253f1f870cSKishon Vijay Abraham I items: 263f1f870cSKishon Vijay Abraham I - const: ti,j7200-pcie-host 273f1f870cSKishon Vijay Abraham I - const: ti,j721e-pcie-host 28431b53b8SKishon Vijay Abraham I 29431b53b8SKishon Vijay Abraham I reg: 30431b53b8SKishon Vijay Abraham I maxItems: 4 31431b53b8SKishon Vijay Abraham I 32431b53b8SKishon Vijay Abraham I reg-names: 33431b53b8SKishon Vijay Abraham I items: 34431b53b8SKishon Vijay Abraham I - const: intd_cfg 35431b53b8SKishon Vijay Abraham I - const: user_cfg 36431b53b8SKishon Vijay Abraham I - const: reg 37431b53b8SKishon Vijay Abraham I - const: cfg 38431b53b8SKishon Vijay Abraham I 39431b53b8SKishon Vijay Abraham I ti,syscon-pcie-ctrl: 40b6c81be9SKishon Vijay Abraham I $ref: /schemas/types.yaml#/definitions/phandle-array 41b6c81be9SKishon Vijay Abraham I items: 42b6c81be9SKishon Vijay Abraham I - items: 43b6c81be9SKishon Vijay Abraham I - description: Phandle to the SYSCON entry 44b6c81be9SKishon Vijay Abraham I - description: pcie_ctrl register offset within SYSCON 45b6c81be9SKishon Vijay Abraham I description: Specifier for configuring PCIe mode and link speed. 46431b53b8SKishon Vijay Abraham I 47431b53b8SKishon Vijay Abraham I power-domains: 48431b53b8SKishon Vijay Abraham I maxItems: 1 49431b53b8SKishon Vijay Abraham I 50431b53b8SKishon Vijay Abraham I clocks: 51f9875d1aSKishon Vijay Abraham I minItems: 1 52f9875d1aSKishon Vijay Abraham I maxItems: 2 53f9875d1aSKishon Vijay Abraham I description: |+ 54f9875d1aSKishon Vijay Abraham I clock-specifier to represent input to the PCIe for 1 item. 55f9875d1aSKishon Vijay Abraham I 2nd item if present represents reference clock to the connector. 56431b53b8SKishon Vijay Abraham I 57431b53b8SKishon Vijay Abraham I clock-names: 58f9875d1aSKishon Vijay Abraham I minItems: 1 59431b53b8SKishon Vijay Abraham I items: 60431b53b8SKishon Vijay Abraham I - const: fck 61f9875d1aSKishon Vijay Abraham I - const: pcie_refclk 62431b53b8SKishon Vijay Abraham I 63dcd49679SRob Herring dma-coherent: true 64dcd49679SRob Herring 65431b53b8SKishon Vijay Abraham I vendor-id: 66431b53b8SKishon Vijay Abraham I const: 0x104c 67431b53b8SKishon Vijay Abraham I 68431b53b8SKishon Vijay Abraham I device-id: 6992ec34feSRob Herring enum: 7092ec34feSRob Herring - 0xb00d 7192ec34feSRob Herring - 0xb00f 7292ec34feSRob Herring - 0xb010 7392ec34feSRob Herring - 0xb013 74431b53b8SKishon Vijay Abraham I 75431b53b8SKishon Vijay Abraham I msi-map: true 76431b53b8SKishon Vijay Abraham I 77598418e6SMatt Ranostay interrupts: 78598418e6SMatt Ranostay maxItems: 1 79598418e6SMatt Ranostay 80598418e6SMatt Ranostay interrupt-names: 81598418e6SMatt Ranostay items: 82598418e6SMatt Ranostay - const: link_state 83598418e6SMatt Ranostay 84ba4ff1cbSMatt Ranostay interrupt-controller: 85ba4ff1cbSMatt Ranostay type: object 86ba4ff1cbSMatt Ranostay additionalProperties: false 87ba4ff1cbSMatt Ranostay 88ba4ff1cbSMatt Ranostay properties: 89ba4ff1cbSMatt Ranostay interrupt-controller: true 90ba4ff1cbSMatt Ranostay 91ba4ff1cbSMatt Ranostay '#interrupt-cells': 92ba4ff1cbSMatt Ranostay const: 1 93ba4ff1cbSMatt Ranostay 94ba4ff1cbSMatt Ranostay interrupts: 95ba4ff1cbSMatt Ranostay maxItems: 1 96ba4ff1cbSMatt Ranostay 97431b53b8SKishon Vijay Abraham Irequired: 98431b53b8SKishon Vijay Abraham I - compatible 99431b53b8SKishon Vijay Abraham I - reg 100431b53b8SKishon Vijay Abraham I - reg-names 101431b53b8SKishon Vijay Abraham I - ti,syscon-pcie-ctrl 102431b53b8SKishon Vijay Abraham I - max-link-speed 103431b53b8SKishon Vijay Abraham I - num-lanes 104431b53b8SKishon Vijay Abraham I - power-domains 105431b53b8SKishon Vijay Abraham I - clocks 106431b53b8SKishon Vijay Abraham I - clock-names 107431b53b8SKishon Vijay Abraham I - vendor-id 108431b53b8SKishon Vijay Abraham I - device-id 109431b53b8SKishon Vijay Abraham I - msi-map 110431b53b8SKishon Vijay Abraham I - dma-ranges 111431b53b8SKishon Vijay Abraham I - ranges 112431b53b8SKishon Vijay Abraham I - reset-gpios 113431b53b8SKishon Vijay Abraham I - phys 114431b53b8SKishon Vijay Abraham I - phy-names 115431b53b8SKishon Vijay Abraham I 1166fdc6e23SRob HerringunevaluatedProperties: false 1176fdc6e23SRob Herring 118431b53b8SKishon Vijay Abraham Iexamples: 119431b53b8SKishon Vijay Abraham I - | 120431b53b8SKishon Vijay Abraham I #include <dt-bindings/soc/ti,sci_pm_domain.h> 121431b53b8SKishon Vijay Abraham I #include <dt-bindings/gpio/gpio.h> 122431b53b8SKishon Vijay Abraham I 123431b53b8SKishon Vijay Abraham I bus { 124431b53b8SKishon Vijay Abraham I #address-cells = <2>; 125431b53b8SKishon Vijay Abraham I #size-cells = <2>; 126431b53b8SKishon Vijay Abraham I 127431b53b8SKishon Vijay Abraham I pcie0_rc: pcie@2900000 { 128431b53b8SKishon Vijay Abraham I compatible = "ti,j721e-pcie-host"; 129431b53b8SKishon Vijay Abraham I reg = <0x00 0x02900000 0x00 0x1000>, 130431b53b8SKishon Vijay Abraham I <0x00 0x02907000 0x00 0x400>, 131431b53b8SKishon Vijay Abraham I <0x00 0x0d000000 0x00 0x00800000>, 132431b53b8SKishon Vijay Abraham I <0x00 0x10000000 0x00 0x00001000>; 133431b53b8SKishon Vijay Abraham I reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; 134b6c81be9SKishon Vijay Abraham I ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x4070>; 135431b53b8SKishon Vijay Abraham I max-link-speed = <3>; 136431b53b8SKishon Vijay Abraham I num-lanes = <2>; 137431b53b8SKishon Vijay Abraham I power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>; 138431b53b8SKishon Vijay Abraham I clocks = <&k3_clks 239 1>; 139431b53b8SKishon Vijay Abraham I clock-names = "fck"; 140431b53b8SKishon Vijay Abraham I device_type = "pci"; 141431b53b8SKishon Vijay Abraham I #address-cells = <3>; 142431b53b8SKishon Vijay Abraham I #size-cells = <2>; 143431b53b8SKishon Vijay Abraham I bus-range = <0x0 0xf>; 144431b53b8SKishon Vijay Abraham I vendor-id = <0x104c>; 145431b53b8SKishon Vijay Abraham I device-id = <0xb00d>; 146431b53b8SKishon Vijay Abraham I msi-map = <0x0 &gic_its 0x0 0x10000>; 147431b53b8SKishon Vijay Abraham I dma-coherent; 148431b53b8SKishon Vijay Abraham I reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; 149431b53b8SKishon Vijay Abraham I phys = <&serdes0_pcie_link>; 150431b53b8SKishon Vijay Abraham I phy-names = "pcie-phy"; 151431b53b8SKishon Vijay Abraham I ranges = <0x01000000 0x0 0x10001000 0x00 0x10001000 0x0 0x0010000>, 152431b53b8SKishon Vijay Abraham I <0x02000000 0x0 0x10011000 0x00 0x10011000 0x0 0x7fef000>; 153431b53b8SKishon Vijay Abraham I dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>; 154431b53b8SKishon Vijay Abraham I }; 155431b53b8SKishon Vijay Abraham I }; 156