Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
Schema identifier ($id): "http://devicetree.org/schemas/net/smsc,lan9115.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/memory-controllers/mc-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"smsc,lan9115"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"smsc,lan89218","smsc,lan9117","smsc,lan9118","smsc,lan9220","smsc,lan9221"Item 2
Exact value (
const):"smsc,lan9115"
reg — required here #
Maximum number of items (maxItems): 1
reg-shift — not listed as required here #
true — No constraints added by this property rule.
reg-io-width — not listed as required here #
Default value (default): 2
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
LAN interrupt line
Item 2
Optional PME (power management event) interrupt that is able to wake up the host system with a 50ms pulse on network activity
clocks — not listed as required here #
Maximum number of items (maxItems): 1
phy-mode — not listed as required here #
true — No constraints added by this property rule.
smsc,irq-active-high — not listed as required here #
Value type (type): "boolean"
Indicates the IRQ polarity is active-high
smsc,irq-push-pull — not listed as required here #
Value type (type): "boolean"
Indicates the IRQ type is push-pull
smsc,force-internal-phy — not listed as required here #
Value type (type): "boolean"
Forces SMSC LAN controller to use internal PHY
smsc,force-external-phy — not listed as required here #
Value type (type): "boolean"
Forces SMSC LAN controller to use external PHY
smsc,save-mac-address — not listed as required here #
Value type (type): "boolean"
Indicates that MAC address needs to be saved before resetting the controller
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
A GPIO line connected to the RESET (active low) signal of the device. On many systems this is wired high so the device goes out of reset at power-on, but if it is under program control, this optional GPIO can wake up in response to it.
vdd33a-supply — not listed as required here #
3.3V analog power supply
vddvario-supply — not listed as required here #
IO logic power supply
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
ethernet@f4000000 {
compatible = "smsc,lan9220", "smsc,lan9115";
reg = <0xf4000000 0x2000000>;
phy-mode = "mii";
interrupt-parent = <&gpio1>;
interrupts = <31>, <32>;
reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
reg-io-width = <4>;
smsc,irq-push-pull;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)