Debian Codegraph @

Documentation/devicetree/bindings/net/airoha,en8811h.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/net/airoha,en8811h.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Airoha EN8811H PHY
8
9 maintainers:
10 - Eric Woudstra <[email protected]>
11
12 description:
13 The Airoha EN8811H PHY has the ability to reverse polarity
14 on the lines to and/or from the MAC. It is reversed by
15 the booleans in the devicetree node of the phy.
16
17 allOf:
18 - $ref: ethernet-phy.yaml#
19 - $ref: /schemas/phy/phy-common-props.yaml#
20
21 properties:
22 compatible:
23 enum:
24 - ethernet-phy-id03a2.a411
25
26 reg:
27 maxItems: 1
28
29 airoha,pnswap-rx:
30 type: boolean
31 description:
32 Reverse rx polarity of the SERDES. This is the receiving
33 side of the lines from the MAC towards the EN881H.
34 This property is deprecated, for details please refer to
35 Documentation/devicetree/bindings/phy/phy-common-props.yaml
36 deprecated: true
37
38 airoha,pnswap-tx:
39 type: boolean
40 description:
41 Reverse tx polarity of SERDES. This is the transmitting
42 side of the lines from EN8811H towards the MAC.
43 This property is deprecated, for details please refer to
44 Documentation/devicetree/bindings/phy/phy-common-props.yaml
45 deprecated: true
46
47 required:
48 - reg
49
50 unevaluatedProperties: false
51
52 examples:
53 - |
54 #include <dt-bindings/phy/phy.h>
55
56 mdio {
57 #address-cells = <1>;
58 #size-cells = <0>;
59
60 ethernet-phy@1 {
61 compatible = "ethernet-phy-id03a2.a411";
62 reg = <1>;
63 rx-polarity = <PHY_POL_INVERT>;
64 };
65 };