xref: /freebsd/sys/contrib/device-tree/Bindings/phy/airoha,en7581-pcie-phy.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1*0e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*0e8011faSEmmanuel Vadot%YAML 1.2
3*0e8011faSEmmanuel Vadot---
4*0e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/airoha,en7581-pcie-phy.yaml#
5*0e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*0e8011faSEmmanuel Vadot
7*0e8011faSEmmanuel Vadottitle: Airoha EN7581 PCI-Express PHY
8*0e8011faSEmmanuel Vadot
9*0e8011faSEmmanuel Vadotmaintainers:
10*0e8011faSEmmanuel Vadot  - Lorenzo Bianconi <lorenzo@kernel.org>
11*0e8011faSEmmanuel Vadot
12*0e8011faSEmmanuel Vadotdescription:
13*0e8011faSEmmanuel Vadot  The PCIe PHY supports physical layer functionality for PCIe Gen2/Gen3 port.
14*0e8011faSEmmanuel Vadot
15*0e8011faSEmmanuel Vadotproperties:
16*0e8011faSEmmanuel Vadot  compatible:
17*0e8011faSEmmanuel Vadot    const: airoha,en7581-pcie-phy
18*0e8011faSEmmanuel Vadot
19*0e8011faSEmmanuel Vadot  reg:
20*0e8011faSEmmanuel Vadot    items:
21*0e8011faSEmmanuel Vadot      - description: PCIE analog base address
22*0e8011faSEmmanuel Vadot      - description: PCIE lane0 base address
23*0e8011faSEmmanuel Vadot      - description: PCIE lane1 base address
24*0e8011faSEmmanuel Vadot      - description: PCIE lane0 detection time base address
25*0e8011faSEmmanuel Vadot      - description: PCIE lane1 detection time base address
26*0e8011faSEmmanuel Vadot      - description: PCIE Rx AEQ base address
27*0e8011faSEmmanuel Vadot
28*0e8011faSEmmanuel Vadot  reg-names:
29*0e8011faSEmmanuel Vadot    items:
30*0e8011faSEmmanuel Vadot      - const: csr-2l
31*0e8011faSEmmanuel Vadot      - const: pma0
32*0e8011faSEmmanuel Vadot      - const: pma1
33*0e8011faSEmmanuel Vadot      - const: p0-xr-dtime
34*0e8011faSEmmanuel Vadot      - const: p1-xr-dtime
35*0e8011faSEmmanuel Vadot      - const: rx-aeq
36*0e8011faSEmmanuel Vadot
37*0e8011faSEmmanuel Vadot  "#phy-cells":
38*0e8011faSEmmanuel Vadot    const: 0
39*0e8011faSEmmanuel Vadot
40*0e8011faSEmmanuel Vadotrequired:
41*0e8011faSEmmanuel Vadot  - compatible
42*0e8011faSEmmanuel Vadot  - reg
43*0e8011faSEmmanuel Vadot  - reg-names
44*0e8011faSEmmanuel Vadot  - "#phy-cells"
45*0e8011faSEmmanuel Vadot
46*0e8011faSEmmanuel VadotadditionalProperties: false
47*0e8011faSEmmanuel Vadot
48*0e8011faSEmmanuel Vadotexamples:
49*0e8011faSEmmanuel Vadot  - |
50*0e8011faSEmmanuel Vadot    #include <dt-bindings/phy/phy.h>
51*0e8011faSEmmanuel Vadot
52*0e8011faSEmmanuel Vadot    soc {
53*0e8011faSEmmanuel Vadot        #address-cells = <2>;
54*0e8011faSEmmanuel Vadot        #size-cells = <2>;
55*0e8011faSEmmanuel Vadot
56*0e8011faSEmmanuel Vadot        phy@11e80000 {
57*0e8011faSEmmanuel Vadot            compatible = "airoha,en7581-pcie-phy";
58*0e8011faSEmmanuel Vadot            #phy-cells = <0>;
59*0e8011faSEmmanuel Vadot            reg = <0x0 0x1fa5a000 0x0 0xfff>,
60*0e8011faSEmmanuel Vadot                  <0x0 0x1fa5b000 0x0 0xfff>,
61*0e8011faSEmmanuel Vadot                  <0x0 0x1fa5c000 0x0 0xfff>,
62*0e8011faSEmmanuel Vadot                  <0x0 0x1fc10044 0x0 0x4>,
63*0e8011faSEmmanuel Vadot                  <0x0 0x1fc30044 0x0 0x4>,
64*0e8011faSEmmanuel Vadot                  <0x0 0x1fc15030 0x0 0x104>;
65*0e8011faSEmmanuel Vadot            reg-names = "csr-2l", "pma0", "pma1",
66*0e8011faSEmmanuel Vadot                        "p0-xr-dtime", "p1-xr-dtime",
67*0e8011faSEmmanuel Vadot                        "rx-aeq";
68*0e8011faSEmmanuel Vadot        };
69*0e8011faSEmmanuel Vadot    };
70