Qualcomm Atheros QCA808X PHY

Schema identifier ($id): "http://devicetree.org/schemas/net/qca,qca808x.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"

QCA808X PHYs can have up to 3 LEDs attached. All 3 LEDs are disabled by default. 2 LEDs have dedicated pins with the 3rd LED having the double function of Interrupt LEDs/GPIO or additional LED. By default this special PIN is set to LED function.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): ethernet-phy.yaml#

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "ethernet-phy-id004d.d101"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/leds/common.h>

mdio {
    #address-cells = <1>;
    #size-cells = <0>;

    ethernet-phy@0 {
        compatible = "ethernet-phy-id004d.d101";
        reg = <0>;

        leds {
            #address-cells = <1>;
            #size-cells = <0>;

            led@0 {
                reg = <0>;
                color = <LED_COLOR_ID_GREEN>;
                function = LED_FUNCTION_WAN;
                default-state = "keep";
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page