1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ 3c66ec88fSEmmanuel Vadot%YAML 1.2 4c66ec88fSEmmanuel Vadot--- 5fac71e4eSEmmanuel Vadot$id: http://devicetree.org/schemas/pci/ti,j721e-pci-host.yaml# 6fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadottitle: TI J721E PCI Host (PCIe Wrapper) 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11c66ec88fSEmmanuel Vadot - Kishon Vijay Abraham I <kishon@ti.com> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotproperties: 14c66ec88fSEmmanuel Vadot compatible: 155def4c47SEmmanuel Vadot oneOf: 162eb4d8dcSEmmanuel Vadot - const: ti,j721e-pcie-host 17*8d13bc63SEmmanuel Vadot - const: ti,j784s4-pcie-host 182eb4d8dcSEmmanuel Vadot - description: PCIe controller in AM64 192eb4d8dcSEmmanuel Vadot items: 202eb4d8dcSEmmanuel Vadot - const: ti,am64-pcie-host 212eb4d8dcSEmmanuel Vadot - const: ti,j721e-pcie-host 225def4c47SEmmanuel Vadot - description: PCIe controller in J7200 235def4c47SEmmanuel Vadot items: 245def4c47SEmmanuel Vadot - const: ti,j7200-pcie-host 255def4c47SEmmanuel Vadot - const: ti,j721e-pcie-host 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot reg: 28c66ec88fSEmmanuel Vadot maxItems: 4 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot reg-names: 31c66ec88fSEmmanuel Vadot items: 32c66ec88fSEmmanuel Vadot - const: intd_cfg 33c66ec88fSEmmanuel Vadot - const: user_cfg 34c66ec88fSEmmanuel Vadot - const: reg 35c66ec88fSEmmanuel Vadot - const: cfg 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot ti,syscon-pcie-ctrl: 385def4c47SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle-array 395def4c47SEmmanuel Vadot items: 405def4c47SEmmanuel Vadot - items: 415def4c47SEmmanuel Vadot - description: Phandle to the SYSCON entry 425def4c47SEmmanuel Vadot - description: pcie_ctrl register offset within SYSCON 435def4c47SEmmanuel Vadot description: Specifier for configuring PCIe mode and link speed. 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot power-domains: 46c66ec88fSEmmanuel Vadot maxItems: 1 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadot clocks: 492eb4d8dcSEmmanuel Vadot minItems: 1 502eb4d8dcSEmmanuel Vadot maxItems: 2 512eb4d8dcSEmmanuel Vadot description: |+ 522eb4d8dcSEmmanuel Vadot clock-specifier to represent input to the PCIe for 1 item. 532eb4d8dcSEmmanuel Vadot 2nd item if present represents reference clock to the connector. 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot clock-names: 562eb4d8dcSEmmanuel Vadot minItems: 1 57c66ec88fSEmmanuel Vadot items: 58c66ec88fSEmmanuel Vadot - const: fck 592eb4d8dcSEmmanuel Vadot - const: pcie_refclk 60c66ec88fSEmmanuel Vadot 61e67e8565SEmmanuel Vadot dma-coherent: true 62e67e8565SEmmanuel Vadot 63c66ec88fSEmmanuel Vadot vendor-id: 64c66ec88fSEmmanuel Vadot const: 0x104c 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot device-id: 67cb7aa33aSEmmanuel Vadot enum: 68cb7aa33aSEmmanuel Vadot - 0xb00d 69cb7aa33aSEmmanuel Vadot - 0xb00f 70cb7aa33aSEmmanuel Vadot - 0xb010 71cb7aa33aSEmmanuel Vadot - 0xb013 72c66ec88fSEmmanuel Vadot 73c66ec88fSEmmanuel Vadot msi-map: true 74c66ec88fSEmmanuel Vadot 758bab661aSEmmanuel Vadot interrupts: 768bab661aSEmmanuel Vadot maxItems: 1 778bab661aSEmmanuel Vadot 788bab661aSEmmanuel Vadot interrupt-names: 798bab661aSEmmanuel Vadot items: 808bab661aSEmmanuel Vadot - const: link_state 818bab661aSEmmanuel Vadot 828bab661aSEmmanuel Vadot interrupt-controller: 838bab661aSEmmanuel Vadot type: object 848bab661aSEmmanuel Vadot additionalProperties: false 858bab661aSEmmanuel Vadot 868bab661aSEmmanuel Vadot properties: 878bab661aSEmmanuel Vadot interrupt-controller: true 888bab661aSEmmanuel Vadot 898bab661aSEmmanuel Vadot '#interrupt-cells': 908bab661aSEmmanuel Vadot const: 1 918bab661aSEmmanuel Vadot 928bab661aSEmmanuel Vadot interrupts: 938bab661aSEmmanuel Vadot maxItems: 1 948bab661aSEmmanuel Vadot 95*8d13bc63SEmmanuel VadotallOf: 96*8d13bc63SEmmanuel Vadot - $ref: cdns-pcie-host.yaml# 97*8d13bc63SEmmanuel Vadot - if: 98*8d13bc63SEmmanuel Vadot properties: 99*8d13bc63SEmmanuel Vadot compatible: 100*8d13bc63SEmmanuel Vadot enum: 101*8d13bc63SEmmanuel Vadot - ti,am64-pcie-host 102*8d13bc63SEmmanuel Vadot then: 103*8d13bc63SEmmanuel Vadot properties: 104*8d13bc63SEmmanuel Vadot num-lanes: 105*8d13bc63SEmmanuel Vadot const: 1 106*8d13bc63SEmmanuel Vadot 107*8d13bc63SEmmanuel Vadot - if: 108*8d13bc63SEmmanuel Vadot properties: 109*8d13bc63SEmmanuel Vadot compatible: 110*8d13bc63SEmmanuel Vadot enum: 111*8d13bc63SEmmanuel Vadot - ti,j7200-pcie-host 112*8d13bc63SEmmanuel Vadot - ti,j721e-pcie-host 113*8d13bc63SEmmanuel Vadot then: 114*8d13bc63SEmmanuel Vadot properties: 115*8d13bc63SEmmanuel Vadot num-lanes: 116*8d13bc63SEmmanuel Vadot minimum: 1 117*8d13bc63SEmmanuel Vadot maximum: 2 118*8d13bc63SEmmanuel Vadot 119*8d13bc63SEmmanuel Vadot - if: 120*8d13bc63SEmmanuel Vadot properties: 121*8d13bc63SEmmanuel Vadot compatible: 122*8d13bc63SEmmanuel Vadot enum: 123*8d13bc63SEmmanuel Vadot - ti,j784s4-pcie-host 124*8d13bc63SEmmanuel Vadot then: 125*8d13bc63SEmmanuel Vadot properties: 126*8d13bc63SEmmanuel Vadot num-lanes: 127*8d13bc63SEmmanuel Vadot minimum: 1 128*8d13bc63SEmmanuel Vadot maximum: 4 129*8d13bc63SEmmanuel Vadot 130c66ec88fSEmmanuel Vadotrequired: 131c66ec88fSEmmanuel Vadot - compatible 132c66ec88fSEmmanuel Vadot - reg 133c66ec88fSEmmanuel Vadot - reg-names 134c66ec88fSEmmanuel Vadot - ti,syscon-pcie-ctrl 135c66ec88fSEmmanuel Vadot - max-link-speed 136c66ec88fSEmmanuel Vadot - num-lanes 137c66ec88fSEmmanuel Vadot - power-domains 138c66ec88fSEmmanuel Vadot - clocks 139c66ec88fSEmmanuel Vadot - clock-names 140c66ec88fSEmmanuel Vadot - vendor-id 141c66ec88fSEmmanuel Vadot - device-id 142c66ec88fSEmmanuel Vadot - msi-map 143c66ec88fSEmmanuel Vadot - dma-ranges 144c66ec88fSEmmanuel Vadot - ranges 145c66ec88fSEmmanuel Vadot - reset-gpios 146c66ec88fSEmmanuel Vadot - phys 147c66ec88fSEmmanuel Vadot - phy-names 148c66ec88fSEmmanuel Vadot 1496be33864SEmmanuel VadotunevaluatedProperties: false 1506be33864SEmmanuel Vadot 151c66ec88fSEmmanuel Vadotexamples: 152c66ec88fSEmmanuel Vadot - | 153c66ec88fSEmmanuel Vadot #include <dt-bindings/soc/ti,sci_pm_domain.h> 154c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 155c66ec88fSEmmanuel Vadot 156c66ec88fSEmmanuel Vadot bus { 157c66ec88fSEmmanuel Vadot #address-cells = <2>; 158c66ec88fSEmmanuel Vadot #size-cells = <2>; 159c66ec88fSEmmanuel Vadot 160c66ec88fSEmmanuel Vadot pcie0_rc: pcie@2900000 { 161c66ec88fSEmmanuel Vadot compatible = "ti,j721e-pcie-host"; 162c66ec88fSEmmanuel Vadot reg = <0x00 0x02900000 0x00 0x1000>, 163c66ec88fSEmmanuel Vadot <0x00 0x02907000 0x00 0x400>, 164c66ec88fSEmmanuel Vadot <0x00 0x0d000000 0x00 0x00800000>, 165c66ec88fSEmmanuel Vadot <0x00 0x10000000 0x00 0x00001000>; 166c66ec88fSEmmanuel Vadot reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; 1675def4c47SEmmanuel Vadot ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x4070>; 168c66ec88fSEmmanuel Vadot max-link-speed = <3>; 169c66ec88fSEmmanuel Vadot num-lanes = <2>; 170c66ec88fSEmmanuel Vadot power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>; 171c66ec88fSEmmanuel Vadot clocks = <&k3_clks 239 1>; 172c66ec88fSEmmanuel Vadot clock-names = "fck"; 173c66ec88fSEmmanuel Vadot device_type = "pci"; 174c66ec88fSEmmanuel Vadot #address-cells = <3>; 175c66ec88fSEmmanuel Vadot #size-cells = <2>; 176c66ec88fSEmmanuel Vadot bus-range = <0x0 0xf>; 177c66ec88fSEmmanuel Vadot vendor-id = <0x104c>; 178c66ec88fSEmmanuel Vadot device-id = <0xb00d>; 179c66ec88fSEmmanuel Vadot msi-map = <0x0 &gic_its 0x0 0x10000>; 180c66ec88fSEmmanuel Vadot dma-coherent; 181c66ec88fSEmmanuel Vadot reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; 182c66ec88fSEmmanuel Vadot phys = <&serdes0_pcie_link>; 183c66ec88fSEmmanuel Vadot phy-names = "pcie-phy"; 184c66ec88fSEmmanuel Vadot ranges = <0x01000000 0x0 0x10001000 0x00 0x10001000 0x0 0x0010000>, 185c66ec88fSEmmanuel Vadot <0x02000000 0x0 0x10011000 0x00 0x10011000 0x0 0x7fef000>; 186c66ec88fSEmmanuel Vadot dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>; 187c66ec88fSEmmanuel Vadot }; 188c66ec88fSEmmanuel Vadot }; 189