ASIX AX88796C SPI Ethernet Adapter
Schema identifier ($id): "http://devicetree.org/schemas/net/asix,ax88796c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Łukasz Stelmach <l.stelmach@samsung.com>"
ASIX AX88796C is an Ethernet controller with a built in PHY. This describes SPI mode of the chip.
The node for this driver must be a child node of an SPI controller, hence all mandatory properties described in ../spi/spi-controller.yaml must be specified.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "asix,ax88796c"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Maximum value (maximum): 40000000
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
A GPIO line handling reset of the chip. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
controller-data — 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.
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", "reset-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet@0 {
compatible = "asix,ax88796c";
reg = <0x0>;
local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
interrupt-parent = <&gpx2>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
spi-max-frequency = <40000000>;
reset-gpios = <&gpe0 2 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 57: Artik5 eval board