xref: /freebsd/sys/contrib/device-tree/Bindings/pci/ti,j721e-pci-ep.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot# Copyright (C) 2020 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-ep.yaml#
6fac71e4eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7c66ec88fSEmmanuel Vadot
8c66ec88fSEmmanuel Vadottitle: TI J721E PCI EP (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-ep
17*8d13bc63SEmmanuel Vadot      - const: ti,j784s4-pcie-ep
182eb4d8dcSEmmanuel Vadot      - description: PCIe EP controller in AM64
192eb4d8dcSEmmanuel Vadot        items:
202eb4d8dcSEmmanuel Vadot          - const: ti,am64-pcie-ep
212eb4d8dcSEmmanuel Vadot          - const: ti,j721e-pcie-ep
225def4c47SEmmanuel Vadot      - description: PCIe EP controller in J7200
235def4c47SEmmanuel Vadot        items:
245def4c47SEmmanuel Vadot          - const: ti,j7200-pcie-ep
255def4c47SEmmanuel Vadot          - const: ti,j721e-pcie-ep
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: mem
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:
49c66ec88fSEmmanuel Vadot    maxItems: 1
50c66ec88fSEmmanuel Vadot    description: clock-specifier to represent input to the PCIe
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot  clock-names:
53c66ec88fSEmmanuel Vadot    items:
54c66ec88fSEmmanuel Vadot      - const: fck
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  dma-coherent:
57c66ec88fSEmmanuel Vadot    description: Indicates that the PCIe IP block can ensure the coherency
58c66ec88fSEmmanuel Vadot
598bab661aSEmmanuel Vadot  interrupts:
608bab661aSEmmanuel Vadot    maxItems: 1
618bab661aSEmmanuel Vadot
628bab661aSEmmanuel Vadot  interrupt-names:
638bab661aSEmmanuel Vadot    items:
648bab661aSEmmanuel Vadot      - const: link_state
658bab661aSEmmanuel Vadot
66*8d13bc63SEmmanuel VadotallOf:
67*8d13bc63SEmmanuel Vadot  - $ref: cdns-pcie-ep.yaml#
68*8d13bc63SEmmanuel Vadot  - if:
69*8d13bc63SEmmanuel Vadot      properties:
70*8d13bc63SEmmanuel Vadot        compatible:
71*8d13bc63SEmmanuel Vadot          enum:
72*8d13bc63SEmmanuel Vadot            - ti,am64-pcie-ep
73*8d13bc63SEmmanuel Vadot    then:
74*8d13bc63SEmmanuel Vadot      properties:
75*8d13bc63SEmmanuel Vadot        num-lanes:
76*8d13bc63SEmmanuel Vadot          const: 1
77*8d13bc63SEmmanuel Vadot
78*8d13bc63SEmmanuel Vadot  - if:
79*8d13bc63SEmmanuel Vadot      properties:
80*8d13bc63SEmmanuel Vadot        compatible:
81*8d13bc63SEmmanuel Vadot          enum:
82*8d13bc63SEmmanuel Vadot            - ti,j7200-pcie-ep
83*8d13bc63SEmmanuel Vadot            - ti,j721e-pcie-ep
84*8d13bc63SEmmanuel Vadot    then:
85*8d13bc63SEmmanuel Vadot      properties:
86*8d13bc63SEmmanuel Vadot        num-lanes:
87*8d13bc63SEmmanuel Vadot          minimum: 1
88*8d13bc63SEmmanuel Vadot          maximum: 2
89*8d13bc63SEmmanuel Vadot
90*8d13bc63SEmmanuel Vadot  - if:
91*8d13bc63SEmmanuel Vadot      properties:
92*8d13bc63SEmmanuel Vadot        compatible:
93*8d13bc63SEmmanuel Vadot          enum:
94*8d13bc63SEmmanuel Vadot            - ti,j784s4-pcie-ep
95*8d13bc63SEmmanuel Vadot    then:
96*8d13bc63SEmmanuel Vadot      properties:
97*8d13bc63SEmmanuel Vadot        num-lanes:
98*8d13bc63SEmmanuel Vadot          minimum: 1
99*8d13bc63SEmmanuel Vadot          maximum: 4
100*8d13bc63SEmmanuel Vadot
101c66ec88fSEmmanuel Vadotrequired:
102c66ec88fSEmmanuel Vadot  - compatible
103c66ec88fSEmmanuel Vadot  - reg
104c66ec88fSEmmanuel Vadot  - reg-names
105c66ec88fSEmmanuel Vadot  - ti,syscon-pcie-ctrl
106c66ec88fSEmmanuel Vadot  - max-link-speed
107c66ec88fSEmmanuel Vadot  - num-lanes
108c66ec88fSEmmanuel Vadot  - power-domains
109c66ec88fSEmmanuel Vadot  - clocks
110c66ec88fSEmmanuel Vadot  - clock-names
111c66ec88fSEmmanuel Vadot  - max-functions
112c66ec88fSEmmanuel Vadot  - phys
113c66ec88fSEmmanuel Vadot  - phy-names
114c66ec88fSEmmanuel Vadot
1156be33864SEmmanuel VadotunevaluatedProperties: false
1166be33864SEmmanuel Vadot
117c66ec88fSEmmanuel Vadotexamples:
118c66ec88fSEmmanuel Vadot  - |
119c66ec88fSEmmanuel Vadot    #include <dt-bindings/soc/ti,sci_pm_domain.h>
120c66ec88fSEmmanuel Vadot
121c66ec88fSEmmanuel Vadot    bus {
122c66ec88fSEmmanuel Vadot        #address-cells = <2>;
123c66ec88fSEmmanuel Vadot        #size-cells = <2>;
124c66ec88fSEmmanuel Vadot
125c66ec88fSEmmanuel Vadot        pcie0_ep: pcie-ep@d000000 {
126c66ec88fSEmmanuel Vadot           compatible = "ti,j721e-pcie-ep";
127c66ec88fSEmmanuel Vadot           reg = <0x00 0x02900000 0x00 0x1000>,
128c66ec88fSEmmanuel Vadot                 <0x00 0x02907000 0x00 0x400>,
129c66ec88fSEmmanuel Vadot                 <0x00 0x0d000000 0x00 0x00800000>,
130c66ec88fSEmmanuel Vadot                 <0x00 0x10000000 0x00 0x08000000>;
131c66ec88fSEmmanuel Vadot           reg-names = "intd_cfg", "user_cfg", "reg", "mem";
1325def4c47SEmmanuel Vadot           ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x4070>;
133c66ec88fSEmmanuel Vadot           max-link-speed = <3>;
134c66ec88fSEmmanuel Vadot           num-lanes = <2>;
135c66ec88fSEmmanuel Vadot           power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>;
136c66ec88fSEmmanuel Vadot           clocks = <&k3_clks 239 1>;
137c66ec88fSEmmanuel Vadot           clock-names = "fck";
138c66ec88fSEmmanuel Vadot           max-functions = /bits/ 8 <6>;
139c66ec88fSEmmanuel Vadot           dma-coherent;
140c66ec88fSEmmanuel Vadot           phys = <&serdes0_pcie_link>;
141c66ec88fSEmmanuel Vadot           phy-names = "pcie-phy";
142c66ec88fSEmmanuel Vadot       };
143c66ec88fSEmmanuel Vadot    };
144