SpacemiT K1 Ethernet MAC
Schema identifier ($id): "http://devicetree.org/schemas/net/spacemit,k1-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Maintainers (maintainers): "Vivian Wang <wangruikang@iscas.ac.cn>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "spacemit,k1-emac"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
mdio-bus — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
resets — required here #
Maximum number of items (maxItems): 1
spacemit,apmu — 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 controls this MAC
Item 2
offset of control registers
A phandle to syscon with byte offset to control registers for this MAC
Required in this object (required): "compatible", "reg", "clocks", "interrupts", "resets", "spacemit,apmu"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/spacemit,k1-syscon.h>
ethernet@cac80000 {
compatible = "spacemit,k1-emac";
reg = <0xcac80000 0x00000420>;
clocks = <&syscon_apmu CLK_EMAC0_BUS>;
interrupts = <131>;
mac-address = [ 00 00 00 00 00 00 ];
phy-handle = <&rgmii0>;
phy-mode = "rgmii-id";
pinctrl-names = "default";
pinctrl-0 = <&gmac0_cfg>;
resets = <&syscon_apmu RESET_EMAC0>;
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
spacemit,apmu = <&syscon_apmu 0x3e4>;
mdio-bus {
#address-cells = <0x1>;
#size-cells = <0x0>;
rgmii0: phy@1 {
reg = <0x1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause