xref: /freebsd/sys/contrib/device-tree/Bindings/net/qca,qca808x.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1*01950c46SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*01950c46SEmmanuel Vadot%YAML 1.2
3*01950c46SEmmanuel Vadot---
4*01950c46SEmmanuel Vadot$id: http://devicetree.org/schemas/net/qca,qca808x.yaml#
5*01950c46SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*01950c46SEmmanuel Vadot
7*01950c46SEmmanuel Vadottitle: Qualcomm Atheros QCA808X PHY
8*01950c46SEmmanuel Vadot
9*01950c46SEmmanuel Vadotmaintainers:
10*01950c46SEmmanuel Vadot  - Christian Marangi <ansuelsmth@gmail.com>
11*01950c46SEmmanuel Vadot
12*01950c46SEmmanuel Vadotdescription:
13*01950c46SEmmanuel Vadot  QCA808X PHYs can have up to 3 LEDs attached.
14*01950c46SEmmanuel Vadot  All 3 LEDs are disabled by default.
15*01950c46SEmmanuel Vadot  2 LEDs have dedicated pins with the 3rd LED having the
16*01950c46SEmmanuel Vadot  double function of Interrupt LEDs/GPIO or additional LED.
17*01950c46SEmmanuel Vadot
18*01950c46SEmmanuel Vadot  By default this special PIN is set to LED function.
19*01950c46SEmmanuel Vadot
20*01950c46SEmmanuel VadotallOf:
21*01950c46SEmmanuel Vadot  - $ref: ethernet-phy.yaml#
22*01950c46SEmmanuel Vadot
23*01950c46SEmmanuel Vadotproperties:
24*01950c46SEmmanuel Vadot  compatible:
25*01950c46SEmmanuel Vadot    enum:
26*01950c46SEmmanuel Vadot      - ethernet-phy-id004d.d101
27*01950c46SEmmanuel Vadot
28*01950c46SEmmanuel VadotunevaluatedProperties: false
29*01950c46SEmmanuel Vadot
30*01950c46SEmmanuel Vadotexamples:
31*01950c46SEmmanuel Vadot  - |
32*01950c46SEmmanuel Vadot    #include <dt-bindings/leds/common.h>
33*01950c46SEmmanuel Vadot
34*01950c46SEmmanuel Vadot    mdio {
35*01950c46SEmmanuel Vadot        #address-cells = <1>;
36*01950c46SEmmanuel Vadot        #size-cells = <0>;
37*01950c46SEmmanuel Vadot
38*01950c46SEmmanuel Vadot        ethernet-phy@0 {
39*01950c46SEmmanuel Vadot            compatible = "ethernet-phy-id004d.d101";
40*01950c46SEmmanuel Vadot            reg = <0>;
41*01950c46SEmmanuel Vadot
42*01950c46SEmmanuel Vadot            leds {
43*01950c46SEmmanuel Vadot                #address-cells = <1>;
44*01950c46SEmmanuel Vadot                #size-cells = <0>;
45*01950c46SEmmanuel Vadot
46*01950c46SEmmanuel Vadot                led@0 {
47*01950c46SEmmanuel Vadot                    reg = <0>;
48*01950c46SEmmanuel Vadot                    color = <LED_COLOR_ID_GREEN>;
49*01950c46SEmmanuel Vadot                    function = LED_FUNCTION_WAN;
50*01950c46SEmmanuel Vadot                    default-state = "keep";
51*01950c46SEmmanuel Vadot                };
52*01950c46SEmmanuel Vadot            };
53*01950c46SEmmanuel Vadot        };
54*01950c46SEmmanuel Vadot    };
55