# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/econet,en751221-pcie-phy.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: EcoNet PCI-Express PHY for EcoNet EN751221 and EN7528

maintainers:
  - Caleb James DeLisle <cjd@cjdns.fr>

description:
  The PCIe PHY supports physical layer functionality for PCIe Gen1 and
  Gen1/Gen2 ports. On these SoCs, port 0 is a Gen1-only port while
  port 1 is Gen1/Gen2 capable.

properties:
  compatible:
    enum:
      - econet,en751221-pcie-gen1
      - econet,en751221-pcie-gen2
      - econet,en7528-pcie-gen1
      - econet,en7528-pcie-gen2

  reg:
    maxItems: 1

  "#phy-cells":
    const: 0

required:
  - compatible
  - reg
  - "#phy-cells"

additionalProperties: false

examples:
  - |
    soc {
      #address-cells = <1>;
      #size-cells = <1>;

      pcie-phy@1faf2000 {
        compatible = "econet,en7528-pcie-gen1";
        reg = <0x1faf2000 0x1000>;
        #phy-cells = <0>;
      };
    };
...