xref: /freebsd/sys/contrib/device-tree/Bindings/phy/lantiq,vrx200-pcie-phy.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/phy/lantiq,vrx200-pcie-phy.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*7ef62cebSEmmanuel Vadottitle: Lantiq VRX200 and ARX300 PCIe PHY
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotproperties:
13c66ec88fSEmmanuel Vadot  "#phy-cells":
14c66ec88fSEmmanuel Vadot    const: 1
15c66ec88fSEmmanuel Vadot    description: selects the PHY mode as defined in <dt-bindings/phy/phy-lantiq-vrx200-pcie.h>
16c66ec88fSEmmanuel Vadot
17c66ec88fSEmmanuel Vadot  compatible:
18c66ec88fSEmmanuel Vadot    enum:
19c66ec88fSEmmanuel Vadot      - lantiq,vrx200-pcie-phy
20c66ec88fSEmmanuel Vadot      - lantiq,arx300-pcie-phy
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  reg:
23c66ec88fSEmmanuel Vadot    maxItems: 1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  clocks:
26c66ec88fSEmmanuel Vadot    items:
27c66ec88fSEmmanuel Vadot      - description: PHY module clock
28c66ec88fSEmmanuel Vadot      - description: PDI register clock
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  clock-names:
31c66ec88fSEmmanuel Vadot    items:
32c66ec88fSEmmanuel Vadot      - const: phy
33c66ec88fSEmmanuel Vadot      - const: pdi
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  resets:
36c66ec88fSEmmanuel Vadot    items:
37c66ec88fSEmmanuel Vadot      - description: exclusive PHY reset line
38c66ec88fSEmmanuel Vadot      - description: shared reset line between the PCIe PHY and PCIe controller
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  reset-names:
41c66ec88fSEmmanuel Vadot    items:
42c66ec88fSEmmanuel Vadot      - const: phy
43c66ec88fSEmmanuel Vadot      - const: pcie
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadot  lantiq,rcu:
46c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
47c66ec88fSEmmanuel Vadot    description: phandle to the RCU syscon
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel Vadot  lantiq,rcu-endian-offset:
50c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
51c66ec88fSEmmanuel Vadot    description: the offset of the endian registers for this PHY instance in the RCU syscon
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  lantiq,rcu-big-endian-mask:
54c66ec88fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
55c66ec88fSEmmanuel Vadot    description: the mask to set the PDI (PHY) registers for this PHY instance to big endian
56c66ec88fSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot  big-endian:
58c66ec88fSEmmanuel Vadot    description: Configures the PDI (PHY) registers in big-endian mode
59c66ec88fSEmmanuel Vadot    type: boolean
60c66ec88fSEmmanuel Vadot
61c66ec88fSEmmanuel Vadot  little-endian:
62c66ec88fSEmmanuel Vadot    description: Configures the PDI (PHY) registers in big-endian mode
63c66ec88fSEmmanuel Vadot    type: boolean
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadotrequired:
66c66ec88fSEmmanuel Vadot  - "#phy-cells"
67c66ec88fSEmmanuel Vadot  - compatible
68c66ec88fSEmmanuel Vadot  - reg
69c66ec88fSEmmanuel Vadot  - clocks
70c66ec88fSEmmanuel Vadot  - clock-names
71c66ec88fSEmmanuel Vadot  - resets
72c66ec88fSEmmanuel Vadot  - reset-names
73c66ec88fSEmmanuel Vadot  - lantiq,rcu
74c66ec88fSEmmanuel Vadot  - lantiq,rcu-endian-offset
75c66ec88fSEmmanuel Vadot  - lantiq,rcu-big-endian-mask
76c66ec88fSEmmanuel Vadot
77c66ec88fSEmmanuel VadotadditionalProperties: false
78c66ec88fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadotexamples:
80c66ec88fSEmmanuel Vadot  - |
81c66ec88fSEmmanuel Vadot    pcie0_phy: phy@106800 {
82c66ec88fSEmmanuel Vadot        compatible = "lantiq,vrx200-pcie-phy";
83c66ec88fSEmmanuel Vadot        reg = <0x106800 0x100>;
84c66ec88fSEmmanuel Vadot        lantiq,rcu = <&rcu0>;
85c66ec88fSEmmanuel Vadot        lantiq,rcu-endian-offset = <0x4c>;
86c66ec88fSEmmanuel Vadot        lantiq,rcu-big-endian-mask = <0x80>; /* bit 7 */
87c66ec88fSEmmanuel Vadot        big-endian;
88c66ec88fSEmmanuel Vadot        clocks = <&pmu 32>, <&pmu 36>;
89c66ec88fSEmmanuel Vadot        clock-names = "phy", "pdi";
90c66ec88fSEmmanuel Vadot        resets = <&reset0 12 24>, <&reset0 22 22>;
91c66ec88fSEmmanuel Vadot        reset-names = "phy", "pcie";
92c66ec88fSEmmanuel Vadot        #phy-cells = <1>;
93c66ec88fSEmmanuel Vadot    };
94c66ec88fSEmmanuel Vadot
95c66ec88fSEmmanuel Vadot...
96