xref: /freebsd/sys/contrib/device-tree/Bindings/pci/ti,j721e-pci-ep.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
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---
5c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/pci/ti,j721e-pci-ep.yaml#"
6c66ec88fSEmmanuel 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 VadotallOf:
14c66ec88fSEmmanuel Vadot  - $ref: "cdns-pcie-ep.yaml#"
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  compatible:
18*5def4c47SEmmanuel Vadot    oneOf:
19*5def4c47SEmmanuel Vadot      - description: PCIe EP controller in J7200
20*5def4c47SEmmanuel Vadot        items:
21*5def4c47SEmmanuel Vadot          - const: ti,j7200-pcie-ep
22*5def4c47SEmmanuel Vadot          - const: ti,j721e-pcie-ep
23*5def4c47SEmmanuel Vadot      - description: PCIe EP controller in J721E
24*5def4c47SEmmanuel Vadot        items:
25*5def4c47SEmmanuel 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:
38*5def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
39*5def4c47SEmmanuel Vadot    items:
40*5def4c47SEmmanuel Vadot      - items:
41*5def4c47SEmmanuel Vadot          - description: Phandle to the SYSCON entry
42*5def4c47SEmmanuel Vadot          - description: pcie_ctrl register offset within SYSCON
43*5def4c47SEmmanuel 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
59c66ec88fSEmmanuel Vadotrequired:
60c66ec88fSEmmanuel Vadot  - compatible
61c66ec88fSEmmanuel Vadot  - reg
62c66ec88fSEmmanuel Vadot  - reg-names
63c66ec88fSEmmanuel Vadot  - ti,syscon-pcie-ctrl
64c66ec88fSEmmanuel Vadot  - max-link-speed
65c66ec88fSEmmanuel Vadot  - num-lanes
66c66ec88fSEmmanuel Vadot  - power-domains
67c66ec88fSEmmanuel Vadot  - clocks
68c66ec88fSEmmanuel Vadot  - clock-names
69c66ec88fSEmmanuel Vadot  - dma-coherent
70c66ec88fSEmmanuel Vadot  - max-functions
71c66ec88fSEmmanuel Vadot  - phys
72c66ec88fSEmmanuel Vadot  - phy-names
73c66ec88fSEmmanuel Vadot
746be33864SEmmanuel VadotunevaluatedProperties: false
756be33864SEmmanuel Vadot
76c66ec88fSEmmanuel Vadotexamples:
77c66ec88fSEmmanuel Vadot  - |
78c66ec88fSEmmanuel Vadot    #include <dt-bindings/soc/ti,sci_pm_domain.h>
79c66ec88fSEmmanuel Vadot
80c66ec88fSEmmanuel Vadot    bus {
81c66ec88fSEmmanuel Vadot        #address-cells = <2>;
82c66ec88fSEmmanuel Vadot        #size-cells = <2>;
83c66ec88fSEmmanuel Vadot
84c66ec88fSEmmanuel Vadot        pcie0_ep: pcie-ep@d000000 {
85c66ec88fSEmmanuel Vadot           compatible = "ti,j721e-pcie-ep";
86c66ec88fSEmmanuel Vadot           reg = <0x00 0x02900000 0x00 0x1000>,
87c66ec88fSEmmanuel Vadot                 <0x00 0x02907000 0x00 0x400>,
88c66ec88fSEmmanuel Vadot                 <0x00 0x0d000000 0x00 0x00800000>,
89c66ec88fSEmmanuel Vadot                 <0x00 0x10000000 0x00 0x08000000>;
90c66ec88fSEmmanuel Vadot           reg-names = "intd_cfg", "user_cfg", "reg", "mem";
91*5def4c47SEmmanuel Vadot           ti,syscon-pcie-ctrl = <&pcie0_ctrl 0x4070>;
92c66ec88fSEmmanuel Vadot           max-link-speed = <3>;
93c66ec88fSEmmanuel Vadot           num-lanes = <2>;
94c66ec88fSEmmanuel Vadot           power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>;
95c66ec88fSEmmanuel Vadot           clocks = <&k3_clks 239 1>;
96c66ec88fSEmmanuel Vadot           clock-names = "fck";
97c66ec88fSEmmanuel Vadot           max-functions = /bits/ 8 <6>;
98c66ec88fSEmmanuel Vadot           dma-coherent;
99c66ec88fSEmmanuel Vadot           phys = <&serdes0_pcie_link>;
100c66ec88fSEmmanuel Vadot           phy-names = "pcie-phy";
101c66ec88fSEmmanuel Vadot       };
102c66ec88fSEmmanuel Vadot    };
103