Micrel KS8851 Ethernet MAC (SPI and Parallel bus options)

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

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

Maintainers (maintainers): "Marek Vasut <marex@denx.de>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "micrel,ks8851", "micrel,ks8851-mll"

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

SPI or Parallel bus hardware address

Item 2

Parallel bus command mode address

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The reset_n input pin

vdd-supply — not listed as required here #

Analog 3.3V supply for Ethernet MAC

vdd-io-supply — not listed as required here #

Digital 1.8V IO supply for Ethernet MAC

Required in this object (required): "compatible", "reg", "interrupts"

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): "micrel,ks8851"

When the condition matches (then) #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "micrel,ks8851-mll"

When the condition matches (then) #

Shared schema rule ($ref): /schemas/memory-controllers/mc-peripheral-props.yaml#

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

/* SPI bus option */
spi {
    #address-cells = <1>;
    #size-cells = <0>;
    ethernet@0 {
        compatible = "micrel,ks8851";
        reg = <0>;
        interrupt-parent = <&msmgpio>;
        interrupts = <90 8>;
        vdd-supply = <&ext_l2>;
        vdd-io-supply = <&pm8921_lvs6>;
        reset-gpios = <&msmgpio 89 0>;
    };
};
#include <dt-bindings/interrupt-controller/irq.h>
/* Parallel bus option */
memory-controller {
    #address-cells = <2>;
    #size-cells = <1>;
    ethernet@1,0 {
        compatible = "micrel,ks8851-mll";
        reg = <1 0x0 0x2>, <1 0x2 0x20000>;
        interrupt-parent = <&gpioc>;
        interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 15: SPI bus option

Line 16: Parallel bus option

Edit this page