Davicom DM9051 SPI Ethernet Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/davicom,dm9051.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joseph CHANG <josright123@gmail.com>"
The DM9051 is a fully integrated and cost-effective low pin count single chip Fast Ethernet controller with a Serial Peripheral Interface (SPI).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "davicom,dm9051"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 45000000
interrupts — required here #
Maximum number of items (maxItems): 1
local-mac-address — not listed as 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.
Required in this object (required): "compatible", "reg", "spi-max-frequency", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* for Raspberry Pi with pin control stuff for GPIO irq */
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet@0 {
compatible = "davicom,dm9051";
reg = <0>; /* spi chip select */
local-mac-address = [00 00 00 00 00 00];
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_LEVEL_LOW>;
spi-max-frequency = <31200000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 45: Raspberry Pi platform