Socionext AVE ethernet controller

Schema identifier ($id): "http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml#"

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

Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"

This describes the devicetree bindings for AVE ethernet controller implemented on Socionext UniPhier SoCs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "socionext,uniphier-pro4-ave4", "socionext,uniphier-pxs2-ave4", "socionext,uniphier-ld11-ave4", "socionext,uniphier-ld20-ave4", "socionext,uniphier-pxs3-ave4", "socionext,uniphier-nx1-ave4"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

phy-mode — required here #

true — No constraints added by this property rule.

phy-handle — required here #

true — No constraints added by this property rule.

mac-address — not listed as required here #

true — No constraints added by this property rule.

local-mac-address — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reset-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

socionext,syscon-phy-mode — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscon that configures phy mode

Item 2

ID of MAC instance

A phandle to syscon with one argument that configures phy mode. The argument is the ID of MAC instance.

mdio — required here #

Shared schema rule ($ref): mdio.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "socionext,uniphier-pro4-ave4"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gio"

Item 2

Exact value (const): "ether"

Item 3

Exact value (const): "ether-gb"

Item 4

Exact value (const): "ether-phy"

resets — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "gio"

Item 2

Exact value (const): "ether"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

clock-names — not listed as required here

Exact value (const): "ether"

resets — not listed as required here

Maximum number of items (maxItems): 1

reset-names — not listed as required here

Exact value (const): "ether"

Required in this object (required): "compatible", "reg", "interrupts", "phy-mode", "phy-handle", "clocks", "clock-names", "resets", "reset-names", "mdio"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

ether: ethernet@65000000 {
    compatible = "socionext,uniphier-ld20-ave4";
            reg = <0x65000000 0x8500>;
            interrupts = <0 66 4>;
            phy-mode = "rgmii";
            phy-handle = <&ethphy>;
            clock-names = "ether";
            clocks = <&sys_clk 6>;
            reset-names = "ether";
            resets = <&sys_rst 6>;
            socionext,syscon-phy-mode = <&soc_glue 0>;

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

                    ethphy: ethernet-phy@1 {
                            reg = <1>;
                    };
            };
    };

Source notes #

Annotations retained from the schema source

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

Edit this page