|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: "http://devicetree.org/schemas/pci/ti,j721e-pci-host.yaml#" |
| 6 | +$schema: "http://devicetree.org/meta-schemas/core.yaml#" |
| 7 | + |
| 8 | +title: TI J721E PCI Host (PCIe Wrapper) |
| 9 | + |
| 10 | +maintainers: |
| 11 | + - Kishon Vijay Abraham I <[email protected]> |
| 12 | + |
| 13 | +allOf: |
| 14 | + - $ref: "cdns-pcie-host.yaml#" |
| 15 | + |
| 16 | +properties: |
| 17 | + compatible: |
| 18 | + enum: |
| 19 | + - ti,j721e-pcie-host |
| 20 | + |
| 21 | + reg: |
| 22 | + maxItems: 4 |
| 23 | + |
| 24 | + reg-names: |
| 25 | + items: |
| 26 | + - const: intd_cfg |
| 27 | + - const: user_cfg |
| 28 | + - const: reg |
| 29 | + - const: cfg |
| 30 | + |
| 31 | + ti,syscon-pcie-ctrl: |
| 32 | + description: Phandle to the SYSCON entry required for configuring PCIe mode |
| 33 | + and link speed. |
| 34 | + allOf: |
| 35 | + - $ref: /schemas/types.yaml#/definitions/phandle |
| 36 | + |
| 37 | + power-domains: |
| 38 | + maxItems: 1 |
| 39 | + |
| 40 | + clocks: |
| 41 | + maxItems: 1 |
| 42 | + description: clock-specifier to represent input to the PCIe |
| 43 | + |
| 44 | + clock-names: |
| 45 | + items: |
| 46 | + - const: fck |
| 47 | + |
| 48 | + vendor-id: |
| 49 | + const: 0x104c |
| 50 | + |
| 51 | + device-id: |
| 52 | + const: 0xb00d |
| 53 | + |
| 54 | + msi-map: true |
| 55 | + |
| 56 | +required: |
| 57 | + - compatible |
| 58 | + - reg |
| 59 | + - reg-names |
| 60 | + - ti,syscon-pcie-ctrl |
| 61 | + - max-link-speed |
| 62 | + - num-lanes |
| 63 | + - power-domains |
| 64 | + - clocks |
| 65 | + - clock-names |
| 66 | + - vendor-id |
| 67 | + - device-id |
| 68 | + - msi-map |
| 69 | + - dma-coherent |
| 70 | + - dma-ranges |
| 71 | + - ranges |
| 72 | + - reset-gpios |
| 73 | + - phys |
| 74 | + - phy-names |
| 75 | + |
| 76 | +examples: |
| 77 | + - | |
| 78 | + #include <dt-bindings/soc/ti,sci_pm_domain.h> |
| 79 | + #include <dt-bindings/gpio/gpio.h> |
| 80 | +
|
| 81 | + bus { |
| 82 | + #address-cells = <2>; |
| 83 | + #size-cells = <2>; |
| 84 | +
|
| 85 | + pcie0_rc: pcie@2900000 { |
| 86 | + compatible = "ti,j721e-pcie-host"; |
| 87 | + reg = <0x00 0x02900000 0x00 0x1000>, |
| 88 | + <0x00 0x02907000 0x00 0x400>, |
| 89 | + <0x00 0x0d000000 0x00 0x00800000>, |
| 90 | + <0x00 0x10000000 0x00 0x00001000>; |
| 91 | + reg-names = "intd_cfg", "user_cfg", "reg", "cfg"; |
| 92 | + ti,syscon-pcie-ctrl = <&pcie0_ctrl>; |
| 93 | + max-link-speed = <3>; |
| 94 | + num-lanes = <2>; |
| 95 | + power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>; |
| 96 | + clocks = <&k3_clks 239 1>; |
| 97 | + clock-names = "fck"; |
| 98 | + device_type = "pci"; |
| 99 | + #address-cells = <3>; |
| 100 | + #size-cells = <2>; |
| 101 | + bus-range = <0x0 0xf>; |
| 102 | + vendor-id = <0x104c>; |
| 103 | + device-id = <0xb00d>; |
| 104 | + msi-map = <0x0 &gic_its 0x0 0x10000>; |
| 105 | + dma-coherent; |
| 106 | + reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; |
| 107 | + phys = <&serdes0_pcie_link>; |
| 108 | + phy-names = "pcie-phy"; |
| 109 | + ranges = <0x01000000 0x0 0x10001000 0x00 0x10001000 0x0 0x0010000>, |
| 110 | + <0x02000000 0x0 0x10011000 0x00 0x10011000 0x0 0x7fef000>; |
| 111 | + dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>; |
| 112 | + }; |
| 113 | + }; |
0 commit comments