xref: /freebsd/sys/contrib/device-tree/Bindings/pci/ti,j721e-pci-host.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
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:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - ti,j721e-pcie-host
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot  reg:
22c66ec88fSEmmanuel Vadot    maxItems: 4
23c66ec88fSEmmanuel Vadot
24c66ec88fSEmmanuel Vadot  reg-names:
25c66ec88fSEmmanuel Vadot    items:
26c66ec88fSEmmanuel Vadot      - const: intd_cfg
27c66ec88fSEmmanuel Vadot      - const: user_cfg
28c66ec88fSEmmanuel Vadot      - const: reg
29c66ec88fSEmmanuel Vadot      - const: cfg
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot  ti,syscon-pcie-ctrl:
32c66ec88fSEmmanuel Vadot    description: Phandle to the SYSCON entry required for configuring PCIe mode
33c66ec88fSEmmanuel Vadot      and link speed.
34c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  power-domains:
37c66ec88fSEmmanuel Vadot    maxItems: 1
38c66ec88fSEmmanuel Vadot
39c66ec88fSEmmanuel Vadot  clocks:
40c66ec88fSEmmanuel Vadot    maxItems: 1
41c66ec88fSEmmanuel Vadot    description: clock-specifier to represent input to the PCIe
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadot  clock-names:
44c66ec88fSEmmanuel Vadot    items:
45c66ec88fSEmmanuel Vadot      - const: fck
46c66ec88fSEmmanuel Vadot
47c66ec88fSEmmanuel Vadot  vendor-id:
48c66ec88fSEmmanuel Vadot    const: 0x104c
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot  device-id:
51c66ec88fSEmmanuel Vadot    const: 0xb00d
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  msi-map: true
54c66ec88fSEmmanuel Vadot
55c66ec88fSEmmanuel Vadotrequired:
56c66ec88fSEmmanuel Vadot  - compatible
57c66ec88fSEmmanuel Vadot  - reg
58c66ec88fSEmmanuel Vadot  - reg-names
59c66ec88fSEmmanuel Vadot  - ti,syscon-pcie-ctrl
60c66ec88fSEmmanuel Vadot  - max-link-speed
61c66ec88fSEmmanuel Vadot  - num-lanes
62c66ec88fSEmmanuel Vadot  - power-domains
63c66ec88fSEmmanuel Vadot  - clocks
64c66ec88fSEmmanuel Vadot  - clock-names
65c66ec88fSEmmanuel Vadot  - vendor-id
66c66ec88fSEmmanuel Vadot  - device-id
67c66ec88fSEmmanuel Vadot  - msi-map
68c66ec88fSEmmanuel Vadot  - dma-coherent
69c66ec88fSEmmanuel Vadot  - dma-ranges
70c66ec88fSEmmanuel Vadot  - ranges
71c66ec88fSEmmanuel Vadot  - reset-gpios
72c66ec88fSEmmanuel Vadot  - phys
73c66ec88fSEmmanuel Vadot  - phy-names
74c66ec88fSEmmanuel Vadot
75*6be33864SEmmanuel VadotunevaluatedProperties: false
76*6be33864SEmmanuel Vadot
77c66ec88fSEmmanuel Vadotexamples:
78c66ec88fSEmmanuel Vadot  - |
79c66ec88fSEmmanuel Vadot    #include <dt-bindings/soc/ti,sci_pm_domain.h>
80c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
81c66ec88fSEmmanuel Vadot
82c66ec88fSEmmanuel Vadot    bus {
83c66ec88fSEmmanuel Vadot        #address-cells = <2>;
84c66ec88fSEmmanuel Vadot        #size-cells = <2>;
85c66ec88fSEmmanuel Vadot
86c66ec88fSEmmanuel Vadot        pcie0_rc: pcie@2900000 {
87c66ec88fSEmmanuel Vadot            compatible = "ti,j721e-pcie-host";
88c66ec88fSEmmanuel Vadot            reg = <0x00 0x02900000 0x00 0x1000>,
89c66ec88fSEmmanuel Vadot                  <0x00 0x02907000 0x00 0x400>,
90c66ec88fSEmmanuel Vadot                  <0x00 0x0d000000 0x00 0x00800000>,
91c66ec88fSEmmanuel Vadot                  <0x00 0x10000000 0x00 0x00001000>;
92c66ec88fSEmmanuel Vadot            reg-names = "intd_cfg", "user_cfg", "reg", "cfg";
93c66ec88fSEmmanuel Vadot            ti,syscon-pcie-ctrl = <&pcie0_ctrl>;
94c66ec88fSEmmanuel Vadot            max-link-speed = <3>;
95c66ec88fSEmmanuel Vadot            num-lanes = <2>;
96c66ec88fSEmmanuel Vadot            power-domains = <&k3_pds 239 TI_SCI_PD_EXCLUSIVE>;
97c66ec88fSEmmanuel Vadot            clocks = <&k3_clks 239 1>;
98c66ec88fSEmmanuel Vadot            clock-names = "fck";
99c66ec88fSEmmanuel Vadot            device_type = "pci";
100c66ec88fSEmmanuel Vadot            #address-cells = <3>;
101c66ec88fSEmmanuel Vadot            #size-cells = <2>;
102c66ec88fSEmmanuel Vadot            bus-range = <0x0 0xf>;
103c66ec88fSEmmanuel Vadot            vendor-id = <0x104c>;
104c66ec88fSEmmanuel Vadot            device-id = <0xb00d>;
105c66ec88fSEmmanuel Vadot            msi-map = <0x0 &gic_its 0x0 0x10000>;
106c66ec88fSEmmanuel Vadot            dma-coherent;
107c66ec88fSEmmanuel Vadot            reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
108c66ec88fSEmmanuel Vadot            phys = <&serdes0_pcie_link>;
109c66ec88fSEmmanuel Vadot            phy-names = "pcie-phy";
110c66ec88fSEmmanuel Vadot            ranges = <0x01000000 0x0 0x10001000  0x00 0x10001000  0x0 0x0010000>,
111c66ec88fSEmmanuel Vadot                     <0x02000000 0x0 0x10011000  0x00 0x10011000  0x0 0x7fef000>;
112c66ec88fSEmmanuel Vadot            dma-ranges = <0x02000000 0x0 0x0 0x0 0x0 0x10000 0x0>;
113c66ec88fSEmmanuel Vadot        };
114c66ec88fSEmmanuel Vadot    };
115