Micrel KSZ series PHYs and switches
Schema identifier ($id): "http://devicetree.org/schemas/net/micrel.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Stefan Eichenberger <eichest@gmail.com>"
The Micrel KSZ series contains different network phys and switches.
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id000e.7237", "ethernet-phy-id0022.1430", "ethernet-phy-id0022.1435", "ethernet-phy-id0022.1510", "ethernet-phy-id0022.1537", "ethernet-phy-id0022.1550", "ethernet-phy-id0022.1555", "ethernet-phy-id0022.1556", "ethernet-phy-id0022.1560", "ethernet-phy-id0022.1570", "ethernet-phy-id0022.161a", "ethernet-phy-id0022.1720"
micrel,fiber-mode — not listed as required here #
Value type (type): "boolean"
If present the PHY is configured to operate in fiber mode.
The KSZ8041FTL variant supports fiber mode, enabled by the FXEN boot strapping pin. It can't be determined from the PHY registers whether the PHY is in fiber mode, so this boolean device tree property can be used to describe it.
In fiber mode, auto-negotiation is disabled and the PHY can only work in 100base-fx (full and half duplex) modes.
micrel,led-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED mode value to set for PHYs with configurable LEDs.
Configure the LED mode with single value. The list of PHYs and the bits that are currently supported:
KSZ8001: register 0x1e, bits 15..14 KSZ8041: register 0x1e, bits 15..14 KSZ8021: register 0x1f, bits 5..4 KSZ8031: register 0x1f, bits 5..4 KSZ8051: register 0x1f, bits 5..4 KSZ8081: register 0x1f, bits 5..4 KSZ8091: register 0x1f, bits 5..4
See the respective PHY datasheet for the mode values.
Minimum value (minimum): 0
Maximum value (maximum): 3
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id0022.1510"When the condition matches (
then) #Properties and child nodes (
properties)
micrel,fiber-mode— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1510","ethernet-phy-id0022.1555","ethernet-phy-id0022.1556","ethernet-phy-id0022.1550","ethernet-phy-id0022.1560","ethernet-phy-id0022.161a"When the condition matches (
then) #Properties and child nodes (
properties)
micrel,led-mode— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1555","ethernet-phy-id0022.1556","ethernet-phy-id0022.1560"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereExact value (
const):"rmii-ref"The RMII reference input clock. Used to determine the XI input clock.
micrel,rmii-reference-clock-select-25-mhz— not listed as required hereValue type (
type):"boolean"RMII Reference Clock Select bit selects 25 MHz mode
Setting the RMII Reference Clock Select bit enables 25 MHz rather than 50 MHz clock mode.
Requirements triggered by another property (dependentRequired): { micrel,rmii-reference-clock-select-25-mhz: "clock-names" }
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@5 {
compatible = "ethernet-phy-id0022.1510";
reg = <5>;
micrel,led-mode = <2>;
micrel,fiber-mode;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: KSZ8873MLL
Line 20: KSZ886X
Line 21: KSZ8863
Line 22: KSZ8041
Line 23: KSZ8041RNLI
Line 24: KSZ8051
Line 25: KSZ8021
Line 26: KSZ8031
Line 27: KSZ8081, KSZ8091
Line 28: KSZ8061
Line 29: KSZ8001
Line 30: KS8737