xref: /linux/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml (revision c94cd9508b1335b949fd13ebd269313c65492df0)
1# SPDX-License-Identifier: GPL-2.0+
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/realtek,rtl82xx.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Realtek RTL82xx PHY
8
9maintainers:
10  - Andrew Lunn <andrew@lunn.ch>
11  - Florian Fainelli <f.fainelli@gmail.com>
12  - Heiner Kallweit <hkallweit1@gmail.com>
13
14description:
15  Bindings for Realtek RTL82xx PHYs
16
17properties:
18  compatible:
19    enum:
20      - ethernet-phy-id001c.c800
21      - ethernet-phy-id001c.c816
22      - ethernet-phy-id001c.c838
23      - ethernet-phy-id001c.c840
24      - ethernet-phy-id001c.c848
25      - ethernet-phy-id001c.c849
26      - ethernet-phy-id001c.c84a
27      - ethernet-phy-id001c.c862
28      - ethernet-phy-id001c.c878
29      - ethernet-phy-id001c.c880
30      - ethernet-phy-id001c.c910
31      - ethernet-phy-id001c.c912
32      - ethernet-phy-id001c.c913
33      - ethernet-phy-id001c.c914
34      - ethernet-phy-id001c.c915
35      - ethernet-phy-id001c.c916
36      - ethernet-phy-id001c.c942
37      - ethernet-phy-id001c.c961
38      - ethernet-phy-id001c.cad0
39      - ethernet-phy-id001c.cb00
40
41  leds: true
42
43  realtek,clkout-disable:
44    type: boolean
45    description:
46      Disable CLKOUT clock, CLKOUT clock default is enabled after hardware reset.
47
48
49  realtek,aldps-enable:
50    type: boolean
51    description:
52      Enable ALDPS mode, ALDPS mode default is disabled after hardware reset.
53
54unevaluatedProperties: false
55
56allOf:
57  - $ref: ethernet-phy.yaml#
58  - if:
59      not:
60        properties:
61          compatible:
62            contains:
63              const: ethernet-phy-id001c.c916
64    then:
65      properties:
66        leds: false
67
68examples:
69  - |
70    mdio {
71        #address-cells = <1>;
72        #size-cells = <0>;
73
74        ethphy1: ethernet-phy@1 {
75                reg = <1>;
76                realtek,clkout-disable;
77                realtek,aldps-enable;
78        };
79    };
80