xref: /freebsd/sys/contrib/device-tree/Bindings/pci/ti,j721e-pci-host.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
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---
5c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/pci/ti,j721e-pci-host.yaml#"
6c66ec88fSEmmanuel 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 VadotallOf:
14c66ec88fSEmmanuel Vadot  - $ref: "cdns-pcie-host.yaml#"
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
185def4c47SEmmanuel Vadot    oneOf:
192eb4d8dcSEmmanuel Vadot      - const: ti,j721e-pcie-host
202eb4d8dcSEmmanuel Vadot      - description: PCIe controller in AM64
212eb4d8dcSEmmanuel Vadot        items:
222eb4d8dcSEmmanuel Vadot          - const: ti,am64-pcie-host
232eb4d8dcSEmmanuel Vadot          - const: ti,j721e-pcie-host
245def4c47SEmmanuel Vadot      - description: PCIe controller in J7200
255def4c47SEmmanuel Vadot        items:
265def4c47SEmmanuel Vadot          - const: ti,j7200-pcie-host
275def4c47SEmmanuel Vadot          - const: ti,j721e-pcie-host
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  reg:
30c66ec88fSEmmanuel Vadot    maxItems: 4
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  reg-names:
33c66ec88fSEmmanuel Vadot    items:
34c66ec88fSEmmanuel Vadot      - const: intd_cfg
35c66ec88fSEmmanuel Vadot      - const: user_cfg
36c66ec88fSEmmanuel Vadot      - const: reg
37c66ec88fSEmmanuel Vadot      - const: cfg
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  ti,syscon-pcie-ctrl:
405def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
415def4c47SEmmanuel Vadot    items:
425def4c47SEmmanuel Vadot      - items:
435def4c47SEmmanuel Vadot          - description: Phandle to the SYSCON entry
445def4c47SEmmanuel Vadot          - description: pcie_ctrl register offset within SYSCON
455def4c47SEmmanuel Vadot    description: Specifier for configuring PCIe mode and link speed.
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  power-domains:
48c66ec88fSEmmanuel Vadot    maxItems: 1
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  clocks:
512eb4d8dcSEmmanuel Vadot    minItems: 1
522eb4d8dcSEmmanuel Vadot    maxItems: 2
532eb4d8dcSEmmanuel Vadot    description: |+
542eb4d8dcSEmmanuel Vadot      clock-specifier to represent input to the PCIe for 1 item.
552eb4d8dcSEmmanuel Vadot      2nd item if present represents reference clock to the connector.
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot  clock-names:
582eb4d8dcSEmmanuel Vadot    minItems: 1
59c66ec88fSEmmanuel Vadot    items:
60c66ec88fSEmmanuel Vadot      - const: fck
612eb4d8dcSEmmanuel Vadot      - const: pcie_refclk
62c66ec88fSEmmanuel Vadot
63e67e8565SEmmanuel Vadot  dma-coherent: true
64e67e8565SEmmanuel Vadot
65c66ec88fSEmmanuel Vadot  vendor-id:
66c66ec88fSEmmanuel Vadot    const: 0x104c
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot  device-id:
69*cb7aa33aSEmmanuel Vadot    enum:
70*cb7aa33aSEmmanuel Vadot      - 0xb00d
71*cb7aa33aSEmmanuel Vadot      - 0xb00f
72*cb7aa33aSEmmanuel Vadot      - 0xb010
73*cb7aa33aSEmmanuel Vadot      - 0xb013
74c66ec88fSEmmanuel Vadot
75c66ec88fSEmmanuel Vadot  msi-map: true
76c66ec88fSEmmanuel Vadot
778bab661aSEmmanuel Vadot  interrupts:
788bab661aSEmmanuel Vadot    maxItems: 1
798bab661aSEmmanuel Vadot
808bab661aSEmmanuel Vadot  interrupt-names:
818bab661aSEmmanuel Vadot    items:
828bab661aSEmmanuel Vadot      - const: link_state
838bab661aSEmmanuel Vadot
848bab661aSEmmanuel Vadot  interrupt-controller:
858bab661aSEmmanuel Vadot    type: object
868bab661aSEmmanuel Vadot    additionalProperties: false
878bab661aSEmmanuel Vadot
888bab661aSEmmanuel Vadot    properties:
898bab661aSEmmanuel Vadot      interrupt-controller: true
908bab661aSEmmanuel Vadot
918bab661aSEmmanuel Vadot      '#interrupt-cells':
928bab661aSEmmanuel Vadot        const: 1
938bab661aSEmmanuel Vadot
948bab661aSEmmanuel Vadot      interrupts:
958bab661aSEmmanuel Vadot        maxItems: 1
968bab661aSEmmanuel Vadot
97c66ec88fSEmmanuel Vadotrequired:
98c66ec88fSEmmanuel Vadot  - compatible
99c66ec88fSEmmanuel Vadot  - reg
100c66ec88fSEmmanuel Vadot  - reg-names
101c66ec88fSEmmanuel Vadot  - ti,syscon-pcie-ctrl
102c66ec88fSEmmanuel Vadot  - max-link-speed
103c66ec88fSEmmanuel Vadot  - num-lanes
104c66ec88fSEmmanuel Vadot  - power-domains
105c66ec88fSEmmanuel Vadot  - clocks
106c66ec88fSEmmanuel Vadot  - clock-names
107c66ec88fSEmmanuel Vadot  - vendor-id
108c66ec88fSEmmanuel Vadot  - device-id
109c66ec88fSEmmanuel Vadot  - msi-map
110c66ec88fSEmmanuel Vadot  - dma-ranges
111c66ec88fSEmmanuel Vadot  - ranges
112c66ec88fSEmmanuel Vadot  - reset-gpios
113c66ec88fSEmmanuel Vadot  - phys
114c66ec88fSEmmanuel Vadot  - phy-names
115c66ec88fSEmmanuel Vadot
1166be33864SEmmanuel VadotunevaluatedProperties: false
1176be33864SEmmanuel Vadot
118c66ec88fSEmmanuel Vadotexamples:
119c66ec88fSEmmanuel Vadot  - |
120c66ec88fSEmmanuel Vadot    #include <dt-bindings/soc/ti,sci_pm_domain.h>
121c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel Vadot    bus {
124c66ec88fSEmmanuel Vadot        #address-cells = <2>;
125c66ec88fSEmmanuel Vadot        #size-cells = <2>;
126c66ec88fSEmmanuel Vadot
127c66ec88fSEmmanuel Vadot        pcie0_rc: pcie@2900000 {
128c66ec88fSEmmanuel Vadot            compatible = "ti,j721e-pcie-host";
129c66ec88fSEmmanuel Vadot            reg = <0x00 0x02900000 0x00 0x1000>,
130c66ec88fSEmmanuel Vadot                  <0x00 0x02907000 0x00 0x400>,
131c66ec88fSEmmanuel Vadot                  <0x00 0x0d000000 0x00 0x00800000>,
132c66ec88fSEmmanuel Vadot                  <0x00 0x10000000 0x00 0x00001000>;
133c66ec88fSEmmanuel Vadot            reg-names = "intd_cfg", "user_cfg", "reg", "cfg";
1345def4c47SEmmanuel Vadot            ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x4070>;
135c66ec88fSEmmanuel Vadot            max-link-speed = <3>;
136c66ec88fSEmmanuel Vadot            num-lanes = <2>;
137c66ec88fSEmmanuel Vadot            power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>;
138c66ec88fSEmmanuel Vadot            clocks = <&k3_clks 239 1>;
139c66ec88fSEmmanuel Vadot            clock-names = "fck";
140c66ec88fSEmmanuel Vadot            device_type = "pci";
141c66ec88fSEmmanuel Vadot            #address-cells = <3>;
142c66ec88fSEmmanuel Vadot            #size-cells = <2>;
143c66ec88fSEmmanuel Vadot            bus-range = <0x0 0xf>;
144c66ec88fSEmmanuel Vadot            vendor-id = <0x104c>;
145c66ec88fSEmmanuel Vadot            device-id = <0xb00d>;
146c66ec88fSEmmanuel Vadot            msi-map = <0x0 &gic_its 0x0 0x10000>;
147c66ec88fSEmmanuel Vadot            dma-coherent;
148c66ec88fSEmmanuel Vadot            reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
149c66ec88fSEmmanuel Vadot            phys = <&serdes0_pcie_link>;
150c66ec88fSEmmanuel Vadot            phy-names = "pcie-phy";
151c66ec88fSEmmanuel Vadot            ranges = <0x01000000 0x0 0x10001000  0x00 0x10001000  0x0 0x0010000>,
152c66ec88fSEmmanuel Vadot                     <0x02000000 0x0 0x10011000  0x00 0x10011000  0x0 0x7fef000>;
153c66ec88fSEmmanuel Vadot            dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>;
154c66ec88fSEmmanuel Vadot        };
155c66ec88fSEmmanuel Vadot    };
156