Network bindings
Single-page view · as markdown
Amlogic Bluetooth chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/amlogic,w155s2-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The W155S2 is an Amlogic Bluetooth and Wi-Fi combo chip. It works on the standard H4 protocol via a 4-wire UART interface, with baud rates up to 4 Mbps.
Maintainers (maintainers): "Yang Li <yang.li@amlogic.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"amlogic,w265s1-bt","amlogic,w265p1-bt"Item 2
Exact value (
const):"amlogic,w155s2-bt"
Rule 2
Allowed values (
enum):"amlogic,w155s2-bt","amlogic,w265s2-bt"
clocks — required here #
Maximum number of items (maxItems): 1
clock provided to the controller (32.768KHz)
enable-gpios — required here #
Maximum number of items (maxItems): 1
vddio-supply — required here #
VDD_IO supply regulator handle
firmware-name — required here #
Maximum number of items (maxItems): 1
specify the path of firmware bin to load
Required in this object (required): "compatible", "clocks", "enable-gpios", "vddio-supply", "firmware-name"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
bluetooth {
compatible = "amlogic,w155s2-bt";
clocks = <&extclk>;
enable-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
vddio-supply = <&wcn_3v3>;
firmware-name = "amlogic/aml_w155s2_bt_uart.bin";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2024 Amlogic, Inc. All rights reserved
Bluetooth Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/bluetooth-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcel Holtmann <marcel@holtmann.org>", "Johan Hedberg <johan.hedberg@gmail.com>", "Luiz Augusto von Dentz <luiz.dentz@gmail.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^bluetooth(@.*)?$"
local-bd-address — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Maximum number of items (maxItems): 6
Specifies the BD address that was uniquely assigned to the Bluetooth device. Formatted with least significant byte first (little-endian), e.g. in order to assign the address 00:11:22:33:44:55 this property must have the value [55 44 33 22 11 00].
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Broadcom BCM4377 family PCIe Bluetooth Chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/brcm,bcm4377-bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sven Peter <sven@svenpeter.dev>"
This binding describes Broadcom BCM4377 family PCIe-attached bluetooth chips usually found in Apple machines. The Wi-Fi part of the chip is described in bindings/net/wireless/brcm,bcm4329-fmac.yaml.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pci14e4,5fa0", "pci14e4,5f69", "pci14e4,5f71", "pci14e4,5f72"
reg — required here #
Maximum number of items (maxItems): 1
brcm,board-type — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Board type of the Bluetooth chip. This is used to decouple the overall system board from the Bluetooth module and used to construct firmware and calibration data filenames. On Apple platforms, this should be the Apple module-instance codename prefixed by "apple,", e.g. "apple,atlantisb".
String pattern (pattern): "^apple,.*"
brcm,taurus-cal-blob — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
A per-device calibration blob for the Bluetooth radio. This should be filled in by the bootloader from platform configuration data, if necessary, and will be uploaded to the device. This blob is used if the chip stepping of the Bluetooth module does not support beamforming.
brcm,taurus-bf-cal-blob — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
A per-device calibration blob for the Bluetooth radio. This should be filled in by the bootloader from platform configuration data, if necessary, and will be uploaded to the device. This blob is used if the chip stepping of the Bluetooth module supports beamforming.
local-bd-address — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "local-bd-address", "brcm,board-type"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie@a0000000 {
#address-cells = <3>;
#size-cells = <2>;
reg = <0xa0000000 0x1000000>;
device_type = "pci";
ranges = <0x43000000 0x6 0xa0000000 0xa0000000 0x0 0x20000000>;
bluetooth@0,1 {
compatible = "pci14e4,5f69";
reg = <0x100 0x0 0x0 0x0 0x0>;
brcm,board-type = "apple,honshu";
/* To be filled by the bootloader */
local-bd-address = [00 00 00 00 00 00];
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 23: BCM4377
Line 24: BCM4378
Line 25: BCM4387
Line 26: BCM4388
Broadcom Bluetooth Chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/brcm,bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
This binding describes Broadcom UART-attached bluetooth chips.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,bcm4329-bt"
Rule 2
Allowed values (
enum):"brcm,bcm20702a1","brcm,bcm4329-bt","brcm,bcm4330-bt","brcm,bcm4334-bt","brcm,bcm43430a0-bt","brcm,bcm43430a1-bt","brcm,bcm43438-bt","brcm,bcm4345c5","brcm,bcm43540-bt","brcm,bcm4335a0","brcm,bcm4349-bt","cypress,cyw4373a0-bt","infineon,cyw55572-bt"
shutdown-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier for the line BT_REG_ON used to power on the BT module
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier for the line BT_RST_N used to reset the BT module. This should be marked as GPIO_ACTIVE_LOW.
device-wakeup-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier for the line BT_WAKE used to wakeup the controller. This is using the BT_GPIO_0 pin on the chip when in use.
host-wakeup-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
GPIO specifier for the line HOST_WAKE used to wakeup the host processor. This is using he BT_GPIO_1 pin on the chip when in use. This is deprecated and replaced by interrupts and "host-wakeup" interrupt-names
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
1 or 2 clocks as defined in clock-names below, in that order
clock-names — not listed as required here #
Names of the 1 to 2 supplied clocks
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"extclk"Deprecated (
deprecated):trueDeprecated in favor of txco
Rule 2
Exact value (
const):"txco"external reference clock (not a standalone crystal)
Rule 3
Exact value (
const):"lpo"external low power 32.768 kHz clock
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"txco"Item 2
Exact value (
const):"lpo"
vbat-supply — not listed as required here #
phandle to regulator supply for VBAT
vddio-supply — not listed as required here #
phandle to regulator supply for VDDIO
brcm,bt-pcm-int-params — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 5
Maximum number of items (maxItems): 5
configure PCM parameters via a 5-byte array: sco-routing: 0 = PCM, 1 = Transport, 2 = Codec, 3 = I2S pcm-interface-rate: 128KBps, 256KBps, 512KBps, 1024KBps, 2048KBps pcm-frame-type: short, long pcm-sync-mode: slave, master pcm-clock-mode: slave, master
brcm,requires-autobaud-mode — not listed as required here #
Value type (type): "boolean"
Set this property if autobaud mode is required. Autobaud mode is required if the device's initial baud rate in normal mode is not supported by the host or if the device requires autobaud mode startup before loading FW.
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Handle to the line HOST_WAKE used to wake up the host processor. This uses the BT_GPIO_1 pin on the chip when in use.
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"host-wakeup"
Required in this object (required): "compatible"
Property dependencies (dependencies) #
brcm,requires-autobaud-mode — applies when this property is present #
Also requires: "shutdown-gpios"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"brcm,bcm20702a1","brcm,bcm4329-bt","brcm,bcm4330-bt"When the condition matches (
then) #Properties and child nodes (
properties)
reset-gpios— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
uart {
uart-has-rtscts;
bluetooth {
compatible = "brcm,bcm4330-bt";
max-speed = <921600>;
brcm,bt-pcm-int-params = [01 02 00 01 01];
shutdown-gpios = <&gpio 30 GPIO_ACTIVE_HIGH>;
device-wakeup-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
interrupt-parent = <&gpio>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Marvell Bluetooth chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/marvell,88w8897.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This documents the binding structure and common properties for serial attached Marvell Bluetooth devices.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mrvl,88w8897", "mrvl,88w8997"
max-speed — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mrvl,88w8997"When the condition matches (
then) #Properties and child nodes (
properties)
max-speed— not listed as required here
true— No constraints added by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
max-speed— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "mrvl,88w8897";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Marvell 8897/8997 (sd8897/sd8997) bluetooth devices (SDIO)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/marvell,sd8897-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ariel D'Alessandro <ariel.dalessandro@collabora.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/bluetooth/bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,sd8897-bt", "marvell,sd8997-bt"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
marvell,cal-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data downloaded to the device during initialization.
Maximum number of items (maxItems): 28
marvell,wakeup-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Wakeup pin number of the bluetooth chip. Used by firmware to wakeup host system.
marvell,wakeup-gap-ms — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Wakeup latency of the host platform. Required by the chip sleep feature.
Required in this object (required): "compatible", "reg", "interrupts"
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>
mmc {
vmmc-supply = <&wlan_en_reg>;
bus-width = <4>;
cap-power-off-card;
keep-power-in-suspend;
#address-cells = <1>;
#size-cells = <0>;
bluetooth@2 {
compatible = "marvell,sd8897-bt";
reg = <2>;
interrupt-parent = <&pio>;
interrupts = <119 IRQ_TYPE_LEVEL_LOW>;
marvell,cal-data = /bits/ 8 <
0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02
0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0xf0 0x00>;
marvell,wakeup-pin = /bits/ 16 <0x0d>;
marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MediaTek SoC built-in Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/mediatek,mt7622-bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This device is a serial attached device to BTIF device and thus it must be a child node of the serial node with BTIF. The dt-bindings details for BTIF device can be known via Documentation/devicetree/bindings/serial/8250.yaml.
Maintainers (maintainers): "Sean Wang <sean.wang@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "mediatek,mt7622-bluetooth"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "ref"
power-domains — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "clocks", "clock-names", "power-domains"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/power/mt7622-power.h>
serial {
bluetooth {
compatible = "mediatek,mt7622-bluetooth";
power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
clocks = <&clk25m>;
clock-names = "ref";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MediaTek MT7921S Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/mediatek,mt7921s-bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Wang <sean.wang@mediatek.com>"
MT7921S is an SDIO-attached dual-radio WiFi+Bluetooth Combo chip; each function is its own SDIO function on a shared SDIO interface. The chip has two dedicated reset lines, one for each function core. This binding only covers the Bluetooth SDIO function, with one device node describing only this SDIO function.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt7921s-bluetooth"
reg — required here #
Exact value (const): 2
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
An active-low reset line for the Bluetooth core; on typical M.2 key E modules this is the W_DISABLE2# pin.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mmc {
#address-cells = <1>;
#size-cells = <0>;
bluetooth@2 {
compatible = "mediatek,mt7921s-bluetooth";
reg = <2>;
reset-gpios = <&pio 8 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP Bluetooth chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/nxp,88w8987-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes UART-attached NXP bluetooth chips. These chips are dual-radio chips supporting WiFi and Bluetooth. The bluetooth works on standard H4 protocol over 4-wire UART. The RTS and CTS lines are used during FW download. To enable power save mode, the host asserts break signal over UART-TX line to put the chip into power save state. De-asserting break wakes up the BT chip.
Maintainers (maintainers): "Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,88w8987-bt", "nxp,88w8997-bt"
fw-init-baudrate — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 115200
Chip baudrate after FW is downloaded and initialized. This property depends on the module vendor's configuration.
max-speed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 3000000, 4000000
Default value (default): 3000000
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
device-wakeup-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Host-To-Chip power save mechanism is driven by this GPIO connected to BT_WAKE_IN pin of the NXP chipset.
nxp,wakein-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
The GPIO number of the NXP chipset used for BT_WAKE_IN.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Host wakeup by falling edge interrupt on this pin which is connected to BT_WAKE_OUT pin of the NXP chipset.
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"wakeup"
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
nxp,wakeout-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
The GPIO number of the NXP chipset used for BT_WAKE_OUT.
vcc-supply — not listed as required here #
phandle of the regulator that provides the supply voltage.
reset-gpios — not listed as required here #
Chip powerdown/reset signal (PDn).
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
serial {
bluetooth {
compatible = "nxp,88w8987-bt";
fw-init-baudrate = <3000000>;
max-speed = <4000000>;
firmware-name = "uartuart8987_bt_v0.bin";
device-wakeup-gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
nxp,wakein-pin = /bits/ 8 <18>;
nxp,wakeout-pin = /bits/ 8 <19>;
vcc-supply = <&nxp_iw612_supply>;
reset-gpios = <&gpioctrl 2 GPIO_ACTIVE_LOW>;
local-bd-address = [66 55 44 33 22 11];
interrupt-parent = <&gpio>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "wakeup";
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm Bluetooth Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,bluetooth-common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
firmware-name — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
specify the name of nvm firmware to load
Item 2
specify the name of rampatch firmware to load
qcom,local-bd-address-broken — not listed as required here #
Value type (type): "boolean"
boot firmware is incorrectly passing the address in big-endian order
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm QCA2006 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,qca2066-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,qca2066-bt", "qcom,qca6174-bt"
clocks — required here #
Array item rules (items) #
Item 1
External low-power 32.768 kHz clock input
enable-gpios — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "enable-gpios"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
bluetooth {
compatible = "qcom,qca6174-bt";
clocks = <&divclk4>;
enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>;
firmware-name = "nvm_00440302.bin";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm QCA6390 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,qca6390-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,qca6390-bt"
vddaon-supply — required here #
VDD_AON supply regulator handle
vddbtcmx-supply — required here #
VDD_BT_CMX supply regulator handle
vddrfa0p8-supply — required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p7-supply — required here #
VDD_RFA_1P7 supply regulator handle
vddrfacmn-supply — required here #
VDD_RFA_CMN supply regulator handle
Required in this object (required): "compatible", "vddaon-supply", "vddbtcmx-supply", "vddrfa0p8-supply", "vddrfa1p2-supply", "vddrfa1p7-supply", "vddrfacmn-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "qcom,qca6390-bt";
vddaon-supply = <&vreg_pmu_aon_0p59>;
vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm QCA9377 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,qca9377-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,qca9377-bt"
clocks — required here #
Array item rules (items) #
Item 1
External low-power 32.768 kHz clock input
enable-gpios — required here #
Maximum number of items (maxItems): 1
vddio-supply — not listed as required here #
VDD_IO supply regulator handle
vddxo-supply — not listed as required here #
VDD_XO supply regulator handle
Required in this object (required): "compatible", "clocks", "enable-gpios"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
bluetooth {
compatible = "qcom,qca9377-bt";
clocks = <&rk809 1>;
enable-gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>;
max-speed = <2000000>;
pinctrl-names = "default";
pinctrl-0 = <&bt_enable>;
vddio-supply = <&vcc_1v8>;
vddxo-supply = <&vcc3v3_sys>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm WCN3950/WCN3988 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,wcn3950-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,wcn3950-bt", "qcom,wcn3988-bt"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
swctrl-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio specifier is used to find status of clock supply to SoC
vddch0-supply — required here #
VDD_CH0 supply regulator handle
vddio-supply — required here #
VDD_IO supply regulator handle
vddrf-supply — required here #
VDD_RF supply regulator handle
vddxo-supply — required here #
VDD_XO supply regulator handle
Required in this object (required): "compatible", "vddch0-supply", "vddio-supply", "vddrf-supply", "vddxo-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
bluetooth {
compatible = "qcom,wcn3950-bt";
enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>;
max-speed = <3200000>;
vddch0-supply = <&pm4125_l22>;
vddio-supply = <&pm4125_l15>;
vddrf-supply = <&pm4125_l10>;
vddxo-supply = <&pm4125_l13>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm WCN3990/WCN3991/WCN3998 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,wcn3990-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,wcn3990-bt", "qcom,wcn3991-bt", "qcom,wcn3998-bt"
clocks — not listed as required here #
Array item rules (items) #
Item 1
External low-power 32.768 kHz clock input
vddch0-supply — required here #
VDD_CH0 supply regulator handle
vddch1-supply — not listed as required here #
VDD_CH1 supply regulator handle
vddio-supply — required here #
VDD_IO supply regulator handle
vddrf-supply — required here #
VDD_RF supply regulator handle
vddxo-supply — required here #
VDD_XO supply regulator handle
Required in this object (required): "compatible", "vddch0-supply", "vddio-supply", "vddrf-supply", "vddxo-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "qcom,wcn3990-bt";
firmware-name = "crnv21.bin";
max-speed = <3200000>;
vddio-supply = <&vreg_s4a_1p8>;
vddch0-supply = <&vreg_l25a_3p3>;
vddch1-supply = <&vreg_l23a_3p3>;
vddrf-supply = <&vreg_l17a_1p3>;
vddxo-supply = <&vreg_l7a_1p8>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm WCN6750 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,wcn6750-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,wcn6750-bt"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
swctrl-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio specifier is used to find status of clock supply to SoC
Deprecated (deprecated): true
vddaon-supply — required here #
VDD_AON supply regulator handle
vddasd-supply — not listed as required here #
VDD_ASD supply regulator handle
Deprecated (deprecated): true
vddbtcmx-supply — not listed as required here #
VDD_BT_CMX supply regulator handle
vddbtcxmx-supply — not listed as required here #
VDD_BT_CXMX supply regulator handle
Deprecated (deprecated): true
vddio-supply — not listed as required here #
VDD_IO supply regulator handle
Deprecated (deprecated): true
vddrfa0p8-supply — required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p7-supply — required here #
VDD_RFA_1P7 supply regulator handle
vddrfa2p2-supply — not listed as required here #
VDD_RFA_2P2 supply regulator handle
vddrfacmn-supply — required here #
VDD_RFA_CMN supply regulator handle
Required in this object (required): "compatible", "vddaon-supply", "vddrfa0p8-supply", "vddrfa1p2-supply", "vddrfa1p7-supply", "vddrfacmn-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "qcom,wcn6750-bt";
firmware-name = "msnv11.bin";
max-speed = <3200000>;
vddaon-supply = <&vreg_pmu_aon_0p59>;
vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm WCN6855 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,wcn6855-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>", "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,wcn6855-bt"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
swctrl-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio specifier is used to find status of clock supply to SoC
Deprecated (deprecated): true
vddaon-supply — required here #
VDD_AON supply regulator handle
vddbtcmx-supply — required here #
VDD_BT_CMX supply regulator handle
vddbtcxmx-supply — not listed as required here #
VDD_BT_CXMX supply regulator handle
Deprecated (deprecated): true
vddio-supply — not listed as required here #
VDD_IO supply regulator handle
Deprecated (deprecated): true
vddrfa0p8-supply — required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p7-supply — not listed as required here #
VDD_RFA_1P7 supply regulator handle
Deprecated (deprecated): true
vddrfa1p8-supply — required here #
VDD_RFA_1P8 supply regulator handle
vddrfacmn-supply — required here #
VDD_RFA_CMN supply regulator handle
vddwlcx-supply — required here #
VDD_WLCX supply regulator handle
vddwlmx-supply — required here #
VDD_WLMX supply regulator handle
Required in this object (required): "compatible", "vddaon-supply", "vddbtcmx-supply", "vddrfa0p8-supply", "vddrfa1p2-supply", "vddrfa1p8-supply", "vddrfacmn-supply", "vddwlcx-supply", "vddwlmx-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "qcom,wcn6855-bt";
max-speed = <3000000>;
vddaon-supply = <&vreg_pmu_aon_0p8>;
vddbtcmx-supply = <&vreg_pmu_btcmx_0p8>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm WCN7850 Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/qcom,wcn7850-bt.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <brgl@bgdev.pl>", "Balakrishna Godavarthi <quic_bgodavar@quicinc.com>", "Rocky Liao <quic_rjliao@quicinc.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,wcn7850-bt"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
swctrl-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpio specifier is used to find status of clock supply to SoC
Deprecated (deprecated): true
vddaon-supply — required here #
VDD_AON supply regulator handle
vdddig-supply — not listed as required here #
VDD_DIG supply regulator handle
Deprecated (deprecated): true
vddio-supply — not listed as required here #
VDD_IO supply regulator handle
Deprecated (deprecated): true
vddrfa0p8-supply — required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p8-supply — required here #
VDD_RFA_1P8 supply regulator handle
vddrfa1p9-supply — not listed as required here #
VDD_RFA_1P9 supply regulator handle
Deprecated (deprecated): true
vddrfacmn-supply — required here #
VDD_RFA_CMN supply regulator handle
vddwlcx-supply — required here #
VDD_WLCX supply regulator handle
vddwlmx-supply — required here #
VDD_WLMX supply regulator handle
Required in this object (required): "compatible", "vddrfacmn-supply", "vddaon-supply", "vddwlcx-supply", "vddwlmx-supply", "vddrfa0p8-supply", "vddrfa1p2-supply", "vddrfa1p8-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):bluetooth-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):qcom,bluetooth-common.yaml
Rule 3 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
serial {
bluetooth {
compatible = "qcom,wcn7850-bt";
max-speed = <3200000>;
vddaon-supply = <&vreg_pmu_aon_0p59>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/realtek,bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vasily Khoruzhick <anarsoul@gmail.com>", "Alistair Francis <alistair@alistair23.me>"
RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS is a WiFi + BT chip. WiFi part is connected over SDIO, while BT is connected over serial. It speaks H5 protocol with few extra commands to upload firmware and change module speed.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"realtek,rtl8723bs-bt","realtek,rtl8723cs-bt","realtek,rtl8723ds-bt","realtek,rtl8822cs-bt"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"realtek,rtl8723bs-bt"
device-wake-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier, used to wakeup the BT module
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier, used to enable the BT module
host-wake-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier, used to wakeup the host processor
max-speed — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
uart-has-rtscts;
bluetooth {
compatible = "realtek,rtl8723bs-bt";
device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Texas Instruments Bluetooth Chips
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / bluetooth
Schema identifier ($id): "http://devicetree.org/schemas/net/bluetooth/ti,bluetooth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Lechner <david@lechnology.com>"
This documents the binding structure and common properties for serial attached TI Bluetooth devices. The following chips are included in this binding:
* TI CC256x Bluetooth devices * TI WiLink 7/8 (wl12xx/wl18xx) Shared Transport BT/FM/GPS devices
TI WiLink devices have a UART interface for providing Bluetooth, FM radio, and GPS over what's called "shared transport". The shared transport is standard BT HCI protocol with additional channels for the other functions.
TI WiLink devices also have a separate WiFi interface as described in wireless/ti,wlcore.yaml.
This bindings follows the UART slave device binding in ../serial/serial.yaml.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,cc2560", "ti,wl1271-st", "ti,wl1273-st", "ti,wl1281-st", "ti,wl1283-st", "ti,wl1285-st", "ti,wl1801-st", "ti,wl1805-st", "ti,wl1807-st", "ti,wl1831-st", "ti,wl1835-st", "ti,wl1837-st"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vio-supply — not listed as required here #
Vio input supply (1.8V)
vbat-supply — not listed as required here #
Vbat input supply (2.9-4.8V)
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ext_clock"
max-speed — not listed as required here #
Default value (default): 3000000
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Nvmem data cell that contains a 6 byte BD address with the most significant byte first (big-endian).
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"bd-address"
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
bluetooth {
compatible = "ti,wl1835-st";
enable-gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
clocks = <&clk32k_wl18xx>;
clock-names = "ext_clock";
nvmem-cells = <&bd_address>;
nvmem-cell-names = "bd-address";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A10 CAN Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/allwinner,sun4i-a10-can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun7i-a20-can"Item 2
Exact value (
const):"allwinner,sun4i-a10-can"
Rule 2
Exact value (
const):"allwinner,sun4i-a10-can"
Rule 3
Exact value (
const):"allwinner,sun8i-r40-can"
Rule 4
Exact value (
const):"allwinner,sun20i-d1-can"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Allowed values (
enum):"allwinner,sun8i-r40-can","allwinner,sun20i-d1-can"
When the condition matches (then) #
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun7i-a20-ccu.h>
can0: can@1c2bc00 {
compatible = "allwinner,sun7i-a20-can",
"allwinner,sun4i-a10-can";
reg = <0x01c2bc00 0x400>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_APB1_CAN>;
};
#define RST_BUS_CAN 68
#define CLK_BUS_CAN 91
can1: can@1c2bc00 {
compatible = "allwinner,sun8i-r40-can";
reg = <0x01c2bc00 0x400>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu CLK_BUS_CAN>;
resets = <&ccu RST_BUS_CAN>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Microchip AT91 CAN Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/atmel,at91sam9263-can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"atmel,at91sam9263-can","atmel,at91sam9x5-can"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"atmel,at91sam9x5-can"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"can_clk"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/at91.h>
can@f000c000 {
compatible = "atmel,at91sam9263-can";
reg = <0xf000c000 0x300>;
interrupts = <30 IRQ_TYPE_LEVEL_HIGH 3>;
clocks = <&pmc PMC_TYPE_PERIPHERAL 12>;
clock-names = "can_clk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch C_CAN/D_CAN controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/bosch,c_can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Bosch C_CAN/D_CAN controller for CAN bus
Maintainers (maintainers): "Dario Binacchi <dariobin@libero.it>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"bosch,c_can","bosch,d_can","ti,dra7-d_can","ti,am3352-d_can"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,am3352-d_can"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
power-domains — not listed as required here #
Should contain a phandle to a PM domain provider node and an args specifier containing the DCAN device id value. It's mandatory for Keystone 2 66AK2G SoCs only.
Maximum number of items (maxItems): 1
clocks — required here #
CAN functional clock phandle.
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Maximum number of items (maxItems): 1
syscon-raminit — not listed as required here #
Handle to system control region that contains the RAMINIT register, register offset to the RAMINIT register and the CAN instance number (0 offset).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
The phandle to the system control region.
Item 2
The register offset.
Item 3
The CAN instance number.
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
interrupts— not listed as required here #Array item rules (
items)Item 1
Error and status IRQ
Item 2
Message object IRQ
Item 3
RAM ECC correctable error IRQ
Item 4
RAM ECC non-correctable error IRQ
When the condition does not match (else) #
Properties and child nodes (
properties) #
interrupts— not listed as required here #Array item rules (
items)Item 1
Error and status IRQ
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/reset/altr,rst-mgr.h>
can@ffc00000 {
compatible = "bosch,d_can";
reg = <0xffc00000 0x1000>;
interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;
clocks = <&can0_clk>;
resets = <&rst CAN0_RESET>;
};
can@0 {
compatible = "ti,am3352-d_can";
reg = <0x0 0x2000>;
clocks = <&dcan1_fck>;
clock-names = "fck";
syscon-raminit = <&scm_conf 0x644 1>;
interrupts = <55>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Bosch MCAN controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/bosch,m_can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Bosch MCAN controller for CAN bus
Maintainers (maintainers): "Chandrasekar Ramakrishnan <rcsekar@samsung.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "bosch,m_can"
reg — required here #
Array item rules (items) #
Item 1
M_CAN registers map
Item 2
message RAM
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"m_can"
Item 2
Exact value (
const):"message_ram"
interrupts — not listed as required here #
Array item rules (items) #
Item 1
interrupt line0
Item 2
interrupt line1
Minimum number of items (minItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"int0"
Item 2
Exact value (
const):"int1"
Minimum number of items (minItems): 1
clocks — required here #
Array item rules (items) #
Item 1
peripheral clock
Item 2
bus clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"cclk"
resets — not listed as required here #
Maximum number of items (maxItems): 1
bosch,mram-cfg — required here #
Message RAM configuration data. Multiple M_CAN instances can share the same Message RAM and each element(e.g Rx FIFO or Tx Buffer and etc) number in Message RAM is also configurable, so this property is telling driver how the shared or private Message RAM are used by this M_CAN controller.
The format should be as follows: <offset sidf_elems xidf_elems rxf0_elems rxf1_elems rxb_elems txe_elems txb_elems> The 'offset' is an address offset of the Message RAM where the following elements start from. This is usually set to 0x0 if you're using a private Message RAM. The remain cells are used to specify how many elements are used for each FIFO/Buffer.
M_CAN includes the following elements according to user manual: 11-bit Filter 0-128 elements / 0-128 words 29-bit Filter 0-64 elements / 0-128 words Rx FIFO 0 0-64 elements / 0-1152 words Rx FIFO 1 0-64 elements / 0-1152 words Rx Buffers 0-64 elements / 0-1152 words Tx Event FIFO 0-32 elements / 0-64 words Tx Buffers 0-32 elements / 0-576 words
Please refer to 2.4.1 Message RAM Configuration in Bosch M_CAN user manual for details.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32-array
Array item rules (items) #
Item 1
The 'offset' is an address offset of the Message RAM where the following elements start from. This is usually set to 0x0 if you're using a private Message RAM.
Default value (
default):0
Item 2
11-bit Filter 0-128 elements / 0-128 words
Minimum value (
minimum):0Maximum value (
maximum):128
Item 3
29-bit Filter 0-64 elements / 0-128 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 4
Rx FIFO 0 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 5
Rx FIFO 1 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 6
Rx Buffers 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 7
Tx Event FIFO 0-32 elements / 0-64 words
Minimum value (
minimum):0Maximum value (
maximum):32
Item 8
Tx Buffers 0-32 elements / 0-576 words
Minimum value (
minimum):0Maximum value (
maximum):32
Minimum number of items (minItems): 1
pinctrl-0 — not listed as required here #
Default pinctrl state
pinctrl-1 — not listed as required here #
Can be "sleep" or "wakeup" pinctrl state
pinctrl-2 — not listed as required here #
Can be "sleep" or "wakeup" pinctrl state
pinctrl-names — not listed as required here #
When present should contain at least "default" describing the default pin states. Other states are "sleep" which describes the pinstate when sleeping and "wakeup" describing the pins if wakeup is enabled.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Item 3
Exact value (
const):"wakeup"
power-domains — not listed as required here #
Power domain provider node and an args specifier containing the can device id value.
Maximum number of items (maxItems): 1
can-transceiver — not listed as required here #
Shared schema rule ($ref): can-transceiver.yaml#
phys — not listed as required here #
Maximum number of items (maxItems): 1
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
List of phandles to system idle states in which mcan can wakeup the system.
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "bosch,mram-cfg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
// Example with interrupts
#include <dt-bindings/clock/imx6sx-clock.h>
can@20e8000 {
compatible = "bosch,m_can";
reg = <0x020e8000 0x4000>, <0x02298000 0x4000>;
reg-names = "m_can", "message_ram";
interrupts = <0 114 0x04>, <0 114 0x04>;
interrupt-names = "int0", "int1";
clocks = <&clks IMX6SX_CLK_CANFD>,
<&clks IMX6SX_CLK_CANFD>;
clock-names = "hclk", "cclk";
bosch,mram-cfg = <0x0 0 0 32 0 0 0 1>;
can-transceiver {
max-bitrate = <5000000>;
};
};
// Example with timer polling
#include <dt-bindings/clock/imx6sx-clock.h>
can@20e8000 {
compatible = "bosch,m_can";
reg = <0x020e8000 0x4000>, <0x02298000 0x4000>;
reg-names = "m_can", "message_ram";
clocks = <&clks IMX6SX_CLK_CANFD>,
<&clks IMX6SX_CLK_CANFD>;
clock-names = "hclk", "cclk";
bosch,mram-cfg = <0x0 0 0 32 0 0 0 1>;
can-transceiver {
max-bitrate = <5000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
CAN Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/can-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^can(@.*)?$"
termination-gpios — not listed as required here #
GPIO pin to enable CAN bus termination.
Maximum number of items (maxItems): 1
termination-ohms — not listed as required here #
The resistance value of the CAN bus termination resistor.
Minimum value (minimum): 1
Maximum value (maximum): 65535
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
CAN transceiver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/can-transceiver.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
CAN transceiver generic properties bindings
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
max-bitrate — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
a positive non 0 value that determines the max speed that CAN/CAN-FD can run.
Minimum value (minimum): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
CTU CAN FD Open-source IP Core
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/ctu,ctucanfd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Open-source CAN FD IP core developed at the Czech Technical University in Prague
The core sources and documentation on project page
[1] sources : https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core
[2] datasheet : https://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/doc/Datasheet.pdf
Integration in Xilinx Zynq SoC based system together with
OpenCores SJA1000 compatible controllers
[3] project : https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top
Martin Jerabek dimploma thesis with integration and testing
framework description
[4] PDF : https://dspace.cvut.cz/bitstream/handle/10467/80366/F3-DP-2019-Jerabek-Martin-Jerabek-thesis-2019-canfd.pdf
Maintainers (maintainers): "Pavel Pisa <pisa@cmp.felk.cvut.cz>", "Ondrej Ille <ondrej.ille@gmail.com>", "Martin Jerabek <martin.jerabek01@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"ctu,ctucanfd-2"Item 2
Exact value (
const):"ctu,ctucanfd"
Rule 2
Exact value (
const):"ctu,ctucanfd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
phandle of reference clock (100 MHz is appropriate for FPGA implementation on Zynq-7000 system).
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ctu_can_fd_0: can@43c30000 {
compatible = "ctu,ctucanfd";
interrupts = <0 30 4>;
clocks = <&clkc 15>;
reg = <0x43c30000 0x10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Flexcan CAN controller on Freescale's ARM and PowerPC system-on-a-chip (SOC).
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/fsl,flexcan.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx95-flexcan","fsl,imx93-flexcan","fsl,imx8qm-flexcan","fsl,imx8mp-flexcan","fsl,imx6q-flexcan","fsl,imx28-flexcan","fsl,imx25-flexcan","fsl,p1010-flexcan","fsl,vf610-flexcan","fsl,ls1021ar2-flexcan","fsl,lx2160ar1-flexcan","nxp,s32g2-flexcan"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx53-flexcan","fsl,imx35-flexcan"Item 2
Exact value (
const):"fsl,imx25-flexcan"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx7d-flexcan","fsl,imx6ul-flexcan","fsl,imx6sx-flexcan"Item 2
Exact value (
const):"fsl,imx6q-flexcan"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,lx2160ar1-flexcan"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,s32g2-flexcan"
Rule 6
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx95-flexcan"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clocks — not listed as required here #
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
clock-frequency — not listed as required here #
The oscillator frequency driving the flexcan device, filled in by the boot loader. This property should only be used the used operating system doesn't support the clocks and clock-names property.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
xceiver-supply — not listed as required here #
Regulator that powers the CAN transceiver.
phys — not listed as required here #
Maximum number of items (maxItems): 1
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
This means the registers of FlexCAN controller are big endian. This is optional property.i.e. if this property is not present in device tree node then controller is assumed to be little endian. If this property is present then controller is assumed to be big endian.
can-transceiver — not listed as required here #
Shared schema rule ($ref): can-transceiver.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
fsl,stop-mode — not listed as required here #
Register bits of stop mode control.
The format should be as follows: <gpr req_gpr req_bit> gpr is the phandle to general purpose register node. req_gpr is the gpr register offset of CAN stop request. req_bit is the bit offset of CAN stop request.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
The 'gpr' is the phandle to general purpose register node.
Item 2
The 'req_gpr' is the gpr register offset of CAN stop request.
Maximum value (
maximum):255Item 3
The 'req_bit' is the bit offset of CAN stop request.
Maximum value (
maximum):31
fsl,clk-source — not listed as required here #
Select the clock source to the CAN Protocol Engine (PE). It's SoC implementation dependent. Refer to RM for detailed definition. If this property is not set in device tree node then driver selects clock source 1 by default. 0: clock source 0 (oscillator clock) 1: clock source 1 (peripheral clock)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 1
Minimum value (minimum): 0
Maximum value (maximum): 1
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable CAN remote wakeup.
fsl,scu-index — not listed as required here #
The scu index of CAN instance. For SoCs with SCU support, need setup stop mode via SCU firmware, so this property can help indicate a resource. It supports up to 3 CAN instances now.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 0
Maximum value (maximum): 2
termination-gpios — not listed as required here #
true — No constraints added by this property rule.
termination-ohms — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nxp,s32g2-flexcan"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
Message Buffer interrupt for mailboxes 0-7 and Enhanced RX FIFO
Item 2
Device state change
Item 3
Bus Error detection
Item 4
Message Buffer interrupt for mailboxes 8-127
interrupt-names— required hereArray item rules (
items)Item 1
Exact value (
const):"mb-0"Item 2
Exact value (
const):"state"Item 3
Exact value (
const):"berr"Item 4
Exact value (
const):"mb-1"When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
phys— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
can@1c000 {
compatible = "fsl,p1010-flexcan";
reg = <0x1c000 0x1000>;
interrupts = <48 0x2>;
interrupt-parent = <&mpic>;
clock-frequency = <200000000>;
fsl,clk-source = /bits/ 8 <0>;
};
#include <dt-bindings/interrupt-controller/irq.h>
can@2090000 {
compatible = "fsl,imx6q-flexcan";
reg = <0x02090000 0x4000>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 1>, <&clks 2>;
clock-names = "ipg", "per";
fsl,stop-mode = <&gpr 0x34 28>;
fsl,scu-index = /bits/ 8 <1>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
can@2090000 {
compatible = "fsl,imx6q-flexcan";
reg = <0x02090000 0x4000>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 1>, <&clks 2>;
clock-names = "ipg", "per";
fsl,stop-mode = <&gpr 0x34 28>;
termination-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
termination-ohms = <120>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip MCP251X stand-alone CAN controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/microchip,mcp2510.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,mcp2510", "microchip,mcp2515", "microchip,mcp25625"
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
vdd-supply — not listed as required here #
Regulator that powers the CAN controller.
xceiver-supply — not listed as required here #
Regulator that powers the CAN transceiver.
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
can@1 {
compatible = "microchip,mcp2515";
reg = <1>;
clocks = <&clk24m>;
interrupt-parent = <&gpio4>;
interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
vdd-supply = <®5v0>;
xceiver-supply = <®5v0>;
gpio-controller;
#gpio-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip MCP2517FD, MCP2518FD and MCP251863 stand-alone CAN controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/microchip,mcp251xfd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"microchip,mcp2517fd","microchip,mcp2518fd","microchip,mcp251xfd"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"microchip,mcp2518fd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that powers the CAN controller.
xceiver-supply — not listed as required here #
Regulator that powers the CAN transceiver.
microchip,rx-int-gpios — not listed as required here #
GPIO phandle of GPIO connected to INT1 pin of the MCP251XFD, which signals a pending RX interrupt.
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Must be half or less of "clocks" frequency.
Maximum value (maximum): 20000000
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
can@0 {
compatible = "microchip,mcp251xfd";
reg = <0>;
clocks = <&can0_osc>;
pinctrl-names = "default";
pinctrl-0 = <&can0_pins>;
spi-max-frequency = <20000000>;
interrupts-extended = <&gpio 13 IRQ_TYPE_LEVEL_LOW>;
microchip,rx-int-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
vdd-supply = <®5v0>;
xceiver-supply = <®5v0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip PolarFire SoC (MPFS) can controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/microchip,mpfs-can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-can"Item 2
Exact value (
const):"microchip,mpfs-can"
Rule 2
Exact value (
const):"microchip,mpfs-can"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
AHB peripheral clock
Item 2
CAN bus clock
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
can@2010c000 {
compatible = "microchip,mpfs-can";
reg = <0x2010c000 0x1000>;
clocks = <&clkcfg 17>, <&clkcfg 37>;
resets = <&clkcfg 17>;
interrupt-parent = <&plic>;
interrupts = <56>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Memory mapped SJA1000 CAN controller from NXP (formerly Philips)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/nxp,sja1000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wolfgang Grandegger <wg@grandegger.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-sja1000"Item 2
Exact value (
const):"renesas,rzn1-sja1000"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
reg-io-width — not listed as required here #
I/O register width (in bytes) implemented by this device
Default value (default): 1
Allowed values (enum): 1, 2, 4
nxp,external-clock-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 16000000
Frequency of the external oscillator clock in Hz. The internal clock frequency used by the SJA1000 is half of that value.
nxp,tx-output-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 1
operation mode of the TX output control logic. Valid values are:
<0> : bi-phase output mode
<1> : normal output mode (default)
<2> : test output mode
<3> : clock output mode
nxp,tx-output-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 2
TX output pin configuration. Valid values are any one of the below
or combination of TX0 and TX1:
<0x01> : TX0 invert
<0x02> : TX0 pull-down (default)
<0x04> : TX0 pull-up
<0x06> : TX0 push-pull
<0x08> : TX1 invert
<0x10> : TX1 pull-down
<0x20> : TX1 pull-up
<0x30> : TX1 push-pull
nxp,clock-out-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
clock frequency in Hz on the CLKOUT pin. If not specified or if the specified value is 0, the CLKOUT pin will be disabled.
nxp,no-comparator-bypass — not listed as required here #
Value type (type): "boolean"
Allows to disable the CAN input comparator.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/memory-controllers/mc-peripheral-props.yaml
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"technologic,sja1000","renesas,rzn1-sja1000"When the condition matches (
then) #
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzn1-sja1000"When the condition matches (
then) #Required in this object (
required):"clocks","power-domains"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
can@1a000 {
compatible = "technologic,sja1000";
reg = <0x1a000 0x100>;
interrupts = <1>;
reg-io-width = <2>;
nxp,tx-output-config = <0x06>;
nxp,external-clock-frequency = <24000000>;
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
can@52104000 {
compatible = "renesas,r9a06g032-sja1000", "renesas,rzn1-sja1000";
reg = <0x52104000 0x800>;
reg-io-width = <4>;
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sysctrl R9A06G032_HCLK_CAN0>;
power-domains = <&sysctrl>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: RZ/N1D
Line 20: RZ/N1
Renesas R-Car CAN Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/renesas,rcar-can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,can-r8a7778","renesas,can-r8a7779"Item 2
Exact value (
const):"renesas,rcar-gen1-can"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,can-r8a7742","renesas,can-r8a7743","renesas,can-r8a7744","renesas,can-r8a7745","renesas,can-r8a77470","renesas,can-r8a7790","renesas,can-r8a7791","renesas,can-r8a7792","renesas,can-r8a7793","renesas,can-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-can"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,can-r8a774a1","renesas,can-r8a774b1","renesas,can-r8a774c0","renesas,can-r8a774e1","renesas,can-r8a7795","renesas,can-r8a7796","renesas,can-r8a77961","renesas,can-r8a77965","renesas,can-r8a77990","renesas,can-r8a77995"Item 2
Exact value (
const):"renesas,rcar-gen3-can"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clkp1"
Item 2
Exact value (
const):"clkp2"
Item 3
Exact value (
const):"can_clk"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
renesas,can-clock-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 3
Default value (default): 0
R-Car CAN Clock Source Select. Valid values are:
<0x0> (default) : Peripheral clock (clkp1)
<0x1> : Peripheral clock (clkp2)
<0x3> : External input clock
assigned-clocks — not listed as required here #
Reference to the clkp2 (CANFD) clock. On R-Car Gen3 and RZ/G2 SoCs, "clkp2" is the CANFD clock. This is a div6 clock and can be used by both CAN and CAN FD controllers at the same time. It needs to be scaled to maximum frequency if any of these controllers use it.
assigned-clock-rates — not listed as required here #
Maximum frequency of the CANFD clock.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rcar-gen1-can"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rcar-gen3-can"When the condition matches (
then) #Required in this object (
required):"assigned-clocks","assigned-clock-rates"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7791-sysc.h>
can0: can@e6e80000 {
compatible = "renesas,can-r8a7791", "renesas,rcar-gen2-can";
reg = <0xe6e80000 0x1000>;
interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 916>,
<&cpg CPG_CORE R8A7791_CLK_RCAN>, <&can_clk>;
clock-names = "clkp1", "clkp2", "can_clk";
power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
resets = <&cpg 916>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: R-Car M1-A
Line 18: R-Car H1
Line 19: R-Car Gen1
Line 23: RZ/G1H
Line 24: RZ/G1M
Line 25: RZ/G1N
Line 26: RZ/G1E
Line 27: RZ/G1C
Line 28: R-Car H2
Line 29: R-Car M2-W
Line 30: R-Car V2H
Line 31: R-Car M2-N
Line 32: R-Car E2
Line 33: R-Car Gen2 and RZ/G1
Line 37: RZ/G2M
Line 38: RZ/G2N
Line 39: RZ/G2E
Line 40: RZ/G2H
Line 41: R-Car H3
Line 42: R-Car M3-W
Line 43: R-Car M3-W+
Line 44: R-Car M3-N
Line 45: R-Car E3
Line 46: R-Car D3
Line 47: R-Car Gen3 and RZ/G2
Renesas R-Car CAN FD Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/renesas,rcar-canfd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"renesas,r9a09g047-canfd","renesas,r9a09g077-canfd"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r8a774a1-canfd","renesas,r8a774b1-canfd","renesas,r8a774c0-canfd","renesas,r8a774e1-canfd","renesas,r8a7795-canfd","renesas,r8a7796-canfd","renesas,r8a77961-canfd","renesas,r8a77965-canfd","renesas,r8a77970-canfd","renesas,r8a77980-canfd","renesas,r8a77990-canfd","renesas,r8a77995-canfd"Item 2
Exact value (
const):"renesas,rcar-gen3-canfd"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r8a779a0-canfd","renesas,r8a779g0-canfd","renesas,r8a779h0-canfd"Item 2
Exact value (
const):"renesas,rcar-gen4-canfd"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g043-canfd","renesas,r9a07g044-canfd","renesas,r9a07g054-canfd"Item 2
Exact value (
const):"renesas,rzg2l-canfd"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g056-canfd","renesas,r9a09g057-canfd"Item 2
Exact value (
const):"renesas,r9a09g047-canfd"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-canfd"Item 2
Exact value (
const):"renesas,r9a09g077-canfd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Channel interrupt
Item 2
Global interrupt
Rule 2
Array item rules (
items)Item 1
CAN global error interrupt
Item 2
CAN receive FIFO interrupt
Item 3
CAN0 error interrupt
Item 4
CAN0 transmit interrupt
Item 5
CAN0 transmit/receive FIFO receive completion interrupt
Item 6
CAN1 error interrupt
Item 7
CAN1 transmit interrupt
Item 8
CAN1 transmit/receive FIFO receive completion interrupt
Item 9
CAN2 error interrupt
Item 10
CAN2 transmit interrupt
Item 11
CAN2 transmit/receive FIFO receive completion interrupt
Item 12
CAN3 error interrupt
Item 13
CAN3 transmit interrupt
Item 14
CAN3 transmit/receive FIFO receive completion interrupt
Item 15
CAN4 error interrupt
Item 16
CAN4 transmit interrupt
Item 17
CAN4 transmit/receive FIFO receive completion interrupt
Item 18
CAN5 error interrupt
Item 19
CAN5 transmit interrupt
Item 20
CAN5 transmit/receive FIFO receive completion interrupt
Minimum number of items (
minItems):8
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"ch_int"Item 2
Exact value (
const):"g_int"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"g_err"Item 2
Exact value (
const):"g_recc"Item 3
Exact value (
const):"ch0_err"Item 4
Exact value (
const):"ch0_rec"Item 5
Exact value (
const):"ch0_trx"Item 6
Exact value (
const):"ch1_err"Item 7
Exact value (
const):"ch1_rec"Item 8
Exact value (
const):"ch1_trx"Item 9
Exact value (
const):"ch2_err"Item 10
Exact value (
const):"ch2_rec"Item 11
Exact value (
const):"ch2_trx"Item 12
Exact value (
const):"ch3_err"Item 13
Exact value (
const):"ch3_rec"Item 14
Exact value (
const):"ch3_trx"Item 15
Exact value (
const):"ch4_err"Item 16
Exact value (
const):"ch4_rec"Item 17
Exact value (
const):"ch4_trx"Item 18
Exact value (
const):"ch5_err"Item 19
Exact value (
const):"ch5_rec"Item 20
Exact value (
const):"ch5_trx"Minimum number of items (
minItems):8
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"fck"Item 2
Exact value (
const):"canfd"Item 3
Exact value (
const):"can_clk"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fck"Item 2
Exact value (
const):"ram_clk"Item 3
Exact value (
const):"can_clk"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
true — No constraints added by this property rule.
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rstp_n"
Item 2
Exact value (
const):"rstc_n"
renesas,no-can-fd — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The controller can operate in either CAN-FD mode (default) or FD-Only mode (RZ/{G2L,G3E} and R-Car Gen4) or Classical CAN mode. Specify this property to put the controller in Classical CAN mode.
renesas,fd-only — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The CANFD on RZ/{G2L,G3E} and R-Car Gen4 SoCs support 3 modes FD-Only mode, Classical CAN mode and CAN-FD mode (default). In FD-Only mode, communication in Classical CAN frame format is disabled. Specify this property to put the controller in FD-Only mode.
assigned-clocks — required here #
Reference to the CANFD clock. The CANFD clock is a div6 clock and can be used by both CAN (if present) and CAN FD controllers at the same time. It needs to be scaled to maximum frequency if any of these controllers use it.
assigned-clock-rates — required here #
Maximum frequency of the CANFD clock.
Properties matching a name pattern (patternProperties) #
^channel[0-7]$ — name matches this regular expression #
Value type (type): "object"
The controller supports multiple channels and each is represented as a child node. Each channel can be enabled/disabled individually.
Properties and child nodes (properties) #
phys — not listed as required here
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "assigned-clocks", "assigned-clock-rates", "channel0", "channel1"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):8
interrupt-names— not listed as required hereMaximum number of items (
maxItems):8
resets— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,rcar-gen3-canfd","renesas,rcar-gen4-canfd"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
interrupt-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
resets— not listed as required hereMaximum number of items (
maxItems):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g047-canfd"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):20
interrupt-names— not listed as required hereMinimum number of items (
minItems):20
resets— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g077-canfd"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):8
interrupt-names— not listed as required hereMaximum number of items (
maxItems):8
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a09g077-canfd","renesas,rcar-gen3-canfd","renesas,rzg2l-canfd"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel[2-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r8a779h0-canfd"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel[4-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g047-canfd"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel[6-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
renesas,fd-only— not listed as required here
false— Not permitted by this property rule.
Rule 10 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
renesas,fd-only— not listed as required here
false— Not permitted by this property rule.
Rule 11 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
renesas,no-can-fd— not listed as required here
false— Not permitted by this property rule.
Rule 12 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g077-canfd"When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.
Rule 13 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a09g047-canfd","renesas,rzg2l-canfd"When the condition matches (
then) #
Rule 14 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,rcar-gen3-canfd","renesas,rcar-gen4-canfd"When the condition matches (
then) #Required in this object (
required):"resets"Properties and child nodes (
properties)
reset-names— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
canfd: can@e66c0000 {
compatible = "renesas,r8a7795-canfd",
"renesas,rcar-gen3-canfd";
reg = <0xe66c0000 0x8000>;
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ch_int", "g_int";
clocks = <&cpg CPG_MOD 914>,
<&cpg CPG_CORE R8A7795_CLK_CANFD>,
<&can_clk>;
clock-names = "fck", "canfd", "can_clk";
assigned-clocks = <&cpg CPG_CORE R8A7795_CLK_CANFD>;
assigned-clock-rates = <40000000>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 914>;
channel0 {
};
channel1 {
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: RZ/G3E
Line 17: RZ/T2H
Line 21: RZ/G2M
Line 22: RZ/G2N
Line 23: RZ/G2E
Line 24: RZ/G2H
Line 25: R-Car H3
Line 26: R-Car M3-W
Line 27: R-Car M3-W+
Line 28: R-Car M3-N
Line 29: R-Car V3M
Line 30: R-Car V3H
Line 31: R-Car E3
Line 32: R-Car D3
Line 33: R-Car Gen3 and RZ/G2
Line 37: R-Car V3U
Line 38: R-Car V4H
Line 39: R-Car V4M
Line 40: R-Car Gen4
Line 44: RZ/G2UL and RZ/Five
Line 45: RZ/G2{L,LC}
Line 46: RZ/V2L
Line 47: RZ/G2L family
Line 51: RZ/V2N
Line 52: RZ/V2H(P)
Line 56: RZ/N2H
Rockchip CAN-FD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/rockchip,rk3568v2-canfd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk3568v2-canfd"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"rockchip,rk3568v3-canfd"Item 2
Exact value (
const):"rockchip,rk3568v2-canfd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"baud"
Item 2
Exact value (
const):"pclk"
resets — required here #
Maximum number of items (maxItems): 2
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"apb"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
can@fe570000 {
compatible = "rockchip,rk3568v2-canfd";
reg = <0x0 0xfe570000 0x0 0x1000>;
interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>;
clock-names = "baud", "pclk";
resets = <&cru SRST_CAN0>, <&cru SRST_P_CAN0>;
reset-names = "core", "apb";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics bxCAN controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/st,stm32-bxcan.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
STMicroelectronics BxCAN controller for CAN bus
Maintainers (maintainers): "Dario Binacchi <dario.binacchi@amarulasolutions.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32f4-bxcan"
st,can-primary — not listed as required here #
Primary mode of the bxCAN peripheral is only relevant if the chip has two CAN peripherals in dual CAN configuration. In that case they share some of the required logic. Not to be used if the peripheral is in single CAN configuration. To avoid misunderstandings, it should be noted that ST documentation uses the terms master instead of primary.
Value type (type): "boolean"
st,can-secondary — not listed as required here #
Secondary mode of the bxCAN peripheral is only relevant if the chip has two CAN peripherals in dual CAN configuration. In that case they share some of the required logic. Not to be used if the peripheral is in single CAN configuration. To avoid misunderstandings, it should be noted that ST documentation uses the terms slave instead of secondary.
Value type (type): "boolean"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
transmit interrupt
Item 2
FIFO 0 receive interrupt
Item 3
FIFO 1 receive interrupt
Item 4
status change error interrupt
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx0"
Item 3
Exact value (
const):"rx1"
Item 4
Exact value (
const):"sce"
resets — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
st,gcan — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle to the gcan node which allows to access the 512-bytes SRAM memory shared by the two bxCAN cells (CAN1 primary and CAN2 secondary) in dual CAN peripheral configuration.
Required in this object (required): "compatible", "reg", "interrupts", "resets", "clocks", "st,gcan"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32fx-clock.h>
#include <dt-bindings/mfd/stm32f4-rcc.h>
can1: can@40006400 {
compatible = "st,stm32f4-bxcan";
reg = <0x40006400 0x200>;
interrupts = <19>, <20>, <21>, <22>;
interrupt-names = "tx", "rx0", "rx1", "sce";
resets = <&rcc STM32F4_APB1_RESET(CAN1)>;
clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>;
st,can-primary;
st,gcan = <&gcan>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TCAN4x5x CAN Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/ti,tcan4x5x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marc Kleine-Budde <mkl@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,tcan4x5x"
Rule 2
Exact value (
const):"ti,tcan4x5x"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
The GPIO parent interrupt.
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cclk"
reset-gpios — not listed as required here #
Hardwired output GPIO. If not defined then software reset.
Maximum number of items (maxItems): 1
device-state-gpios — not listed as required here #
Input GPIO that indicates if the device is in a sleep state or if the device is active. Not available with tcan4552/4553.
Maximum number of items (maxItems): 1
device-wake-gpios — not listed as required here #
Wake up GPIO to wake up the TCAN device. Not available with tcan4552/4553.
Maximum number of items (maxItems): 1
bosch,mram-cfg — required here #
Message RAM configuration data. Multiple M_CAN instances can share the same Message RAM and each element(e.g Rx FIFO or Tx Buffer and etc) number in Message RAM is also configurable, so this property is telling driver how the shared or private Message RAM are used by this M_CAN controller.
The format should be as follows: <offset sidf_elems xidf_elems rxf0_elems rxf1_elems rxb_elems txe_elems txb_elems> The 'offset' is an address offset of the Message RAM where the following elements start from. This is usually set to 0x0 if you're using a private Message RAM. The remain cells are used to specify how many elements are used for each FIFO/Buffer.
M_CAN includes the following elements according to user manual: 11-bit Filter 0-128 elements / 0-128 words 29-bit Filter 0-64 elements / 0-128 words Rx FIFO 0 0-64 elements / 0-1152 words Rx FIFO 1 0-64 elements / 0-1152 words Rx Buffers 0-64 elements / 0-1152 words Tx Event FIFO 0-32 elements / 0-64 words Tx Buffers 0-32 elements / 0-576 words
Please refer to 2.4.1 Message RAM Configuration in Bosch M_CAN user manual for details.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32-array
Array item rules (items) #
Item 1
The 'offset' is an address offset of the Message RAM where the following elements start from. This is usually set to 0x0 if you're using a private Message RAM.
Default value (
default):0
Item 2
11-bit Filter 0-128 elements / 0-128 words
Minimum value (
minimum):0Maximum value (
maximum):128
Item 3
29-bit Filter 0-64 elements / 0-128 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 4
Rx FIFO 0 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 5
Rx FIFO 1 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 6
Rx Buffers 0-64 elements / 0-1152 words
Minimum value (
minimum):0Maximum value (
maximum):64
Item 7
Tx Event FIFO 0-32 elements / 0-64 words
Minimum value (
minimum):0Maximum value (
maximum):32
Item 8
Tx Buffers 0-32 elements / 0-576 words
Minimum value (
minimum):0Maximum value (
maximum):32
Minimum number of items (minItems): 1
spi-max-frequency — not listed as required here #
Must be half or less of "clocks" frequency.
Maximum value (maximum): 18000000
ti,nwkrq-voltage-vio — not listed as required here #
Value type (type): "boolean"
nWKRQ Pin GPO buffer voltage configuration. Set nWKRQ to use VIO voltage rail. When not set nWKRQ will use internal voltage rail.
wakeup-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable CAN remote wakeup.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
device-state-gpios— not listed as required here
false— Not permitted by this property rule.
device-wake-gpios— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "bosch,mram-cfg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
can@0 {
compatible = "ti,tcan4x5x";
reg = <0>;
clocks = <&can0_osc>;
clock-names = "cclk";
pinctrl-names = "default";
pinctrl-0 = <&can0_pins>;
spi-max-frequency = <10000000>;
bosch,mram-cfg = <0x0 0 0 16 0 0 1 1>;
interrupt-parent = <&gpio1>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
ti,nwkrq-voltage-vio;
wakeup-source;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
can@0 {
compatible = "ti,tcan4552", "ti,tcan4x5x";
reg = <0>;
clocks = <&can0_osc>;
clock-names = "cclk";
pinctrl-names = "default";
pinctrl-0 = <&can0_pins>;
spi-max-frequency = <10000000>;
bosch,mram-cfg = <0x0 0 0 16 0 0 1 1>;
interrupt-parent = <&gpio1>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>;
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx CAN and CANFD controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / can
Schema identifier ($id): "http://devicetree.org/schemas/net/can/xilinx,can.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,zynq-can-1.0", "xlnx,axi-can-1.00.a", "xlnx,canfd-1.0", "xlnx,canfd-2.0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Maximum number of items (maxItems): 2
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
tx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
CAN Tx fifo depth (Zynq, Axi CAN).
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
CAN Rx fifo depth (Zynq, Axi CAN, CAN FD in sequential Rx mode)
tx-mailbox-count — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
CAN Tx mailbox buffer count (CAN FD)
resets — not listed as required here #
Maximum number of items (maxItems): 1
xlnx,has-ecc — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
CAN TX_OL, TX_TL and RX FIFOs have ECC support(AXI CAN)
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):can-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"can_clk"Item 2
Exact value (
const):"pclk"Required in this object (
required):"tx-fifo-depth","rx-fifo-depth"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"can_clk"Item 2
Exact value (
const):"s_axi_aclk"Required in this object (
required):"tx-fifo-depth","rx-fifo-depth"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"can_clk"Item 2
Exact value (
const):"s_axi_aclk"Required in this object (
required):"tx-mailbox-count","rx-fifo-depth"
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
can@e0008000 {
compatible = "xlnx,zynq-can-1.0";
reg = <0xe0008000 0x1000>;
clocks = <&clkc 19>, <&clkc 36>;
clock-names = "can_clk", "pclk";
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&intc>;
tx-fifo-depth = <0x40>;
rx-fifo-depth = <0x40>;
};
can@40000000 {
compatible = "xlnx,axi-can-1.00.a";
reg = <0x40000000 0x10000>;
clocks = <&clkc 0>, <&clkc 1>;
clock-names = "can_clk", "s_axi_aclk";
interrupt-parent = <&intc>;
interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
tx-fifo-depth = <0x40>;
rx-fifo-depth = <0x40>;
xlnx,has-ecc;
};
can@40000000 {
compatible = "xlnx,canfd-1.0";
reg = <0x40000000 0x2000>;
clocks = <&clkc 0>, <&clkc 1>;
clock-names = "can_clk", "s_axi_aclk";
interrupt-parent = <&intc>;
interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
tx-mailbox-count = <0x20>;
rx-fifo-depth = <0x20>;
};
can@ff060000 {
compatible = "xlnx,canfd-2.0";
reg = <0xff060000 0x6000>;
clocks = <&clkc 0>, <&clkc 1>;
clock-names = "can_clk", "s_axi_aclk";
interrupt-parent = <&intc>;
interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
tx-mailbox-count = <0x20>;
rx-fifo-depth = <0x40>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Arrow SpeedChips XRS7000 Series Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/arrow,xrs700x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Maintainers (maintainers): "George McCollister <george.mccollister@gmail.com>"
The Arrow SpeedChips XRS7000 Series of single chip gigabit Ethernet switches are designed for critical networking applications. They have up to three RGMII ports and one RMII port and are managed via i2c or mdio.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"arrow,xrs7003e","arrow,xrs7003f","arrow,xrs7004e","arrow,xrs7004f"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
switch@8 {
compatible = "arrow,xrs7004e";
reg = <0x8>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@1 {
reg = <1>;
label = "lan0";
phy-handle = <&swphy0>;
phy-mode = "rgmii-id";
};
ethernet-port@2 {
reg = <2>;
label = "lan1";
phy-handle = <&swphy1>;
phy-mode = "rgmii-id";
};
ethernet-port@3 {
reg = <3>;
ethernet = <&fec1>;
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM53xx Ethernet switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/brcm,b53.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"
Broadcom BCM53xx Ethernet switches
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"brcm,bcm5325"
Rule 2
Exact value (
const):"brcm,bcm53101"
Rule 3
Exact value (
const):"brcm,bcm53115"
Rule 4
Exact value (
const):"brcm,bcm53125"
Rule 5
Exact value (
const):"brcm,bcm53128"
Rule 6
Exact value (
const):"brcm,bcm53134"
Rule 7
Exact value (
const):"brcm,bcm5365"
Rule 8
Exact value (
const):"brcm,bcm5395"
Rule 9
Exact value (
const):"brcm,bcm5389"
Rule 10
Exact value (
const):"brcm,bcm5397"
Rule 11
Exact value (
const):"brcm,bcm5398"
Rule 12
Array item rules (
items)Item 1
Exact value (
const):"brcm,bcm11360-srab"Item 2
Exact value (
const):"brcm,cygnus-srab"
Rule 13
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm53010-srab","brcm,bcm53011-srab","brcm,bcm53012-srab","brcm,bcm53018-srab","brcm,bcm53019-srab"Item 2
Exact value (
const):"brcm,bcm5301x-srab"
Rule 14
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm11404-srab","brcm,bcm11407-srab","brcm,bcm11409-srab","brcm,bcm58310-srab","brcm,bcm58311-srab","brcm,bcm58313-srab"Item 2
Exact value (
const):"brcm,omega-srab"
Rule 15
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm58522-srab","brcm,bcm58523-srab","brcm,bcm58525-srab","brcm,bcm58622-srab","brcm,bcm58623-srab","brcm,bcm58625-srab","brcm,bcm88312-srab"Item 2
Exact value (
const):"brcm,nsp-srab"
Rule 16
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm3384-switch","brcm,bcm6318-switch","brcm,bcm6328-switch","brcm,bcm6362-switch","brcm,bcm6368-switch","brcm,bcm63268-switch"Item 2
Exact value (
const):"brcm,bcm63xx-switch"
brcm,gpio-ctrl — not listed as required here #
A phandle to the syscon node of the bcm63xx gpio controller which contains phy control registers
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"brcm,bcm5325","brcm,bcm53101","brcm,bcm53115","brcm,bcm53125","brcm,bcm53128","brcm,bcm5365","brcm,bcm5395","brcm,bcm5397","brcm,bcm5398"When the condition matches (
then) #Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"brcm,bcm58522-srab","brcm,bcm58523-srab","brcm,bcm58525-srab","brcm,bcm58622-srab","brcm,bcm58623-srab","brcm,bcm58625-srab","brcm,bcm88312-srab"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"srab"Item 2
Exact value (
const):"mux_config"Item 3
Exact value (
const):"sgmii_config"
interrupts— required hereMinimum number of items (
minItems):13Maximum number of items (
maxItems):13
interrupt-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"link_state_p0"Item 2
Exact value (
const):"link_state_p1"Item 3
Exact value (
const):"link_state_p2"Item 4
Exact value (
const):"link_state_p3"Item 5
Exact value (
const):"link_state_p4"Item 6
Exact value (
const):"link_state_p5"Item 7
Exact value (
const):"link_state_p7"Item 8
Exact value (
const):"link_state_p8"Item 9
Exact value (
const):"phy"Item 10
Exact value (
const):"ts"Item 11
Exact value (
const):"imp_sleep_timer_p5"Item 12
Exact value (
const):"imp_sleep_timer_p7"Item 13
Exact value (
const):"imp_sleep_timer_p8"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@1e {
compatible = "brcm,bcm53125";
reg = <30>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@5 {
reg = <5>;
label = "cable-modem";
phy-mode = "rgmii-txid";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@8 {
reg = <8>;
phy-mode = "rgmii-txid";
ethernet = <ð0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
axi {
#address-cells = <1>;
#size-cells = <1>;
switch@36000 {
compatible = "brcm,bcm58623-srab", "brcm,nsp-srab";
reg = <0x36000 0x1000>,
<0x3f308 0x8>,
<0x3f410 0xc>;
reg-names = "srab", "mux_config", "sgmii_config";
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "link_state_p0",
"link_state_p1",
"link_state_p2",
"link_state_p3",
"link_state_p4",
"link_state_p5",
"link_state_p7",
"link_state_p8",
"phy",
"ts",
"imp_sleep_timer_p5",
"imp_sleep_timer_p7",
"imp_sleep_timer_p8";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
label = "port0";
reg = <0>;
};
port@1 {
label = "port1";
reg = <1>;
};
port@2 {
label = "port2";
reg = <2>;
};
port@3 {
label = "port3";
reg = <3>;
};
port@4 {
label = "port4";
reg = <4>;
};
port@8 {
ethernet = <&amac2>;
reg = <8>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 98: BCM585xx/586xx/88312 SoCs
Broadcom Starfighter 2 integrated switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/brcm,sf2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"brcm,bcm4908-switch","brcm,bcm7278-switch-v4.0","brcm,bcm7278-switch-v4.8","brcm,bcm7445-switch-v4.0"
reg — required here #
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 6
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
Item 3
Exact value (
const):"intrl2_0"
Item 4
Exact value (
const):"intrl2_1"
Item 5
Exact value (
const):"fcb"
Item 6
Exact value (
const):"acb"
interrupts — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch_0"
Item 2
Exact value (
const):"switch_1"
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "switch"
clocks — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
switch's main clock
Item 2
dividing of the switch core clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"sw_switch"
Item 2
Exact value (
const):"sw_switch_mdiv"
brcm,num-gphy — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum number of integrated gigabit PHYs in the switch
brcm,num-rgmii-ports — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum number of RGMII interfaces supported by the switch
brcm,fcb-pause-override — not listed as required here #
if present indicates that the switch supports Failover Control Block pause override capability
Value type (type): "boolean"
brcm,acb-packets-inflight — not listed as required here #
if present indicates that the switch Admission Control Block supports reporting the number of packets in-flight in a switch queue
Value type (type): "boolean"
ports — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]$ — name matches this regular expression
Shared schema rule ($ref): dsa-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
brcm,use-bcm-hdr — not listed as required here
if present, indicates that the switch port has Broadcom tags enabled (per-packet metadata)
Value type (type): "boolean"
Required in this object (required): "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"brcm,bcm7278-switch-v4.0","brcm,bcm7278-switch-v4.8"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
clock-names— required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"brcm,bcm7445-switch-v4.0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
switch@f0b00000 {
compatible = "brcm,bcm7445-switch-v4.0";
reg = <0xf0b00000 0x40000>,
<0xf0b40000 0x110>,
<0xf0b40340 0x30>,
<0xf0b40380 0x30>,
<0xf0b40400 0x34>,
<0xf0b40600 0x208>;
reg-names = "core", "reg", "intrl2_0", "intrl2_1",
"fcb", "acb";
interrupts = <0 0x18 0>,
<0 0x19 0>;
clocks = <&sw_switch>, <&sw_switch_mdiv>;
clock-names = "sw_switch", "sw_switch_mdiv";
brcm,num-gphy = <1>;
brcm,num-rgmii-ports = <2>;
brcm,fcb-pause-override;
brcm,acb-packets-inflight;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
label = "gphy";
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Generic DSA Switch Port
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/dsa-port.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>"
A DSA switch port is a component of a switch that manages one MAC, and can pass Ethernet frames. It can act as a stanadard Ethernet switch port, or have DSA-specific functionality.
Shared schema rule ($ref): /schemas/net/ethernet-switch-port.yaml#
Properties and child nodes (properties) #
reg — not listed as required here #
Array item rules (items) #
Item 1
Port number
label — not listed as required here #
Describes the label associated with this port, which will become the netdev name
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
link — not listed as required here #
Should be a list of phandles to other switch's DSA port. This port is used as the outgoing port towards the phandle ports. The full routing information must be given, not just the one hop routes to neighbouring switches
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
ethernet — not listed as required here #
Should be a phandle to a valid Ethernet device node. This host device is what the switch port is connected to
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
dsa-tag-protocol — not listed as required here #
Instead of the default, the switch will use this tag protocol if possible. Useful when a device supports multiple protocols and the default is incompatible with the Ethernet device.
Allowed values (enum): "dsa", "edsa", "ocelot", "ocelot-8021q", "rtl8_4", "rtl8_4t", "seville"
Condition (if) #
Exactly one of these rules must match (
oneOf) #Rule 1 #
Rule 2 #
When the condition matches (then) #
All of these rules must match (
allOf) #Rule 1 #
Rule 2 #
Exactly one of these rules must match (
oneOf)Rule 1
Rule 2
Rule 3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 62: CPU and DSA ports must have phylink-compatible link descriptions
Ethernet Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/dsa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>"
This binding represents Ethernet Switches which have a dedicated CPU port. That port is usually connected to an Ethernet Controller of the SoC. Such setups are typical for embedded devices.
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Shared schema rule ($ref): /schemas/net/ethernet-switch.yaml#
Properties and child nodes (properties) #
dsa,member — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
A two element list indicates which DSA cluster, and position within the cluster a switch takes. <0 0> is cluster 0, switch 0. <0 1> is cluster 0, switch 1. <1 0> is cluster 1, switch 0. A switch not part of any cluster (single device hanging off a CPU port) must not specify this property
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Reusable definitions ($defs) #
ethernet-ports #
A DSA switch without any extra port properties
Shared schema rule ($ref): #
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression
Properties matching a name pattern (patternProperties)
^(ethernet-)?port@[0-9a-f]+$ — name matches this regular expression
Ethernet switch ports
Shared schema rule ($ref): dsa-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Hirschmann Hellcreek TSN Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/hirschmann,hellcreek.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>", "Kurt Kanzenbach <kurt@linutronix.de>"
The Hellcreek TSN Switch IP is a 802.1Q Ethernet compliant switch. It supports the Precision Time Protocol, Hardware Timestamping as well the Time Aware Shaper.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hirschmann,hellcreek-de1soc-r1"
reg — required here #
The physical base address and size of TSN and PTP memory base
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tsn"
Item 2
Exact value (
const):"ptp"
leds — required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[01]$ — name matches this regular expression
Value type (type): "object"
Hellcreek leds
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
Led number
label — not listed as required here
true — No constraints added by this property rule.
default-state — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "ethernet-ports", "leds"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
switch0: switch@ff240000 {
compatible = "hirschmann,hellcreek-de1soc-r1";
reg = <0xff240000 0x1000>,
<0xff250000 0x1000>;
reg-names = "tsn", "ptp";
dsa,member = <0 0>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&gmac0>;
phy-mode = "mii";
fixed-link {
speed = <100>;
full-duplex;
};
};
port@2 {
reg = <2>;
label = "lan0";
phy-handle = <&phy1>;
};
port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&phy2>;
};
};
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
label = "sync_good";
default-state = "on";
};
led@1 {
reg = <1>;
label = "is_gm";
default-state = "off";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Lantiq GSWIP and MaxLinear GSW1xx Ethernet switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/lantiq,gswip.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Lantiq GSWIP and MaxLinear GSW1xx switches share the same hardware IP. Lantiq switches are embedded in SoCs and accessed via memory-mapped I/O, while MaxLinear switches are standalone ICs connected via MDIO.
Shared schema rule ($ref): dsa.yaml#
Maintainers (maintainers): "Hauke Mehrtens <hauke@hauke-m.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "intel,gsw150", "lantiq,peb7084", "lantiq,xrx200-gswip", "lantiq,xrx300-gswip", "lantiq,xrx330-gswip", "maxlinear,gsw120", "maxlinear,gsw125", "maxlinear,gsw140", "maxlinear,gsw141", "maxlinear,gsw145"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
Item 2
Exact value (
const):"mdio"
Item 3
Exact value (
const):"mii"
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "lantiq,xrx200-mdio"
gphy-fw — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
compatible — required here
Array item rules (items)
Item 1
Allowed values (
enum):"lantiq,xrx200-gphy-fw","lantiq,xrx300-gphy-fw","lantiq,xrx330-gphy-fw"
Item 2
Exact value (
const):"lantiq,gphy-fw"
lantiq,rcu — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the RCU syscon
Properties matching a name pattern (patternProperties) #
^gphy@[0-9a-f]{1,2}$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 255
Offset of the GPHY firmware register in the RCU register range
resets — not listed as required here
Array item rules (items)
Item 1
GPHY reset line
reset-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"gphy"
Required in this object (required): "reg"
Required in this object (required): "compatible", "lantiq,rcu"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Shared schema rule ($ref): dsa-port.yaml#
All of these rules must match (allOf)
Rule 1
Shared schema rule (
$ref):/schemas/phy/phy-common-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
maxlinear,slew-rate-txc — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RMII/RGMII TX Clock Slew Rate:
0: Normal
1: Slow
If not present, the configuration made by the switch bootloader is preserved.
maxlinear,slew-rate-txd — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RMII/RGMII TX Non-Clock PAD Slew Rate:
0: Normal
1: Slow
If not present, the configuration made by the switch bootloader is preserved.
maxlinear,rmii-refclk-out — not listed as required here
Value type (type): "boolean"
Configure the RMII reference clock to be a clock output rather than an input. Only applicable for RMII mode.
tx-internal-delay-ps — not listed as required here
Allowed values (enum): 0, 500, 1000, 1500, 2000, 2500, 3000, 3500
RGMII TX Clock Delay defined in pico seconds. The delay lines adjust the MII clock vs. data timing. If this property is not present the delay is determined by the interface mode.
rx-internal-delay-ps — not listed as required here
Allowed values (enum): 0, 500, 1000, 1500, 2000, 2500, 3000, 3500
RGMII RX Clock Delay defined in pico seconds. The delay lines adjust the MII clock vs. data timing. If this property is not present the delay is determined by the interface mode.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"lantiq,xrx200-gswip","lantiq,xrx300-gswip","lantiq,xrx330-gswip"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
mdio— not listed as required hereWhen the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required here
false— Not permitted by this property rule.
gphy-fw— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
switch@e108000 {
compatible = "lantiq,xrx200-gswip";
reg = <0xe108000 0x3100>, /* switch */
<0xe10b100 0xd8>, /* mdio */
<0xe10b1d8 0x130>; /* mii */
dsa,member = <0 0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan3";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <2000>;
};
port@1 {
reg = <1>;
label = "lan4";
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
port@2 {
reg = <2>;
label = "lan2";
phy-mode = "internal";
phy-handle = <&phy11>;
};
port@4 {
reg = <4>;
label = "lan1";
phy-mode = "internal";
phy-handle = <&phy13>;
};
port@5 {
reg = <5>;
label = "wan";
phy-mode = "rgmii";
phy-handle = <&phy5>;
};
port@6 {
reg = <0x6>;
phy-mode = "internal";
ethernet = <ð0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "lantiq,xrx200-mdio";
phy0: ethernet-phy@0 {
reg = <0x0>;
};
phy1: ethernet-phy@1 {
reg = <0x1>;
};
phy5: ethernet-phy@5 {
reg = <0x5>;
};
phy11: ethernet-phy@11 {
reg = <0x11>;
};
phy13: ethernet-phy@13 {
reg = <0x13>;
};
};
gphy-fw {
#address-cells = <1>;
#size-cells = <0>;
compatible = "lantiq,xrx200-gphy-fw", "lantiq,gphy-fw";
lantiq,rcu = <&rcu0>;
gphy@20 {
reg = <0x20>;
resets = <&reset0 31 30>;
reset-names = "gphy";
};
gphy@68 {
reg = <0x68>;
resets = <&reset0 29 28>;
reset-names = "gphy";
};
};
};
#include <dt-bindings/leds/common.h>
#include <dt-bindings/phy/phy.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@1f {
compatible = "maxlinear,gsw125";
reg = <0x1f>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan0";
phy-handle = <&switchphy0>;
phy-mode = "internal";
};
port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&switchphy1>;
phy-mode = "internal";
};
port@4 {
reg = <4>;
label = "wan";
phy-mode = "1000base-x";
managed = "in-band-status";
tx-polarity = <PHY_POL_INVERT>;
};
port@5 {
reg = <5>;
phy-mode = "rgmii-id";
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <2000>;
ethernet = <ð0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
switchphy0: ethernet-phy@0 {
reg = <0>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
};
};
};
switchphy1: ethernet-phy@1 {
reg = <1>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell MV88E6060 DSA switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/marvell,mv88e6060.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
The Marvell MV88E6060 switch has been produced and sold by Marvell since at least 2008. The switch has one pin ADDR4 that controls the MDIO address of the switch to be 0x10 or 0x00, and on the MDIO bus connected to the switch, the PHYs inside the switch appear as independent devices on address 0x00-0x04 or 0x10-0x14, so in difference from many other DSA switches this switch does not have an internal MDIO bus for the PHY devices.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "marvell,mv88e6060"
The MV88E6060 is the oldest Marvell DSA switch product, and as such a bit limited in features compared to later hardware.
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@16 {
compatible = "marvell,mv88e6060";
reg = <16>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan1";
};
ethernet-port@1 {
reg = <1>;
label = "lan2";
};
ethernet-port@2 {
reg = <2>;
label = "lan3";
};
ethernet-port@3 {
reg = <3>;
label = "lan4";
};
ethernet-port@5 {
reg = <5>;
phy-mode = "rev-mii";
ethernet = <ðc>;
fixed-link {
speed = <100>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell MV88E6xxx DSA switch family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
The Marvell MV88E6xxx switch series has been produced and sold by Marvell since at least 2008. The switch has a few compatibles which just indicate the base address of the switch, then operating systems can investigate switch ID registers to find out which actual version of the switch it is dealing with.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"marvell,mv88e6085","marvell,mv88e6190","marvell,mv88e6250"marvell,mv88e6085: This switch uses base address 0x10. This switch and its siblings will be autodetected from ID registers found in the switch, so only "marvell,mv88e6085" should be specified. This includes the following list of MV88Exxxx switches: 6085, 6095, 6097, 6123, 6131, 6141, 6161, 6165, 6171, 6172, 6175, 6176, 6185, 6240, 6320, 6321, 6341, 6350, 6351, 6352 marvell,mv88e6190: This switch uses base address 0x00. This switch and its siblings will be autodetected from ID registers found in the switch, so only "marvell,mv88e6190" should be specified. This includes the following list of MV88Exxxx switches: 6190, 6190X, 6191, 6290, 6361, 6390, 6390X marvell,mv88e6250: This switch uses base address 0x08 or 0x18. This switch and its siblings will be autodetected from ID registers found in the switch, so only "marvell,mv88e6250" should be specified. This includes the following list of MV88Exxxx switches: 6220, 6250
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"marvell,turris-mox-mv88e6085"Item 2
Exact value (
const):"marvell,mv88e6085"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"marvell,turris-mox-mv88e6190"Item 2
Exact value (
const):"marvell,mv88e6190"
reg — required here #
Maximum number of items (maxItems): 1
eeprom-length — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Set to the length of an EEPROM connected to the switch. Must be set if the switch can not detect the presence and/or size of a connected EEPROM, otherwise optional.
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The switch provides an external interrupt line, but it is not always used by target systems.
Maximum number of items (maxItems): 1
interrupt-controller — not listed as required here #
The switch has an internal interrupt controller used by the different sub-blocks.
#interrupt-cells — not listed as required here #
The internal interrupt controller only supports triggering on active high level interrupts so the second cell must always be set to IRQ_TYPE_LEVEL_HIGH.
Exact value (const): 2
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Marvell MV88E6xxx switches have an varying combination of internal and external MDIO buses, in some cases a combined bus that can be used both internally and externally. This node is for the primary bus, used internally and sometimes also externally.
mdio-external — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Marvell MV88E6xxx switches that have a separate external MDIO bus use this port to access external components on the MDIO bus.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "marvell,mv88e6xxx-mdio-external"
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@0 {
compatible = "marvell,mv88e6085";
reg = <0>;
reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
sw_phy0: ethernet-phy@0 {
reg = <0x0>;
};
sw_phy1: ethernet-phy@1 {
reg = <0x1>;
};
sw_phy2: ethernet-phy@2 {
reg = <0x2>;
};
sw_phy3: ethernet-phy@3 {
reg = <0x3>;
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan4";
phy-handle = <&sw_phy0>;
phy-mode = "internal";
};
ethernet-port@1 {
reg = <1>;
label = "lan3";
phy-handle = <&sw_phy1>;
phy-mode = "internal";
};
ethernet-port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&sw_phy2>;
phy-mode = "internal";
};
ethernet-port@3 {
reg = <3>;
label = "lan1";
phy-handle = <&sw_phy3>;
phy-mode = "internal";
};
ethernet-port@5 {
reg = <5>;
ethernet = <&fec>;
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/irq.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@0 {
compatible = "marvell,mv88e6190";
#interrupt-cells = <2>;
interrupt-controller;
interrupt-parent = <&gpio1>;
interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&switch_interrupt_pins>;
pinctrl-names = "default";
reg = <0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch0phy1: ethernet-phy@1 {
reg = <0x1>;
};
switch0phy2: ethernet-phy@2 {
reg = <0x2>;
};
switch0phy3: ethernet-phy@3 {
reg = <0x3>;
};
switch0phy4: ethernet-phy@4 {
reg = <0x4>;
};
switch0phy5: ethernet-phy@5 {
reg = <0x5>;
};
switch0phy6: ethernet-phy@6 {
reg = <0x6>;
};
switch0phy7: ethernet-phy@7 {
reg = <0x7>;
};
switch0phy8: ethernet-phy@8 {
reg = <0x8>;
};
};
mdio-external {
compatible = "marvell,mv88e6xxx-mdio-external";
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@b {
reg = <0xb>;
compatible = "ethernet-phy-ieee802.3-c45";
};
phy2: ethernet-phy@c {
reg = <0xc>;
compatible = "ethernet-phy-ieee802.3-c45";
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
ethernet = <ð0>;
phy-mode = "rgmii";
reg = <0>;
fixed-link {
full-duplex;
pause;
speed = <1000>;
};
};
ethernet-port@1 {
label = "lan1";
phy-handle = <&switch0phy1>;
reg = <1>;
};
ethernet-port@2 {
label = "lan2";
phy-handle = <&switch0phy2>;
reg = <2>;
};
ethernet-port@3 {
label = "lan3";
phy-handle = <&switch0phy3>;
reg = <3>;
};
ethernet-port@4 {
label = "lan4";
phy-handle = <&switch0phy4>;
reg = <4>;
};
ethernet-port@5 {
label = "lan5";
phy-handle = <&switch0phy5>;
reg = <5>;
};
ethernet-port@6 {
label = "lan6";
phy-handle = <&switch0phy6>;
reg = <6>;
};
ethernet-port@7 {
label = "lan7";
phy-handle = <&switch0phy7>;
reg = <7>;
};
ethernet-port@8 {
label = "lan8";
phy-handle = <&switch0phy8>;
reg = <8>;
};
ethernet-port@9 {
/* 88X3310P external phy */
label = "lan9";
phy-handle = <&phy1>;
phy-mode = "xaui";
reg = <9>;
};
ethernet-port@a {
/* 88X3310P external phy */
label = "lan10";
phy-handle = <&phy2>;
phy-mode = "xaui";
reg = <0xa>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MaxLinear MxL862xx Ethernet Switch Family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/maxlinear,mxl862xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Golle <daniel@makrotopia.org>"
The MaxLinear MxL862xx switch family are multi-port Ethernet switches with integrated 2.5GE PHYs. The MxL86252 has five PHY ports and the MxL86282 has eight PHY ports. Both models come with two 10 Gigabit/s SerDes interfaces to be used to connect external PHYs or SFP cages, or as CPU port.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "maxlinear,mxl86252", "maxlinear,mxl86282"
reg — required here #
Maximum number of items (maxItems): 1
MDIO address of the switch
mdio — required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "mdio", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@0 {
compatible = "maxlinear,mxl86282";
reg = <0>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
/* Microcontroller port */
port@0 {
reg = <0>;
status = "disabled";
};
port@1 {
reg = <1>;
phy-handle = <&phy0>;
phy-mode = "internal";
};
port@2 {
reg = <2>;
phy-handle = <&phy1>;
phy-mode = "internal";
};
port@3 {
reg = <3>;
phy-handle = <&phy2>;
phy-mode = "internal";
};
port@4 {
reg = <4>;
phy-handle = <&phy3>;
phy-mode = "internal";
};
port@5 {
reg = <5>;
phy-handle = <&phy4>;
phy-mode = "internal";
};
port@6 {
reg = <6>;
phy-handle = <&phy5>;
phy-mode = "internal";
};
port@7 {
reg = <7>;
phy-handle = <&phy6>;
phy-mode = "internal";
};
port@8 {
reg = <8>;
phy-handle = <&phy7>;
phy-mode = "internal";
};
port@9 {
reg = <9>;
label = "cpu";
ethernet = <&gmac0>;
phy-mode = "usxgmii";
fixed-link {
speed = <10000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
};
phy1: ethernet-phy@1 {
reg = <1>;
};
phy2: ethernet-phy@2 {
reg = <2>;
};
phy3: ethernet-phy@3 {
reg = <3>;
};
phy4: ethernet-phy@4 {
reg = <4>;
};
phy5: ethernet-phy@5 {
reg = <5>;
};
phy6: ethernet-phy@6 {
reg = <6>;
};
phy7: ethernet-phy@7 {
reg = <7>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Mediatek MT7530 and MT7531 Ethernet Switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/mediatek,mt7530.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Arınç ÜNAL <arinc.unal@arinc9.com>", "Landen Chao <Landen.Chao@mediatek.com>", "DENG Qingfang <dqfext@gmail.com>", "Sean Wang <sean.wang@mediatek.com>", "Daniel Golle <daniel@makrotopia.org>"
There are three versions of MT7530, standalone, in a multi-chip module and built-into a SoC.
MT7530 is a part of the multi-chip module in MT7620AN, MT7620DA, MT7620DAN, MT7620NN, MT7621AT, MT7621DAT, MT7621ST and MT7623AI SoCs.
The MT7988 SoC comes with a built-in switch similar to MT7531 as well as four Gigabit Ethernet PHYs. The switch registers are directly mapped into the SoC's memory map rather than using MDIO. The switch has an internally connected 10G CPU port and 4 user ports connected to the built-in Gigabit Ethernet PHYs.
The MT7530 in MT7620AN, MT7620DA, MT7620DAN and MT7620NN SoCs has 10/100 PHYs and the switch registers are directly mapped into SoC's memory map rather than using MDIO. The DSA driver currently doesn't support MT7620 variants.
There is only the standalone version of MT7531.
Port 5 on MT7530 supports various configurations:
- Port 5 can be used as a CPU port.
- PHY 0 or 4 of the switch can be muxed to gmac5 of the switch. Therefore,
the gmac of the SoC which is wired to port 5 can connect to the PHY.
This is usually used for connecting the wan port directly to the CPU to
achieve 2 Gbps routing in total.
The driver looks up the reg on the ethernet-phy node, which the phy-handle
property on the gmac node refers to, to mux the specified phy.
The driver requires the gmac of the SoC to have "mediatek,eth-mac" as the
compatible string and the reg must be 1. So, for now, only gmac1 of a
MediaTek SoC can benefit this. Banana Pi BPI-R2 suits this.
For the MT7621 SoCs, rgmii2 group must be claimed with rgmii2 function.
Check out example 5.
- For the multi-chip module MT7530, in case of an external phy wired to
gmac1 of the SoC, port 5 must not be enabled.
In case of muxing PHY 0 or 4, the external phy must not be enabled.
For the MT7621 SoCs, rgmii2 group must be claimed with rgmii2 function.
Check out example 6.
- Port 5 can be wired to an external phy. Port 5 becomes a DSA user port.
For the multi-chip module MT7530, the external phy must be wired TX to TX
to gmac1 of the SoC for this to work. Ubiquiti EdgeRouter X SFP is wired
this way.
For the multi-chip module MT7530, muxing PHY 0 or 4 won't work when the
external phy is connected TX to TX.
For the MT7621 SoCs, rgmii2 group must be claimed with gpio function.
Check out example 7.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Standalone MT7530 and multi-chip module MT7530 in MT7623AI SoC
Exact value (
const):"mediatek,mt7530"
Rule 2
Standalone MT7531
Exact value (
const):"mediatek,mt7531"
Rule 3
Multi-chip module MT7530 in MT7621AT, MT7621DAT and MT7621ST SoCs
Exact value (
const):"mediatek,mt7621"
Rule 4
Built-in switch of the MT7988 SoC
Exact value (
const):"mediatek,mt7988-switch"
Rule 5
Built-in switch of the Airoha EN7581 SoC
Exact value (
const):"airoha,en7581-switch"
Rule 6
Built-in switch of the Airoha AN7583 SoC
Exact value (
const):"airoha,an7583-switch"
reg — required here #
Maximum number of items (maxItems): 1
core-supply — not listed as required here #
Phandle to the regulator node necessary for the core power.
#gpio-cells — not listed as required here #
Exact value (const): 2
gpio-controller — not listed as required here #
Value type (type): "boolean"
If defined, LED controller of the MT7530 switch will run on GPIO mode.
There are 15 controllable pins. port 0 LED 0..2 as GPIO 0..2 port 1 LED 0..2 as GPIO 3..5 port 2 LED 0..2 as GPIO 6..8 port 3 LED 0..2 as GPIO 9..11 port 4 LED 0..2 as GPIO 12..14
#interrupt-cells — not listed as required here #
Exact value (const): 1
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
io-supply — not listed as required here #
Phandle to the regulator node necessary for the I/O power. See Documentation/devicetree/bindings/regulator/mt6323-regulator.txt for details for the regulator setup on these boards.
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
mediatek,pio — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle pointing to the mediatek pinctrl node.
mediatek,mcm — not listed as required here #
Value type (type): "boolean"
Used for MT7621AT, MT7621DAT, MT7621ST and MT7623AI SoCs which the MT7530 switch is a part of the multi-chip module.
reset-gpios — not listed as required here #
GPIO to reset the switch. Use this if mediatek,mcm is not used. This property is optional because some boards share the reset line with other components which makes it impossible to probe the switch if the reset line is used.
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "mcm"
resets — not listed as required here #
Phandle pointing to the system reset controller with line index for the ethsys.
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
true
Allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
Port address described must be 5 or 6 for CPU port and from 0 to 5 for user ports.
All of these rules must match (allOf)
Rule 1
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
reg— not listed as required here
Required in this object (required): "compatible", "reg"
Reusable definitions ($defs) #
builtin-dsa-port #
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression
Properties matching a name pattern (patternProperties)
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Condition (if)
When the condition matches (then)
Properties and child nodes (
properties)
phy-mode— not listed as required hereExact value (
const):"internal"
mt7530-dsa-port #
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression
Properties matching a name pattern (patternProperties)
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Condition (if)
When the condition matches (then)
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):5When the condition matches (
then)Properties and child nodes (
properties)
phy-mode— not listed as required hereWhen the condition does not match (
else)Properties and child nodes (
properties)
phy-mode— not listed as required here
mt7531-dsa-port #
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression
Properties matching a name pattern (patternProperties)
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Condition (if)
When the condition matches (then)
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):5When the condition matches (
then)Properties and child nodes (
properties)
phy-mode— not listed as required hereAllowed values (
enum):"1000base-x","2500base-x","rgmii","sgmii"When the condition does not match (
else)Properties and child nodes (
properties)
phy-mode— not listed as required here
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
reset-gpios— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Property dependencies (
dependencies) #
interrupt-controller— applies when this property is presentAlso requires:
"interrupts"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mediatek,mt7530"When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/mt7530-dsa-portRequired in this object (
required):"core-supply","io-supply"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mediatek,mt7531"When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/mt7531-dsa-portProperties and child nodes (
properties)
gpio-controller— not listed as required here
false— Not permitted by this property rule.
mediatek,mcm— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mediatek,mt7621"When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/mt7530-dsa-port
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"mediatek,mt7988-switch","airoha,en7581-switch","airoha,an7583-switch"When the condition matches (
then) #Shared schema rule (
$ref):#/$defs/builtin-dsa-portProperties and child nodes (
properties)
gpio-controller— not listed as required here
false— Not permitted by this property rule.
mediatek,mcm— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@1f {
compatible = "mediatek,mt7530";
reg = <0x1f>;
reset-gpios = <&pio 33 0>;
core-supply = <&mt6323_vpa_reg>;
io-supply = <&mt6323_vemc3v3_reg>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
#include <dt-bindings/reset/mt2701-resets.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@1f {
compatible = "mediatek,mt7530";
reg = <0x1f>;
mediatek,mcm;
resets = <ðsys MT2701_ETHSYS_MCM_RST>;
reset-names = "mcm";
core-supply = <&mt6323_vpa_reg>;
io-supply = <&mt6323_vemc3v3_reg>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@0 {
compatible = "mediatek,mt7531";
reg = <0>;
reset-gpios = <&pio 54 0>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "2500base-x";
fixed-link {
speed = <2500>;
full-duplex;
pause;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/reset/mt7621-reset.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@1f {
compatible = "mediatek,mt7621";
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/reset/mt7621-reset.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins>;
mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&example5_ethphy4>;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
/* MT7530's phy4 */
example5_ethphy4: ethernet-phy@4 {
reg = <4>;
};
switch@1f {
compatible = "mediatek,mt7621";
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
/* Commented out, phy4 is connected to gmac1.
port@4 {
reg = <4>;
label = "wan";
};
*/
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
};
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/reset/mt7621-reset.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins>;
mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
phy-mode = "rgmii";
phy-handle = <&example6_ethphy7>;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
/* External PHY */
example6_ethphy7: ethernet-phy@7 {
reg = <7>;
phy-mode = "rgmii";
};
switch@1f {
compatible = "mediatek,mt7621";
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
};
#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/reset/mt7621-reset.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
/* External PHY */
example7_ethphy7: ethernet-phy@7 {
reg = <7>;
phy-mode = "rgmii";
};
switch@1f {
compatible = "mediatek,mt7621";
reg = <0x1f>;
mediatek,mcm;
resets = <&sysc MT7621_RST_MCM>;
reset-names = "mcm";
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "wan";
};
port@5 {
reg = <5>;
label = "extphy";
phy-mode = "rgmii-txid";
phy-handle = <&example7_ethphy7>;
};
port@6 {
reg = <6>;
ethernet = <&gmac0>;
phy-mode = "trgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 331: Example 1: Standalone MT7530
Line 392: Example 2: MT7530 in MT7623AI SoC
Line 455: Example 3: Standalone MT7531
Line 519: Example 4: MT7530 in MT7621AT, MT7621DAT and MT7621ST SoCs
Line 585: Example 5: MT7621: mux MT7530's phy4 to SoC's gmac1
Line 674: Example 6: MT7621: mux external phy to SoC's gmac1
Line 762: Example 7: MT7621: mux external phy to MT7530's port 5
Micrel KS8995 Family DSA Switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/micrel,ks8995.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Micrel KS8995 DSA Switches are 100 Mbit switches that were produced in the early-to-mid 2000s. The chip features a CPU port and four outgoing ports, each with an internal PHY. The chip itself is managed over SPI, but all the PHYs need to be accessed from an external MDIO channel. Further, a fifth PHY is available and can be used separately from the switch fabric, connected to an external MII interface name MII-P5. This is unrelated from the CPU-facing port 5 which is used for DSA MII traffic.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "micrel,ks8995", "micrel,ksz8795", "micrel,ksz8864"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@0 {
compatible = "micrel,ks8995";
reg = <0>;
spi-max-frequency = <25000000>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan1";
};
ethernet-port@1 {
reg = <1>;
label = "lan2";
};
ethernet-port@2 {
reg = <2>;
label = "lan3";
};
ethernet-port@3 {
reg = <3>;
label = "lan4";
};
ethernet-port@4 {
reg = <4>;
ethernet = <&mac2>;
phy-mode = "mii";
fixed-link {
speed = <100>;
full-duplex;
};
};
};
};
};
soc {
#address-cells = <1>;
#size-cells = <1>;
/* The WAN port connected on MII-P5 */
ethernet-port@1000 {
reg = <0x00001000 0x1000>;
label = "wan";
phy-mode = "mii";
phy-handle = <&phy5>;
};
mac2: ethernet-port@2000 {
reg = <0x00002000 0x1000>;
phy-mode = "mii";
fixed-link {
speed = <100>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
/* LAN PHYs 1-4 accessible over external MDIO */
phy1: ethernet-phy@1 {
reg = <1>;
};
phy2: ethernet-phy@2 {
reg = <2>;
};
phy3: ethernet-phy@3 {
reg = <3>;
};
phy4: ethernet-phy@4 {
reg = <4>;
};
/* WAN PHY accessible over external MDIO */
phy5: ethernet-phy@5 {
reg = <5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip KSZ Series Ethernet switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/microchip,ksz.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marex@denx.de>", "Woojung Huh <Woojung.Huh@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,ksz8463", "microchip,ksz8765", "microchip,ksz8794", "microchip,ksz8795", "microchip,ksz8863", "microchip,ksz8864", "microchip,ksz8873", "microchip,ksz8895", "microchip,ksz9477", "microchip,ksz9897", "microchip,ksz9896", "microchip,ksz9567", "microchip,ksz8565", "microchip,ksz9893", "microchip,ksz9563", "microchip,ksz8563", "microchip,ksz8567", "microchip,lan9646"
pinctrl-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"reset"Used during reset for strap configuration.
Minimum number of items (minItems): 1
reset-gpios — not listed as required here #
Should be a gpio specifier for a reset line.
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
microchip,synclko-125 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set if the output SYNCLKO frequency should be set to 125MHz instead of 25MHz.
microchip,synclko-disable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set if the output SYNCLKO clock should be disabled. Do not mix with microchip,synclko-125.
microchip,pme-active-high — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates if the PME pin polarity is active-high.
microchip,io-drive-strength-microamp — not listed as required here #
IO Pad Drive Strength
Allowed values (enum): 8000, 16000
Default value (default): 16000
microchip,hi-drive-strength-microamp — not listed as required here #
High Speed Drive Strength. Controls drive strength of GMII / RGMII / MII / RMII (except TX_CLK/REFCLKI, COL and CRS) and CLKO_25_125 lines.
Allowed values (enum): 2000, 4000, 8000, 12000, 16000, 20000, 24000, 28000
Default value (default): 24000
microchip,lo-drive-strength-microamp — not listed as required here #
Low Speed Drive Strength. Controls drive strength of TX_CLK / REFCLKI, COL, CRS, LEDs, PME_N, NTRP_N, SDO and SDI/SDA/MDIO lines.
Allowed values (enum): 2000, 4000, 8000, 12000, 16000, 20000, 24000, 28000
Default value (default): 8000
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
mdio-parent-bus — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle pointing to the MDIO bus controller connected to the secondary MDIO interface. This property should be used when the internal MDIO bus is accessed via a secondary MDIO interface rather than the primary management interface.
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[0-9a-f]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/net/ethernet-phy.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Integrated PHY node
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"microchip,ksz8863","microchip,ksz8873"When the condition matches (
then) #Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-portsWhen the condition does not match (
else) #Properties matching a name pattern (
patternProperties)
^(ethernet-)?ports$— name matches this regular expressionProperties matching a name pattern (
patternProperties)
^(ethernet-)?port@[0-2]$— name matches this regular expressionShared schema rule (
$ref):dsa-port.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Properties and child nodes (
properties)
microchip,rmii-clk-internal— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/flagWhen ksz88x3 is acting as clock provier (via REFCLKO) it can select between internal and external RMII reference clock. Internal reference clock means that the clock for the RMII of ksz88x3 is provided by the ksz88x3 internally and the REFCLKI pin is unconnected. For the external reference clock, the clock needs to be fed back to ksz88x3 via REFCLKI. If microchip,rmii-clk-internal is set, ksz88x3 will provide rmii reference clock internally, otherwise reference clock should be provided externally.
Property dependencies (
dependencies)
microchip,rmii-clk-internal— applies when this property is presentAlso requires:
"ethernet"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,ksz8463"When the condition matches (
then) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereMinimum number of items (
minItems):2
straps-rxd-gpios— not listed as required hereRXD0 and RXD1 pins, used to select SPI as bus interface.
Minimum number of items (
minItems):2Maximum number of items (
maxItems):2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
// Ethernet switch connected via SPI to the host, CPU port wired to eth0:
eth0 {
fixed-link {
speed = <1000>;
full-duplex;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pinctrl_spi_ksz>;
cs-gpios = <&pioC 25 0>;
ksz9477: switch@0 {
compatible = "microchip,ksz9477";
reg = <0>;
reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
spi-max-frequency = <44000000>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@4 {
reg = <4>;
label = "lan5";
};
port@5 {
reg = <5>;
ethernet = <ð0>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
ksz8565: switch@1 {
compatible = "microchip,ksz8565";
reg = <1>;
spi-max-frequency = <44000000>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
};
port@1 {
reg = <1>;
label = "lan2";
};
port@2 {
reg = <2>;
label = "lan3";
};
port@3 {
reg = <3>;
label = "lan4";
};
port@6 {
reg = <6>;
ethernet = <ð0>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 14: See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional
Line 15: required and optional properties.
Line 23: 4-port version of KSZ8895 family switch
Line 25: 5-port version of KSZ8895 family switch
LAN937x Ethernet Switch Series
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/microchip,lan937x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "UNGLinuxDriver@microchip.com"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,lan9370", "microchip,lan9371", "microchip,lan9372", "microchip,lan9373", "microchip,lan9374"
reg — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 50000000
reset-gpios — not listed as required here #
Optional gpio specifier for a reset line
Maximum number of items (maxItems): 1
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-7]$ — name matches this regular expression
All of these rules must match (allOf)
Rule 1
Condition (
if)Properties and child nodes (
properties)
phy-mode— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rgmii","rgmii-id","rgmii-txid","rgmii-rxid"When the condition matches (
then)Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereAllowed values (
enum):0,2000Default value (
default):0
tx-internal-delay-ps— not listed as required hereAllowed values (
enum):0,2000Default value (
default):0
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
macb0 {
#address-cells = <1>;
#size-cells = <0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
spi {
#address-cells = <1>;
#size-cells = <0>;
lan9374: switch@0 {
compatible = "microchip,lan9374";
reg = <0>;
spi-max-frequency = <44000000>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan1";
phy-mode = "internal";
phy-handle = <&t1phy0>;
};
port@1 {
reg = <1>;
label = "lan2";
phy-mode = "internal";
phy-handle = <&t1phy1>;
};
port@2 {
reg = <2>;
label = "lan4";
phy-mode = "internal";
phy-handle = <&t1phy2>;
};
port@3 {
reg = <3>;
label = "lan6";
phy-mode = "internal";
phy-handle = <&t1phy3>;
};
port@4 {
reg = <4>;
phy-mode = "rgmii";
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <2000>;
ethernet = <&macb0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@5 {
reg = <5>;
label = "lan7";
phy-mode = "rgmii";
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <2000>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@6 {
reg = <6>;
label = "lan5";
phy-mode = "internal";
phy-handle = <&t1phy6>;
};
port@7 {
reg = <7>;
label = "lan3";
phy-mode = "internal";
phy-handle = <&t1phy7>;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
t1phy0: ethernet-phy@0{
reg = <0x0>;
};
t1phy1: ethernet-phy@1{
reg = <0x1>;
};
t1phy2: ethernet-phy@2{
reg = <0x2>;
};
t1phy3: ethernet-phy@3{
reg = <0x3>;
};
t1phy6: ethernet-phy@6{
reg = <0x6>;
};
t1phy7: ethernet-phy@7{
reg = <0x7>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Motorcomm YT921x Ethernet switch family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/motorcomm,yt921x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Yang <mmyangfl@gmail.com>"
The Motorcomm YT921x series is a family of Ethernet switches with up to 8 internal GbE PHYs and up to 2 GMACs, including:
- YT9215S / YT9215RB / YT9215SC: 5 GbE PHYs (Port 0-4) + 2 GMACs (Port 8-9)
- YT9213NB: 2 GbE PHYs (Port 1/3) + 1 GMAC (Port 9)
- YT9214NB: 2 GbE PHYs (Port 1/3) + 2 GMACs (Port 8-9)
- YT9218N: 8 GbE PHYs (Port 0-7)
- YT9218MB: 8 GbE PHYs (Port 0-7) + 2 GMACs (Port 8-9)
Any port can be used as the CPU port.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "motorcomm,yt9215"
reg — required here #
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Internal MDIO bus for the internal GbE PHYs. PHY 0-7 are used for Port 0-7 respectively.
mdio-external — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
External MDIO bus to access external components. External PHYs for GMACs (Port 8-9) are expected to be connected to the external MDIO bus in vendor's reference design, but that is not a hard limitation from the chip.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@1d {
compatible = "motorcomm,yt9215";
/* default 0x1d, alternate 0x0 */
reg = <0x1d>;
reset-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
sw_phy0: phy@0 {
reg = <0x0>;
};
sw_phy1: phy@1 {
reg = <0x1>;
};
sw_phy2: phy@2 {
reg = <0x2>;
};
sw_phy3: phy@3 {
reg = <0x3>;
};
sw_phy4: phy@4 {
reg = <0x4>;
};
};
mdio-external {
#address-cells = <1>;
#size-cells = <0>;
phy1: phy@b {
reg = <0xb>;
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan1";
phy-mode = "internal";
phy-handle = <&sw_phy0>;
};
ethernet-port@1 {
reg = <1>;
label = "lan2";
phy-mode = "internal";
phy-handle = <&sw_phy1>;
};
ethernet-port@2 {
reg = <2>;
label = "lan3";
phy-mode = "internal";
phy-handle = <&sw_phy2>;
};
ethernet-port@3 {
reg = <3>;
label = "lan4";
phy-mode = "internal";
phy-handle = <&sw_phy3>;
};
ethernet-port@4 {
reg = <4>;
label = "lan5";
phy-mode = "internal";
phy-handle = <&sw_phy4>;
};
/* CPU port */
ethernet-port@8 {
reg = <8>;
phy-mode = "2500base-x";
ethernet = <ð0>;
fixed-link {
speed = <2500>;
full-duplex;
};
};
/* if external phy is connected to a MAC */
ethernet-port@9 {
reg = <9>;
label = "wan";
phy-mode = "rgmii-id";
phy-handle = <&phy1>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip Ocelot Switch Family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/mscc,ocelot.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Oltean <vladimir.oltean@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "UNGLinuxDriver@microchip.com"
There are multiple switches which are either part of the Ocelot-1 family, or derivatives of this architecture. These switches can be found embedded in various SoCs and accessed using MMIO, or as discrete chips and accessed over SPI or PCIe. The present DSA binding shall be used when the host controlling them performs packet I/O primarily through an Ethernet port of the switch (which is attached to an Ethernet port of the host), rather than through Frame DMA or register-based I/O.
VSC9953 (Seville):
This is found in the NXP T1040, where it is a memory-mapped platform
device.
The following PHY interface types are supported:
- phy-mode = "internal": on ports 8 and 9
- phy-mode = "sgmii": on ports 0, 1, 2, 3, 4, 5, 6, 7
- phy-mode = "qsgmii": on ports 0, 1, 2, 3, 4, 5, 6, 7
- phy-mode = "1000base-x": on ports 0, 1, 2, 3, 4, 5, 6, 7
VSC9959 (Felix):
This is found in the NXP LS1028A. It is a PCI device, part of the larger
enetc root complex. As a result, the ethernet-switch node is a sub-node of
the PCIe root complex node and its "reg" property conforms to the parent
node bindings, describing it as PF 5 of device 0, bus 0.
If any external switch port is enabled, the enetc PF2 (enetc_port2) should
be enabled as well. This is because the internal MDIO bus (exposed through
EA BAR 0) used to access the MAC PCS registers truly belongs to the enetc
port 2 and not to Felix.
The following PHY interface types are supported:
- phy-mode = "internal": on ports 4 and 5
- phy-mode = "sgmii": on ports 0, 1, 2, 3
- phy-mode = "qsgmii": on ports 0, 1, 2, 3
- phy-mode = "usxgmii": on ports 0, 1, 2, 3
- phy-mode = "1000base-x": on ports 0, 1, 2, 3
- phy-mode = "2500base-x": on ports 0, 1, 2, 3
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mscc,vsc9953-switch", "pci1957,eef0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Used to signal availability of PTP TX timestamps, and state changes of the MAC merge layer of ports that support Frame Preemption.
little-endian — not listed as required here #
true — No constraints added by this property rule.
big-endian — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"pci1957,eef0"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
pcie { /* Integrated Endpoint Root Complex */
#address-cells = <3>;
#size-cells = <2>;
ethernet-switch@0,5 {
compatible = "pci1957,eef0";
reg = <0x000500 0 0 0 0>;
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
phy-mode = "qsgmii";
phy-handle = <&phy0>;
managed = "in-band-status";
};
port@1 {
reg = <1>;
phy-mode = "qsgmii";
phy-handle = <&phy1>;
managed = "in-band-status";
};
port@2 {
reg = <2>;
phy-mode = "qsgmii";
phy-handle = <&phy2>;
managed = "in-band-status";
};
port@3 {
reg = <3>;
phy-mode = "qsgmii";
phy-handle = <&phy3>;
managed = "in-band-status";
};
port@4 {
reg = <4>;
ethernet = <&enetc_port2>;
phy-mode = "internal";
fixed-link {
speed = <2500>;
full-duplex;
pause;
};
};
port@5 {
reg = <5>;
ethernet = <&enetc_port3>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
soc {
#address-cells = <1>;
#size-cells = <1>;
ethernet-switch@800000 {
compatible = "mscc,vsc9953-switch";
reg = <0x800000 0x290000>;
little-endian;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
phy-mode = "qsgmii";
phy-handle = <&phy0>;
managed = "in-band-status";
};
port@1 {
reg = <1>;
phy-mode = "qsgmii";
phy-handle = <&phy1>;
managed = "in-band-status";
};
port@2 {
reg = <2>;
phy-mode = "qsgmii";
phy-handle = <&phy2>;
managed = "in-band-status";
};
port@3 {
reg = <3>;
phy-mode = "qsgmii";
phy-handle = <&phy3>;
managed = "in-band-status";
};
port@4 {
reg = <4>;
phy-mode = "qsgmii";
phy-handle = <&phy4>;
managed = "in-band-status";
};
port@5 {
reg = <5>;
phy-mode = "qsgmii";
phy-handle = <&phy5>;
managed = "in-band-status";
};
port@6 {
reg = <6>;
phy-mode = "qsgmii";
phy-handle = <&phy6>;
managed = "in-band-status";
};
port@7 {
reg = <7>;
phy-mode = "qsgmii";
phy-handle = <&phy7>;
managed = "in-band-status";
};
port@8 {
reg = <8>;
phy-mode = "internal";
ethernet = <&enet0>;
fixed-link {
speed = <2500>;
full-duplex;
pause;
};
};
port@9 {
reg = <9>;
phy-mode = "internal";
ethernet = <&enet1>;
fixed-link {
speed = <2500>;
full-duplex;
pause;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR MIT)
Line 93: Felix VSC9959 (NXP LS1028A)
Line 164: Seville VSC9953 (NXP T1040)
NXP SJA1105 Automotive Ethernet Switch Family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/nxp,sja1105.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The SJA1105 SPI interface requires a CS-to-CLK time (t2 in UM10944.pdf) of at least one half of t_CLK. At an SPI frequency of 1MHz, this means a minimum cs_sck_delay of 500ns. Ensuring that this SPI timing requirement is observed depends on the SPI bus master driver.
Maintainers (maintainers): "Vladimir Oltean <vladimir.oltean@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,sja1105e", "nxp,sja1105t", "nxp,sja1105p", "nxp,sja1105q", "nxp,sja1105r", "nxp,sja1105s", "nxp,sja1110a", "nxp,sja1110b", "nxp,sja1110c", "nxp,sja1110d"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
A GPIO connected to the active-low RST_N pin of the SJA1105. Note that reset of this chip is performed via SPI and the RST_N pin must be wired to satisfy the power-up sequence documented in "SJA1105PQRS Application Hints" (AH1704) sec. 2.4.4. Connecting the SJA1105 RST_N pin to a GPIO is therefore discouraged.
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
mdios — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^mdio@[0-1]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
compatible — required here
Exactly one of these rules must match (oneOf)
Rule 1
Allowed values (
enum):"nxp,sja1110-base-t1-mdio","nxp,sja1110-base-tx-mdio"
reg — required here
Exactly one of these rules must match (oneOf)
Rule 1
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-9]$ — name matches this regular expression
All of these rules must match (allOf)
Rule 1
Condition (
if)Properties and child nodes (
properties)
phy-mode— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rgmii","rgmii-rxid","rgmii-txid","rgmii-id"When the condition matches (
then)Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereShared schema rule (
$ref):#/$defs/internal-delay-ps
tx-internal-delay-ps— not listed as required hereShared schema rule (
$ref):#/$defs/internal-delay-ps
Required in this object (required): "compatible", "reg"
Reusable definitions ($defs) #
internal-delay-ps #
Disable tunable delay lines using 0 ps, or enable them and select the phase between 1640 ps (73.8 degree shift at 1Gbps) and 2260 ps (101.7 degree shift) in increments of 0.9 degrees (20 ps).
Allowed values (enum): 0, 1640, 1660, 1680, 1700, 1720, 1740, 1760, 1780, 1800, 1820, 1840, 1860, 1880, 1900, 1920, 1940, 1960, 1980, 2000, 2020, 2040, 2060, 2080, 2100, 2120, 2140, 2160, 2180, 2200, 2220, 2240, 2260
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"nxp,sja1105e","nxp,sja1105p","nxp,sja1105q","nxp,sja1105r","nxp,sja1105s","nxp,sja1105t"When the condition matches (
then) #Properties and child nodes (
properties)
spi-cpol— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
spi-cpha— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@1 {
reg = <0x1>;
compatible = "nxp,sja1105t";
spi-cpha;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
phy-handle = <&rgmii_phy6>;
phy-mode = "rgmii-id";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
reg = <0>;
};
port@1 {
phy-handle = <&rgmii_phy3>;
phy-mode = "rgmii-id";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
reg = <1>;
};
port@2 {
phy-handle = <&rgmii_phy4>;
phy-mode = "rgmii-id";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
reg = <2>;
};
port@3 {
phy-handle = <&rgmii_phy4>;
phy-mode = "rgmii-id";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
reg = <3>;
};
port@4 {
ethernet = <&enet2>;
phy-mode = "rgmii";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
reg = <4>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 50: Optional container node for the 2 internal MDIO buses of the SJA1110
Line 51: (one for the internal 100base-T1 PHYs and the other for the single
Line 52: 100base-TX PHY). The "reg" property does not have physical significance.
Line 53: The PHY addresses to port correspondence is as follows: for 100base-T1,
Line 54: port 5 has PHY 1, port 6 has PHY 2 etc, while for 100base-TX, port 1 has
Line 55: PHY 1.
Qualcomm Atheros AR9331 built-in switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/qca,ar9331.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
Qualcomm Atheros AR9331 is a switch built-in to Atheros AR9331 WiSoC and addressable over internal MDIO bus. All PHYs are built-in as well.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qca,ar9331-switch"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 1
mdio — required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
interrupt-parent — not listed as required here
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
(ethernet-)?phy@[0-4]+$ — name matches this regular expression
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
true — No constraints added by this property rule.
interrupts — not listed as required here
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "mdio", "ports", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch10: switch@10 {
compatible = "qca,ar9331-switch";
reg = <0x10>;
interrupt-parent = <&miscintc>;
interrupts = <12>;
interrupt-controller;
#interrupt-cells = <1>;
resets = <&rst 8>;
reset-names = "switch";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0x0>;
ethernet = <ð1>;
phy-mode = "gmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@1 {
reg = <0x1>;
phy-handle = <&phy_port0>;
phy-mode = "internal";
};
port@2 {
reg = <0x2>;
phy-handle = <&phy_port1>;
phy-mode = "internal";
};
port@3 {
reg = <0x3>;
phy-handle = <&phy_port2>;
phy-mode = "internal";
};
port@4 {
reg = <0x4>;
phy-handle = <&phy_port3>;
phy-mode = "internal";
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&switch10>;
phy_port0: ethernet-phy@0 {
reg = <0x0>;
interrupts = <0>;
};
phy_port1: ethernet-phy@1 {
reg = <0x1>;
interrupts = <0>;
};
phy_port2: ethernet-phy@2 {
reg = <0x2>;
interrupts = <0>;
};
phy_port3: ethernet-phy@3 {
reg = <0x3>;
interrupts = <0>;
};
phy_port4: ethernet-phy@4 {
reg = <0x4>;
interrupts = <0>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Qualcomm Atheros QCA83xx switch family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/qca8k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "John Crispin <john@phrozen.org>"
If the QCA8K switch is connect to an SoC's external mdio-bus, each subnode describing a port needs to have a valid phandle referencing the internal PHY it is connected to. This is because there is no N:N mapping of port and PHY ID. To declare the internal mdio-bus configuration, declare an MDIO node in the switch node and declare the phandle for the port, referencing the internal PHY it is connected to. In this config, an internal mdio-bus is registered and the MDIO master is used for communication. Mixed external and internal mdio-bus configurations are not supported by the hardware. Each phy has at most 3 LEDs connected and can be declared using the standard LEDs structure.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qca,qca8327","qca,qca8328","qca,qca8334","qca,qca8337"
qca,qca8328: referenced as AR8328(N)-AK1(A/B) QFN 176 pin package qca,qca8327: referenced as AR8327(N)-AL1A DR-QFN 148 pin package qca,qca8334: referenced as QCA8334-AL3C QFN 88 pin package qca,qca8337: referenced as QCA8337N-AL3(B/C) DR-QFN 148 pin package
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
qca,ignore-power-on-sel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Ignore power-on pin strapping to configure LED open-drain or EEPROM presence. This is needed for devices with incorrect configuration or when the OEM has decided not to use pin strapping and falls back to SW regs.
qca,led-open-drain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set LEDs to open-drain mode. This requires the qca,ignore-power-on-sel to be set, otherwise the driver will fail at probe. This is required if the OEM does not use pin strapping to set this mode and prefers to set it using SW regs. The pin strappings related to LED open-drain mode are B68 on the QCA832x and B49 on the QCA833x.
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Qca8k switch have an internal mdio to access switch port. If this is not present, the legacy mapping is used and the internal mdio access is used. With the legacy mapping the reg corresponding to the internal mdio is the switch reg with an offset of -1.
Shared schema rule ($ref): dsa.yaml#
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-6]$ — name matches this regular expression
Value type (type): "object"
Ethernet switch ports
Shared schema rule ($ref): dsa-port.yaml#
Properties and child nodes (properties)
qca,sgmii-rxclk-falling-edge — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set the receive clock phase to falling edge. Mostly commonly used on the QCA8327 with CPU port 0 set to SGMII.
qca,sgmii-txclk-falling-edge — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set the transmit clock phase to falling edge.
qca,sgmii-enable-pll — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
For SGMII CPU port, explicitly enable PLL, TX and RX chain along with Signal Detection. On the QCA8327 this should not be enabled, otherwise the SGMII port will not initialize. When used on the QCA8337, revision 3 or greater, a warning will be displayed. When the CPU port is set to SGMII on the QCA8337, it is advised to set this unless a communication issue is observed.
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
external_phy_port1: ethernet-phy@0 {
reg = <0>;
};
external_phy_port2: ethernet-phy@1 {
reg = <1>;
};
external_phy_port3: ethernet-phy@2 {
reg = <2>;
};
external_phy_port4: ethernet-phy@3 {
reg = <3>;
};
external_phy_port5: ethernet-phy@4 {
reg = <4>;
};
switch@10 {
compatible = "qca,qca8337";
reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
reg = <0x10>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&gmac1>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&external_phy_port1>;
};
port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&external_phy_port2>;
};
port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&external_phy_port3>;
};
port@4 {
reg = <4>;
label = "lan4";
phy-handle = <&external_phy_port4>;
};
port@5 {
reg = <5>;
label = "wan";
phy-handle = <&external_phy_port5>;
};
};
};
};
#include <dt-bindings/gpio/gpio.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch@10 {
compatible = "qca,qca8337";
reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
reg = <0x10>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&gmac1>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
port@1 {
reg = <1>;
label = "lan1";
phy-mode = "internal";
phy-handle = <&internal_phy_port1>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};
port@2 {
reg = <2>;
label = "lan2";
phy-mode = "internal";
phy-handle = <&internal_phy_port2>;
};
port@3 {
reg = <3>;
label = "lan3";
phy-mode = "internal";
phy-handle = <&internal_phy_port3>;
};
port@4 {
reg = <4>;
label = "lan4";
phy-mode = "internal";
phy-handle = <&internal_phy_port4>;
};
port@5 {
reg = <5>;
label = "wan";
phy-mode = "internal";
phy-handle = <&internal_phy_port5>;
};
port@6 {
reg = <0>;
ethernet = <&gmac1>;
phy-mode = "sgmii";
qca,sgmii-rxclk-falling-edge;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
internal_phy_port1: ethernet-phy@0 {
reg = <0>;
};
internal_phy_port2: ethernet-phy@1 {
reg = <1>;
};
internal_phy_port3: ethernet-phy@2 {
reg = <2>;
};
internal_phy_port4: ethernet-phy@3 {
reg = <3>;
};
internal_phy_port5: ethernet-phy@4 {
reg = <4>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Realtek switches for unmanaged switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/realtek.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Realtek advertises these chips as fast/gigabit switches or unmanaged switches. They can be controlled using different interfaces, like SMI, MDIO or SPI. The SMI "Simple Management Interface" is a two-wire protocol using bit-banged GPIO that while it reuses the MDIO lines MCK and MDIO does not use the MDIO protocol. This binding defines how to specify the SMI-based Realtek devices. The realtek-smi driver is a platform driver and it must be inserted inside a platform node. The MDIO-connected switches use MDIO protocol to access their registers. The realtek-mdio driver is an MDIO driver and it must be inserted inside an MDIO node. The compatible string is only used to identify which (silicon) family the switch belongs to. Roughly speaking, a family is any set of Realtek switches whose chip identification register(s) have a common location and semantics. The different models in a given family can be automatically disambiguated by parsing the chip identification register(s) according to the given family, avoiding the need for a unique compatible string for each model.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "realtek,rtl8365mb", "realtek,rtl8366rb"
realtek,rtl8365mb:
Use with models RTL8363NB, RTL8363NB-VB, RTL8363SC, RTL8363SC-VB,
RTL8364NB, RTL8364NB-VB, RTL8365MB, RTL8366SC, RTL8367RB-VB, RTL8367S,
RTL8367SB, RTL8370MB, RTL8310SR
realtek,rtl8366rb:
Use with models RTL8366RB, RTL8366S
mdc-gpios — not listed as required here #
GPIO line for the MDC clock line.
Maximum number of items (maxItems): 1
mdio-gpios — not listed as required here #
GPIO line for the MDIO data line.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
realtek,disable-leds — not listed as required here #
Value type (type): "boolean"
if the LED drivers are not used in the hardware design, this will disable them so they are not turned on and wasting power.
interrupt-controller — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
This defines an interrupt controller with an IRQ line (typically a GPIO) that will demultiplex and handle the interrupt from the single interrupt line coming out of one of the Realtek switch chips. It most importantly provides link up/down interrupts to the PHY blocks inside the ASIC.
Properties and child nodes (properties) #
interrupt-controller — required here
true — No constraints added by this property rule.
interrupts — not listed as required here
Maximum number of items (maxItems): 1
A single IRQ line from the switch, either active LOW or HIGH
#address-cells — required here
Exact value (const): 0
#interrupt-cells — required here
Exact value (const): 1
Required in this object (required): "interrupt-controller", "#address-cells", "#interrupt-cells"
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Exact value (const): "realtek,smi-mdio"
Condition (if) #
When the condition matches (then) #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#This rule must not match (
not) #Required in this object (
required):"mdc-gpios","mdio-gpios","mdio"Properties and child nodes (
properties) #
mdc-gpios— not listed as required here #
false— Not permitted by this property rule.
mdio-gpios— not listed as required here #
false— Not permitted by this property rule.
mdio— not listed as required here #
false— Not permitted by this property rule.
When the condition does not match (else) #
Required in this object (
required):"mdc-gpios","mdio-gpios","mdio"
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
platform {
ethernet-switch {
compatible = "realtek,rtl8366rb";
/* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */
mdc-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
mdio-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
switch_intc1: interrupt-controller {
/* GPIO 15 provides the interrupt */
interrupt-parent = <&gpio0>;
interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan0";
phy-handle = <&phy0>;
};
ethernet-port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&phy1>;
};
ethernet-port@2 {
reg = <2>;
label = "lan2";
phy-handle = <&phy2>;
};
ethernet-port@3 {
reg = <3>;
label = "lan3";
phy-handle = <&phy3>;
};
ethernet-port@4 {
reg = <4>;
label = "wan";
phy-handle = <&phy4>;
};
ethernet-port@5 {
reg = <5>;
ethernet = <&gmac0>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
compatible = "realtek,smi-mdio";
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
interrupt-parent = <&switch_intc1>;
interrupts = <0>;
};
phy1: ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&switch_intc1>;
interrupts = <1>;
};
phy2: ethernet-phy@2 {
reg = <2>;
interrupt-parent = <&switch_intc1>;
interrupts = <2>;
};
phy3: ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&switch_intc1>;
interrupts = <3>;
};
phy4: ethernet-phy@4 {
reg = <4>;
interrupt-parent = <&switch_intc1>;
interrupts = <12>;
};
};
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
platform {
ethernet-switch {
compatible = "realtek,rtl8365mb";
mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
switch_intc2: interrupt-controller {
interrupt-parent = <&gpio5>;
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "swp0";
phy-handle = <ðphy0>;
};
ethernet-port@1 {
reg = <1>;
label = "swp1";
phy-handle = <ðphy1>;
};
ethernet-port@2 {
reg = <2>;
label = "swp2";
phy-handle = <ðphy2>;
};
ethernet-port@3 {
reg = <3>;
label = "swp3";
phy-handle = <ðphy3>;
};
ethernet-port@6 {
reg = <6>;
ethernet = <&fec1>;
phy-mode = "rgmii";
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <2000>;
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
mdio {
compatible = "realtek,smi-mdio";
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
reg = <0>;
interrupt-parent = <&switch_intc2>;
interrupts = <0>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&switch_intc2>;
interrupts = <1>;
};
ethphy2: ethernet-phy@2 {
reg = <2>;
interrupt-parent = <&switch_intc2>;
interrupts = <2>;
};
ethphy3: ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&switch_intc2>;
interrupts = <3>;
};
};
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@29 {
compatible = "realtek,rtl8365mb";
reg = <29>;
reset-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
switch_intc3: interrupt-controller {
interrupt-parent = <&gpio0>;
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
interrupt-controller;
#address-cells = <0>;
#interrupt-cells = <1>;
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan4";
};
ethernet-port@1 {
reg = <1>;
label = "lan3";
};
ethernet-port@2 {
reg = <2>;
label = "lan2";
};
ethernet-port@3 {
reg = <3>;
label = "lan1";
};
ethernet-port@4 {
reg = <4>;
label = "wan";
};
ethernet-port@7 {
reg = <7>;
ethernet = <ðernet>;
phy-mode = "rgmii";
tx-internal-delay-ps = <2000>;
rx-internal-delay-ps = <0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 137: - mdc-gpios
Line 138: - mdio-gpios
Line 139: - reset-gpios
Line 140: - mdio
Renesas RZ/N1 Advanced 5 ports ethernet switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Clément Léger <clement.leger@bootlin.com>"
The advanced 5 ports switch is present on the Renesas RZ/N1 SoC family and handles 4 ports + 1 CPU management port.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"renesas,rzn1-a5psw"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Device Level Ring (DLR) interrupt
Item 2
Switch interrupt
Item 3
Parallel Redundancy Protocol (PRP) interrupt
Item 4
Integrated HUB module interrupt
Item 5
Receive Pattern Match interrupt
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dlr"
Item 2
Exact value (
const):"switch"
Item 3
Exact value (
const):"prp"
Item 4
Exact value (
const):"hub"
Item 5
Exact value (
const):"ptrn"
power-domains — required here #
Maximum number of items (maxItems): 1
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
clocks — required here #
Array item rules (items) #
Item 1
AHB clock used for the switch register interface
Item 2
Switch system clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"clk"
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-4]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
true
Allowed by this rule.
Properties and child nodes (properties)
pcs-handle — not listed as required here
Maximum number of items (maxItems): 1
phandle pointing to a PCS sub-node compatible with renesas,rzn1-miic.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "power-domains"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
switch@44050000 {
compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw";
reg = <0x44050000 0x10000>;
clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, <&sysctrl R9A06G032_CLK_SWITCH>;
clock-names = "hclk", "clk";
power-domains = <&sysctrl>;
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "dlr", "switch", "prp", "hub", "ptrn";
dsa,member = <0 0>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
label = "lan0";
phy-handle = <&switch0phy3>;
pcs-handle = <&mii_conv4>;
};
port@1 {
reg = <1>;
label = "lan1";
phy-handle = <&switch0phy1>;
pcs-handle = <&mii_conv3>;
};
port@4 {
reg = <4>;
ethernet = <&gmac2>;
phy-mode = "internal";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&gpio0a 2 GPIO_ACTIVE_HIGH>;
reset-delay-us = <15>;
clock-frequency = <2500000>;
switch0phy1: ethernet-phy@1{
reg = <1>;
};
switch0phy3: ethernet-phy@3{
reg = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Vitesse VSC73xx DSA Switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / dsa
Schema identifier ($id): "http://devicetree.org/schemas/net/dsa/vitesse,vsc73xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Vitesse DSA Switches were produced in the early-to-mid 2000s. The Vitesse company has been acquired by Microsemi and Microsemi has been acquired Microchip but the new owner retains this vendor branding. The currently supported switch chips are Vitesse VSC7385 SparX-G5 5+1-port Integrated Gigabit Ethernet Switch Vitesse VSC7388 SparX-G8 8-port Integrated Gigabit Ethernet Switch Vitesse VSC7395 SparX-G5e 5+1-port Integrated Gigabit Ethernet Switch Vitesse VSC7398 SparX-G8e 8-port Integrated Gigabit Ethernet Switch This switch can use one of two different management interfaces. If SPI interface is used, the device tree node is an SPI device so it must reside inside a SPI bus device tree node, see spi/spi-bus.txt When the chip is connected to a parallel memory bus and work in memory-mapped I/O mode, a platform device is used to represent the vsc73xx. In this case it must reside inside a platform bus device tree node.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vitesse,vsc7385", "vitesse,vsc7388", "vitesse,vsc7395", "vitesse,vsc7398"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
reset-gpios — not listed as required here #
GPIO to be used to reset the whole device
Maximum number of items (maxItems): 1
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dsa.yaml#/$defs/ethernet-ports
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@6$ — name matches this regular expression
All of these rules must match (allOf)
Rule 1
Condition (
if)Properties and child nodes (
properties)
phy-mode— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then)Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereShared schema rule (
$ref):#/$defs/internal-delay-ps
tx-internal-delay-ps— not listed as required hereShared schema rule (
$ref):#/$defs/internal-delay-ps
Condition (if) #
Properties and child nodes (
properties) #
reg— not listed as required here #Minimum value (
minimum):0Maximum value (
maximum):256
When the condition matches (then) #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Required in this object (required): "compatible", "reg"
Reusable definitions ($defs) #
internal-delay-ps #
Disable tunable delay lines using 0 ps, or enable them and select the phase between 1400 ps and 2000 ps in increments of 300 ps.
Default value (default): 2000
Allowed values (enum): 0, 1400, 1700, 2000
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@0 {
compatible = "vitesse,vsc7395";
reg = <0>;
spi-max-frequency = <2500000>;
gpio-controller;
#gpio-cells = <2>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan1";
};
ethernet-port@1 {
reg = <1>;
label = "lan2";
};
ethernet-port@2 {
reg = <2>;
label = "lan3";
};
ethernet-port@3 {
reg = <3>;
label = "lan4";
};
ethernet-port@6 {
reg = <6>;
ethernet = <&gmac1>;
phy-mode = "rgmii";
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
bus {
#address-cells = <1>;
#size-cells = <1>;
ethernet-switch@10000000 {
compatible = "vitesse,vsc7385";
reg = <0x10000000 0x20000>;
reset-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@0 {
reg = <0>;
label = "lan1";
};
ethernet-port@1 {
reg = <1>;
label = "lan2";
};
ethernet-port@2 {
reg = <2>;
label = "lan3";
};
ethernet-port@3 {
reg = <3>;
label = "lan4";
};
ethernet-port@6 {
reg = <6>;
ethernet = <&enet0>;
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <0>;
phy-mode = "rgmii";
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 74: This checks if reg is a chipselect so the device is on an SPI
Line 75: bus, the if-clause will fail if reg is a tuple such as for a
Line 76: platform device.
AT86RF230 IEEE 802.15.4
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / ieee802154
Schema identifier ($id): "http://devicetree.org/schemas/net/ieee802154/atmel,at86rf233.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,at86rf212", "atmel,at86rf230", "atmel,at86rf231", "atmel,at86rf233"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpio — not listed as required here #
Maximum number of items (maxItems): 1
sleep-gpio — not listed as required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
Maximum value (maximum): 7500000
xtal-trim — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Maximum value (maximum): 15
Fine tuning the internal capacitance arrays of xtal pins:
0 = +0 pF, 0xf = +4.5 pF
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
zigbee@0 {
compatible = "atmel,at86rf231";
reg = <0>;
spi-max-frequency = <7500000>;
interrupts = <19 4>;
interrupt-parent = <&gpio3>;
xtal-trim = /bits/ 8 <0x06>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell International Ltd. NCI NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/marvell,nci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,nfc-i2c", "marvell,nfc-spi", "marvell,nfc-uart"
hci-muxed — not listed as required here #
Value type (type): "boolean"
Specifies that the chip is muxing NCI over HCI frames
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — not listed as required here #
Maximum number of items (maxItems): 1
reset-n-io — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
Output GPIO pin used to reset the chip (active low)
i2c-int-falling — not listed as required here #
Value type (type): "boolean"
For I2C type of connection. Specifies that the chip read event shall be triggered on falling edge.
i2c-int-rising — not listed as required here #
Value type (type): "boolean"
For I2C type of connection. Specifies that the chip read event shall be triggered on rising edge.
break-control — not listed as required here #
Value type (type): "boolean"
For UART type of connection. Specifies that the chip needs specific break management.
flow-control — not listed as required here #
Value type (type): "boolean"
For UART type of connection. Specifies that the chip is using RTS/CTS.
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"marvell,nfc-i2c"When the condition matches (
then) #Properties and child nodes (
properties)
break-control— not listed as required here
false— Not permitted by this property rule.
flow-control— not listed as required here
false— Not permitted by this property rule.
spi-cpha— not listed as required here
false— Not permitted by this property rule.
spi-cpol— not listed as required here
false— Not permitted by this property rule.
spi-max-frequency— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"marvell,nfc-spi"When the condition matches (
then) #Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#Properties and child nodes (
properties)
break-control— not listed as required here
false— Not permitted by this property rule.
flow-control— not listed as required here
false— Not permitted by this property rule.
i2c-int-falling— not listed as required here
false— Not permitted by this property rule.
i2c-int-rising— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"marvell,nfc-uart"When the condition matches (
then) #Properties and child nodes (
properties)
i2c-int-falling— not listed as required here
false— Not permitted by this property rule.
i2c-int-rising— not listed as required here
false— Not permitted by this property rule.
interrupts— not listed as required here
false— Not permitted by this property rule.
spi-cpha— not listed as required here
false— Not permitted by this property rule.
spi-cpol— not listed as required here
false— Not permitted by this property rule.
spi-max-frequency— not listed as required here
false— Not permitted by this property rule.
reg— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@8 {
compatible = "marvell,nfc-i2c";
reg = <0x8>;
interrupt-parent = <&gpio3>;
interrupts = <21 IRQ_TYPE_EDGE_RISING>;
i2c-int-rising;
reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
nfc@0 {
compatible = "marvell,nfc-spi";
reg = <0>;
spi-max-frequency = <3000000>;
spi-cpha;
spi-cpol;
interrupt-parent = <&gpio1>;
interrupts = <17 IRQ_TYPE_EDGE_RISING>;
reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>;
};
};
#include <dt-bindings/gpio/gpio.h>
uart {
nfc {
compatible = "marvell,nfc-uart";
reset-n-io = <&gpio3 16 GPIO_ACTIVE_LOW>;
hci-muxed;
flow-control;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP Semiconductors NCI NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/nxp,nci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"nxp,nxp-nci-i2c"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nxp,nq310","nxp,pn547","nxp,pn553"Item 2
Exact value (
const):"nxp,nxp-nci-i2c"
enable-gpios — required here #
Output GPIO pin used for enabling/disabling the controller
firmware-gpios — not listed as required here #
Output GPIO pin used to enter firmware download mode
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "enable-gpios", "interrupts", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@29 {
compatible = "nxp,nxp-nci-i2c";
reg = <0x29>;
interrupt-parent = <&gpio1>;
interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP Semiconductors PN532 NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/nxp,pn532.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"nxp,pn532"
Rule 2
Deprecated bindings
Allowed values (
enum):"nxp,pn532-i2c","nxp,pn533-i2c"Deprecated (
deprecated):true
interrupts — not listed as required here #
Required if connected via I2C
Maximum number of items (maxItems): 1
reg — not listed as required here #
Required if connected via I2C
Maximum number of items (maxItems): 1
Required in this object (required): "compatible"
Property dependencies (dependencies) #
interrupts — applies when this property is present #
Also requires: "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@24 {
compatible = "nxp,pn532";
reg = <0x24>;
interrupt-parent = <&gpio1>;
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
};
};
serial@49042000 {
reg = <0x49042000 0x400>;
nfc {
compatible = "nxp,pn532";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 39: PN532 on I2C bus
Line 57: PN532 connected via UART
NXP Semiconductors PN544 NFC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/nxp,pn544.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,pn544-i2c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
enable-gpios — required here #
Output GPIO pin used for enabling/disabling the PN544
Maximum number of items (maxItems): 1
firmware-gpios — required here #
Output GPIO pin used to enter firmware download mode
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "enable-gpios", "firmware-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@28 {
compatible = "nxp,pn544-i2c";
reg = <0x28>;
interrupt-parent = <&gpio1>;
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung S3FWRN5 NCI NFC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,s3fwrn5-i2c", "samsung,s3fwrn82"
en-gpios — required here #
Maximum number of items (maxItems): 1
Output GPIO pin used for enabling/disabling the chip
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
wake-gpios — required here #
Maximum number of items (maxItems): 1
Output GPIO pin used to enter firmware mode and sleep/wakeup control
s3fwrn5,en-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
Use en-gpios
s3fwrn5,fw-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
Use wake-gpios
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "en-gpios", "wake-gpios"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,s3fwrn5-i2c"When the condition matches (
then) #
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
s3fwrn5@27 {
compatible = "samsung,s3fwrn5-i2c";
reg = <0x27>;
interrupt-parent = <&gpa1>;
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;
clocks = <&rpmcc 20>;
};
};
uart0 {
nfc {
compatible = "samsung,s3fwrn82";
en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 89: UART example on Raspberry Pi
STMicroelectronics ST NCI NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/st,st-nci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,st21nfcb-i2c", "st,st21nfcb-spi", "st,st21nfcc-i2c"
reset-gpios — required here #
Output GPIO pin used for resetting the controller
ese-present — not listed as required here #
Value type (type): "boolean"
Specifies that an ese is physically connected to the controller
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
uicc-present — not listed as required here #
Value type (type): "boolean"
Specifies that the uicc swp signal can be physically connected to the controller
Required in this object (required): "compatible", "interrupts", "reg", "reset-gpios"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
spi-max-frequency— not listed as required here #
false— Not permitted by this property rule.
When the condition does not match (else) #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@8 {
compatible = "st,st21nfcb-i2c";
reg = <0x08>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
ese-present;
uicc-present;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
nfc@0 {
compatible = "st,st21nfcb-spi";
reg = <0>;
spi-max-frequency = <4000000>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
ese-present;
uicc-present;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
STMicroelectronics SAS ST21NFCA NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/st,st21nfca.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,st21nfca-i2c"
enable-gpios — required here #
Output GPIO pin used for enabling/disabling the controller
ese-present — not listed as required here #
Value type (type): "boolean"
Specifies that an ese is physically connected to the controller
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
uicc-present — not listed as required here #
Value type (type): "boolean"
Specifies that the uicc swp signal can be physically connected to the controller
Required in this object (required): "compatible", "enable-gpios", "interrupts", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@1 {
compatible = "st,st21nfca-i2c";
reg = <0x1>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
ese-present;
uicc-present;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
STMicroelectronics ST95HF NFC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/st,st95hf.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,st95hf"
enable-gpio — required here #
Output GPIO pin used for enabling/disabling the controller
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
st95hfvin-supply — not listed as required here #
ST95HF transceiver's Vin regulator supply
Required in this object (required): "compatible", "enable-gpio", "interrupts", "reg", "spi-max-frequency"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
nfc@0{
compatible = "st,st95hf";
reg = <0>;
spi-max-frequency = <1000000>;
enable-gpio = <&pio4 GPIO_ACTIVE_HIGH>;
interrupt-parent = <&pio0>;
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / nfc
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/ti,trf7970a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Mark Greer <mgreer@animalcreek.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,trf7970a"
autosuspend-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specify autosuspend delay in milliseconds.
clock-frequency — not listed as required here #
Set to specify that the input frequency to the trf7970a is 13560000Hz or 27120000Hz
en2-rf-quirk — not listed as required here #
Value type (type): "boolean"
Specify that the trf7970a being used has the "EN2 RF" erratum
interrupts — required here #
Maximum number of items (maxItems): 1
irq-status-read-quirk — not listed as required here #
Value type (type): "boolean"
Specify that the trf7970a being used has the "IRQ Status Read" erratum
reg — required here #
Maximum number of items (maxItems): 1
ti,enable-gpios — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN2 is optional.
vdd-io-supply — not listed as required here #
Regulator specifying voltage for VDD-IO
vin-supply — required here #
Regulator for supply voltage to VIN pin
ti,rx-gain-reduction-db — not listed as required here #
Specify an RX gain reduction to reduce antenna sensitivity with 5dB per increment, with a maximum of 15dB.
Allowed values (enum): 0, 5, 10, 15
Required in this object (required): "compatible", "interrupts", "reg", "spi-max-frequency", "ti,enable-gpios", "vin-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
nfc@0 {
compatible = "ti,trf7970a";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&trf7970a_default>;
spi-max-frequency = <2000000>;
interrupt-parent = <&gpio2>;
interrupts = <14 0>;
ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
<&gpio2 5 GPIO_ACTIVE_HIGH>;
vin-supply = <&ldo3_reg>;
vdd-io-supply = <&ldo2_reg>;
autosuspend-delay = <30000>;
irq-status-read-quirk;
en2-rf-quirk;
clock-frequency = <27120000>;
ti,rx-gain-reduction-db = <15>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP Lynx PCS
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pcs
Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/fsl,lynx-pcs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ioana Ciornei <ioana.ciornei@nxp.com>"
NXP Lynx 10G and 28G SerDes have Ethernet PCS devices which can be used as protocol controllers. They are accessible over the Ethernet interface's MDIO bus.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,lynx-pcs"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
qsgmii_pcs1: ethernet-pcs@1 {
compatible = "fsl,lynx-pcs";
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MediaTek SGMIISYS Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pcs
Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/mediatek,sgmiisys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthias Brugger <matthias.bgg@gmail.com>"
The MediaTek SGMIISYS controller provides a SGMII PCS and some clocks to the ethernet subsystem to which it is attached.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt7622-sgmiisys","mediatek,mt7629-sgmiisys","mediatek,mt7981-sgmiisys_0","mediatek,mt7981-sgmiisys_1","mediatek,mt7986-sgmiisys_0","mediatek,mt7986-sgmiisys_1"Item 2
Exact value (
const):"syscon"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt7988-sgmiisys0","mediatek,mt7988-sgmiisys1"Item 2
Exact value (
const):"simple-mfd"Item 3
Exact value (
const):"syscon"
reg — required here #
Maximum number of items (maxItems): 1
#clock-cells — required here #
Exact value (const): 1
mediatek,pnswap — not listed as required here #
Invert polarity of the SGMII data lanes. This property is deprecated, for details please refer to Documentation/devicetree/bindings/phy/phy-common-props.yaml.
Value type (type): "boolean"
Deprecated (deprecated): true
pcs — not listed as required here #
Value type (type): "object"
MediaTek LynxI HSGMII PCS
Shared schema rule ($ref): /schemas/phy/phy-common-props.yaml#
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "mediatek,mt7988-sgmii"
clocks — required here
Maximum number of items (maxItems): 3
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"sgmii_sel"
Item 2
Exact value (
const):"sgmii_tx"
Item 3
Exact value (
const):"sgmii_rx"
Required in this object (required): "compatible", "clocks", "clock-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#clock-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt7988-sgmiisys0","mediatek,mt7988-sgmiisys1"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
pcs— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
sgmiisys: syscon@1b128000 {
compatible = "mediatek,mt7622-sgmiisys", "syscon";
reg = <0 0x1b128000 0 0x1000>;
#clock-cells = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Renesas RZ/N1, RZ/N2H and RZ/T2H MII converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pcs
Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/renesas,rzn1-miic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Clément Léger <clement.leger@bootlin.com>", "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
This MII converter is present on the Renesas RZ/N1, RZ/N2H and RZ/T2H SoC families. It is responsible to do MII passthrough or convert it to RMII/RGMII.
Properties and child nodes (properties) #
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rzn1-miic"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g077-miic"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-miic"Item 2
Exact value (
const):"renesas,r9a09g077-miic"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
MII reference clock
Item 2
RGMII reference clock
Item 3
RMII reference clock
Item 4
AHB clock used for the MII converter register interface
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mii_ref"
Item 2
Exact value (
const):"rgmii_ref"
Item 3
Exact value (
const):"rmii_ref"
Item 4
Exact value (
const):"hclk"
resets — not listed as required here #
Array item rules (items) #
Item 1
Converter register reset
Item 2
Converter reset
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rst"
Item 2
Exact value (
const):"crst"
renesas,miic-switch-portin — not listed as required here #
MII Switch PORTIN configuration. This value should use one of the values defined in dt-bindings/net/pcs-rzn1-miic.h for RZ/N1 SoC and include/dt-bindings/net/renesas,r9a09g077-pcs-miic.h for RZ/N2H, RZ/T2H SoCs.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
power-domains — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^mii-conv@[0-5]$ — name matches this regular expression #
Value type (type): "object"
MII converter port
Properties and child nodes (properties) #
reg — required here
MII Converter port number.
Allowed values (enum): 0, 1, 2, 3, 4, 5
renesas,miic-input — required here
Converter input port configuration. This value should use one of the values defined in dt-bindings/net/pcs-rzn1-miic.h for RZ/N1 SoC and include/dt-bindings/net/renesas,r9a09g077-pcs-miic.h for RZ/N2H, RZ/T2H SoCs.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
renesas,miic-phy-link-active-low — not listed as required here
Value type (type): "boolean"
Indicates that the PHY-link signal provided by the Ethernet switch, EtherCAT, or SERCOS3 interface is active low. When present, this property sets the corresponding signal polarity to active low. When omitted, the signal defaults to active high.
Required in this object (required): "reg", "renesas,miic-input"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzn1-miic"When the condition matches (
then) #Properties and child nodes (
properties)
renesas,miic-switch-portin— not listed as required here
resets— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^mii-conv@[0-5]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):1,2,3,4,5All of these rules must match (
allOf)Rule 1
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):1When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereExact value (
const):0Rule 2
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):2When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 3
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):3When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 4
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):4When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 5
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):5When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereWhen the condition does not match (
else) #Properties and child nodes (
properties)
renesas,miic-switch-portin— not listed as required hereExact value (
const):0Required in this object (
required):"resets","reset-names"Properties matching a name pattern (
patternProperties)
^mii-conv@[0-5]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):0,1,2,3All of these rules must match (
allOf)Rule 1
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):0When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 2
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):1When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 3
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):2When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereRule 4
Condition (
if)Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):3When the condition matches (
then)Properties and child nodes (
properties)
renesas,miic-input— not listed as required hereExact value (
const):1
Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg", "clocks", "clock-names", "power-domains"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/net/pcs-rzn1-miic.h>
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
eth-miic@44030000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "renesas,r9a06g032-miic", "renesas,rzn1-miic";
reg = <0x44030000 0x10000>;
clocks = <&sysctrl R9A06G032_CLK_MII_REF>,
<&sysctrl R9A06G032_CLK_RGMII_REF>,
<&sysctrl R9A06G032_CLK_RMII_REF>,
<&sysctrl R9A06G032_HCLK_SWITCH_RG>;
clock-names = "mii_ref", "rgmii_ref", "rmii_ref", "hclk";
renesas,miic-switch-portin = <MIIC_GMAC2_PORT>;
power-domains = <&sysctrl>;
mii_conv1: mii-conv@1 {
renesas,miic-input = <MIIC_GMAC1_PORT>;
reg = <1>;
};
mii_conv2: mii-conv@2 {
renesas,miic-input = <MIIC_SWITCH_PORTD>;
reg = <2>;
};
mii_conv3: mii-conv@3 {
renesas,miic-input = <MIIC_SWITCH_PORTC>;
reg = <3>;
};
mii_conv4: mii-conv@4 {
renesas,miic-input = <MIIC_SWITCH_PORTB>;
reg = <4>;
};
mii_conv5: mii-conv@5 {
renesas,miic-input = <MIIC_SWITCH_PORTA>;
reg = <5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 31: RZ/T2H
Line 33: RZ/N2H
Synopsys DesignWare Ethernet PCS
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pcs
Schema identifier ($id): "http://devicetree.org/schemas/net/pcs/snps,dw-xpcs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Serge Semin <fancer.lancer@gmail.com>"
Synopsys DesignWare Ethernet Physical Coding Sublayer provides an interface between Media Access Control and Physical Medium Attachment Sublayer through the Media Independent Interface (XGMII, USXGMII, XLGMII, GMII, etc) controlled by means of the IEEE std. Clause 45 registers set. The PCS can be optionally synthesized with a vendor-specific interface connected to Synopsys PMA (also called DesignWare Consumer/Enterprise PHY) although in general it can be used to communicate with any compatible PHY. The PCS CSRs can be accessible either over the Ethernet MDIO bus or directly by means of the APB3/MCI interfaces. In the later case the XPCS can be mapped right to the system IO memory space.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Synopsys DesignWare XPCS with none or unknown PMA
Exact value (
const):"snps,dw-xpcs"
Rule 2
Synopsys DesignWare XPCS with Consumer Gen1 3G PMA
Exact value (
const):"snps,dw-xpcs-gen1-3g"
Rule 3
Synopsys DesignWare XPCS with Consumer Gen2 3G PMA
Exact value (
const):"snps,dw-xpcs-gen2-3g"
Rule 4
Synopsys DesignWare XPCS with Consumer Gen2 6G PMA
Exact value (
const):"snps,dw-xpcs-gen2-6g"
Rule 5
Synopsys DesignWare XPCS with Consumer Gen4 3G PMA
Exact value (
const):"snps,dw-xpcs-gen4-3g"
Rule 6
Synopsys DesignWare XPCS with Consumer Gen4 6G PMA
Exact value (
const):"snps,dw-xpcs-gen4-6g"
Rule 7
Synopsys DesignWare XPCS with Consumer Gen5 10G PMA
Exact value (
const):"snps,dw-xpcs-gen5-10g"
Rule 8
Synopsys DesignWare XPCS with Consumer Gen5 12G PMA
Exact value (
const):"snps,dw-xpcs-gen5-12g"
reg — required here #
Array item rules (items) #
Item 1
In case of the MDIO management interface this just a 5-bits ID of the MDIO bus device. If DW XPCS CSRs space is accessed over the MCI or APB3 management interfaces, then the space mapping can be either 'direct' or 'indirect'. In the former case all Clause 45 registers are contiguously mapped within the address space MMD '[20:16]', Reg '[15:0]'. In the later case the space is divided to the multiple 256 register sets. There is a special viewport CSR which is responsible for the set selection. The upper part of the CSR address MMD+REG[20:8] is supposed to be written in there so the corresponding subset would be mapped to the lowest 255 CSRs.
reg-names — not listed as required here #
Array item rules (items) #
Item 1
reg-io-width — not listed as required here #
The way the CSRs are mapped to the memory is platform depended. Since each Clause 45 CSR is of 16-bits wide the access instructions must be two bytes aligned at least.
Default value (default): 2
interrupts — not listed as required here #
System interface interrupt output (sbd_intr_o) indicating Clause 73/37 auto-negotiation events':' Page received, AN is completed or incompatible link partner.
Maximum number of items (maxItems): 1
clocks — not listed as required here #
The MCI and APB3 interfaces are supposed to be equipped with a clock source connected to the clk_csr_i line. PCS/PMA layer can be clocked by an internal reference clock source (phyN_core_refclk) or by an externally connected (phyN_pad_refclk) clock generator. Both clocks can be supplied at a time.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Minimum number of items (
minItems):1Array item rules (
items)Item 1
Item 2
Exact value (
const):"pad"
Rule 2
Minimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"csr"Item 2
Item 3
Exact value (
const):"pad"
Required in this object (required): "compatible", "reg"
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>
ethernet-pcs@1f05d000 {
compatible = "snps,dw-xpcs";
reg = <0x1f05d000 0x1000>;
reg-names = "indirect";
reg-io-width = <4>;
interrupts = <79 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu_pclk>, <&ccu_core>, <&ccu_pad>;
clock-names = "csr", "core", "pad";
};
mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
ethernet-pcs@0 {
compatible = "snps,dw-xpcs";
reg = <0>;
clocks = <&ccu_core>, <&ccu_pad>;
clock-names = "core", "pad";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 92: MDIO
Line 96: MCI or APB
Microchip PD692x0 Power Sourcing Equipment controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pse-pd
Schema identifier ($id): "http://devicetree.org/schemas/net/pse-pd/microchip,pd692x0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kory Maincent <kory.maincent@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pse-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,pd69200", "microchip,pd69210", "microchip,pd69220"
reg — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Regulator that provides 3.3V VDD power supply.
vdda-supply — not listed as required here #
Regulator that provides 3.3V VDDA power supply.
managers — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
List of the PD69208T4/PD69204T4/PD69208M PSE managers. Each manager have 4 or 8 physical ports according to the chip version. No need to specify the SPI chip select as it is automatically detected by the PD692x0 PSE controller. The PSE managers have to be described from the lowest chip select to the greatest one, which is the detection behavior of the PD692x0 PSE controller. The PD692x0 support up to 12 PSE managers which can expose up to 96 physical ports. All physical ports available on a manager have to be described in the incremental order even if they are not used.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Required in this object (required): "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^manager@[0-9a-b]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
PD69208T4/PD69204T4/PD69208M PSE manager exposing 4 or 8 physical ports.
Properties and child nodes (properties)
reg — required here
Incremental index of the PSE manager starting from 0, ranging from lowest to highest chip select, up to 11.
Maximum number of items (maxItems): 1
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
vmain-supply — not listed as required here
Regulator that provides 44-57V VMAIN power supply.
vaux5-supply — not listed as required here
Regulator that provides 5V VAUX5 power supply.
vaux3p3-supply — not listed as required here
Regulator that provides 3.3V VAUX3P3 power supply.
Properties matching a name pattern (patternProperties)
^port@[0-7]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "reg", "#address-cells", "#size-cells"
Required in this object (required): "compatible", "reg", "pse-pis"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ethernet-pse@3c {
compatible = "microchip,pd69200";
reg = <0x3c>;
managers {
#address-cells = <1>;
#size-cells = <0>;
manager0: manager@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
vmain-supply = <&pse1_supply>;
phys0: port@0 {
reg = <0>;
};
phys1: port@1 {
reg = <1>;
};
phys2: port@2 {
reg = <2>;
};
phys3: port@3 {
reg = <3>;
};
};
manager@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
phys4: port@0 {
reg = <0>;
};
phys5: port@1 {
reg = <1>;
};
phys6: port@2 {
reg = <2>;
};
phys7: port@3 {
reg = <3>;
};
};
};
pse-pis {
#address-cells = <1>;
#size-cells = <0>;
pse_pi0: pse-pi@0 {
reg = <0>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0>, <&phys1>;
polarity-supported = "MDI", "S";
vpwr-supply = <&manager0>;
};
pse_pi1: pse-pi@1 {
reg = <1>;
#pse-cells = <0>;
pairset-names = "alternative-a";
pairsets = <&phys2>;
polarity-supported = "MDI";
vpwr-supply = <&manager0>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Regulator based Power Sourcing Equipment
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pse-pd
Schema identifier ($id): "http://devicetree.org/schemas/net/pse-pd/podl-pse-regulator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
Regulator based PoDL PSE controller. The device must be referenced by the PHY node to control power injection to the Ethernet cable.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pse-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "podl-pse-regulator"
#pse-cells — not listed as required here #
Exact value (const): 0
pse-supply — required here #
Power supply for the PSE controller
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "pse-supply"
Examples (examples) #
ethernet-pse {
compatible = "podl-pse-regulator";
pse-supply = <®_t1l1>;
#pse-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Power Sourcing Equipment (PSE).
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pse-pd
Schema identifier ($id): "http://devicetree.org/schemas/net/pse-pd/pse-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Binding for the Power Sourcing Equipment (PSE) as defined in the IEEE 802.3 specification. It is designed for hardware which is delivering power over twisted pair/ethernet cable. The ethernet-pse nodes should be used to describe PSE controller and referenced by the ethernet-phy node.
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>", "Kory Maincent <kory.maincent@bootlin.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet-pse(@.*|-([0-9]|[1-9][0-9]+))?$"
#pse-cells — not listed as required here #
Used to uniquely identify a PSE instance within an IC. Will be 0 on PSE nodes with only a single output and at least 1 on nodes controlling several outputs which are not described in the pse-pis subnode. This property is deprecated, please use pse-pis instead.
pse-pis — not listed as required here #
Value type (type): "object"
Overview of the PSE PIs provided by the controller.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Required in this object (required): "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^pse-pi@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
PSE PI for power delivery via pairsets, compliant with IEEE 802.3-2022, Section 145.2.4. Each pairset comprises a positive and a negative VPSE pair, adhering to the pinout configurations detailed in the standard. See Documentation/networking/pse-pd/pse-pi.rst for details.
Properties and child nodes (properties)
reg — required here
Address describing the PSE PI index.
Maximum number of items (maxItems): 1
#pse-cells — required here
Exact value (const): 0
pairset-names — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Names of the pairsets as per IEEE 802.3-2022, Section 145.2.4. Each name should correspond to a phandle in the 'pairset' property pointing to the power supply for that pairset.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items)
pairsets — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
List of phandles, each pointing to the power supply for the corresponding pairset named in 'pairset-names'. This property aligns with IEEE 802.3-2022, Section 33.2.3 and 145.2.4. PSE Pinout Alternatives (as per IEEE 802.3-2022 Table 145-3) |-----------|---------------|---------------|---------------|---------------| | Conductor | Alternative A | Alternative A | Alternative B | Alternative B | | | (MDI-X) | (MDI) | (X) | (S) | |-----------|---------------|---------------|---------------|---------------| | 1 | Negative VPSE | Positive VPSE | - | - | | 2 | Negative VPSE | Positive VPSE | - | - | | 3 | Positive VPSE | Negative VPSE | - | - | | 4 | - | - | Negative VPSE | Positive VPSE | | 5 | - | - | Negative VPSE | Positive VPSE | | 6 | Positive VPSE | Negative VPSE | - | - | | 7 | - | - | Positive VPSE | Negative VPSE | | 8 | - | - | Positive VPSE | Negative VPSE |
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
polarity-supported — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Polarity configuration supported by the PSE PI pairsets.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items)
vpwr-supply — not listed as required here
Regulator power supply for the PSE PI.
Required in this object (required): "reg", "#pse-cells"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Skyworks Si3474 Power Sourcing Equipment controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pse-pd
Schema identifier ($id): "http://devicetree.org/schemas/net/pse-pd/skyworks,si3474.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Piotr Kubik <piotr.kubik@adtran.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pse-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "skyworks,si3474"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"main"
Item 2
Exact value (
const):"secondary"
channels — not listed as required here #
The Si3474 is a single-chip PoE PSE controller managing 8 physical power delivery channels. Internally, it's structured into two logical "Quads". Quad 0 Manages physical channels ('ports' in datasheet) 0, 1, 2, 3 Quad 1 Manages physical channels ('ports' in datasheet) 4, 5, 6, 7.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "#address-cells", "#size-cells"
Required in this object (required): "compatible", "reg", "pse-pis"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
ethernet-pse@26 {
compatible = "skyworks,si3474";
reg-names = "main", "secondary";
reg = <0x26>, <0x27>;
channels {
#address-cells = <1>;
#size-cells = <0>;
phys0_0: channel@0 {
reg = <0>;
};
phys0_1: channel@1 {
reg = <1>;
};
phys0_2: channel@2 {
reg = <2>;
};
phys0_3: channel@3 {
reg = <3>;
};
phys0_4: channel@4 {
reg = <4>;
};
phys0_5: channel@5 {
reg = <5>;
};
phys0_6: channel@6 {
reg = <6>;
};
phys0_7: channel@7 {
reg = <7>;
};
};
pse-pis {
#address-cells = <1>;
#size-cells = <0>;
pse_pi0: pse-pi@0 {
reg = <0>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0_0>, <&phys0_1>;
polarity-supported = "MDI-X", "S";
vpwr-supply = <®_pse>;
};
pse_pi1: pse-pi@1 {
reg = <1>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0_2>, <&phys0_3>;
polarity-supported = "MDI-X", "S";
vpwr-supply = <®_pse>;
};
pse_pi2: pse-pi@2 {
reg = <2>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0_4>, <&phys0_5>;
polarity-supported = "MDI-X", "S";
vpwr-supply = <®_pse>;
};
pse_pi3: pse-pi@3 {
reg = <3>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0_6>, <&phys0_7>;
polarity-supported = "MDI-X", "S";
vpwr-supply = <®_pse>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI TPS23881 Power Sourcing Equipment controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / pse-pd
Schema identifier ($id): "http://devicetree.org/schemas/net/pse-pd/ti,tps23881.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kory Maincent <kory.maincent@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pse-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tps23881", "ti,tps23881b"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#pse-cells — not listed as required here #
Exact value (const): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
channels — not listed as required here #
Defines the 8 physical delivery channels on the controller that can be referenced by PSE PIs through their "pairsets" property. The actual port matrix mapping is created when PSE PIs reference these channels in their pairsets. For 4-pair operation, two channels from the same group (0-3 or 4-7) must be referenced by a single PSE PI.
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
ethernet-pse@20 {
compatible = "ti,tps23881";
reg = <0x20>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gpiog>;
channels {
#address-cells = <1>;
#size-cells = <0>;
phys0: channel@0 {
reg = <0>;
};
phys1: channel@1 {
reg = <1>;
};
phys2: channel@2 {
reg = <2>;
};
};
pse-pis {
#address-cells = <1>;
#size-cells = <0>;
pse_pi0: pse-pi@0 {
reg = <0>;
#pse-cells = <0>;
pairset-names = "alternative-a", "alternative-b";
pairsets = <&phys0>, <&phys1>;
polarity-supported = "MDI", "S";
vpwr-supply = <&vpwr1>;
};
pse_pi1: pse-pi@1 {
reg = <1>;
#pse-cells = <0>;
pairset-names = "alternative-a";
pairsets = <&phys2>;
polarity-supported = "MDI";
vpwr-supply = <&vpwr2>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM4329 family fullmac wireless SDIO/PCIE devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/brcm,bcm4329-fmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Arend van Spriel <arend@broadcom.com>"
The Broadcom Single chip MAC part for the BCM4329 family and later Cypress chips in the same family named CYW4373 and similar. These chips also have a Bluetooth portion described in a separate binding.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/wireless/wireless-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm43143-fmac","brcm,bcm4341b0-fmac","brcm,bcm4341b4-fmac","brcm,bcm4341b5-fmac","brcm,bcm4329-fmac","brcm,bcm4330-fmac","brcm,bcm4334-fmac","brcm,bcm43340-fmac","brcm,bcm4335-fmac","brcm,bcm43362-fmac","brcm,bcm4339-fmac","brcm,bcm43430a0-fmac","brcm,bcm43430a1-fmac","brcm,bcm43455-fmac","brcm,bcm43456-fmac","brcm,bcm4354-fmac","brcm,bcm4356-fmac","brcm,bcm4359-fmac","brcm,bcm4366-fmac","cypress,cyw4373-fmac","cypress,cyw43012-fmac","infineon,cyw43439-fmac"Item 2
Exact value (
const):"brcm,bcm4329-fmac"
Rule 2
Allowed values (
enum):"brcm,bcm4329-fmac","pci14e4,43dc","pci14e4,4464","pci14e4,4488","pci14e4,4425","pci14e4,4433","pci14e4,4434","pci14e4,449d"
reg — required here #
SDIO function number for the device (for most cases this will be 1) or PCI device identifier.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Out-of-band (OOB) IRQ line for waking up the host in response to WLAN activity. This corresponds to the HOST_WAKE line into the chip.
interrupt-names — not listed as required here #
Name for the OOB IRQ, this must be set to "host-wake".
Exact value (const): "host-wake"
brcm,drive-strength — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Drive strength used for the SDIO pins on the device in mA.
Minimum value (minimum): 0
Maximum value (maximum): 32
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
A GPIO line connected to the WL_RST line, if present this shall be flagged as active low.
brcm,ccode-map — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Multiple strings for translating ISO3166 country code to brcmfmac firmware country code and revision.
Array item rules (items) #
String pattern (
pattern):"^[A-Z][A-Z]-[A-Z][0-9A-Z]-[0-9]+$"
brcm,ccode-map-trivial — not listed as required here #
Use a trivial mapping of ISO3166 country codes to brcmfmac firmware country code and revision: cc -> { cc, 0 }. In other words, assume that the CLM blob firmware uses ISO3166 country codes as well, and that all revisions are zero. This property is mutually exclusive with brcm,ccode-map. If both properties are specified, then brcm,ccode-map takes precedence.
Value type (type): "boolean"
brcm,cal-blob — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
A per-device calibration blob for the Wi-Fi radio. This should be filled in by the bootloader from platform configuration data, if necessary, and will be uploaded to the device if present.
brcm,board-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Overrides the board type, which is normally the compatible of the root node. This can be used to decouple the overall system board or device name from the board type for WiFi purposes, which is used to construct firmware and NVRAM configuration filenames, allowing for multiple devices that share the same module or characteristics for the WiFi subsystem to share the same firmware/NVRAM files. On Apple platforms, this should be the Apple module-instance codename prefixed by "apple,", e.g. "apple,honshu".
apple,antenna-sku — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Antenna SKU used to identify a specific antenna configuration on Apple platforms. This is use to build firmware filenames, to allow platforms with different antenna configs to have different firmware and/or NVRAM. This would normally be filled in by the bootloader from platform configuration data.
clocks — not listed as required here #
Array item rules (items) #
Item 1
External Low Power Clock input (32.768KHz)
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"lpo"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
mmc@80118000 {
compatible = "arm,pl18x", "arm,primecell";
reg = <0x80118000 0x1000>;
clocks = <&clk 0>, <&clk 1>;
clock-names = "mclk", "apb_pclk";
interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
bus-width = <4>;
non-removable;
vmmc-supply = <&wl_bt_reg>;
#address-cells = <1>;
#size-cells = <0>;
wifi@1 {
compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
reg = <1>;
interrupt-parent = <&gpio>;
interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "host-wake";
reset-gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
brcm,ccode-map = "JP-JP-78", "US-Q2-86";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 51: BCM4355
Line 52: BCM4364
Line 53: BCM4377
Line 54: BCM4378
Line 55: BCM4387
Line 56: BCM4388
Line 57: BCM43752
Espressif ESP8089
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/esp,esp8089.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hans de Goede <hdegoede@redhat.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "esp,esp8089"
reg — required here #
Maximum number of items (maxItems): 1
esp,crystal-26M-en — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Value for the crystal_26M_en firmware parameter
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mmc {
#address-cells = <1>;
#size-cells = <0>;
wifi@1 {
compatible = "esp,esp8089";
reg = <1>;
esp,crystal-26M-en = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Common IEEE 802.11
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/ieee80211.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
This provides documentation of common properties that are valid for all wireless devices
Properties and child nodes (properties) #
ieee80211-freq-limit — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items) #
Minimum number of items (
minItems):2Maximum number of items (
maxItems):2
List of supported frequency ranges in KHz. This can be used for devices that in a given config support less channels than normally. It may happen chipset supports a wide wireless band but it is limited to some part of it due to used antennas or power amplifier. An example case for this can be tri-band wireless router with two identical chipsets used for two different 5 GHz subbands. Using them incorrectly could not work or decrease performance noticeably
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
pcie0 {
#address-cells = <3>;
#size-cells = <2>;
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <2402000 2482000>,
<5170000 5250000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
Marvell 8787/8897/8978/8997 (sd8787/sd8897/sd8978/sd8997/pcie8997) SDIO/PCIE devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/marvell,sd8787.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Brian Norris <briannorris@chromium.org>", "Frank Li <Frank.Li@nxp.com>"
This node provides properties for describing the Marvell SDIO/PCIE wireless device. The node is expected to be specified as a child node to the SDIO/PCIE controller that connects the device to the system.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,sd8787", "marvell,sd8897", "marvell,sd8978", "marvell,sd8997", "nxp,iw416", "pci11ab,2b42", "pci1b4b,2b42"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
marvell,caldata-txpwrlimit-2g — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data for the 2GHz band.
Maximum number of items (maxItems): 566
marvell,caldata-txpwrlimit-5g-sub0 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data for sub-band 0 in the 5GHz band.
Maximum number of items (maxItems): 502
marvell,caldata-txpwrlimit-5g-sub1 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data for sub-band 1 in the 5GHz band.
Maximum number of items (maxItems): 688
marvell,caldata-txpwrlimit-5g-sub2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data for sub-band 2 in the 5GHz band.
Maximum number of items (maxItems): 750
marvell,caldata-txpwrlimit-5g-sub3 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data for sub-band 3 in the 5GHz band.
Maximum number of items (maxItems): 502
marvell,wakeup-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Provides the pin number for the wakeup pin from the device's point of view. The wakeup pin is used for the device to wake the host system from sleep. This property is only necessary if the wakeup pin is wired in a non-standard way, such that the default pin assignments are invalid.
Required in this object (required): "compatible", "reg"
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>
mmc {
#address-cells = <1>;
#size-cells = <0>;
wifi@1 {
compatible = "marvell,sd8897";
reg = <1>;
interrupt-parent = <&pio>;
interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
marvell,wakeup-pin = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek mt76 wireless devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/mediatek,mt76.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Felix Fietkau <nbd@nbd.name>", "Lorenzo Bianconi <lorenzo@kernel.org>", "Ryder Lee <ryder.lee@mediatek.com>"
This node provides properties for configuring the MediaTek mt76xx wireless device. The node is expected to be specified as a child node of the PCI controller to which the wireless chip is connected. Alternatively, it can specify the wireless part of the MT7628/MT7688 or MT7622/MT7986 SoC.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt76", "mediatek,mt7628-wmac", "mediatek,mt7622-wmac", "mediatek,mt7981-wmac", "mediatek,mt7986-wmac"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
MT7986 should contain 3 regions consys, dcm, and sku, in this order.
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
major interrupt for rings
Item 2
additional interrupt for ring 19
Item 3
additional interrupt for ring 4
Item 4
additional interrupt for ring 5
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
memory-region — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Specify the consys reset for mt7986.
reset-names — not listed as required here #
Exact value (const): "consys"
clocks — not listed as required here #
Maximum number of items (maxItems): 2
Specify the consys clocks for mt7986.
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mcu"
Item 2
Exact value (
const):"ap2conn"
mediatek,infracfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the infrastructure bus fabric syscon node. This property is MT7622 specific
ieee80211-freq-limit — not listed as required here #
true — No constraints added by this property rule.
nvmem-cells — not listed as required here #
Array item rules (items) #
Item 1
NVMEM cell with EEPROM
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"eeprom"
mediatek,eeprom-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
EEPROM data embedded as array.
mediatek,mtd-eeprom — not listed as 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 MTD partition
Item 2
offset containing EEPROM data
Phandle to a MTD partition + offset containing EEPROM data
Deprecated (deprecated): true
big-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Specify if the radio eeprom partition is written in big-endian
mediatek,eeprom-merge-otp — not listed as required here #
Value type (type): "boolean"
Merge EEPROM data with OTP data. Can be used on boards where the flash calibration data is generic and specific calibration data should be pulled from the OTP ROM
mediatek,disable-radar-background — not listed as required here #
Value type (type): "boolean"
Disable/enable radar/CAC detection running on a dedicated offchannel chain available on some hw. Background radar/CAC detection allows to avoid the CAC downtime switching on a different channel during CAC detection on the selected radar channel.
led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
led-active-low — not listed as required here
LED is enabled with ground signal.
Value type (type): "boolean"
led-sources — not listed as required here
Maximum number of items (maxItems): 1
power-limits — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^r[0-9]+ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
regdomain — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Regdomain refers to a legal regulatory region. Different countries define different levels of allowable transmitter power, time that a channel can be occupied, and different available channels
Allowed values (enum): "FCC", "ETSI", "JP"
country — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String pattern (pattern): "^[A-Z]{2}$"
ISO 3166-1 alpha-2 country code for power limits
Properties matching a name pattern (patternProperties)
^txpower-[256]g$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties)
^b[0-9]+$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
channels — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
Pairs of first and last channel number of the selected band
rates-cck — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
4 half-dBm per-rate power limit values
rates-ofdm — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 8
Maximum number of items (maxItems): 8
8 half-dBm per-rate power limit values
rates-mcs — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-matrix
Sets of per-rate power limit values for 802.11n/802.11ac rates for multiple channel bandwidth settings. Each set starts with the number of channel bandwidth settings for which the rate set applies, followed by either 8 or 10 power limit values. The order of the channel bandwidth settings is 20, 40, 80 and 160 MHz.
Maximum number of items (maxItems): 4
Array item rules (items)
Minimum number of items (
minItems):9Maximum number of items (
maxItems):11
rates-ru — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-matrix
Sets of per-rate power limit values for 802.11ax rates for multiple channel bandwidth or resource unit settings. Each set starts with the number of channel bandwidth or resource unit settings for which the rate set applies, followed by 12 power limit values. The order of the channel resource unit settings is RU26, RU52, RU106, RU242/SU20, RU484/SU40, RU996/SU80 and RU2x996/SU160.
Array item rules (items)
Minimum number of items (
minItems):13Maximum number of items (
maxItems):13
paths-cck — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
4 half-dBm backoff values (1 - 4 antennas, single spacial stream)
paths-ofdm — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
4 half-dBm backoff values (1 - 4 antennas, single spacial stream)
paths-ofdm-bf — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
4 half-dBm backoff values for beamforming (1 - 4 antennas, single spacial stream)
paths-ru — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-matrix
Sets of half-dBm backoff values for 802.11ax rates for 1T1ss (aka 1 transmitting antenna with 1 spacial stream), 2T1ss, 3T1ss, 4T1ss, 2T2ss, 3T2ss, 4T2ss, 3T3ss, 4T3ss and 4T4ss. Each set starts with the number of channel bandwidth or resource unit settings for which the rate set applies, followed by 10 power limit values. The order of the channel resource unit settings is RU26, RU52, RU106, RU242/SU20, RU484/SU40, RU996/SU80 and RU2x996/SU160.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
Array item rules (items)
Minimum number of items (
minItems):11Maximum number of items (
maxItems):11
paths-ru-bf — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-matrix
Sets of half-dBm backoff (beamforming) values for 802.11ax rates for 1T1ss (aka 1 transmitting antenna with 1 spacial stream), 2T1ss, 3T1ss, 4T1ss, 2T2ss, 3T2ss, 4T2ss, 3T3ss, 4T3ss and 4T4ss. Each set starts with the number of channel bandwidth or resource unit settings for which the rate set applies, followed by 10 power limit values. The order of the channel resource unit settings is RU26, RU52, RU106, RU242/SU20, RU484/SU40, RU996/SU80 and RU2x996/SU160.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
Array item rules (items)
Minimum number of items (
minItems):11Maximum number of items (
maxItems):11
txs-delta — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Half-dBm power delta for different numbers of antennas
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt7981-wmac","mediatek,mt7986-wmac"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):4When the condition does not match (
else) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie0 {
#address-cells = <3>;
#size-cells = <2>;
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
ieee80211-freq-limit = <5000000 6000000>;
mediatek,mtd-eeprom = <&factory 0x8000>;
big-endian;
led {
led-sources = <2>;
};
power-limits {
r0 {
regdomain = "FCC";
txpower-5g {
b0 {
channels = <36 48>;
rates-ofdm = /bits/ 8 <23 23 23 23 23 23 23 23>;
rates-mcs = /bits/ 8 <1 23 23 23 23 23 23 23 23 23 23>,
/bits/ 8 <3 22 22 22 22 22 22 22 22 22 22>;
rates-ru = /bits/ 8 <3 22 22 22 22 22 22 22 22 22 22 22 22>,
/bits/ 8 <4 20 20 20 20 20 20 20 20 20 20 20 20>;
};
b1 {
channels = <100 181>;
rates-ofdm = /bits/ 8 <14 14 14 14 14 14 14 14>;
rates-mcs = /bits/ 8 <4 14 14 14 14 14 14 14 14 14 14>;
txs-delta = <12 9 6>;
rates-ru = /bits/ 8 <7 14 14 14 14 14 14 14 14 14 14 14 14>;
};
};
};
};
};
};
wifi@10300000 {
compatible = "mediatek,mt7628-wmac";
reg = <0x10300000 0x100000>;
interrupt-parent = <&cpuintc>;
interrupts = <6>;
nvmem-cells = <&eeprom>;
nvmem-cell-names = "eeprom";
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
wifi@18000000 {
compatible = "mediatek,mt7622-wmac";
reg = <0x10300000 0x100000>;
interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
mediatek,infracfg = <&infracfg>;
power-domains = <&scpsys 3>;
};
wifi@18000000 {
compatible = "mediatek,mt7986-wmac";
resets = <&watchdog 23>;
reset-names = "consys";
reg = <0x18000000 0x1000000>,
<0x10003000 0x1000>,
<0x11d10000 0x1000>;
interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&topckgen 50>,
<&topckgen 62>;
clock-names = "mcu", "ap2conn";
memory-region = <&wmcpu_emi>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
Microchip WILC wireless
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/microchip,wilc1000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Adham Abozaeid <adham.abozaeid@microchip.com>", "Ajay Singh <ajay.kathat@microchip.com>"
The wilc1000 chips can be connected via SPI or SDIO. This document describes the binding to connect wilc devices.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"microchip,wilc3000"Item 2
Exact value (
const):"microchip,wilc1000"
Rule 2
Exact value (
const):"microchip,wilc1000"
reg — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
phandle to the clock connected on rtc clock line.
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "rtc"
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Used by wilc1000-spi to determine the GPIO line connected to the ENABLE line. If specified, reset-gpios must be specified as well as otherwise the driver cannot ensure the timing required between asserting ENABLE and deasserting RESET. This should be declared as an active-high signal.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Used by wilc1000-spi to determine the GPIO line connected to the RESET line. This should be declared as an active-low signal.
Required in this object (required): "compatible", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
wifi@0 {
compatible = "microchip,wilc1000";
spi-max-frequency = <48000000>;
reg = <0>;
interrupt-parent = <&pioC>;
interrupts = <27 0>;
clocks = <&pck1>;
clock-names = "rtc";
enable-gpios = <&pioA 5 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
};
};
mmc {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
non-removable;
vmmc-supply = <&vcc_mmc1_reg>;
vqmmc-supply = <&vcc_3v3_reg>;
bus-width = <4>;
wifi@0 {
compatible = "microchip,wilc1000";
reg = <0>;
interrupt-parent = <&pioC>;
interrupts = <27 0>;
clocks = <&pck1>;
clock-names = "rtc";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Atheros ath9k wireless devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qca,ath9k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Toke Høiland-Jørgensen <toke@toke.dk>"
This node provides properties for configuring the ath9k wireless device. The node is expected to be specified as a child node of the PCI controller or AHB bus to which the wireless chip is connected.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pci168c,0023", "pci168c,0024", "pci168c,0027", "pci168c,0029", "pci168c,002a", "pci168c,002b", "pci168c,002c", "pci168c,002d", "pci168c,002e", "pci168c,0030", "pci168c,0032", "pci168c,0033", "pci168c,0034", "pci168c,0036", "pci168c,0037", "qca,ar9130-wifi", "qca,ar9330-wifi", "qca,ar9340-wifi", "qca,qca9530-wifi", "qca,qca9550-wifi", "qca,qca9560-wifi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
ieee80211-freq-limit — not listed as required here #
true — No constraints added by this property rule.
qca,no-eeprom — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates that there is no physical EEPROM connected
nvmem-cells — not listed as required here #
Array item rules (items) #
Item 1
Reference to an nvmem node for the MAC address
Item 2
Reference to an nvmem node for calibration data
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac-address"
Item 2
Exact value (
const):"calibration"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie0 {
#address-cells = <3>;
#size-cells = <2>;
wifi@0,0 {
compatible = "pci168c,002d";
reg = <0 0 0 0 0>;
interrupts = <3>;
qca,no-eeprom;
};
};
pci0 {
#address-cells = <3>;
#size-cells = <2>;
wifi@0,11 {
compatible = "pci168c,0029";
reg = <0x8800 0 0 0 0>;
nvmem-cells = <&macaddr_art_c>, <&cal_art_1000>;
nvmem-cell-names = "mac-address", "calibration";
};
};
ahb {
#address-cells = <1>;
#size-cells = <1>;
wifi@180c0000 {
compatible = "qca,ar9130-wifi";
reg = <0x180c0000 0x230000>;
interrupts = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 23: AR5416
Line 24: AR5418
Line 25: AR9160
Line 26: AR9220 and AR9223
Line 27: AR9280 and AR9283
Line 28: AR9285
Line 29: AR2427 - 802.11n bonded out
Line 30: AR9227
Line 31: AR9287
Line 32: AR9380, AR9381 and AR9382
Line 33: AR9485
Line 34: AR9580 and AR9590
Line 35: AR9462
Line 36: AR9565
Line 37: AR1111 and AR9485
Qualcomm Technologies ath10k wireless devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ath10k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <jjohnson@kernel.org>"
Qualcomm Technologies, Inc. IEEE 802.11ac devices.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,ath10k", "qcom,ipq4019-wifi", "qcom,wcn3990-wifi"
reg — required here #
Maximum number of items (maxItems): 1
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"membase"
interrupts — not listed as required here #
Minimum number of items (minItems): 12
Maximum number of items (maxItems): 17
interrupt-names — not listed as required here #
Minimum number of items (minItems): 12
Maximum number of items (maxItems): 17
memory-region — not listed as required here #
Maximum number of items (maxItems): 1
Reference to the MSA memory region used by the Wi-Fi firmware running on the Q6 core.
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
resets — not listed as required here #
Maximum number of items (maxItems): 6
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"wifi_cpu_init"
Item 2
Exact value (
const):"wifi_radio_srif"
Item 3
Exact value (
const):"wifi_radio_warm"
Item 4
Exact value (
const):"wifi_radio_cold"
Item 5
Exact value (
const):"wifi_core_warm"
Item 6
Exact value (
const):"wifi_core_cold"
ext-fem-name — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Name of external front end module used.
Allowed values (enum): "microsemi-lx5586", "sky85703-11", "sky85803"
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
If present, a board or platform specific string used to lookup firmware files for the device.
wifi-firmware — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
The ath10k Wi-Fi node can contain one optional firmware subnode. Firmware subnode is needed when the platform does not have Trustzone.
Properties and child nodes (properties) #
iommus — required here
Maximum number of items (maxItems): 1
Required in this object (required): "iommus"
ieee80211-freq-limit — not listed as required here #
true — No constraints added by this property rule.
qcom,calibration-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Calibration data + board-specific data as a byte array. The length can vary between hardware versions.
qcom,ath10k-calibration-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Deprecated (deprecated): true
Calibration data + board-specific data as a byte array. The length can vary between hardware versions.
qcom,calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Unique variant identifier of the calibration data in board-2.bin for designs with colliding bus and device specific ids
qcom,ath10k-calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
Unique variant identifier of the calibration data in board-2.bin for designs with colliding bus and device specific ids
qcom,pre-calibration-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Pre-calibration data as a byte array. The length can vary between hardware versions.
qcom,ath10k-pre-calibration-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Deprecated (deprecated): true
Pre-calibration data as a byte array. The length can vary between hardware versions.
qcom,coexist-support — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Indicate coex support by the hardware.
qcom,coexist-gpio-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
COEX GPIO number provided to the Wi-Fi firmware.
qcom,msa-fixed-perm — not listed as required here #
Value type (type): "boolean"
Whether to skip executing an SCM call that reassigns the memory region ownership.
qcom,no-msa-ready-indicator — not listed as required here #
Value type (type): "boolean"
Don't wait for MSA_READY indicator to complete init.
qcom,smem-states — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used by the AP to signal the WLAN Q6.
Array item rules (items) #
Item 1
Signal bits used to enable/disable low power mode on WCN in the case of WoW (Wake on Wireless).
qcom,smem-state-names — not listed as required here #
The names of the state bits used for SMP2P output.
Array item rules (items) #
Item 1
Exact value (
const):"wlan-smp2p-out"
qcom,snoc-host-cap-8bit-quirk — not listed as required here #
Value type (type): "boolean"
Quirk specifying that the firmware expects the 8bit version of the host capability QMI request
qcom,xo-cal-data — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
XO cal offset to be configured in XO trim register.
vdd-0.8-cx-mx-supply — not listed as required here #
Main logic power rail
vdd-1.8-xo-supply — not listed as required here #
Crystal oscillator supply
vdd-1.3-rfa-supply — not listed as required here #
RFA supply
vdd-3.3-ch0-supply — not listed as required here #
Primary Wi-Fi antenna supply
vdd-3.3-ch1-supply — not listed as required here #
Secondary Wi-Fi antenna supply
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— required hereMinimum number of items (
minItems):17Maximum number of items (
maxItems):17
interrupt-names— required hereArray item rules (
items)Item 1
Exact value (
const):"msi0"Item 2
Exact value (
const):"msi1"Item 3
Exact value (
const):"msi2"Item 4
Exact value (
const):"msi3"Item 5
Exact value (
const):"msi4"Item 6
Exact value (
const):"msi5"Item 7
Exact value (
const):"msi6"Item 8
Exact value (
const):"msi7"Item 9
Exact value (
const):"msi8"Item 10
Exact value (
const):"msi9"Item 11
Exact value (
const):"msi10"Item 12
Exact value (
const):"msi11"Item 13
Exact value (
const):"msi12"Item 14
Exact value (
const):"msi13"Item 15
Exact value (
const):"msi14"Item 16
Exact value (
const):"msi15"Item 17
Exact value (
const):"legacy"
clocks— required hereArray item rules (
items)Item 1
Wi-Fi command clock
Item 2
Wi-Fi reference clock
Item 3
Wi-Fi RTC clock
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"wifi_wcss_cmd"Item 2
Exact value (
const):"wifi_wcss_ref"Item 3
Exact value (
const):"wifi_wcss_rtc"Required in this object (
required):"clocks","clock-names","interrupts","interrupt-names","resets","reset-names"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
XO reference clock
Item 2
Qualcomm Debug Subsystem clock
clock-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"cxo_ref_clk_pin"Item 2
Exact value (
const):"qdss"
interrupts— required hereArray item rules (
items)Item 1
CE0
Item 2
CE1
Item 3
CE2
Item 4
CE3
Item 5
CE4
Item 6
CE5
Item 7
CE6
Item 8
CE7
Item 9
CE8
Item 10
CE9
Item 11
CE10
Item 12
CE11
interrupt-names— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,rpmcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
wifi@18800000 {
compatible = "qcom,wcn3990-wifi";
reg = <0x18800000 0x800000>;
reg-names = "membase";
memory-region = <&wlan_msa_mem>;
clocks = <&rpmcc RPM_SMD_RF_CLK2_PIN>;
clock-names = "cxo_ref_clk_pin";
interrupts = <GIC_SPI 413 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 414 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 415 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 416 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 417 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 418 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 420 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 422 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 423 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 424 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 425 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&anoc2_smmu 0x1900>,
<&anoc2_smmu 0x1901>;
qcom,snoc-host-cap-8bit-quirk;
vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
wifi-firmware {
iommus = <&apps_smmu 0x1c02 0x1>;
};
};
#include <dt-bindings/clock/qcom,gcc-ipq4019.h>
wifi@a000000 {
compatible = "qcom,ipq4019-wifi";
reg = <0xa000000 0x200000>;
resets = <&gcc WIFI0_CPU_INIT_RESET>,
<&gcc WIFI0_RADIO_SRIF_RESET>,
<&gcc WIFI0_RADIO_WARM_RESET>,
<&gcc WIFI0_RADIO_COLD_RESET>,
<&gcc WIFI0_CORE_WARM_RESET>,
<&gcc WIFI0_CORE_COLD_RESET>;
reset-names = "wifi_cpu_init",
"wifi_radio_srif",
"wifi_radio_warm",
"wifi_radio_cold",
"wifi_core_warm",
"wifi_core_cold";
clocks = <&gcc GCC_WCSS2G_CLK>,
<&gcc GCC_WCSS2G_REF_CLK>,
<&gcc GCC_WCSS2G_RTC_CLK>;
clock-names = "wifi_wcss_cmd",
"wifi_wcss_ref",
"wifi_wcss_rtc";
interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 33 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 34 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 35 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 36 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 37 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 38 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 39 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 40 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 41 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 42 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 43 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 44 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 45 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 46 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 47 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "msi0",
"msi1",
"msi2",
"msi3",
"msi4",
"msi5",
"msi6",
"msi7",
"msi8",
"msi9",
"msi10",
"msi11",
"msi12",
"msi13",
"msi14",
"msi15",
"legacy";
ieee80211-freq-limit = <5470000 5875000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 18: SDIO-based devices
Line 20: SNoC-based devices
Line 296: SNoC
Line 334: AHB
Qualcomm Technologies ath11k wireless devices (PCIe)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ath11k-pci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <jjohnson@kernel.org>"
Qualcomm Technologies IEEE 802.11ax PCIe devices
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pci17cb,1101", "pci17cb,1103"
reg — required here #
Maximum number of items (maxItems): 1
qcom,calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
string to uniquely identify variant of the calibration data for designs with colliding bus and device ids
qcom,ath11k-calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
string to uniquely identify variant of the calibration data for designs with colliding bus and device ids
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
If present, a board or platform specific string used to lookup usecase-specific firmware files for the device.
vddrfacmn-supply — not listed as required here #
VDD_RFA_CMN supply regulator handle
vddaon-supply — not listed as required here #
VDD_AON supply regulator handle
vddwlcx-supply — not listed as required here #
VDD_WL_CX supply regulator handle
vddwlmx-supply — not listed as required here #
VDD_WL_MX supply regulator handle
vddrfa0p8-supply — not listed as required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — not listed as required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p7-supply — not listed as required here #
VDD_RFA_1P7 supply regulator handle
vddrfa1p8-supply — not listed as required here #
VDD_RFA_1P8 supply regulator handle
vddpcie0p9-supply — not listed as required here #
VDD_PCIE_0P9 supply regulator handle
vddpcie1p8-supply — not listed as required here #
VDD_PCIE_1P8 supply regulator handle
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"pci17cb,1101"When the condition matches (
then) #Required in this object (
required):"vddrfacmn-supply","vddaon-supply","vddwlcx-supply","vddwlmx-supply","vddrfa0p8-supply","vddrfa1p2-supply","vddrfa1p7-supply","vddpcie0p9-supply","vddpcie1p8-supply"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"pci17cb,1103"When the condition matches (
then) #Required in this object (
required):"vddrfacmn-supply","vddaon-supply","vddwlcx-supply","vddwlmx-supply","vddrfa0p8-supply","vddrfa1p2-supply","vddrfa1p8-supply","vddpcie0p9-supply","vddpcie1p8-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie {
#address-cells = <3>;
#size-cells = <2>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
bus-range = <0x01 0xff>;
wifi@0 {
compatible = "pci17cb,1103";
reg = <0x10000 0x0 0x0 0x0 0x0>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>;
vddaon-supply = <&vreg_pmu_aon_0p8>;
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
vddwlmx-supply = <&vreg_pmu_wlmx_0p8>;
vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>;
qcom,calibration-variant = "LE_X13S";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2023 Linaro Limited
Line 19: QCA6390
Line 20: WCN6855
Qualcomm Technologies ath11k wireless devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ath11k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <jjohnson@kernel.org>"
These are dt entries for Qualcomm Technologies, Inc. IEEE 802.11ax devices, for example like AHB based IPQ8074.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,ipq8074-wifi", "qcom,ipq6018-wifi", "qcom,wcn6750-wifi", "qcom,ipq5018-wifi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 32
Maximum number of items (maxItems): 52
interrupt-names — not listed as required here #
Maximum number of items (maxItems): 52
qcom,rproc — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
DT entry of q6v5-wcss remoteproc driver. Phandle to a node that can contain the following properties * compatible * reg * reg-names
qcom,calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
string to uniquely identify variant of the calibration data in the board-2.bin for designs with colliding bus and device specific ids
qcom,ath11k-calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
string to uniquely identify variant of the calibration data in the board-2.bin for designs with colliding bus and device specific ids
memory-region — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
phandle to a node describing reserved memory (System RAM memory) used by ath11k firmware (see bindings/reserved-memory/reserved-memory.txt)
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
ieee80211-freq-limit — not listed as required here #
true — No constraints added by this property rule.
wifi-firmware — not listed as required here #
Value type (type): "object"
WCN6750 wifi node can contain one optional firmware subnode. Firmware subnode is needed when the platform does not have Trustzone.
Required in this object (required): "iommus"
qcom,smem-states — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used by the AP to signal the WLAN Q6.
Array item rules (items) #
Item 1
Signal bits used to enable/disable low power mode on WCN6750 in the case of WoW (Wake on Wireless).
qcom,smem-state-names — not listed as required here #
The names of the state bits used for SMP2P output.
Array item rules (items) #
Item 1
Exact value (
const):"wlan-smp2p-out"
Required in this object (required): "compatible", "reg", "interrupts", "qcom,rproc"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq8074-wifi","qcom,ipq6018-wifi"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
misc-pulse1 interrupt events
Item 2
misc-latch interrupt events
Item 3
sw exception interrupt events
Item 4
watchdog interrupt events
Item 5
interrupt event for ring CE0
Item 6
interrupt event for ring CE1
Item 7
interrupt event for ring CE2
Item 8
interrupt event for ring CE3
Item 9
interrupt event for ring CE4
Item 10
interrupt event for ring CE5
Item 11
interrupt event for ring CE6
Item 12
interrupt event for ring CE7
Item 13
interrupt event for ring CE8
Item 14
interrupt event for ring CE9
Item 15
interrupt event for ring CE10
Item 16
interrupt event for ring CE11
Item 17
interrupt event for ring host2wbm-desc-feed
Item 18
interrupt event for ring host2reo-re-injection
Item 19
interrupt event for ring host2reo-command
Item 20
interrupt event for ring host2rxdma-monitor-ring3
Item 21
interrupt event for ring host2rxdma-monitor-ring2
Item 22
interrupt event for ring host2rxdma-monitor-ring1
Item 23
interrupt event for ring reo2ost-exception
Item 24
interrupt event for ring wbm2host-rx-release
Item 25
interrupt event for ring reo2host-status
Item 26
interrupt event for ring reo2host-destination-ring4
Item 27
interrupt event for ring reo2host-destination-ring3
Item 28
interrupt event for ring reo2host-destination-ring2
Item 29
interrupt event for ring reo2host-destination-ring1
Item 30
interrupt event for ring rxdma2host-monitor-destination-mac3
Item 31
interrupt event for ring rxdma2host-monitor-destination-mac2
Item 32
interrupt event for ring rxdma2host-monitor-destination-mac1
Item 33
interrupt event for ring ppdu-end-interrupts-mac3
Item 34
interrupt event for ring ppdu-end-interrupts-mac2
Item 35
interrupt event for ring ppdu-end-interrupts-mac1
Item 36
interrupt event for ring rxdma2host-monitor-status-ring-mac3
Item 37
interrupt event for ring rxdma2host-monitor-status-ring-mac2
Item 38
interrupt event for ring rxdma2host-monitor-status-ring-mac1
Item 39
interrupt event for ring host2rxdma-host-buf-ring-mac3
Item 40
interrupt event for ring host2rxdma-host-buf-ring-mac2
Item 41
interrupt event for ring host2rxdma-host-buf-ring-mac1
Item 42
interrupt event for ring rxdma2host-destination-ring-mac3
Item 43
interrupt event for ring rxdma2host-destination-ring-mac2
Item 44
interrupt event for ring rxdma2host-destination-ring-mac1
Item 45
interrupt event for ring host2tcl-input-ring4
Item 46
interrupt event for ring host2tcl-input-ring3
Item 47
interrupt event for ring host2tcl-input-ring2
Item 48
interrupt event for ring host2tcl-input-ring1
Item 49
interrupt event for ring wbm2host-tx-completions-ring3
Item 50
interrupt event for ring wbm2host-tx-completions-ring2
Item 51
interrupt event for ring wbm2host-tx-completions-ring1
Item 52
interrupt event for ring tcl2host-status-ring
interrupt-names— required hereArray item rules (
items)Item 1
Exact value (
const):"misc-pulse1"Item 2
Exact value (
const):"misc-latch"Item 3
Exact value (
const):"sw-exception"Item 4
Exact value (
const):"watchdog"Item 5
Exact value (
const):"ce0"Item 6
Exact value (
const):"ce1"Item 7
Exact value (
const):"ce2"Item 8
Exact value (
const):"ce3"Item 9
Exact value (
const):"ce4"Item 10
Exact value (
const):"ce5"Item 11
Exact value (
const):"ce6"Item 12
Exact value (
const):"ce7"Item 13
Exact value (
const):"ce8"Item 14
Exact value (
const):"ce9"Item 15
Exact value (
const):"ce10"Item 16
Exact value (
const):"ce11"Item 17
Exact value (
const):"host2wbm-desc-feed"Item 18
Exact value (
const):"host2reo-re-injection"Item 19
Exact value (
const):"host2reo-command"Item 20
Exact value (
const):"host2rxdma-monitor-ring3"Item 21
Exact value (
const):"host2rxdma-monitor-ring2"Item 22
Exact value (
const):"host2rxdma-monitor-ring1"Item 23
Exact value (
const):"reo2ost-exception"Item 24
Exact value (
const):"wbm2host-rx-release"Item 25
Exact value (
const):"reo2host-status"Item 26
Exact value (
const):"reo2host-destination-ring4"Item 27
Exact value (
const):"reo2host-destination-ring3"Item 28
Exact value (
const):"reo2host-destination-ring2"Item 29
Exact value (
const):"reo2host-destination-ring1"Item 30
Exact value (
const):"rxdma2host-monitor-destination-mac3"Item 31
Exact value (
const):"rxdma2host-monitor-destination-mac2"Item 32
Exact value (
const):"rxdma2host-monitor-destination-mac1"Item 33
Exact value (
const):"ppdu-end-interrupts-mac3"Item 34
Exact value (
const):"ppdu-end-interrupts-mac2"Item 35
Exact value (
const):"ppdu-end-interrupts-mac1"Item 36
Exact value (
const):"rxdma2host-monitor-status-ring-mac3"Item 37
Exact value (
const):"rxdma2host-monitor-status-ring-mac2"Item 38
Exact value (
const):"rxdma2host-monitor-status-ring-mac1"Item 39
Exact value (
const):"host2rxdma-host-buf-ring-mac3"Item 40
Exact value (
const):"host2rxdma-host-buf-ring-mac2"Item 41
Exact value (
const):"host2rxdma-host-buf-ring-mac1"Item 42
Exact value (
const):"rxdma2host-destination-ring-mac3"Item 43
Exact value (
const):"rxdma2host-destination-ring-mac2"Item 44
Exact value (
const):"rxdma2host-destination-ring-mac1"Item 45
Exact value (
const):"host2tcl-input-ring4"Item 46
Exact value (
const):"host2tcl-input-ring3"Item 47
Exact value (
const):"host2tcl-input-ring2"Item 48
Exact value (
const):"host2tcl-input-ring1"Item 49
Exact value (
const):"wbm2host-tx-completions-ring3"Item 50
Exact value (
const):"wbm2host-tx-completions-ring2"Item 51
Exact value (
const):"wbm2host-tx-completions-ring1"Item 52
Exact value (
const):"tcl2host-status-ring"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
interrupt event for ring CE1
Item 2
interrupt event for ring CE2
Item 3
interrupt event for ring CE3
Item 4
interrupt event for ring CE4
Item 5
interrupt event for ring CE5
Item 6
interrupt event for ring CE6
Item 7
interrupt event for ring CE7
Item 8
interrupt event for ring CE8
Item 9
interrupt event for ring CE9
Item 10
interrupt event for ring CE10
Item 11
interrupt event for ring DP1
Item 12
interrupt event for ring DP2
Item 13
interrupt event for ring DP3
Item 14
interrupt event for ring DP4
Item 15
interrupt event for ring DP5
Item 16
interrupt event for ring DP6
Item 17
interrupt event for ring DP7
Item 18
interrupt event for ring DP8
Item 19
interrupt event for ring DP9
Item 20
interrupt event for ring DP10
Item 21
interrupt event for ring DP11
Item 22
interrupt event for ring DP12
Item 23
interrupt event for ring DP13
Item 24
interrupt event for ring DP14
Item 25
interrupt event for ring DP15
Item 26
interrupt event for ring DP16
Item 27
interrupt event for ring DP17
Item 28
interrupt event for ring DP18
Item 29
interrupt event for ring DP19
Item 30
interrupt event for ring DP20
Item 31
interrupt event for ring DP21
Item 32
interrupt event for ring DP22
Examples (examples) #
wifi0: wifi@c000000 {
compatible = "qcom,ipq8074-wifi";
reg = <0xc000000 0x2000000>;
interrupts = <0 320 1>,
<0 319 1>,
<0 318 1>,
<0 317 1>,
<0 316 1>,
<0 315 1>,
<0 314 1>,
<0 311 1>,
<0 310 1>,
<0 411 1>,
<0 410 1>,
<0 40 1>,
<0 39 1>,
<0 302 1>,
<0 301 1>,
<0 37 1>,
<0 36 1>,
<0 296 1>,
<0 295 1>,
<0 294 1>,
<0 293 1>,
<0 292 1>,
<0 291 1>,
<0 290 1>,
<0 289 1>,
<0 288 1>,
<0 239 1>,
<0 236 1>,
<0 235 1>,
<0 234 1>,
<0 233 1>,
<0 232 1>,
<0 231 1>,
<0 230 1>,
<0 229 1>,
<0 228 1>,
<0 224 1>,
<0 223 1>,
<0 203 1>,
<0 183 1>,
<0 180 1>,
<0 179 1>,
<0 178 1>,
<0 177 1>,
<0 176 1>,
<0 163 1>,
<0 162 1>,
<0 160 1>,
<0 159 1>,
<0 158 1>,
<0 157 1>,
<0 156 1>;
interrupt-names = "misc-pulse1",
"misc-latch",
"sw-exception",
"watchdog",
"ce0",
"ce1",
"ce2",
"ce3",
"ce4",
"ce5",
"ce6",
"ce7",
"ce8",
"ce9",
"ce10",
"ce11",
"host2wbm-desc-feed",
"host2reo-re-injection",
"host2reo-command",
"host2rxdma-monitor-ring3",
"host2rxdma-monitor-ring2",
"host2rxdma-monitor-ring1",
"reo2ost-exception",
"wbm2host-rx-release",
"reo2host-status",
"reo2host-destination-ring4",
"reo2host-destination-ring3",
"reo2host-destination-ring2",
"reo2host-destination-ring1",
"rxdma2host-monitor-destination-mac3",
"rxdma2host-monitor-destination-mac2",
"rxdma2host-monitor-destination-mac1",
"ppdu-end-interrupts-mac3",
"ppdu-end-interrupts-mac2",
"ppdu-end-interrupts-mac1",
"rxdma2host-monitor-status-ring-mac3",
"rxdma2host-monitor-status-ring-mac2",
"rxdma2host-monitor-status-ring-mac1",
"host2rxdma-host-buf-ring-mac3",
"host2rxdma-host-buf-ring-mac2",
"host2rxdma-host-buf-ring-mac1",
"rxdma2host-destination-ring-mac3",
"rxdma2host-destination-ring-mac2",
"rxdma2host-destination-ring-mac1",
"host2tcl-input-ring4",
"host2tcl-input-ring3",
"host2tcl-input-ring2",
"host2tcl-input-ring1",
"wbm2host-tx-completions-ring3",
"wbm2host-tx-completions-ring2",
"wbm2host-tx-completions-ring1",
"tcl2host-status-ring";
qcom,rproc = <&q6v5_wcss>;
};
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
qcn9074_0: wifi@51100000 {
no-map;
reg = <0x0 0x51100000 0x0 0x03500000>;
};
};
pci {
pcie0 {
#size-cells = <2>;
#address-cells = <3>;
wifi_0: wifi@0 {
reg = <0 0 0 0 0>;
memory-region = <&qcn9074_0>;
};
};
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
wlan_ce_mem: memory@4cd000 {
no-map;
reg = <0x0 0x004cd000 0x0 0x1000>;
};
wlan_fw_mem: memory@80c00000 {
no-map;
reg = <0x0 0x80c00000 0x0 0xc00000>;
};
};
wifi: wifi@17a10040 {
compatible = "qcom,wcn6750-wifi";
reg = <0x17a10040 0x0>;
iommus = <&apps_smmu 0x1c00 0x1>;
interrupts = <GIC_SPI 768 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 769 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 770 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 771 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 772 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 773 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 774 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 775 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 776 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 777 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 778 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 779 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 780 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 781 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 782 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 783 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 784 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 785 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 786 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 787 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 788 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 789 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 790 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 791 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 792 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 793 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 794 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 795 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 796 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 797 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 798 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 799 IRQ_TYPE_EDGE_RISING>;
qcom,rproc = <&remoteproc_wpss>;
memory-region = <&wlan_fw_mem>, <&wlan_ce_mem>;
qcom,smem-states = <&wlan_smp2p_out 0>;
qcom,smem-state-names = "wlan-smp2p-out";
wifi-firmware {
iommus = <&apps_smmu 0x1c02 0x1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
Qualcomm Technologies ath12k wireless devices (PCIe) with WSI interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ath12k-wsi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <jjohnson@kernel.org>"
Qualcomm Technologies IEEE 802.11be PCIe devices with WSI interface.
The ath12k devices (QCN9274) feature WSI support. WSI stands for WLAN Serial Interface. It is used for the exchange of specific control information across radios based on the doorbell mechanism. This WSI connection is essential to exchange control information among these devices.
The WSI interface includes TX and RX ports, which are used to connect multiple WSI-supported devices together, forming a WSI group.
Diagram to represent one WSI connection (one WSI group) among three devices.
+-------+ +-------+ +-------+
| pcie1 | | pcie2 | | pcie3 |
| | | | | |
+----->| wsi |------->| wsi |------->| wsi |-----+
| | grp 0 | | grp 0 | | grp 0 | |
| +-------+ +-------+ +-------+ |
+------------------------------------------------------+
Diagram to represent two WSI connections (two separate WSI groups) among four devices.
+-------+ +-------+ +-------+ +-------+
| pcie0 | | pcie1 | | pcie2 | | pcie3 |
| | | | | | | |
+-->| wsi |--->| wsi |--+ +-->| wsi |--->| wsi |--+
| | grp 0 | | grp 0 | | | | grp 1 | | grp 1 | |
| +-------+ +-------+ | | +-------+ +-------+ |
+---------------------------+ +---------------------------+
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pci17cb,1109"
reg — required here #
Maximum number of items (maxItems): 1
qcom,calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String to uniquely identify variant of the calibration data for designs with colliding bus and device ids
qcom,ath12k-calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
String to uniquely identify variant of the calibration data for designs with colliding bus and device ids
qcom,wsi-controller — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The WSI controller device in the WSI group aids (is capable) to synchronize the Timing Synchronization Function (TSF) clock across all devices in the WSI group.
ports — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports
Properties and child nodes (properties) #
port@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
This is the TX port of WSI interface. It is attached to the RX port of the next device in the WSI connection.
port@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
This is the RX port of WSI interface. It is attached to the TX port of the previous device in the WSI connection.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie {
#address-cells = <3>;
#size-cells = <2>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi@0 {
compatible = "pci17cb,1109";
reg = <0x0 0x0 0x0 0x0 0x0>;
qcom,calibration-variant = "RDP433_1";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
wifi1_wsi_tx: endpoint {
remote-endpoint = <&wifi2_wsi_rx>;
};
};
port@1 {
reg = <1>;
wifi1_wsi_rx: endpoint {
remote-endpoint = <&wifi3_wsi_tx>;
};
};
};
};
};
pcie@1 {
device_type = "pci";
reg = <0x0 0x0 0x1 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi@0 {
compatible = "pci17cb,1109";
reg = <0x0 0x0 0x0 0x0 0x0>;
qcom,calibration-variant = "RDP433_2";
qcom,wsi-controller;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
wifi2_wsi_tx: endpoint {
remote-endpoint = <&wifi3_wsi_rx>;
};
};
port@1 {
reg = <1>;
wifi2_wsi_rx: endpoint {
remote-endpoint = <&wifi1_wsi_tx>;
};
};
};
};
};
pcie@2 {
device_type = "pci";
reg = <0x0 0x0 0x2 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
wifi@0 {
compatible = "pci17cb,1109";
reg = <0x0 0x0 0x0 0x0 0x0>;
qcom,calibration-variant = "RDP433_3";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
wifi3_wsi_tx: endpoint {
remote-endpoint = <&wifi1_wsi_rx>;
};
};
port@1 {
reg = <1>;
wifi3_wsi_rx: endpoint {
remote-endpoint = <&wifi2_wsi_tx>;
};
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
Line 50: QCN9274
Qualcomm Technologies ath12k wireless devices (PCIe)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ath12k.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <quic_jjohnson@quicinc.com>"
Qualcomm Technologies IEEE 802.11be PCIe devices.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pci17cb,1107"
reg — required here #
Maximum number of items (maxItems): 1
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
If present, a board or platform specific string used to lookup usecase-specific firmware files for the device.
vddaon-supply — required here #
VDD_AON supply regulator handle
vddwlcx-supply — required here #
VDD_WLCX supply regulator handle
vddwlmx-supply — required here #
VDD_WLMX supply regulator handle
vddrfacmn-supply — required here #
VDD_RFA_CMN supply regulator handle
vddrfa0p8-supply — required here #
VDD_RFA_0P8 supply regulator handle
vddrfa1p2-supply — required here #
VDD_RFA_1P2 supply regulator handle
vddrfa1p8-supply — required here #
VDD_RFA_1P8 supply regulator handle
vddpcie0p9-supply — required here #
VDD_PCIE_0P9 supply regulator handle
vddpcie1p8-supply — required here #
VDD_PCIE_1P8 supply regulator handle
Required in this object (required): "compatible", "reg", "vddaon-supply", "vddwlcx-supply", "vddwlmx-supply", "vddrfacmn-supply", "vddrfa0p8-supply", "vddrfa1p2-supply", "vddrfa1p8-supply", "vddpcie0p9-supply", "vddpcie1p8-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/gpio/gpio.h>
pcie {
#address-cells = <3>;
#size-cells = <2>;
pcie@0 {
device_type = "pci";
reg = <0x0 0x0 0x0 0x0 0x0>;
#address-cells = <3>;
#size-cells = <2>;
ranges;
bus-range = <0x01 0xff>;
wifi@0 {
compatible = "pci17cb,1107";
reg = <0x10000 0x0 0x0 0x0 0x0>;
vddaon-supply = <&vreg_pmu_aon_0p59>;
vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2024 Linaro Limited
Line 19: WCN7850
Qualcomm Technologies ath12k wireless devices (AHB)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/qcom,ipq5332-wifi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff Johnson <jjohnson@kernel.org>"
Qualcomm Technologies IEEE 802.11be AHB devices.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,ipq5332-wifi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
XO clock used for copy engine
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"xo"
interrupts — required here #
Array item rules (items) #
Item 1
Fatal interrupt
Item 2
Ready interrupt
Item 3
Spawn acknowledge interrupt
Item 4
Stop acknowledge interrupt
Item 5
misc-pulse1 interrupt events
Item 6
misc-latch interrupt events
Item 7
sw exception interrupt events
Item 8
interrupt event for ring CE0
Item 9
interrupt event for ring CE1
Item 10
interrupt event for ring CE2
Item 11
interrupt event for ring CE3
Item 12
interrupt event for ring CE4
Item 13
interrupt event for ring CE5
Item 14
interrupt event for ring CE6
Item 15
interrupt event for ring CE7
Item 16
interrupt event for ring CE8
Item 17
interrupt event for ring CE9
Item 18
interrupt event for ring CE10
Item 19
interrupt event for ring CE11
Item 20
interrupt event for ring host2wbm-desc-feed
Item 21
interrupt event for ring host2reo-re-injection
Item 22
interrupt event for ring host2reo-command
Item 23
interrupt event for ring host2rxdma-monitor-ring1
Item 24
interrupt event for ring reo2ost-exception
Item 25
interrupt event for ring wbm2host-rx-release
Item 26
interrupt event for ring reo2host-status
Item 27
interrupt event for ring reo2host-destination-ring4
Item 28
interrupt event for ring reo2host-destination-ring3
Item 29
interrupt event for ring reo2host-destination-ring2
Item 30
interrupt event for ring reo2host-destination-ring1
Item 31
interrupt event for ring rxdma2host-monitor-destination-mac3
Item 32
interrupt event for ring rxdma2host-monitor-destination-mac2
Item 33
interrupt event for ring rxdma2host-monitor-destination-mac1
Item 34
interrupt event for ring host2rxdma-host-buf-ring-mac3
Item 35
interrupt event for ring host2rxdma-host-buf-ring-mac2
Item 36
interrupt event for ring host2rxdma-host-buf-ring-mac1
Item 37
interrupt event for ring host2tcl-input-ring4
Item 38
interrupt event for ring host2tcl-input-ring3
Item 39
interrupt event for ring host2tcl-input-ring2
Item 40
interrupt event for ring host2tcl-input-ring1
Item 41
interrupt event for ring wbm2host-tx-completions-ring4
Item 42
interrupt event for ring wbm2host-tx-completions-ring3
Item 43
interrupt event for ring wbm2host-tx-completions-ring2
Item 44
interrupt event for ring wbm2host-tx-completions-ring1
Item 45
interrupt event for ring host2tx-monitor-ring1
Item 46
interrupt event for ring txmon2host-monitor-destination-mac3
Item 47
interrupt event for ring txmon2host-monitor-destination-mac2
Item 48
interrupt event for ring txmon2host-monitor-destination-mac1
Item 49
interrupt event for umac-reset
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fatal"
Item 2
Exact value (
const):"ready"
Item 3
Exact value (
const):"spawn"
Item 4
Exact value (
const):"stop-ack"
Item 5
Exact value (
const):"misc-pulse1"
Item 6
Exact value (
const):"misc-latch"
Item 7
Exact value (
const):"sw-exception"
Item 8
Exact value (
const):"ce0"
Item 9
Exact value (
const):"ce1"
Item 10
Exact value (
const):"ce2"
Item 11
Exact value (
const):"ce3"
Item 12
Exact value (
const):"ce4"
Item 13
Exact value (
const):"ce5"
Item 14
Exact value (
const):"ce6"
Item 15
Exact value (
const):"ce7"
Item 16
Exact value (
const):"ce8"
Item 17
Exact value (
const):"ce9"
Item 18
Exact value (
const):"ce10"
Item 19
Exact value (
const):"ce11"
Item 20
Exact value (
const):"host2wbm-desc-feed"
Item 21
Exact value (
const):"host2reo-re-injection"
Item 22
Exact value (
const):"host2reo-command"
Item 23
Exact value (
const):"host2rxdma-monitor-ring1"
Item 24
Exact value (
const):"reo2ost-exception"
Item 25
Exact value (
const):"wbm2host-rx-release"
Item 26
Exact value (
const):"reo2host-status"
Item 27
Exact value (
const):"reo2host-destination-ring4"
Item 28
Exact value (
const):"reo2host-destination-ring3"
Item 29
Exact value (
const):"reo2host-destination-ring2"
Item 30
Exact value (
const):"reo2host-destination-ring1"
Item 31
Exact value (
const):"rxdma2host-monitor-destination-mac3"
Item 32
Exact value (
const):"rxdma2host-monitor-destination-mac2"
Item 33
Exact value (
const):"rxdma2host-monitor-destination-mac1"
Item 34
Exact value (
const):"host2rxdma-host-buf-ring-mac3"
Item 35
Exact value (
const):"host2rxdma-host-buf-ring-mac2"
Item 36
Exact value (
const):"host2rxdma-host-buf-ring-mac1"
Item 37
Exact value (
const):"host2tcl-input-ring4"
Item 38
Exact value (
const):"host2tcl-input-ring3"
Item 39
Exact value (
const):"host2tcl-input-ring2"
Item 40
Exact value (
const):"host2tcl-input-ring1"
Item 41
Exact value (
const):"wbm2host-tx-completions-ring4"
Item 42
Exact value (
const):"wbm2host-tx-completions-ring3"
Item 43
Exact value (
const):"wbm2host-tx-completions-ring2"
Item 44
Exact value (
const):"wbm2host-tx-completions-ring1"
Item 45
Exact value (
const):"host2tx-monitor-ring1"
Item 46
Exact value (
const):"txmon2host-monitor-destination-mac3"
Item 47
Exact value (
const):"txmon2host-monitor-destination-mac2"
Item 48
Exact value (
const):"txmon2host-monitor-destination-mac1"
Item 49
Exact value (
const):"umac-reset"
memory-region — required here #
Memory regions used by the ath12k firmware.
Array item rules (items) #
Item 1
Q6 memory region
Item 2
m3 dump memory region
Item 3
Q6 caldata memory region
Item 4
Multi Link Operation (MLO) Global memory region
memory-region-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"q6-region"
Item 2
Exact value (
const):"m3-dump"
Item 3
Exact value (
const):"q6-caldb"
Item 4
Exact value (
const):"mlo-global-mem"
qcom,calibration-variant — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String to uniquely identify variant of the calibration data for designs with colliding bus and device ids
qcom,rproc — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the Qualcomm Hexagon DSP(q6 remote processor), which is utilized for offloading WiFi processing tasks, this q6 remote processor operates in conjunction with WiFi.
qcom,smem-states — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
States used by the AP to signal the remote processor
Array item rules (items) #
Item 1
Shutdown WCSS pd
Item 2
Stop WCSS pd
Item 3
Spawn WCSS pd
qcom,smem-state-names — required here #
Names of the states used by the AP to signal the remote processor
Array item rules (items) #
Item 1
Exact value (
const):"shutdown"
Item 2
Exact value (
const):"stop"
Item 3
Exact value (
const):"spawn"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "memory-region", "memory-region-names", "qcom,rproc", "qcom,smem-states", "qcom,smem-state-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,ipq5332-gcc.h>
wifi0: wifi@c000000 {
compatible = "qcom,ipq5332-wifi";
reg = <0x0c000000 0x1000000>;
clocks = <&gcc GCC_XO_CLK>;
clock-names = "xo";
interrupts-extended = <&wcss_smp2p_in 8 IRQ_TYPE_NONE>,
<&wcss_smp2p_in 9 IRQ_TYPE_NONE>,
<&wcss_smp2p_in 12 IRQ_TYPE_NONE>,
<&wcss_smp2p_in 11 IRQ_TYPE_NONE>,
<&intc GIC_SPI 559 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 560 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 561 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 422 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 423 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 424 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 425 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 426 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 427 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 428 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 429 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 430 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 431 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 491 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 495 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 493 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 544 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 457 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 466 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 497 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 454 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 453 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 452 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 451 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 488 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 488 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 484 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 554 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 554 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 549 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 507 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 500 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 499 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 498 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 450 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 449 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 448 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 447 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 543 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 486 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 486 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 482 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 419 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "fatal",
"ready",
"spawn",
"stop-ack",
"misc-pulse1",
"misc-latch",
"sw-exception",
"ce0",
"ce1",
"ce2",
"ce3",
"ce4",
"ce5",
"ce6",
"ce7",
"ce8",
"ce9",
"ce10",
"ce11",
"host2wbm-desc-feed",
"host2reo-re-injection",
"host2reo-command",
"host2rxdma-monitor-ring1",
"reo2ost-exception",
"wbm2host-rx-release",
"reo2host-status",
"reo2host-destination-ring4",
"reo2host-destination-ring3",
"reo2host-destination-ring2",
"reo2host-destination-ring1",
"rxdma2host-monitor-destination-mac3",
"rxdma2host-monitor-destination-mac2",
"rxdma2host-monitor-destination-mac1",
"host2rxdma-host-buf-ring-mac3",
"host2rxdma-host-buf-ring-mac2",
"host2rxdma-host-buf-ring-mac1",
"host2tcl-input-ring4",
"host2tcl-input-ring3",
"host2tcl-input-ring2",
"host2tcl-input-ring1",
"wbm2host-tx-completions-ring4",
"wbm2host-tx-completions-ring3",
"wbm2host-tx-completions-ring2",
"wbm2host-tx-completions-ring1",
"host2tx-monitor-ring1",
"txmon2host-monitor-destination-mac3",
"txmon2host-monitor-destination-mac2",
"txmon2host-monitor-destination-mac1",
"umac-reset";
memory-region = <&q6_region>, <&m3_dump>, <&q6_caldb>, <&mlo_mem>;
memory-region-names = "q6-region", "m3-dump", "q6-caldb", "mlo-global-mem";
qcom,calibration-variant = "RDP441_1";
qcom,rproc = <&q6v5_wcss>;
qcom,smem-states = <&wcss_smp2p_out 8>,
<&wcss_smp2p_out 9>,
<&wcss_smp2p_out 10>;
qcom,smem-state-names = "shutdown",
"stop",
"spawn";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved.
Ralink RT2880 wireless device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/ralink,rt2880.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stanislaw Gruszka <stf_xl@wp.pl>"
This node provides properties for configuring RT2880 SOC wifi devices. The node is expected to be specified as a root node of the device.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ralink,rt2880-wifi"
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
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
wifi@110180000 {
compatible = "ralink,rt2880-wifi";
reg = <0x10180000 0x40000>;
clocks = <&sysc 16>;
interrupt-parent = <&cpuintc>;
interrupts = <6>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Realtek RTL8188E USB WiFi
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/realtek,rtl8188e.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Realtek RTL8188E is a family of USB-connected 2.4 GHz WiFi modules.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/usb/usb-device.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "usbbda,179"
reg — required here #
true — No constraints added by this property rule.
vdd-supply — required here #
Regulator for the 3V3 supply.
Required in this object (required): "compatible", "reg", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
usb {
#address-cells = <1>;
#size-cells = <0>;
wifi: wifi@1 {
compatible = "usbbda,179";
reg = <1>;
vdd-supply = <&vcc3v3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: RTL8188ETV
Silicon Labs WFxxx
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/silabs,wfx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jérôme Pouiller <jerome.pouiller@silabs.com>"
Support for the Wifi chip WFxxx from Silicon Labs. Currently, the only device from the WFxxx series is the WF200 described here:
https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf
The WF200 can be connected via SPI or via SDIO. For SDIO:
Declaring the WFxxx chip in device tree is mandatory (usually, the VID/PID is
sufficient for the SDIO devices).
It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without
it, you may encounter issues during reboot. The mmc-pwrseq should be
compatible with mmc-pwrseq-simple. Please consult
Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more
information.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"prt,prtt1c-wfm200","silabs,brd4001a","silabs,brd8022a","silabs,brd8023a"
Item 2
Exact value (
const):"silabs,wf200"
reg — required here #
When used on SDIO bus, <reg> must be set to 1. When used on SPI bus, it is the chip select address of the device as defined in the SPI devices bindings.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
The interrupt line. Should be IRQ_TYPE_EDGE_RISING. When SPI is used, this property is required. When SDIO is used, the "in-band" interrupt provided by the SDIO bus is used unless an interrupt is defined in the Device Tree.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
(SPI only) Phandle of gpio that will be used to reset chip during probe. Without this property, you may encounter issues with warm boot. For SDIO, the reset gpio should declared using a mmc-pwrseq.
Maximum number of items (maxItems): 1
wakeup-gpios — not listed as required here #
Phandle of gpio that will be used to wake-up chip. Without this property, driver will disable most of power saving features.
Maximum number of items (maxItems): 1
silabs,antenna-config-file — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Use an alternative file for antenna configuration (aka "Platform Data Set" in Silabs jargon). Default depends of "compatible" string. For "silabs,wf200", the default is 'wf200.pds'.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/wireless/wireless-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
wifi@0 {
compatible = "silabs,brd8022a", "silabs,wf200";
pinctrl-names = "default";
pinctrl-0 = <&wfx_irq &wfx_gpios>;
reg = <0>;
interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>;
wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
spi-max-frequency = <42000000>;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
wfx_pwrseq: wfx_pwrseq {
compatible = "mmc-pwrseq-simple";
pinctrl-names = "default";
pinctrl-0 = <&wfx_reset>;
reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
mmc {
mmc-pwrseq = <&wfx_pwrseq>;
#address-cells = <1>;
#size-cells = <0>;
wifi@1 {
compatible = "silabs,brd8022a", "silabs,wf200";
pinctrl-names = "default";
pinctrl-0 = <&wfx_wakeup>;
reg = <1>;
wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (c) 2020, Silicon Laboratories, Inc.
Line 35: Protonic PRTT1C Board
Line 36: WGM160P Evaluation Board
Line 37: WF200 Evaluation Board
Line 38: WFM200 Evaluation Board
Line 39: Chip alone without antenna
Texas Instruments Wilink 6/7/8 (wl12xx/wl18xx) Wireless LAN Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/ti,wlcore.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tony Lindgren <tony@atomide.com>"
The wl12xx/wl18xx chips can be connected via SPI or via SDIO. Note that the *-clock-frequency properties assume internal clocks. In case of external clocks, new bindings (for parsing the clock nodes) have to be added.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,wl1271", "ti,wl1273", "ti,wl1281", "ti,wl1283", "ti,wl1285", "ti,wl1801", "ti,wl1805", "ti,wl1807", "ti,wl1831", "ti,wl1835", "ti,wl1837"
reg — not listed as required here #
Maximum number of items (maxItems): 1
This is required when connected via SPI, and optional when connected via SDIO.
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"irq"
Item 2
Exact value (
const):"wakeup"
vwlan-supply — not listed as required here #
Points to the node of the regulator that powers/enable the wl12xx/wl18xx chip. This is required when connected via SPI.
ref-clock-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Reference clock frequency.
tcxo-clock-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
TCXO clock frequency.
clock-xtal — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates that the clock is generated from XTAL.
Required in this object (required): "compatible", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,wl1271","ti,wl1273","ti,wl1281","ti,wl1283"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
// For wl12xx family:
spi {
#address-cells = <1>;
#size-cells = <0>;
wlcore1: wlcore@1 {
compatible = "ti,wl1271";
reg = <1>;
spi-max-frequency = <48000000>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
vwlan-supply = <&vwlan_fixed>;
clock-xtal;
ref-clock-frequency = <38400000>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
// For wl18xx family:
spi {
#address-cells = <1>;
#size-cells = <0>;
wlcore2: wlcore@0 {
compatible = "ti,wl1835";
reg = <0>;
spi-max-frequency = <48000000>;
interrupts = <27 IRQ_TYPE_EDGE_RISING>;
vwlan-supply = <&vwlan_fixed>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
// SDIO example:
mmc3 {
vmmc-supply = <&wlan_en_reg>;
bus-width = <4>;
cap-power-off-card;
keep-power-in-suspend;
#address-cells = <1>;
#size-cells = <0>;
wlcore3: wlcore@2 {
compatible = "ti,wl1835";
reg = <2>;
interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Wireless Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings / wireless
Schema identifier ($id): "http://devicetree.org/schemas/net/wireless/wireless-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^wifi(@.*)?$"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ieee80211.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/net/network-class.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Actions Semi Owl SoCs Ethernet MAC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/actions,owl-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cristian Ciocaltea <cristian.ciocaltea@gmail.com>"
This Ethernet MAC is used on the Owl family of SoCs from Actions Semi. It provides the RMII and SMII interfaces and is compliant with the IEEE 802.3 CSMA/CD standard, supporting both half-duplex and full-duplex operation modes at 10/100 Mb/s data transfer rates.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"actions,owl-emac"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"actions,owl-emac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
clock-names — required here #
Array items beyond the listed positions (additionalItems) #
false
Not allowed by this rule.
Array item rules (items) #
Item 1
Exact value (
const):"eth"
Item 2
Exact value (
const):"rmii"
resets — required here #
Maximum number of items (maxItems): 1
actions,ethcfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the device containing custom config.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "phy-mode", "phy-handle"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/actions,s500-cmu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/actions,s500-reset.h>
ethernet@b0310000 {
compatible = "actions,s500-emac", "actions,owl-emac";
reg = <0xb0310000 0x10000>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cmu 59 /*CLK_ETHERNET*/>, <&cmu CLK_RMII_REF>;
clock-names = "eth", "rmii";
resets = <&cmu RESET_ETHERNET>;
phy-mode = "rmii";
phy-handle = <ð_phy>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
eth_phy: ethernet-phy@3 {
reg = <0x3>;
interrupt-parent = <&sirq>;
interrupts = <0 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)
Analog Devices ADIN1200/ADIN1300 PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/adi,adin.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>"
Bindings for Analog Devices Industrial Ethernet PHYs
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Properties and child nodes (properties) #
adi,rx-internal-delay-ps — not listed as required here #
RGMII RX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds.
Allowed values (enum): 1600, 1800, 2000, 2200, 2400
Default value (default): 2000
adi,tx-internal-delay-ps — not listed as required here #
RGMII TX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds.
Allowed values (enum): 1600, 1800, 2000, 2200, 2400
Default value (default): 2000
adi,fifo-depth-bits — not listed as required here #
When operating in RMII mode, this option configures the FIFO depth.
Allowed values (enum): 4, 8, 12, 16, 20, 24
Default value (default): 8
adi,phy-output-clock — not listed as required here #
Select clock output on GP_CLK pin. Two clocks are available: A 25MHz reference and a free-running 125MHz. The phy can alternatively automatically switch between the reference and the 125MHz clocks based on its internal state.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "25mhz-reference", "125mhz-free-running", "adaptive-free-running"
adi,phy-output-reference-clock — not listed as required here #
Enable 25MHz reference clock output on CLK25_REF pin.
Value type (type): "boolean"
adi,low-cmode-impedance — not listed as required here #
Configure PHY for the lowest common-mode impedance on the receive pair for 100BASE-TX. This is suited for capacitive coupled applications and other applications where there may be a path for high common-mode noise to reach the PHY. If not present, by default the PHY is configured for normal termination (zero-power termination) mode.
Note: There is a trade-off of 12 mW increased power consumption with
the lowest common-mode impedance setting, but in all cases the
differential impedance is 100 ohms.
Value type (type): "boolean"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rgmii-id";
ethernet-phy@0 {
reg = <0>;
adi,rx-internal-delay-ps = <1800>;
adi,tx-internal-delay-ps = <2200>;
};
};
ethernet {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rmii";
ethernet-phy@1 {
reg = <1>;
adi,fifo-depth-bits = <16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+
ADI ADIN1110 MAC-PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/adi,adin1110.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcelo Schmitt <marcelo.schmitt@analog.com>"
The ADIN1110 is a low power single port 10BASE-T1L MAC- PHY designed for industrial Ethernet applications. It integrates an Ethernet PHY core with a MAC and all the associated analog circuitry, input and output clock buffering.
The ADIN2111 is a low power, low complexity, two-Ethernet ports switch with integrated 10BASE-T1L PHYs and one serial peripheral interface (SPI) port. The device is designed for industrial Ethernet applications using low power constrained nodes and is compliant with the IEEE 802.3cg-2019 Ethernet standard for long reach 10 Mbps single pair Ethernet (SPE).
The device has a 4-wire SPI interface for communication between the MAC and host processor.
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 #
Allowed values (enum): "adi,adin1110", "adi,adin2111"
reg — required here #
Maximum number of items (maxItems): 1
adi,spi-crc — not listed as required here #
Enable CRC8 checks on SPI read/writes.
Value type (type): "boolean"
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO connected to active low reset
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/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet@0 {
compatible = "adi,adin2111";
reg = <0>;
spi-max-frequency = <24500000>;
adi,spi-crc;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
local-mac-address = [ 00 11 22 33 44 55 ];
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Aeonsemi AS21XXX Ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/aeonsemi,as21xxx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
Aeonsemi AS21xxx Ethernet PHYs requires a firmware to be loaded to actually work. The same firmware is compatible with various PHYs of the same family.
A PHY with not firmware loaded will be exposed on the MDIO bus with ID 0x7500 0x7500 or 0x7500 0x9410 on C45 registers.
This can be done and is implemented by OEM in 2 different way:
- Attached SPI flash directly to the PHY with the firmware. The PHY
will self load the firmware in the presence of this configuration.
- Manually provided firmware loaded from a file in the filesystem.
Each PHY can support up to 5 LEDs.
AS2xxx PHY Name logic:
AS21x1xxB1
^ ^^
| |J: Supports SyncE/PTP
| |P: No SyncE/PTP support
| 1: Supports 2nd Serdes
| 2: Not 2nd Serdes support
0: 10G, 5G, 2.5G
5: 5G, 2.5G
2: 2.5G
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id7500.9410","ethernet-phy-id7500.9402","ethernet-phy-id7500.9412","ethernet-phy-id7500.9422","ethernet-phy-id7500.9432","ethernet-phy-id7500.9442","ethernet-phy-id7500.9452","ethernet-phy-id7500.9462","ethernet-phy-id7500.9472","ethernet-phy-id7500.9482","ethernet-phy-id7500.9492"
Properties and child nodes (properties) #
reg — required here #
Maximum number of items (maxItems): 1
firmware-name — not listed as required here #
specify the name of PHY firmware to load
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id7500.9410"
When the condition matches (then) #
When the condition does not match (else) #
Properties and child nodes (
properties) #
firmware-name— not listed as required here #
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1f {
compatible = "ethernet-phy-id7500.9410",
"ethernet-phy-ieee802.3-c45";
reg = <31>;
firmware-name = "as21x1x_fw.bin";
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <0>;
default-state = "keep";
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
default-state = "keep";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Airoha AN7583 Dedicated MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,an7583-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
Airoha AN7583 SoC have 3 different MDIO Controller. One comes from the intergated Switch based on MT7530. The other 2 (that this schema describe) live under the SCU register supporting both C22 and C45 PHYs.
Shared schema rule ($ref): mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "airoha,an7583-mdio"
reg — required here #
Allowed values (enum): 200, 204
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
Default value (default): 2500000
Required in this object (required): "compatible", "reg", "clocks", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
system-controller {
#address-cells = <1>;
#size-cells = <0>;
mdio-bus@c8 {
compatible = "airoha,an7583-mdio";
reg = <0xc8>;
clocks = <&scu>;
resets = <&scu>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Airoha EN7581 Frame Engine Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,en7581-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
The frame engine ethernet controller can be found on Airoha SoCs. These SoCs have multi-GMAC ports.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "airoha,en7581-eth", "airoha,an7583-eth"
reg — required here #
Array item rules (items) #
Item 1
Frame engine base address
Item 2
QDMA0 base address
Item 3
QDMA1 base address
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fe"
Item 2
Exact value (
const):"qdma0"
Item 3
Exact value (
const):"qdma1"
interrupts — required here #
Array item rules (items) #
Item 1
QDMA lan irq0
Item 2
QDMA lan irq1
Item 3
QDMA lan irq2
Item 4
QDMA lan irq3
Item 5
QDMA wan irq0
Item 6
QDMA wan irq1
Item 7
QDMA wan irq2
Item 8
QDMA wan irq3
Item 9
FE error irq
Item 10
PDMA irq
resets — required here #
Minimum number of items (minItems): 7
Maximum number of items (maxItems): 8
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fe"
Item 2
Exact value (
const):"pdma"
Item 3
Exact value (
const):"qdma"
Item 4
Exact value (
const):"xsi-mac"
Item 5
Exact value (
const):"hsi0-mac"
Item 6
Exact value (
const):"hsi1-mac"
Item 7
Item 8
Exact value (
const):"xfp-mac"
Minimum number of items (minItems): 7
memory-region — not listed as required here #
Array item rules (items) #
Item 1
QDMA0 buffer memory
Item 2
QDMA1 buffer memory
memory-region-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"qdma0-buf"
Item 2
Exact value (
const):"qdma1-buf"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
airoha,npu — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the node used to configure the NPU module. The Airoha Network Processor Unit (NPU) provides a configuration interface to implement hardware flow offloading programming Packet Processor Engine (PPE) flow table.
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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):8
reset-names— not listed as required hereMinimum number of items (
minItems):8
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):7
reset-names— not listed as required hereMaximum number of items (
maxItems):7
Properties matching a name pattern (patternProperties) #
^ethernet@[1-4]$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Shared schema rule ($ref): ethernet-controller.yaml#
Ethernet GMAC port associated to the MAC controller
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "airoha,eth-mac"
reg — required here
Minimum value (minimum): 1
Maximum value (maximum): 4
GMAC port identifier
Required in this object (required): "reg", "compatible"
Required in this object (required): "compatible", "reg", "interrupts", "resets", "reset-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/en7523-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
eth: ethernet@1fb50000 {
compatible = "airoha,en7581-eth";
reg = <0 0x1fb50000 0 0x2600>,
<0 0x1fb54000 0 0x2000>,
<0 0x1fb56000 0 0x2000>;
reg-names = "fe", "qdma0", "qdma1";
resets = <&scuclk 44>,
<&scuclk 30>,
<&scuclk 31>,
<&scuclk 6>,
<&scuclk 15>,
<&scuclk 16>,
<&scuclk 17>,
<&scuclk 26>;
reset-names = "fe", "pdma", "qdma", "xsi-mac",
"hsi0-mac", "hsi1-mac", "hsi-mac",
"xfp-mac";
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
memory-region = <&qdma0_buf>, <&qdma1_buf>;
memory-region-names = "qdma0-buf", "qdma1-buf";
airoha,npu = <&npu>;
#address-cells = <1>;
#size-cells = <0>;
mac: ethernet@1 {
compatible = "airoha,eth-mac";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Airoha Network Processor Unit for EN7581 SoC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,en7581-npu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
The Airoha Network Processor Unit (NPU) provides a configuration interface to implement wired and wireless hardware flow offloading programming Packet Processor Engine (PPE) flow table.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "airoha,en7581-npu", "airoha,an7583-npu"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
mbox host irq line
Item 2
watchdog0 irq line
Item 3
watchdog1 irq line
Item 4
watchdog2 irq line
Item 5
watchdog3 irq line
Item 6
watchdog4 irq line
Item 7
watchdog5 irq line
Item 8
watchdog6 irq line
Item 9
watchdog7 irq line
Item 10
wlan irq line0
Item 11
wlan irq line1
Item 12
wlan irq line2
Item 13
wlan irq line3
Item 14
wlan irq line4
Item 15
wlan irq line5
memory-region — required here #
Array item rules (items) #
Item 1
NPU firmware binary region
Item 2
NPU wlan offload RX buffers region
Item 3
NPU wlan offload TX buffers region
Item 4
NPU wlan offload TX packet identifiers region
Item 5
NPU wlan Block Ack buffers region
Minimum number of items (minItems): 1
memory-region-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"firmware"
Item 2
Exact value (
const):"pkt"
Item 3
Exact value (
const):"tx-pkt"
Item 4
Exact value (
const):"tx-bufid"
Item 5
Exact value (
const):"ba"
Minimum number of items (minItems): 1
firmware-name — not listed as required here #
Array item rules (items) #
Item 1
Firmware name of RiscV core
Item 2
Firmware name of Data section
Required in this object (required): "compatible", "reg", "interrupts", "memory-region"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
npu@1e900000 {
compatible = "airoha,en7581-npu";
reg = <0 0x1e900000 0 0x313000>;
interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
memory-region = <&npu_firmware>, <&npu_pkt>, <&npu_txpkt>,
<&npu_txbufid>, <&npu_ba>;
memory-region-names = "firmware", "pkt", "tx-pkt", "tx-bufid", "ba";
firmware-name = "airoha/en7581_npu_rv32.bin",
"airoha/en7581_npu_data.bin";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Airoha EN8811H PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/airoha,en8811h.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eric Woudstra <ericwouds@gmail.com>"
The Airoha EN8811H PHY has the ability to reverse polarity on the lines to and/or from the MAC. It is reversed by the booleans in the devicetree node of the phy.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/phy/phy-common-props.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id03a2.a411"
reg — required here #
Maximum number of items (maxItems): 1
airoha,pnswap-rx — not listed as required here #
Value type (type): "boolean"
Reverse rx polarity of the SERDES. This is the receiving side of the lines from the MAC towards the EN881H. This property is deprecated, for details please refer to Documentation/devicetree/bindings/phy/phy-common-props.yaml
Deprecated (deprecated): true
airoha,pnswap-tx — not listed as required here #
Value type (type): "boolean"
Reverse tx polarity of SERDES. This is the transmitting side of the lines from EN8811H towards the MAC. This property is deprecated, for details please refer to Documentation/devicetree/bindings/phy/phy-common-props.yaml
Deprecated (deprecated): true
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/phy/phy.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
compatible = "ethernet-phy-id03a2.a411";
reg = <1>;
rx-polarity = <PHY_POL_INVERT>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A10 EMAC Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun4i-a10-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): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun4i-a10-emac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
allwinner,sram — required here #
Phandle to the device SRAM
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to SRAM
Item 2
register value for device
dmas — not listed as required here #
Array item rules (items) #
Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "phy-handle", "allwinner,sram"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
emac: ethernet@1c0b000 {
compatible = "allwinner,sun4i-a10-emac";
reg = <0x01c0b000 0x1000>;
interrupts = <55>;
clocks = <&ahb_gates 17>;
phy-handle = <&phy0>;
allwinner,sram = <&emac_sram 1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Allwinner A10 MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun4i-a10-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Allowed values (
enum):"allwinner,sun4i-a10-mdio","allwinner,sun4i-mdio"
Properties and child nodes (properties) #
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
compatible — required here #
Exact value (const): "allwinner,sun4i-a10-mdio"
reg — required here #
Maximum number of items (maxItems): 1
phy-supply — not listed as required here #
PHY regulator
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@1c0b080 {
compatible = "allwinner,sun4i-a10-mdio";
reg = <0x01c0b080 0x14>;
#address-cells = <1>;
#size-cells = <0>;
phy-supply = <®_emac_3v3>;
phy0: ethernet-phy@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: Select every compatible, including the deprecated ones. This way, we
Line 17: will be able to report a warning when we have that compatible, since
Line 18: we will validate the node thanks to the select, but won't report it
Line 19: as a valid value in the compatible property description
Line 26: Deprecated
Allwinner A20 GMAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun7i-a20-gmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun7i-a20-gmac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
TX clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"allwinner_gmac_tx"
phy-supply — not listed as required here #
PHY regulator
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "phy-mode"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
gmac: ethernet@1c50000 {
compatible = "allwinner,sun7i-a20-gmac";
reg = <0x01c50000 0x10000>;
interrupts = <0 85 1>;
interrupt-names = "macirq";
clocks = <&ahb_gates 49>, <&gmac_tx>;
clock-names = "stmmaceth", "allwinner_gmac_tx";
phy-mode = "mii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Allwinner A83t EMAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/allwinner,sun8i-a83t-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun8i-a83t-emac","allwinner,sun8i-h3-emac","allwinner,sun8i-r40-gmac","allwinner,sun8i-v3s-emac","allwinner,sun50i-a64-emac","allwinner,sun55i-a523-gmac200"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun8i-a83t-emac"
Rule 2
Exact value (
const):"allwinner,sun8i-h3-emac"
Rule 3
Exact value (
const):"allwinner,sun8i-r40-gmac"
Rule 4
Exact value (
const):"allwinner,sun8i-v3s-emac"
Rule 5
Exact value (
const):"allwinner,sun50i-a64-emac"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-emac","allwinner,sun50i-a100-emac","allwinner,sun50i-h6-emac","allwinner,sun50i-h616-emac0","allwinner,sun55i-a523-gmac0"Item 2
Exact value (
const):"allwinner,sun50i-a64-emac"
Rule 7
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun55i-a523-gmac200"Item 2
Exact value (
const):"snps,dwmac-4.20a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"mbus"
phy-supply — not listed as required here #
PHY regulator
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the device containing the EMAC or GMAC clock register
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "phy-handle", "phy-mode", "syscon"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun8i-a83t-emac","allwinner,sun8i-h3-emac","allwinner,sun8i-v3s-emac","allwinner,sun50i-a64-emac"When the condition matches (
then) #Properties and child nodes (
properties)
allwinner,tx-delay-ps— not listed as required hereDefault value (
default):0Minimum value (
minimum):0Maximum value (
maximum):700Multiple of (
multipleOf):100External RGMII PHY TX clock delay chain value in ps.
allwinner,rx-delay-ps— not listed as required hereDefault value (
default):0Minimum value (
minimum):0Maximum value (
maximum):3100Multiple of (
multipleOf):100External RGMII PHY TX clock delay chain value in ps.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
allwinner,rx-delay-ps— not listed as required hereDefault value (
default):0Minimum value (
minimum):0Maximum value (
maximum):700Multiple of (
multipleOf):100External RGMII PHY TX clock delay chain value in ps.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun8i-h3-emac","allwinner,sun8i-v3s-emac"When the condition matches (
then) #Properties and child nodes (
properties)
allwinner,leds-active-low— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/flagEPHY LEDs are active low.
mdio-mux— not listed as required hereValue type (
type):"object"Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Properties and child nodes (
properties)
compatible— required hereExact value (
const):"allwinner,sun8i-h3-mdio-mux"
mdio-parent-bus— required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/phandlePhandle to EMAC MDIO.
#address-cells— not listed as required hereExact value (
const):1
#size-cells— not listed as required hereExact value (
const):0
mdio@1— required hereShared schema rule (
$ref):mdio.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Internal MDIO Bus
Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"allwinner,sun8i-h3-mdio-internal"
reg— not listed as required hereExact value (
const):1Properties matching a name pattern (
patternProperties)
^ethernet-phy@[0-9a-f]$— name matches this regular expressionValue type (
type):"object"Shared schema rule (
$ref):ethernet-phy.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Integrated PHY node
Properties and child nodes (
properties)
clocks— required hereMaximum number of items (
maxItems):1
resets— required hereMaximum number of items (
maxItems):1Required in this object (
required):"clocks","resets"
mdio@2— not listed as required hereShared schema rule (
$ref):mdio.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
External MDIO Bus (H3 only)
Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):2Required in this object (
required):"compatible","mdio-parent-bus","mdio@1"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun55i-a523-gmac200"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2
tx-internal-delay-ps— not listed as required hereDefault value (
default):0Minimum value (
minimum):0Maximum value (
maximum):700Multiple of (
multipleOf):100External RGMII PHY TX clock delay chain value in ps.
rx-internal-delay-ps— not listed as required hereDefault value (
default):0Minimum value (
minimum):0Maximum value (
maximum):3100Multiple of (
multipleOf):100External RGMII PHY TX clock delay chain value in ps.
When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereMaximum number of items (
maxItems):1
power-domains— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@1c0b000 {
compatible = "allwinner,sun8i-h3-emac";
syscon = <&syscon>;
reg = <0x01c0b000 0x104>;
interrupts = <0 82 1>;
interrupt-names = "macirq";
resets = <&ccu 12>;
reset-names = "stmmaceth";
clocks = <&ccu 27>;
clock-names = "stmmaceth";
phy-handle = <&int_mii_phy>;
phy-mode = "mii";
allwinner,leds-active-low;
mdio1: mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
};
mdio-mux {
compatible = "allwinner,sun8i-h3-mdio-mux";
#address-cells = <1>;
#size-cells = <0>;
mdio-parent-bus = <&mdio1>;
int_mii_phy: mdio@1 {
compatible = "allwinner,sun8i-h3-mdio-internal";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <1>;
clocks = <&ccu 67>;
resets = <&ccu 39>;
phy-is-integrated;
};
};
mdio@2 {
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
};
};
};
ethernet@1c0b000 {
compatible = "allwinner,sun8i-h3-emac";
syscon = <&syscon>;
reg = <0x01c0b000 0x104>;
interrupts = <0 82 1>;
interrupt-names = "macirq";
resets = <&ccu 12>;
reset-names = "stmmaceth";
clocks = <&ccu 27>;
clock-names = "stmmaceth";
phy-handle = <&ext_rgmii_phy>;
phy-mode = "rgmii";
allwinner,leds-active-low;
mdio2: mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
};
mdio-mux {
compatible = "allwinner,sun8i-h3-mdio-mux";
#address-cells = <1>;
#size-cells = <0>;
mdio-parent-bus = <&mdio2>;
mdio@1 {
compatible = "allwinner,sun8i-h3-mdio-internal";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <1>;
clocks = <&ccu 67>;
resets = <&ccu 39>;
};
};
mdio@2 {
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
ext_rgmii_phy: ethernet-phy@1 {
reg = <1>;
};
};
};
};
ethernet@1c0b000 {
compatible = "allwinner,sun8i-a83t-emac";
syscon = <&syscon>;
reg = <0x01c0b000 0x104>;
interrupts = <0 82 1>;
interrupt-names = "macirq";
resets = <&ccu 13>;
reset-names = "stmmaceth";
clocks = <&ccu 27>;
clock-names = "stmmaceth";
phy-handle = <&ext_rgmii_phy1>;
phy-mode = "rgmii";
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
ext_rgmii_phy1: ethernet-phy@1 {
reg = <1>;
};
};
};
ethernet@4510000 {
compatible = "allwinner,sun55i-a523-gmac200",
"snps,dwmac-4.20a";
reg = <0x04510000 0x10000>;
clocks = <&ccu 117>, <&ccu 79>;
clock-names = "stmmaceth", "mbus";
resets = <&ccu 43>;
reset-names = "stmmaceth";
interrupts = <0 47 4>;
interrupt-names = "macirq";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins>;
power-domains = <&pck600 4>;
syscon = <&syscon>;
phy-handle = <&ext_rgmii_phy_1>;
phy-mode = "rgmii-id";
snps,fixed-burst;
snps,axi-config = <&gmac1_stmmac_axi_setup>;
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
ext_rgmii_phy_1: ethernet-phy@1 {
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 13: We need a select here so we don't match all nodes with 'snps,dwmac'
Altera GMII to SGMII Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/altr,gmii-to-sgmii-2.0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthew Gerlach <matthew.gerlach@altera.com>"
This binding describes the Altera GMII to SGMII converter.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "altr,gmii-to-sgmii-2.0"
reg — required here #
Array item rules (items) #
Item 1
Registers for the emac splitter IP
Item 2
Registers for the GMII to SGMII converter.
Item 3
Registers for TSE control.
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hps_emac_interface_splitter_avalon_slave"
Item 2
Exact value (
const):"gmii_to_sgmii_adapter_avalon_slave"
Item 3
Exact value (
const):"eth_tse_control_port"
Required in this object (required): "compatible", "reg", "reg-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
phy@ff000240 {
compatible = "altr,gmii-to-sgmii-2.0";
reg = <0xff000240 0x00000008>,
<0xff000200 0x00000040>,
<0xff000250 0x00000008>;
reg-names = "hps_emac_interface_splitter_avalon_slave",
"gmii_to_sgmii_adapter_avalon_slave",
"eth_tse_control_port";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 2: Copyright (C) 2025 Altera Corporation
Altera SOCFPGA SoC DWMAC controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/altr,socfpga-stmmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthew Gerlach <matthew.gerlach@altera.com>"
This binding describes the Altera SOCFPGA SoC implementation of the Synopsys DWMAC for the Cyclone5, Arria5, Stratix10, Agilex5 and Agilex7 families of chips.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"altr,socfpga-stmmac","altr,socfpga-stmmac-a10-s10","altr,socfpga-stmmac-agilex5"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac"Item 2
Exact value (
const):"snps,dwmac-3.70a"Item 3
Exact value (
const):"snps,dwmac"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-a10-s10"Item 2
Exact value (
const):"snps,dwmac-3.72a"Item 3
Exact value (
const):"snps,dwmac"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-a10-s10"Item 2
Exact value (
const):"snps,dwmac-3.74a"Item 3
Exact value (
const):"snps,dwmac"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"altr,socfpga-stmmac-agilex5"Item 2
Exact value (
const):"snps,dwxgmac-2.10"
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
GMAC main clock
Item 2
PTP reference clock. This clock is used for programming the Timestamp Addend Register. If not passed then the system clock will be used and this is fine on some platforms.
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"ptp_ref"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
iommus — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
phy-mode — not listed as required here #
Allowed values (enum): "gmii", "mii", "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "sgmii", "1000base-x"
rxc-skew-ps — not listed as required here #
Skew control of RXC pad
rxd0-skew-ps — not listed as required here #
Skew control of RX data 0 pad
rxd1-skew-ps — not listed as required here #
Skew control of RX data 1 pad
rxd2-skew-ps — not listed as required here #
Skew control of RX data 2 pad
rxd3-skew-ps — not listed as required here #
Skew control of RX data 3 pad
rxdv-skew-ps — not listed as required here #
Skew control of RX CTL pad
txc-skew-ps — not listed as required here #
Skew control of TXC pad
txen-skew-ps — not listed as required here #
Skew control of TXC pad
altr,emac-splitter — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Should be the phandle to the emac splitter soft IP node if DWMAC controller is connected an emac splitter.
altr,f2h_ptp_ref_clk — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to Precision Time Protocol reference clock. This clock is common to gmac instances and defaults to osc1.
altr,gmii-to-sgmii-converter — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Should be the phandle to the gmii to sgmii converter soft IP.
altr,sysmgr-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Should be the phandle to the system manager node that encompass the glue register, the register offset, and the register shift. On Cyclone5/Arria5, the register shift represents the PHY mode bits, while on the Arria10/Stratix10/Agilex platforms, the register shift represents bit for each emac to enable/disable signals from the FPGA fabric to the EMAC modules.
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to the system manager node
Item 2
offset of the control register
Item 3
shift within the control register
Properties matching a name pattern (patternProperties) #
^mdio[0-9]$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "compatible", "clocks", "clock-names", "altr,sysmgr-syscon"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <1>;
#size-cells = <1>;
ethernet@ff700000 {
compatible = "altr,socfpga-stmmac", "snps,dwmac-3.70a",
"snps,dwmac";
altr,sysmgr-syscon = <&sysmgr 0x60 0>;
reg = <0xff700000 0x2000>;
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
clocks = <&emac_0_clk>;
clock-names = "stmmaceth";
phy-mode = "sgmii";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 16: TODO: Determine how to handle the Arria10 reset-name, stmmaceth-ocp, that
Line 17: does not validate against net/snps,dwmac.yaml.
Altera Triple Speed Ethernet MAC driver (TSE)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/altr,tse.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Maxime Chevallier <maxime.chevallier@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"altr,tse-1.0"
Rule 2
Exact value (
const):"ALTR,tse-1.0"Deprecated (
deprecated):true
Rule 3
Exact value (
const):"altr,tse-msgdma-1.0"
interrupts — required here #
Minimum number of items (minItems): 2
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx_irq"
Item 2
Exact value (
const):"tx_irq"
rx-fifo-depth — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Depth in bytes of the RX FIFO
tx-fifo-depth — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Depth in bytes of the TX FIFO
altr,has-supplementary-unicast — not listed as required here #
Value type (type): "boolean"
If present, TSE supports additional unicast addresses.
altr,has-hash-multicast-filter — not listed as required here #
Value type (type): "boolean"
If present, TSE supports hash based multicast filter.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Creates and registers an MDIO bus.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "altr,tse-mdio"
Required in this object (required): "compatible"
Required in this object (required): "compatible", "reg", "interrupts", "rx-fifo-depth", "tx-fifo-depth"
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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):4
reg-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"control_port"Item 2
Exact value (
const):"rx_csr"Item 3
Exact value (
const):"tx_csr"Item 4
Exact value (
const):"s1"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):7
reg-names— not listed as required hereMinimum number of items (
minItems):6Array item rules (
items)Item 1
Exact value (
const):"control_port"Item 2
Exact value (
const):"rx_csr"Item 3
Exact value (
const):"rx_desc"Item 4
Exact value (
const):"rx_resp"Item 5
Exact value (
const):"tx_csr"Item 6
Exact value (
const):"tx_desc"Item 7
Exact value (
const):"pcs"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
tse_sub_0: ethernet@c0100000 {
compatible = "altr,tse-msgdma-1.0";
reg = <0xc0100000 0x00000400>,
<0xc0101000 0x00000020>,
<0xc0102000 0x00000020>,
<0xc0103000 0x00000008>,
<0xc0104000 0x00000020>,
<0xc0105000 0x00000020>,
<0xc0106000 0x00000100>;
reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc", "pcs";
interrupt-parent = <&intc>;
interrupts = <0 44 4>,<0 45 4>;
interrupt-names = "rx_irq","tx_irq";
rx-fifo-depth = <2048>;
tx-fifo-depth = <2048>;
max-frame-size = <1500>;
local-mac-address = [ 00 00 00 00 00 00 ];
altr,has-supplementary-unicast;
altr,has-hash-multicast-filter;
sfp = <&sfp0>;
phy-mode = "sgmii";
managed = "in-band-status";
};
tse_sub_1_eth_tse_0: ethernet@1,00001000 {
compatible = "altr,tse-msgdma-1.0";
reg = <0x00001000 0x00000400>,
<0x00001460 0x00000020>,
<0x00001480 0x00000020>,
<0x000014A0 0x00000008>,
<0x00001400 0x00000020>,
<0x00001420 0x00000020>;
reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
interrupt-parent = <&hps_0_arm_gic_0>;
interrupts = <0 43 4>, <0 42 4>;
interrupt-names = "rx_irq", "tx_irq";
rx-fifo-depth = <2048>;
tx-fifo-depth = <2048>;
max-frame-size = <1500>;
local-mac-address = [ 00 00 00 00 00 00 ];
phy-mode = "gmii";
altr,has-supplementary-unicast;
altr,has-hash-multicast-filter;
phy-handle = <&phy1>;
mdio {
compatible = "altr,tse-mdio";
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-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)
AMD XGBE Seattle v1a
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/amd,xgbe-seattle-v1a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shyam Sundar S K <Shyam-sundar.S-k@amd.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amd,xgbe-seattle-v1a"
reg — required here #
Array item rules (items) #
Item 1
MAC registers
Item 2
PCS registers
Item 3
SerDes Rx/Tx registers
Item 4
SerDes integration registers (1/2)
Item 5
SerDes integration registers (2/2)
interrupts — required here #
Device interrupts. The first entry is the general device interrupt. If amd,per-channel-interrupt is specified, each DMA channel interrupt must be specified. The last entry is the PCS auto-negotiation interrupt.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 6
clocks — required here #
Array item rules (items) #
Item 1
DMA clock for the device
Item 2
PTP clock for the device
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma_clk"
Item 2
Exact value (
const):"ptp_clk"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
true — No constraints added by this property rule.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
amd,per-channel-interrupt — not listed as required here #
Indicates that Rx and Tx complete will generate a unique interrupt for each DMA channel.
Value type (type): "boolean"
amd,speed-set — not listed as required here #
Speed capabilities of the device.
0 = 1GbE and 10GbE
1 = 2.5GbE and 10GbE
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
amd,serdes-blwc — not listed as required here #
Baseline wandering correction enablement for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
Array item rules (items) #
amd,serdes-cdr-rate — not listed as required here #
CDR rate speed selection for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
CDR rate for 1GbE
Item 2
CDR rate for 2.5GbE
Item 3
CDR rate for 10GbE
amd,serdes-pq-skew — not listed as required here #
PQ data sampling skew for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
PQ skew for 1GbE
Item 2
PQ skew for 2.5GbE
Item 3
PQ skew for 10GbE
amd,serdes-tx-amp — not listed as required here #
TX amplitude boost for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
TX amplitude for 1GbE
Item 2
TX amplitude for 2.5GbE
Item 3
TX amplitude for 10GbE
amd,serdes-dfe-tap-config — not listed as required here #
DFE taps available to run for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
DFE taps available for 1GbE
Item 2
DFE taps available for 2.5GbE
Item 3
DFE taps available for 10GbE
amd,serdes-dfe-tap-enable — not listed as required here #
DFE taps to enable for each speed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Item 1
DFE taps to enable for 1GbE
Item 2
DFE taps to enable for 2.5GbE
Item 3
DFE taps to enable for 10GbE
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "phy-mode"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@e0700000 {
compatible = "amd,xgbe-seattle-v1a";
reg = <0xe0700000 0x80000>,
<0xe0780000 0x80000>,
<0xe1240800 0x00400>,
<0xe1250000 0x00060>,
<0xe1250080 0x00004>;
interrupts = <0 325 4>,
<0 326 1>, <0 327 1>, <0 328 1>, <0 329 1>,
<0 323 4>;
amd,per-channel-interrupt;
clocks = <&xgbe_dma_clk>, <&xgbe_ptp_clk>;
clock-names = "dma_clk", "ptp_clk";
phy-mode = "xgmii";
mac-address = [ 02 a1 a2 a3 a4 a5 ];
amd,speed-set = <0>;
amd,serdes-blwc = <1>, <1>, <0>;
amd,serdes-cdr-rate = <2>, <2>, <7>;
amd,serdes-pq-skew = <10>, <10>, <30>;
amd,serdes-tx-amp = <15>, <15>, <10>;
amd,serdes-dfe-tap-config = <3>, <3>, <1>;
amd,serdes-dfe-tap-enable = <0>, <0>, <127>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MDIO bus multiplexer/glue of Amlogic G12a SoC family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/amlogic,g12a-mdio-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This is a special case of a MDIO bus multiplexer. It allows to choose between the internal mdio bus leading to the embedded 10/100 PHY or the external MDIO bus.
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amlogic,g12a-mdio-mux"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
peripheral clock
Item 2
platform crytal
Item 3
SoC 50MHz MPLL
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
Exact value (
const):"clkin0"
Item 3
Exact value (
const):"clkin1"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mdio-multiplexer@4c000 {
compatible = "amlogic,g12a-mdio-mux";
reg = <0x4c000 0xa4>;
clocks = <&clkc_eth_phy>, <&xtal>, <&clkc_mpll>;
clock-names = "pclk", "clkin0", "clkin1";
mdio-parent-bus = <&mdio0>;
#address-cells = <1>;
#size-cells = <0>;
mdio@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
};
mdio@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@8 {
compatible = "ethernet-phy-id0180.3301",
"ethernet-phy-ieee802.3-c22";
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
reg = <8>;
max-speed = <100>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Amlogic GXL MDIO bus multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/amlogic,gxl-mdio-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jerome Brunet <jbrunet@baylibre.com>"
This is a special case of a MDIO bus multiplexer. It allows to choose between the internal mdio bus leading to the embedded 10/100 PHY or the external MDIO bus on the Amlogic GXL SoC family.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "amlogic,gxl-mdio-mux"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
eth_phy_mux: mdio@558 {
compatible = "amlogic,gxl-mdio-mux";
reg = <0x558 0xc>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&refclk>;
clock-names = "ref";
mdio-parent-bus = <&mdio0>;
external_mdio: mdio@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
};
internal_mdio: mdio@1 {
reg = <0x1>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Amlogic Meson DWMAC Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/amlogic,meson-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>", "Martin Blumenstingl <martin.blumenstingl@googlemail.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"amlogic,meson6-dwmac","amlogic,meson8b-dwmac","amlogic,meson8m2-dwmac","amlogic,meson-gxbb-dwmac","amlogic,meson-axg-dwmac","amlogic,meson-g12a-dwmac"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,meson8b-dwmac","amlogic,meson8m2-dwmac","amlogic,meson-gxbb-dwmac","amlogic,meson-axg-dwmac","amlogic,meson-g12a-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
GMAC main clock
Item 2
First parent clock of the internal mux
Item 3
Second parent clock of the internal mux
Item 4
The clock which drives the timing adjustment logic
clock-names— not listed as required hereMinimum number of items (
minItems):3Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"clkin0"Item 3
Exact value (
const):"clkin1"Item 4
Exact value (
const):"timing-adjustment"
amlogic,tx-delay-ns— not listed as required hereAllowed values (
enum):0,2,4,6Default value (
default):2The internal RGMII TX clock delay (provided by this driver) in nanoseconds. When phy-mode is set to "rgmii" then the TX delay should be explicitly configured. When the phy-mode is set to either "rgmii-id" or "rgmii-txid" the TX clock delay is already provided by the PHY. In that case this property should be set to 0ns (which disables the TX clock delay in the MAC to prevent the clock from going off because both PHY and MAC are adding a delay). Any configuration is ignored when the phy-mode is set to "rmii".
amlogic,rx-delay-ns— not listed as required hereDeprecated (
deprecated):trueDefault value (
default):0The internal RGMII RX clock delay in nanoseconds. Deprecated, use rx-internal-delay-ps instead.
rx-internal-delay-ps— not listed as required hereDefault value (
default):0
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"amlogic,meson8b-dwmac","amlogic,meson8m2-dwmac","amlogic,meson-gxbb-dwmac","amlogic,meson-axg-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required here
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereAllowed values (
enum):0,200,400,600,800,1000,1200,1400,1600,1800,2000,2200,2400,2600,2800,3000
Properties and child nodes (properties) #
compatible — required here #
Array items beyond the listed positions (additionalItems) #
true
Allowed by this rule.
Maximum number of items (maxItems): 3
Array item rules (items) #
Item 1
Allowed values (
enum):"amlogic,meson6-dwmac","amlogic,meson8b-dwmac","amlogic,meson8m2-dwmac","amlogic,meson-gxbb-dwmac","amlogic,meson-axg-dwmac","amlogic,meson-g12a-dwmac"
Rule for matching array elements (contains) #
reg — required here #
Array item rules (items) #
Item 1
The first register range should be the one of the DWMAC controller
Item 2
The second range is for the Amlogic specific configuration (for example the PRG_ETHERNET register range on Meson8b and newer)
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "phy-mode"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethmac: ethernet@c9410000 {
compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
reg = <0xc9410000 0x10000>, <0xc8834540 0x8>;
interrupts = <8>;
interrupt-names = "macirq";
clocks = <&clk_eth>, <&clk_fclk_div2>, <&clk_mpll2>, <&clk_fclk_div2>;
clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment";
phy-mode = "rgmii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 14: We need a select here so we don't match all nodes with 'snps,dwmac'
APM X-Gene SoC Ethernet
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/apm,xgene-enet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Iyappan Subramanian <iyappan@os.amperecomputing.com>", "Keyur Chudgar <keyur@os.amperecomputing.com>", "Quan Nguyen <quan@os.amperecomputing.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "apm,xgene-enet", "apm,xgene1-sgenet", "apm,xgene1-xgenet", "apm,xgene2-sgenet", "apm,xgene2-xgenet"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"enet_csr"
Item 2
Exact value (
const):"ring_csr"
Item 3
Exact value (
const):"ring_cmd"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
An rx and tx completion interrupt pair per queue
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
channel — not listed as required here #
Ethernet to CPU start channel number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
port-id — not listed as required here #
Port number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 1
tx-delay — not listed as required here #
Delay value for RGMII bridge TX clock
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 7
Default value (default): 4
rx-delay — not listed as required here #
Delay value for RGMII bridge RX clock
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 7
Default value (default): 2
rxlos-gpios — not listed as required here #
Input GPIO from SFP+ module indicating incoming signal
Maximum number of items (maxItems): 1
mdio — not listed as required here #
MDIO bus subnode
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "apm,xgene-mdio"
Required in this object (required): "compatible"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@17020000 {
compatible = "apm,xgene-enet";
reg = <0x17020000 0xd100>,
<0x17030000 0x400>,
<0x10000000 0x200>;
reg-names = "enet_csr", "ring_csr", "ring_cmd";
interrupts = <0x0 0x3c 0x4>;
channel = <0>;
port-id = <0>;
clocks = <&menetclk 0>;
local-mac-address = [00 01 73 00 00 01];
phy-connection-type = "rgmii";
phy-handle = <&menetphy>;
mdio {
compatible = "apm,xgene-mdio";
#address-cells = <1>;
#size-cells = <0>;
menetphy: ethernet-phy@3 {
compatible = "ethernet-phy-id001c.c915";
reg = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
APM X-Gene SoC MDIO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/apm,xgene-mdio-rgmii.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Iyappan Subramanian <iyappan@os.amperecomputing.com>", "Keyur Chudgar <keyur@os.amperecomputing.com>", "Quan Nguyen <quan@os.amperecomputing.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "apm,xgene-mdio-rgmii", "apm,xgene-mdio-xfi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks"
Examples (examples) #
mdio@17020000 {
compatible = "apm,xgene-mdio-rgmii";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x17020000 0xd100>;
clocks = <&menetclk 0>;
phy@3 {
reg = <0x3>;
};
phy@4 {
reg = <0x4>;
};
phy@5 {
reg = <0x5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ASIX AX88172/AX88772 USB Ethernet Controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/asix,ax88178.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
Device tree properties for hard wired USB Ethernet devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"usbb95,1720","usbb95,172a","usbb95,1780","usbb95,7720","usbb95,772a","usbb95,772b","usbb95,7e2b"
reg — 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"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb {
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usbb95,7e2b";
reg = <1>;
local-mac-address = [00 00 00 00 00 00];
};
};
usb {
#address-cells = <1>;
#size-cells = <0>;
usb1@1 {
compatible = "usb1234,5678";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usbb95,772b";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: ASIX AX88172
Line 23: ASIX AX88172A
Line 24: ASIX AX88178
Line 25: ASIX AX88772
Line 26: ASIX AX88772A
Line 27: ASIX AX88772B
Line 28: ASIX AX88772B
ASIX AX88796C SPI Ethernet Adapter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
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
ASPEED AST2600 MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/aspeed,ast2600-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>"
The ASPEED AST2600 MDIO controller is the third iteration of ASPEED's MDIO bus register interface, this time also separating out the controller from the MAC.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"aspeed,ast2600-mdio"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"aspeed,ast2600-mdio"
reg — required here #
Maximum number of items (maxItems): 1
The register range of the MDIO controller instance
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ast2600-clock.h>
mdio0: mdio@1e650000 {
compatible = "aspeed,ast2600-mdio";
reg = <0x1e650000 0x8>;
#address-cells = <1>;
#size-cells = <0>;
resets = <&syscon ASPEED_RESET_MII>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-or-later
Broadcom AMAC Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,amac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"
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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
reg-names— not listed as required hereMaximum number of items (
maxItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
reg-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— not listed as required hereMinimum number of items (
minItems):3
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "brcm,amac", "brcm,nsp-amac", "brcm,ns2-amac"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reg — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"amac_base"
Item 2
Exact value (
const):"idm_base"
Item 3
Exact value (
const):"nicpm_base"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
amac0: ethernet@18022000 {
compatible = "brcm,nsp-amac";
reg = <0x18022000 0x1000>,
<0x18110000 0x1000>;
reg-names = "amac_base", "idm_base";
interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom ASP Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,asp-v2.0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Justin Chen <justin.chen@broadcom.com>", "Florian Fainelli <florian.fainelli@broadcom.com>"
Broadcom Ethernet controller first introduced with 72165
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v3.0"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v2.2"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"brcm,asp-v2.1"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
ranges — required here #
true — No constraints added by this property rule.
interrupts — required here #
Array item rules (items) #
Item 1
RX/TX interrupt
Item 2
Wake-on-LAN interrupt
clocks — required here #
Maximum number of items (maxItems): 1
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Port number
brcm,channel — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ASP Channel Number
The depacketizer channel that consumes packets from the unimac/port.
Required in this object (required): "reg", "brcm,channel"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): brcm,unimac-mdio.yaml
ASP internal UniMAC MDIO bus
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "ranges"
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/interrupt-controller/arm-gic.h>
ethernet@9c00000 {
compatible = "brcm,bcm74165-asp", "brcm,asp-v2.1";
reg = <0x9c00000 0x1fff14>;
interrupts-extended = <&intc GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
<&aon_pm_l2_intc 14>;
ranges = <0x0 0x9c00000 0x1fff14>;
clocks = <&scmi 14>;
#address-cells = <1>;
#size-cells = <1>;
mdio@c614 {
compatible = "brcm,asp-v2.1-mdio";
reg = <0xc614 0x8>;
reg-names = "mdio";
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@1 {
reg = <1>;
};
};
mdio@ce14 {
compatible = "brcm,asp-v2.1-mdio";
reg = <0xce14 0x8>;
reg-names = "mdio";
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
reg = <1>;
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
brcm,channel = <8>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
port@1 {
reg = <1>;
brcm,channel = <9>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM4908 Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,bcm4908-enet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Broadcom's Ethernet controller integrated into BCM4908 family SoCs
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "brcm,bcm4908-enet"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
RX interrupt
Item 2
TX interrupt
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Required in this object (required): "reg", "interrupts", "interrupt-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@80002000 {
compatible = "brcm,bcm4908-enet";
reg = <0x80002000 0x1000>;
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "rx", "tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom BCM6368 MDIO bus multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,bcm6368-mdio-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Álvaro Fernández Rojas <noltari@gmail.com>"
This MDIO bus multiplexer defines buses that could be internal as well as external to SoCs. When child bus is selected, one needs to select these two properties as well to generate desired MDIO transaction on appropriate bus.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,bcm6368-mdio-mux"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio0: mdio@10e000b0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "brcm,bcm6368-mdio-mux";
reg = <0x10e000b0 0x6>;
mdio_int: mdio@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
};
mdio_ext: mdio@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom BCM7xxx Ethernet Controller (GENET)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,bcmgenet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Doug Berger <opendmb@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "brcm,genet-v1", "brcm,genet-v2", "brcm,genet-v3", "brcm,genet-v4", "brcm,genet-v5", "brcm,bcm2711-genet-v5", "brcm,bcm7712-genet-v5"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
general purpose interrupt line
Item 2
RX and TX rings interrupt line
Item 3
Wake-on-LAN interrupt line
clocks — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
main clock
Item 2
EEE clock
Item 3
Wake-on-LAN clock
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"enet"
Item 2
Exact value (
const):"enet-eee"
Item 3
Exact value (
const):"enet-wol"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): brcm,unimac-mdio.yaml
GENET internal UniMAC MDIO bus
Required in this object (required): "reg", "interrupts", "phy-mode", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@f0b60000 {
phy-mode = "internal";
phy-handle = <&phy1>;
mac-address = [ 00 10 18 36 23 1a ];
compatible = "brcm,genet-v4";
reg = <0xf0b60000 0xfc4c>;
interrupts = <0x0 0x14 0x0>, <0x0 0x15 0x0>;
#address-cells = <1>;
#size-cells = <1>;
mdio0: mdio@e14 {
compatible = "brcm,genet-mdio-v4";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe14 0x8>;
phy1: ethernet-phy@1 {
max-speed = <1000>;
reg = <1>;
compatible = "ethernet-phy-ieee802.3-c22";
};
};
};
ethernet@f0b80000 {
phy-mode = "moca";
fixed-link = <1 0 1000 0 0>;
mac-address = [ 00 10 18 36 24 1a ];
compatible = "brcm,genet-v4";
#address-cells = <1>;
#size-cells = <1>;
reg = <0xf0b80000 0xfc4c>;
interrupts = <0x0 0x16 0x0>, <0x0 0x17 0x0>;
mdio1: mdio@e14 {
compatible = "brcm,genet-mdio-v4";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe14 0x8>;
};
};
ethernet@f0ba0000 {
phy-mode = "rgmii";
phy-handle = <&phy0>;
mac-address = [ 00 10 18 36 26 1a ];
compatible = "brcm,genet-v4";
#address-cells = <1>;
#size-cells = <1>;
reg = <0xf0ba0000 0xfc4c>;
interrupts = <0x0 0x18 0x0>, <0x0 0x19 0x0>;
mdio2: mdio@e14 {
compatible = "brcm,genet-mdio-v4";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xe14 0x8>;
phy0: ethernet-phy@0 {
max-speed = <1000>;
reg = <0>;
compatible = "ethernet-phy-ieee802.3-c22";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom iProc MDIO bus controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,iproc-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "brcm,iproc-mdio"
reg — required here #
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg"
Examples (examples) #
mdio@18002000 {
compatible = "brcm,iproc-mdio";
reg = <0x18002000 0x8>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MDIO bus multiplexer found in Broadcom iProc based SoCs.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,mdio-mux-iproc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"
This MDIO bus multiplexer defines buses that could be internal as well as external to SoCs and could accept MDIO transaction compatible to C-22 or C-45 Clause. When child bus is selected, one needs to select these two properties as well to generate desired MDIO transaction on appropriate bus.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "brcm,mdio-mux-iproc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
core clock driving the MDIO block
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio-mux@66020000 {
compatible = "brcm,mdio-mux-iproc";
reg = <0x66020000 0x250>;
#address-cells = <1>;
#size-cells = <0>;
mdio@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
pci-phy@0 {
compatible = "brcm,ns2-pcie-phy";
reg = <0x0>;
#phy-cells = <0>;
};
};
mdio@7 {
reg = <0x7>;
#address-cells = <1>;
#size-cells = <0>;
pci-phy@0 {
compatible = "brcm,ns2-pcie-phy";
reg = <0x0>;
#phy-cells = <0>;
};
};
mdio@10 {
reg = <0x10>;
#address-cells = <1>;
#size-cells = <0>;
eth-phy@10 {
reg = <0x10>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,systemport.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "brcm,systemport-v1.00", "brcm,systemportlite-v1.00", "brcm,systemport"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
interrupt line for RX queues
Item 2
interrupt line for TX queues
Item 3
interrupt line for Wake-on-LAN
clocks — not listed as required here #
Array item rules (items) #
Item 1
main clock
Item 2
Wake-on-LAN clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sw_sysport"
Item 2
Exact value (
const):"sw_sysportwol"
systemport,num-tier2-arb — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of tier 2 arbiters
systemport,num-tier1-arb — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of tier 2 arbiters
systemport,num-txq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 32
Number of HW transmit queues
systemport,num-rxq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 32
Number of HW receive queues
Required in this object (required): "reg", "interrupts", "phy-mode"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@f04a0000 {
compatible = "brcm,systemport-v1.00";
reg = <0xf04a0000 0x4650>;
local-mac-address = [ 00 11 22 33 44 55 ];
phy-mode = "gmii";
interrupts = <0x0 0x16 0x0>,
<0x0 0x17 0x0>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Broadcom UniMAC MDIO bus controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Doug Berger <opendmb@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>", "Rafał Miłecki <rafal@milecki.pl>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "brcm,genet-mdio-v1", "brcm,genet-mdio-v2", "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5", "brcm,asp-v2.1-mdio", "brcm,asp-v2.2-mdio", "brcm,asp-v3.0-mdio", "brcm,unimac-mdio", "brcm,bcm6846-mdio"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
base register
Item 2
indirect accesses to larger than 16-bits MDIO transactions
reg-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"mdio"
Item 2
Exact value (
const):"mdio_indir_rw"
interrupts — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Interrupt shared with the Ethernet MAC or Ethernet switch this MDIO block is integrated from
Rule 2
Array item rules (
items)Item 1
"mdio done" interrupt
Item 2
"mdio error" interrupt
interrupt-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"mdio_done_error"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"mdio_done"Item 2
Exact value (
const):"mdio_error"
clocks — not listed as required here #
A reference to the clock supplying the MDIO bus controller
clock-frequency — not listed as required here #
The MDIO bus clock that must be output by the MDIO bus hardware, if absent, the default hardware values are used
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "#address-cells", "#size-cells"
Examples (examples) #
mdio@403c0 {
compatible = "brcm,unimac-mdio";
reg = <0x403c0 0x8>, <0x40300 0x18>;
reg-names = "mdio", "mdio_indir_rw";
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Calxeda Highbank 10Gb XGMAC Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/calxeda-xgmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Calxeda XGMAC Ethernet controllers are directly connected to the internal machine "network fabric", which is set up, initialised and managed by the firmware. So there are no PHY properties in this binding. Switches in the fabric take care of routing and mapping the traffic to external network ports.
Maintainers (maintainers): "Andre Przywara <andre.przywara@arm.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "calxeda,hb-xgmac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Can point to at most 3 xgmac interrupts. The 1st one is the main interrupt, the 2nd one is used for power management. The optional 3rd one is the low power state interrupt.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@fff50000 {
compatible = "calxeda,hb-xgmac";
reg = <0xfff50000 0x1000>;
interrupts = <0 77 4>, <0 78 4>, <0 79 4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cadence MACB/GEM Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/cdns,macb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Claudiu Beznea <claudiu.beznea@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"cdns,emac"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"cdns,gem"Deprecated (
deprecated):true
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"xlnx,versal-gem","xlnx,zynq-gem","xlnx,zynqmp-gem"Item 2
Exact value (
const):"cdns,gem"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"cdns,at91sam9260-macb","cdns,sam9x60-macb","microchip,mpfs-macb"Item 2
Exact value (
const):"cdns,macb"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-macb"Item 2
Exact value (
const):"microchip,mpfs-macb"Item 3
Exact value (
const):"cdns,macb"
Rule 6
Array item rules (
items)Item 1
Item 2
Item 3
Exact value (
const):"cdns,macb"
Rule 7
Allowed values (
enum):"atmel,sama5d2-gem","atmel,sama5d29-gem","atmel,sama5d3-gem","atmel,sama5d4-gem","cdns,emac","cdns,gem","cdns,macb","cdns,np4-macb","microchip,sama7g5-emac","microchip,sama7g5-gem","mobileye,eyeq5-gem","raspberrypi,rp1-gem","sifive,fu540-c000-gem"
Rule 8
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,sam9x7-gem","microchip,sama7d65-gem"Item 2
Exact value (
const):"microchip,sama7g5-gem"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Basic register set
Item 2
GEMGXL Management block registers on SiFive FU540-C000 SoC
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
One interrupt per available hardware queue
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Item 2
Item 3
Item 4
Item 5
Exact value (
const):"tsu_clk"
local-mac-address — not listed as required here #
true — No constraints added by this property rule.
phy-mode — required here #
true — No constraints added by this property rule.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
phys — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
Recommended with ZynqMP, specify reset control for this controller instance with zynqmp-reset driver.
reset-names — not listed as required here #
Maximum number of items (maxItems): 1
fixed-link — not listed as required here #
true — No constraints added by this property rule.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
cdns,refclk-ext — not listed as required here #
Value type (type): "boolean"
This selects if the REFCLK for RMII is provided by an external source. For RGMII mode this selects if the 125MHz REF clock is provided by an external source.
cdns,rx-watermark — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
When the receive partial store and forward mode is activated, the receiver will only begin to forward the packet to the external AHB or AXI slave when enough packet data is stored in the SRAM packet buffer. rx-watermark corresponds to the number of SRAM buffer locations, that need to be filled, before the forwarding process is activated. Width of the SRAM is platform dependent, and can be 4, 8 or 16 bytes.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
mdio — not listed as required here #
Value type (type): "object"
Node containing PHY children. If this node is not present, then PHYs will be direct children.
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): ethernet-phy.yaml#
Properties and child nodes (properties) #
reset-gpios — not listed as required here
true — No constraints added by this property rule.
magic-packet — not listed as required here
Value type (type): "boolean"
Deprecated (deprecated): true
Indicates that the hardware supports waking up via magic packet.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "phy-mode"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"sifive,fu540-c000-gem"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mobileye,eyeq5-gem"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
macb0: ethernet@fffc4000 {
compatible = "cdns,macb";
reg = <0xfffc4000 0x4000>;
interrupts = <21>;
cdns,rx-watermark = <0x44>;
phy-mode = "rmii";
local-mac-address = [3a 0e 03 04 05 06];
clock-names = "pclk", "hclk", "tx_clk";
clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <0x1>;
reset-gpios = <&pioE 6 1>;
};
};
#include <dt-bindings/power/xlnx-zynqmp-power.h>
#include <dt-bindings/reset/xlnx-zynqmp-resets.h>
#include <dt-bindings/phy/phy.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
gem1: ethernet@ff0c0000 {
compatible = "xlnx,zynqmp-gem", "cdns,gem";
interrupt-parent = <&gic>;
interrupts = <0 59 4>, <0 59 4>;
reg = <0x0 0xff0c0000 0x0 0x1000>;
clocks = <&zynqmp_clk 31>, <&zynqmp_clk 105>,
<&zynqmp_clk 51>, <&zynqmp_clk 50>,
<&zynqmp_clk 44>;
clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
#address-cells = <1>;
#size-cells = <0>;
iommus = <&smmu 0x875>;
power-domains = <&zynqmp_firmware PD_ETH_1>;
resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>;
reset-names = "gem1_rst";
phy-mode = "sgmii";
phys = <&psgtr 1 PHY_TYPE_SGMII 1 1>;
fixed-link {
speed = <1000>;
full-duplex;
pause;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 18: Atmel at91rm9200 SoC
Line 19: Generic
Line 23: Xilinx Zynq-7xxx SoC
Line 24: Xilinx Zynq Ultrascale+ MPSoC
Line 25: Generic
Line 30: Xilinx Versal
Line 31: Xilinx Zynq-7xxx SoC
Line 32: Xilinx Zynq Ultrascale+ MPSoC
Line 33: Generic
Line 37: Atmel at91sam9 SoCs
Line 38: Microchip sam9x60 SoC
Line 39: Microchip PolarFire SoC
Line 40: Generic
Line 42: Microchip PIC64GX SoC
Line 43: Microchip PolarFire SoC
Line 44: Generic
Line 47: 10/100Mbit IP on Atmel sama5d3 SoCs
Line 49: Atmel at91sam9 SoCs.
Line 50: Generic
Line 53: GEM IP (10/100) on Atmel sama5d2 SoCs
Line 54: GEM XL IP (10/100) on Atmel sama5d29 SoCs
Line 55: Gigabit IP on Atmel sama5d3 SoCs
Line 56: GEM IP (10/100) on Atmel sama5d4 SoCs
Line 57: Generic
Line 58: Generic
Line 59: Generic
Line 60: NP4 SoC devices
Line 61: Microchip SAMA7G5 ethernet interface
Line 62: Microchip SAMA7G5 gigabit ethernet interface
Line 63: Mobileye EyeQ5 SoCs
Line 64: Raspberry Pi RP1 gigabit ethernet interface
Line 65: SiFive FU540-C000 SoC
Line 69: Microchip SAM9X7 gigabit ethernet interface
Line 70: Microchip SAMA7D65 gigabit ethernet interface
Line 71: Microchip SAMA7G5 gigabit ethernet interface
EP93xx SoC Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/cirrus,ep9301-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"cirrus,ep9301-eth"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-eth","cirrus,ep9307-eth","cirrus,ep9312-eth","cirrus,ep9315-eth"Item 2
Exact value (
const):"cirrus,ep9301-eth"
reg — required here #
Array item rules (items) #
Item 1
The physical base address and size of IO range
interrupts — required here #
Array item rules (items) #
Item 1
Combined signal for various interrupt events
phy-handle — required here #
true — No constraints added by this property rule.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
optional node for embedded MDIO controller
Required in this object (required): "compatible", "reg", "interrupts", "phy-handle"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@80010000 {
compatible = "cirrus,ep9301-eth";
reg = <0x80010000 0x10000>;
interrupt-parent = <&vic1>;
interrupts = <7>;
phy-handle = <&phy0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cortina Systems Gemini Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/cortina,gemini-ethernet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
This ethernet controller is found in the Gemini SoC family: StorLink SL3512 and SL3516, also known as Cortina Systems CS3512 and CS3516.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cortina,gemini-ethernet"
reg — required here #
Minimum number of items (minItems): 3
must contain the global registers and the V-bit and A-bit memory areas, in total three register sets.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^ethernet-port@[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
contains the resources for ethernet port
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): "cortina,gemini-ethernet-port"
reg — required here
Array item rules (items)
Item 1
DMA/TOE memory
Item 2
GMAC memory area of the port
interrupts — required here
Maximum number of items (maxItems): 1
should contain the interrupt line of the port. this is nominally a level interrupt active high.
resets — required here
Maximum number of items (maxItems): 1
this must provide an SoC-integrated reset line for the port.
clocks — required here
Maximum number of items (maxItems): 1
this should contain a handle to the PCLK clock for clocking the silicon in this port
clock-names — required here
Exact value (const): "PCLK"
Required in this object (required): "reg", "compatible", "interrupts", "resets", "clocks", "clock-names"
Required in this object (required): "compatible", "reg", "ranges"
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/clock/cortina,gemini-clock.h>
#include <dt-bindings/reset/cortina,gemini-reset.h>
mdio0: mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@1 {
reg = <1>;
device_type = "ethernet-phy";
};
phy1: ethernet-phy@3 {
reg = <3>;
device_type = "ethernet-phy";
};
};
ethernet@60000000 {
compatible = "cortina,gemini-ethernet";
reg = <0x60000000 0x4000>, /* Global registers, queue */
<0x60004000 0x2000>, /* V-bit */
<0x60006000 0x2000>; /* A-bit */
#address-cells = <1>;
#size-cells = <1>;
ranges;
gmac0: ethernet-port@0 {
compatible = "cortina,gemini-ethernet-port";
reg = <0x60008000 0x2000>, /* Port 0 DMA/TOE */
<0x6000a000 0x2000>; /* Port 0 GMAC */
interrupt-parent = <&intcon>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon GEMINI_RESET_GMAC0>;
clocks = <&syscon GEMINI_CLK_GATE_GMAC0>;
clock-names = "PCLK";
phy-mode = "rgmii";
phy-handle = <&phy0>;
};
gmac1: ethernet-port@1 {
compatible = "cortina,gemini-ethernet-port";
reg = <0x6000c000 0x2000>, /* Port 1 DMA/TOE */
<0x6000e000 0x2000>; /* Port 1 GMAC */
interrupt-parent = <&intcon>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
resets = <&syscon GEMINI_RESET_GMAC1>;
clocks = <&syscon GEMINI_CLK_GATE_GMAC1>;
clock-names = "PCLK";
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 34: The subnodes represents the two ethernet ports in this device.
Line 35: They are not independent of each other since they share resources
Line 36: in the parent node, and are thus children.
Davicom DM9000 Fast Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/davicom,dm9000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "davicom,dm9000"
reg — required here #
Array item rules (items) #
Item 1
Address registers
Item 2
Data registers
interrupts — required here #
Maximum number of items (maxItems): 1
davicom,no-eeprom — not listed as required here #
Value type (type): "boolean"
Configuration EEPROM is not available
davicom,ext-phy — not listed as required here #
Value type (type): "boolean"
Use external PHY
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/memory-controllers/mc-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/net/ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ethernet@a8000000 {
compatible = "davicom,dm9000";
reg = <0xa8000000 0x2>, <0xa8000002 0x2>;
interrupt-parent = <&gph1>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
local-mac-address = [00 00 de ad be ef];
davicom,no-eeprom;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Davicom DM9051 SPI Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
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
TSN endpoint Ethernet MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/engleder,tsnep.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gerhard Engleder <gerhard@engleder-embedded.com>"
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): "engleder,tsnep"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"txrx-1"
Item 3
Exact value (
const):"txrx-2"
Item 4
Exact value (
const):"txrx-3"
Item 5
Exact value (
const):"txrx-4"
Item 6
Exact value (
const):"txrx-5"
Item 7
Exact value (
const):"txrx-6"
Item 8
Exact value (
const):"txrx-7"
The main interrupt for basic MAC features and the first TX/RX queue pair is named "mac". "txrx-[1-7]" are the interrupts for additional TX/RX queue pairs.
dma-coherent — 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.
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
phy-connection-type — not listed as required here #
Allowed values (enum): "mii", "gmii", "rgmii", "rgmii-id"
phy-mode — not listed as required here #
true — No constraints added by this property rule.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
mdio — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
optional node for embedded MDIO controller
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
axi {
#address-cells = <2>;
#size-cells = <2>;
tsnep0: ethernet@a0000000 {
compatible = "engleder,tsnep";
reg = <0x0 0xa0000000 0x0 0x10000>;
interrupts = <0 89 1>;
interrupt-parent = <&gic>;
local-mac-address = [00 00 00 00 00 00];
phy-mode = "rgmii";
phy-handle = <&phy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
suppress-preamble;
phy0: ethernet-phy@1 {
reg = <1>;
rxc-skew-ps = <1080>;
};
};
};
tsnep1: ethernet@a0010000 {
compatible = "engleder,tsnep";
reg = <0x0 0xa0010000 0x0 0x10000>;
interrupts = <0 93 1>, <0 94 1>, <0 95 1>, <0 96 1>;
interrupt-names = "mac", "txrx-1", "txrx-2", "txrx-3";
interrupt-parent = <&gic>;
local-mac-address = [00 00 00 00 00 00];
phy-mode = "rgmii";
phy-handle = <&phy1>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
suppress-preamble;
phy1: ethernet-phy@1 {
reg = <1>;
rxc-skew-ps = <1080>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Eswin EIC7700 SOC Eth Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/eswin,eic7700-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shuang Liang <liangshuang@eswincomputing.com>", "Zhi Li <lizhi2@eswincomputing.com>", "Shangjuan Wei <weishangjuan@eswincomputing.com>"
Platform glue layer implementation for STMMAC Ethernet driver.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"eswin,eic7700-qos-eth"
Item 2
Exact value (
const):"snps,dwmac-5.20"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
clocks — required here #
Array item rules (items) #
Item 1
AXI clock
Item 2
Configuration clock
Item 3
GMAC main clock
Item 4
Tx clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"cfg"
Item 3
Exact value (
const):"stmmaceth"
Item 4
Exact value (
const):"tx"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
rx-internal-delay-ps — required here #
Allowed values (enum): 0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400
tx-internal-delay-ps — required here #
Allowed values (enum): 0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400
eswin,hsp-sp-csr — required here #
HSP CSR is to control and get status of different high-speed peripherals (such as Ethernet, USB, SATA, etc.) via register, which can tune board-level's parameters of PHY, etc.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
Phandle to HSP(High-Speed Peripheral) device
Item 2
Offset of phy control register for internal or external clock selection
Item 3
Offset of AXI clock controller Low-Power request register
Item 4
Offset of register controlling TX/RX clock delay
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "phy-mode", "resets", "reset-names", "rx-internal-delay-ps", "tx-internal-delay-ps", "eswin,hsp-sp-csr"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@50400000 {
compatible = "eswin,eic7700-qos-eth", "snps,dwmac-5.20";
reg = <0x50400000 0x10000>;
clocks = <&d0_clock 186>, <&d0_clock 171>, <&d0_clock 40>,
<&d0_clock 193>;
clock-names = "axi", "cfg", "stmmaceth", "tx";
interrupt-parent = <&plic>;
interrupts = <61>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
resets = <&reset 95>;
reset-names = "stmmaceth";
rx-internal-delay-ps = <200>;
tx-internal-delay-ps = <200>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118>;
snps,axi-config = <&stmmac_axi_setup>;
snps,aal;
snps,fixed-burst;
snps,tso;
stmmac_axi_setup: stmmac-axi-config {
snps,blen = <0 0 0 0 16 8 4>;
snps,rd_osr_lmt = <2>;
snps,wr_osr_lmt = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Generic Ethernet Connector
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-connector.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Maxime Chevallier <maxime.chevallier@bootlin.com>"
An Ethernet Connector represents the output of a network component such as a PHY, an Ethernet controller with no PHY, or an SFP module.
Properties and child nodes (properties) #
pairs — not listed as required here #
Defines the number of BaseT pairs that are used on the connector.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4
media — required here #
The mediums, as defined in 802.3, that can be used on the port.
Allowed values (enum): "BaseT", "BaseK", "BaseS", "BaseC", "BaseL", "BaseD", "BaseE", "BaseF", "BaseV", "BaseMLD"
Required in this object (required): "media"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
media— not listed as required hereExact value (
const):"BaseT"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
pairs— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Ethernet Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David S. Miller <davem@davemloft.net>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet(@.*)?$"
label — not listed as required here #
Human readable label on a port of a box.
max-speed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies maximum speed in Mbit/s supported by the device.
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Reference to an nvmem node for the MAC address
nvmem-cell-names — not listed as required here #
Exact value (const): "mac-address"
phy-connection-type — not listed as required here #
Specifies interface type between the Ethernet device and a physical layer (PHY) device.
Allowed values (enum): "internal", "mii", "mii-lite", "gmii", "sgmii", "psgmii", "qsgmii", "qusgmii", "tbi", "rev-mii", "rmii", "rev-rmii", "moca", "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "rtbi", "smii", "xgmii", "trgmii", "1000base-x", "2500base-x", "5gbase-r", "rxaui", "xaui", "10gbase-kr", "usxgmii", "10gbase-r", "25gbase-r", "10g-qxgmii"
phy-mode — not listed as required here #
Shared schema rule ($ref): #/properties/phy-connection-type
pcs-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Maximum number of items (
maxItems):1
Specifies a reference to a node representing a PCS PHY device on a MDIO bus to link with an external PHY (phy-handle) if exists.
pcs-handle-names — not listed as required here #
The name of each PCS in pcs-handle.
phy-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Specifies a reference to a node representing a PHY device.
phy — not listed as required here #
Shared schema rule ($ref): #/properties/phy-handle
Deprecated (deprecated): true
phy-device — not listed as required here #
Shared schema rule ($ref): #/properties/phy-handle
Deprecated (deprecated): true
ptp-timer — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Specifies a reference to a node representing an IEEE 1588 PTP device.
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The size of the controller\'s receive fifo in bytes. This is used for components that can have configurable receive fifo sizes, and is useful for determining certain configuration settings such as flow control thresholds.
sfp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Specifies a reference to a node representing a SFP cage.
tx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The size of the controller\'s transmit fifo in bytes. This is used for components that can have configurable fifo sizes.
managed — not listed as required here #
Specifies the PHY management type. If auto is set and fixed-link is not specified, it uses MDIO for management.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Default value (default): "auto"
Allowed values (enum): "auto", "in-band-status"
fixed-link — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32-arrayDeprecated (
deprecated):trueArray item rules (
items)Item 1
Minimum value (
minimum):0Maximum value (
maximum):31Emulated PHY ID, choose any but unique to the all specified fixed-links
Item 2
Duplex configuration. 0 for half duplex or 1 for full duplex
Item 3
Allowed values (
enum):10,100,1000,2500,10000Link speed in Mbits/sec.
Item 4
Pause configuration. 0 for no pause, 1 for pause
Item 5
Asymmetric pause configuration. 0 for no asymmetric pause, 1 for asymmetric pause
Rule 2
Value type (
type):"object"Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Properties and child nodes (
properties)
speed— required hereLink speed.
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32Allowed values (
enum):10,100,1000,2500,5000,10000
full-duplex— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/flagIndicates that full-duplex is used. When absent, half duplex is assumed.
pause— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/flagIndicates that pause should be enabled.
asym-pause— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/flagIndicates that asym_pause should be enabled.
link-gpios— not listed as required hereMaximum number of items (
maxItems):1GPIO to determine if the link is up
leds — not listed as required here #
Describes the LEDs associated by Ethernet Controller. These LEDs are not integrated in the PHY and PHY doesn't have any control on them. Ethernet Controller regs are used to control these defined LEDs.
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[a-f0-9]+$ — name matches this regular expression
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
This defines the LED index in the PHY or the MAC. It's really driver dependent and required for ports that define multiple LED for the same port.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Property dependencies (dependencies) #
pcs-handle-names — applies when this property is present #
Also requires: "pcs-handle"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/network-class.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
phy-mode— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rgmii","rgmii-rxid","rgmii-txid","rgmii-id"When the condition matches (
then) #Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereRGMII Receive Clock Delay defined in pico seconds. This is used for controllers that have configurable RX internal delays. If this property is present then the MAC applies the RX delay.
tx-internal-delay-ps— not listed as required hereRGMII Transmit Clock Delay defined in pico seconds. This is used for controllers that have configurable TX internal delays. If this property is present then the MAC applies the TX delay.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 37: There is not a standard bus between the MAC and the PHY,
Line 38: something proprietary is being used to embed the PHY in the
Line 39: MAC.
Line 54: RX and TX delays are provided by the PCB. See below
Line 57: RX and TX delays are not provided by the PCB. This is the most
Line 58: frequent case. See below
Line 61: TX delay is provided by the PCB. See below
Line 64: RX delay is provided by the PCB. See below
Line 76: 10GBASE-KR, XFI, SFI
Line 270: Informative
Line 271: ===========
Line 272:
Line 273: 'phy-modes' & 'phy-connection-type' properties 'rgmii', 'rgmii-id',
Line 274: 'rgmii-rxid', and 'rgmii-txid' are frequently used wrongly by
Line 275: developers. This informative section clarifies their usage.
Line 276:
Line 277: The RGMII specification requires a 2ns delay between the data and
Line 278: clock signals on the RGMII bus. How this delay is implemented is not
Line 279: specified.
Line 280:
Line 281: One option is to make the clock traces on the PCB longer than the
Line 282: data traces. A sufficient difference in length can provide the 2ns
Line 283: delay. If both the RX and TX delays are implemented in this manner,
Line 284: 'rgmii' should be used, so indicating the PCB adds the delays.
Line 285:
Line 286: If the PCB does not add these delays via extra long traces,
Line 287: 'rgmii-id' should be used. Here, 'id' refers to 'internal delay',
Line 288: where either the MAC or PHY adds the delay.
Line 289:
Line 290: If only one of the two delays are implemented via extra long clock
Line 291: lines, either 'rgmii-rxid' or 'rgmii-txid' should be used,
Line 292: indicating the MAC or PHY should implement one of the delays
Line 293: internally, while the PCB implements the other delay.
Line 294:
Line 295: Device Tree describes hardware, and in this case, it describes the
Line 296: PCB between the MAC and the PHY, if the PCB implements delays or
Line 297: not.
Line 298:
Line 299: In practice, very few PCBs make use of extra long clock lines. Hence
Line 300: any RGMII phy mode other than 'rgmii-id' is probably wrong, and is
Line 301: unlikely to be accepted during review without details provided in
Line 302: the commit description and comments in the .dts file.
Line 303:
Line 304: When the PCB does not implement the delays, the MAC or PHY must. As
Line 305: such, this is software configuration, and so not described in Device
Line 306: Tree.
Line 307:
Line 308: The following describes how Linux implements the configuration of
Line 309: the MAC and PHY to add these delays when the PCB does not. As stated
Line 310: above, developers often get this wrong, and the aim of this section
Line 311: is reduce the frequency of these errors by Linux developers. Other
Line 312: users of the Device Tree may implement it differently, and still be
Line 313: consistent with both the normative and informative description
Line 314: above.
Line 315:
Line 316: By default in Linux, when using phylib/phylink, the MAC is expected
Line 317: to read the 'phy-mode' from Device Tree, not implement any delays,
Line 318: and pass the value to the PHY. The PHY will then implement delays as
Line 319: specified by the 'phy-mode'. The PHY should always be reconfigured
Line 320: to implement the needed delays, replacing any setting performed by
Line 321: strapping or the bootloader, etc.
Line 322:
Line 323: Experience to date is that all PHYs which implement RGMII also
Line 324: implement the ability to add or not add the needed delays. Hence
Line 325: this default is expected to work in all cases. Ignoring this default
Line 326: is likely to be questioned by Reviews, and require a strong argument
Line 327: to be accepted.
Line 328:
Line 329: There are a small number of cases where the MAC has hard coded
Line 330: delays which cannot be disabled. The 'phy-mode' only describes the
Line 331: PCB. The inability to disable the delays in the MAC does not change
Line 332: the meaning of 'phy-mode'. It does however mean that a 'phy-mode' of
Line 333: 'rgmii' is now invalid, it cannot be supported, since both the PCB
Line 334: and the MAC and PHY adding delays cannot result in a functional
Line 335: link. Thus the MAC should report a fatal error for any modes which
Line 336: cannot be supported. When the MAC implements the delay, it must
Line 337: ensure that the PHY does not also implement the same delay. So it
Line 338: must modify the phy-mode it passes to the PHY, removing the delay it
Line 339: has added. Failure to remove the delay will result in a
Line 340: non-functioning link.
Line 341:
Line 342: Sometimes there is a need to fine tune the delays. Often the MAC or
Line 343: PHY can perform this fine tuning. In the MAC node, the Device Tree
Line 344: properties 'rx-internal-delay-ps' and 'tx-internal-delay-ps' should
Line 345: be used to indicate fine tuning performed by the MAC. The values
Line 346: expected here are small. A value of 2000ps, i.e 2ns, and a phy-mode
Line 347: of 'rgmii' will not be accepted by Reviewers.
Line 348:
Line 349: If the PHY is to perform fine tuning, the properties
Line 350: 'rx-internal-delay-ps' and 'tx-internal-delay-ps' in the PHY node
Line 351: should be used. When the PHY is implementing delays, e.g. 'rgmii-id'
Line 352: these properties should have a value near to 2000ps. If the PCB is
Line 353: implementing delays, e.g. 'rgmii', a small value can be used to fine
Line 354: tune the delay added by the PCB.
Ethernet PHY Package Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-phy-package.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
PHY packages are multi-port Ethernet PHY of the same family and each Ethernet PHY is affected by the global configuration of the PHY package. Each reg of the PHYs defined in the PHY package node is absolute and describe the real address of the Ethernet PHY on the MDIO bus.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet-phy-package@[a-f0-9]+$"
reg — required here #
Minimum value (minimum): 0
Maximum value (maximum): 31
The base ID number for the PHY package. Commonly the ID of the first PHY in the PHY package. Some PHY in the PHY package might be not defined but still occupy ID on the device (just not attached to anything) hence the PHY package reg might correspond to a not attached PHY (offset 0).
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): ethernet-phy.yaml#
Required in this object (required): "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Ethernet PHY Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-phy.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
$nodename— required here #String pattern (
pattern):"^ethernet-phy(@[a-f0-9]+)?$"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet-phy(@[a-f0-9]+)?$"
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"ethernet-phy-ieee802.3-c22"PHYs that implement IEEE802.3 clause 22
Rule 2
Exact value (
const):"ethernet-phy-ieee802.3-c45"PHYs that implement IEEE802.3 clause 45
Rule 3
String pattern (
pattern):"^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"PHYs contain identification registers. These will be read to identify the PHY. If the PHY reports an incorrect ID, or the PHY requires a specific initialization sequence (like a particular order of clocks, resets, power supplies), in order to be able to read the ID registers, then the compatible list must contain an entry with the correct PHY ID in the above form. The first group of digits is the 16 bit Phy Identifier 1 register, this is the chip vendor OUI bits 3:18. The second group of digits is the Phy Identifier 2 register, this is the chip vendor OUI bits 19:24, followed by 10 bits of a vendor specific ID.
Rule 4
Array item rules (
items)Item 1
String pattern (
pattern):"^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"Item 2
Exact value (
const):"ethernet-phy-ieee802.3-c22"
Rule 5
Array item rules (
items)Item 1
String pattern (
pattern):"^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"Item 2
Exact value (
const):"ethernet-phy-ieee802.3-c45"
reg — required here #
Minimum value (minimum): 0
Maximum value (maximum): 31
The ID number for the PHY.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
max-speed — not listed as required here #
Allowed values (enum): 10, 100, 1000, 2500, 5000, 10000, 20000, 25000, 40000, 50000, 56000, 100000, 200000
Maximum PHY supported speed in Mbits / seconds.
phy-10base-t1l-2.4vpp — not listed as required here #
tristate, request/disable 2.4 Vpp operating mode. The values are: 0: Disable 2.4 Vpp operating mode. 1: Request 2.4 Vpp operating mode from link partner. Absence of this property will leave configuration to default values.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
broken-turn-around — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates the PHY device does not correctly release the turn around line low at end of the control phase of the MDIO transaction.
brr-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates the network cable interface is an alternative one as defined in the BroadR-Reach link mode specification under 1BR-100 and 1BR-10 names. The PHY must be configured to operate in BroadR-Reach mode by software.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
External clock connected to the PHY. If not specified it is assumed that the PHY uses a fixed crystal or an internal oscillator.
enet-phy-lane-swap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates the PHY will swap the TX/RX lanes to compensate for the board being designed with the lanes swapped.
enet-phy-lane-no-swap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates that PHY will disable swap of the TX/RX lanes. This property allows the PHY to work correctly after e.g. wrong bootstrap configuration caused by issues in PCB layout design.
eee-broken-100tx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
eee-broken-1000t — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
eee-broken-10gt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
eee-broken-1000kx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
eee-broken-10gkx4 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
eee-broken-10gkr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it.
timing-role — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "forced-master", "forced-slave", "preferred-master", "preferred-slave"
Specifies the timing role of the PHY in the network link. This property is required for setups where the role must be explicitly assigned via the device tree due to limitations in hardware strapping or incorrect strap configurations. It is applicable to Single Pair Ethernet (1000/100/10Base-T1) and other PHY types, including 1000Base-T, where it controls whether the PHY should be a master (clock source) or a slave (clock receiver).
- 'forced-master': The PHY is forced to operate as a master. - 'forced-slave': The PHY is forced to operate as a slave. - 'preferred-master': Prefer the PHY to be master but allow negotiation. - 'preferred-slave': Prefer the PHY to be slave but allow negotiation.
pses — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 1
Specifies a reference to a node representing a Power Sourcing Equipment.
phy-is-integrated — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates that the PHY is integrated into the same physical package as the Ethernet MAC. If needed, muxers should be configured to ensure the integrated PHY is used. The absence of this property indicates the muxers should be configured so that the external PHY is used.
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "phy"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
The GPIO phandle and specifier for the PHY reset signal.
reset-assert-us — not listed as required here #
Delay after the reset was asserted in microseconds. If this property is missing the delay will be skipped.
reset-deassert-us — not listed as required here #
Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.
sfp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Specifies a reference to a node representing a SFP cage.
rx-internal-delay-ps — not listed as required here #
RGMII Receive PHY Clock Delay defined in pico seconds. This is used for PHY's that have configurable RX internal delays. If this property is present then the PHY applies the RX delay.
tx-internal-delay-ps — not listed as required here #
RGMII Transmit PHY Clock Delay defined in pico seconds. This is used for PHY's that have configurable TX internal delays. If this property is present then the PHY applies the TX delay.
tx-amplitude-100base-tx-percent — not listed as required here #
Transmit amplitude gain applied for 100BASE-TX. 100% matches 2V peak-to-peak specified in ANSI X3.263. When omitted, the PHYs default will be left as is.
mac-termination-ohms — not listed as required here #
Maximum value (maximum): 200
The xMII signals need series termination on the driver side to match both the output driver impedance and the line characteristic impedance, to prevent reflections and EMI problems. Select a resistance value which is supported by the builtin resistors of the PHY, otherwise the resistors may have to be placed on board. When omitted, the PHYs default will be left as is.
leds — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[a-f0-9]+$ — name matches this regular expression
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
This defines the LED index in the PHY or the MAC. It's really driver dependent and required for ports that define multiple LED for the same port.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
mdi — not listed as required here #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^connector-[0-9]+$ — name matches this regular expression
Shared schema rule ($ref): /schemas/net/ethernet-connector.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-id0141.0e90", "ethernet-phy-ieee802.3-c45";
interrupt-parent = <&PIC>;
interrupts = <35 1>;
reg = <0>;
resets = <&rst 8>;
reset-names = "phy";
reset-gpios = <&gpio1 4 1>;
reset-assert-us = <1000>;
reset-deassert-us = <2000>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
/* Fast Ethernet port, with only 2 pairs wired */
mdi {
connector-0 {
pairs = <2>;
media = "BaseT";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 14: The dt-schema tools will generate a select statement first by using
Line 15: the compatible, and second by using the node name if any. In our
Line 16: case, the node name is the one we want to match on, while the
Line 17: compatible is optional.
Generic Ethernet Switch Port
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-switch-port.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>"
An Ethernet switch port is a component of a switch that manages one MAC, and can pass Ethernet frames.
Shared schema rule ($ref): ethernet-controller.yaml#
Properties and child nodes (properties) #
reg — not listed as required here #
Port number
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Generic Ethernet Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ethernet-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Vladimir Oltean <olteanv@gmail.com>"
Ethernet switches are multi-port Ethernet controllers. Each port has its own number and is represented as its own Ethernet controller. The minimum required functionality is to pass packets to software. They may or may not be able to forward packets automonously between ports.
Automatic schema selection (select) #
false
Not selected automatically by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"marvell,turris-mox-mv88e6085","marvell,turris-mox-mv88e6190"When the condition matches (
then) #Properties and child nodes (
properties)
$nodename— not listed as required hereString pattern (
pattern):"switch[0-3]@[0-3]+$"When the condition does not match (
else) #Properties and child nodes (
properties)
$nodename— not listed as required hereString pattern (
pattern):"^(ethernet-)?switch(@.*)?$"
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Ethernet switch ports
Required in this object (required): "#address-cells", "#size-cells"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Reusable definitions ($defs) #
ethernet-ports #
An ethernet switch without any extra port properties
Shared schema rule ($ref): #
Properties matching a name pattern (patternProperties) #
^(ethernet-)?ports$ — name matches this regular expression
Properties matching a name pattern (patternProperties)
^(ethernet-)?port@[0-9a-f]+$ — name matches this regular expression
Ethernet switch ports
Shared schema rule ($ref): ethernet-switch-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: This condition is here to satisfy the case where certain device
Line 25: nodes have to preserve non-standard names because of
Line 26: backward-compatibility with boot loaders inspecting certain
Line 27: node names.
Faraday Technology FTGMAC100 gigabit ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/faraday,ftgmac100.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Po-Yu Chuang <ratbert@faraday-tech.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"faraday,ftgmac100"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"aspeed,ast2400-mac","aspeed,ast2500-mac","aspeed,ast2600-mac"Item 2
Exact value (
const):"faraday,ftgmac100"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
MAC IP clock
Item 2
RMII RCLK gate for AST2500/2600
resets — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"MACCLK"
Item 2
Exact value (
const):"RCLK"
phy-mode — not listed as required here #
Allowed values (enum): "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid", "rmii"
phy-handle — not listed as required here #
true — No constraints added by this property rule.
use-ncsi — not listed as required here #
Use the NC-SI stack instead of an MDIO PHY. Currently assumes rmii (100bT) but kept as a separate property in case NC-SI grows support for a gigabit link.
Value type (type): "boolean"
no-hw-checksum — not listed as required here #
Used to disable HW checksum support. Here for backward compatibility as the driver now should have correct defaults based on the SoC.
Value type (type): "boolean"
Deprecated (deprecated): true
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required here
true— No constraints added by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@1e660000 {
compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
reg = <0x1e660000 0x180>;
interrupts = <2>;
use-ncsi;
};
ethernet@1e680000 {
compatible = "aspeed,ast2500-mac", "faraday,ftgmac100";
reg = <0x1e680000 0x180>;
interrupts = <2>;
phy-handle = <&phy>;
phy-mode = "rgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Network for cpm enet
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,cpm-enet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,cpm1-scc-enet","fsl,cpm2-scc-enet","fsl,cpm1-fec-enet","fsl,cpm2-fcc-enet","fsl,qe-enet"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,cpm2-fcc-enet"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupts — required here #
Maximum number of items (maxItems): 1
fsl,cpm-command — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
cpm command
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@11300 {
compatible = "fsl,mpc8272-fcc-enet",
"fsl,cpm2-fcc-enet";
reg = <0x11300 0x20 0x8400 0x100 0x11390 1>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <20 8>;
interrupt-parent = <&pic>;
phy-handle = <&phy0>;
fsl,cpm-command = <0x12000300>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale CPM MDIO Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,pq1-fec-mdio","fsl,cpm2-mdio-bitbang"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fsl,mpc8272ads-mdio-bitbang"Item 2
Exact value (
const):"fsl,mpc8272-mdio-bitbang"Item 3
Exact value (
const):"fsl,cpm2-mdio-bitbang"
reg — required here #
Maximum number of items (maxItems): 1
fsl,mdio-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pin of port C controlling mdio data
fsl,mdc-pin — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pin of port C controlling mdio clock
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@10d40 {
compatible = "fsl,mpc8272ads-mdio-bitbang",
"fsl,mpc8272-mdio-bitbang",
"fsl,cpm2-mdio-bitbang";
reg = <0x10d40 0x14>;
#address-cells = <1>;
#size-cells = <0>;
fsl,mdio-pin = <12>;
fsl,mdc-pin = <13>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Integrated Endpoint Register Block
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,enetc-ierb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The fsl_enetc driver can probe on the Integrated Endpoint Register Block, which preconfigures the FIFO limits for the ENETC ports.
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>", "Vladimir Oltean <vladimir.oltean@nxp.com>", "Wei Fang <wei.fang@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,ls1028a-enetc-ierb"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
endpoint-config@f0800000 {
compatible = "fsl,ls1028a-enetc-ierb";
reg = <0xf0800000 0x10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ENETC external MDIO PCIe endpoint device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,enetc-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
NETC provides an external master MDIO interface (EMDIO) for managing external devices (PHYs). EMDIO supports both Clause 22 and 45 protocols. And the EMDIO provides a means for different software modules to share a single set of MDIO signals to access their PHYs.
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>", "Vladimir Oltean <vladimir.oltean@nxp.com>", "Wei Fang <wei.fang@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,enetc-mdio"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"pci1131,ee00"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml
Rule 2 #
Shared schema rule (
$ref):/schemas/pci/pci-device.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie{
#address-cells = <3>;
#size-cells = <2>;
mdio@0,3 {
compatible = "pci1957,ee01", "fsl,enetc-mdio";
reg = <0x000300 0 0 0 0>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@2 {
reg = <0x2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
The NIC functionality of NXP NETC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,enetc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The NIC functionality in NETC is known as EtherNET Controller (ENETC). ENETC supports virtualization/isolation based on PCIe Single Root IO Virtualization (SR-IOV), advanced QoS with 8 traffic classes and 4 drop resilience levels, and a full range of TSN standards and NIC offload capabilities
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>", "Vladimir Oltean <vladimir.oltean@nxp.com>", "Wei Fang <wei.fang@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,enetc"
Rule 2
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Array item rules (items) #
Item 1
MAC transmit/receive reference clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Optional child node for ENETC instance, otherwise use NETC EMDIO.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/pci/pci-device.yaml
Rule 2 #
Shared schema rule (
$ref):ethernet-controller.yaml
Rule 3 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
pcie {
#address-cells = <3>;
#size-cells = <2>;
ethernet@0,0 {
compatible = "pci1957,e100", "fsl,enetc";
reg = <0x000000 0 0 0 0>;
phy-handle = <&sgmii_phy0>;
phy-connection-type = "sgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy@2 {
reg = <0x2>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Fast Ethernet Controller (FEC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Wei Fang <wei.fang@nxp.com>", "NXP Linux Team <linux-imx@nxp.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"fsl,imx25-fec","fsl,imx27-fec","fsl,imx28-fec","fsl,imx6q-fec","fsl,mvf600-fec","fsl,s32v234-fec"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx25-fec"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx27-fec"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6q-fec"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 6
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mq-fec"Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8mm-fec","fsl,imx8mn-fec","fsl,imx8mp-fec","fsl,imx93-fec"Item 2
Exact value (
const):"fsl,imx8mq-fec"Item 3
Exact value (
const):"fsl,imx6sx-fec"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8qm-fec"Item 2
Exact value (
const):"fsl,imx6sx-fec"
Rule 9
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx8qm-fec"Item 3
Exact value (
const):"fsl,imx6sx-fec"
Rule 10
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx6ul-fec"Item 3
Exact value (
const):"fsl,imx6q-fec"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
interrupt-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"int0"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"pps"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"int1"Item 3
Exact value (
const):"int2"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"int0"Item 2
Exact value (
const):"int1"Item 3
Exact value (
const):"int2"Item 4
Exact value (
const):"pps"
clocks — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
The "ipg", for MAC ipg_clk_s, ipg_clk_mac_s that are for register accessing. The "ahb", for MAC ipg_clk, ipg_clk_mac that are bus clock. The "ptp"(option), for IEEE1588 timer clock that requires the clock. The "enet_clk_ref"(option), for MAC transmit/receiver reference clock like RGMII TXC clock or RMII reference clock. It depends on board design, the clock is required if RGMII TXC and RMII reference clock source from SOC internal PLL. The "enet_out"(option), output clock for external device, like supply clock for PHY. The clock is required if PHY clock source from SOC. The "enet_2x_txclk"(option), for RGMII sampling clock which fixed at 250Mhz. The clock is required if SoC RGMII enable clock delay.
clock-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
Array item rules (items) #
Allowed values (
enum):"ipg","ahb","ptp","enet_clk_ref","enet_out","enet_2x_txclk"
phy-mode — not listed as required here #
true — No constraints added by this property rule.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
fixed-link — 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.
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
tx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
rx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
phy-supply — not listed as required here #
Regulator that powers the Ethernet PHY.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
fsl,num-tx-queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The property is valid for enet-avb IP, which supports hw multi queues. Should specify the tx queue number, otherwise set tx queue number to 1.
Allowed values (enum): 1, 2, 3
fsl,num-rx-queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The property is valid for enet-avb IP, which supports hw multi queues. Should specify the rx queue number, otherwise set rx queue number to 1.
Allowed values (enum): 1, 2, 3
fsl,magic-packet — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, indicates that the hardware supports waking up via magic packet.
fsl,err006687-workaround-present — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present indicates that the system has the hardware workaround for ERR006687 applied and does not need a software workaround.
fsl,stop-mode — not listed as 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 general purpose register node
Item 2
the gpr register offset for ENET stop request
Item 3
the gpr bit offset for ENET stop request
Register bits of stop mode control, the format is <&gpr req_gpr req_bit>.
fsl,pps-channel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Specifies to which timer instance the PPS signal is routed.
Allowed values (enum): 0, 1, 2, 3
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Specifies the mdio bus in the FEC, used as a container for phy nodes.
phy-reset-gpios — not listed as required here #
Deprecated (deprecated): true
Should specify the gpio for phy reset.
phy-reset-duration — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Reset duration in milliseconds. Should present only if property "phy-reset-gpios" is available. Missing the property will have the duration be 1 millisecond. Numbers greater than 1000 are invalid and 1 millisecond will be used instead.
phy-reset-active-high — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
If present then the reset sequence using the GPIO specified in the "phy-reset-gpios" property is reversed (H=reset state, L=operation state).
phy-reset-post-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Post reset delay in milliseconds. If present then a delay of phy-reset-post-delay milliseconds will be observed after the phy-reset-gpios has been toggled. Can be omitted thus no delay is observed. Delay is in range of 1ms to 1000ms. Other delays are invalid.
iommus — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@83fec000 {
compatible = "fsl,imx51-fec", "fsl,imx27-fec";
reg = <0x83fec000 0x4000>;
interrupts = <87>;
phy-mode = "mii";
phy-reset-gpios = <&gpio2 14 0>;
phy-supply = <®_fec_supply>;
};
ethernet@83fed000 {
compatible = "fsl,imx51-fec", "fsl,imx27-fec";
reg = <0x83fed000 0x4000>;
interrupts = <87>;
phy-mode = "mii";
phy-reset-gpios = <&gpio2 14 0>;
phy-supply = <®_fec_supply>;
phy-handle = <ðphy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 199: Deprecated optional properties:
Line 200: To avoid these, create a phy node according to ethernet-phy.yaml in the same
Line 201: directory, and point the FEC's "phy-handle" property to it. Then use
Line 202: the phy's reset binding, again described by ethernet-phy.yaml.
Line 242: FIXME: We had better set additionalProperties to false to avoid invalid or at
Line 243: least undocumented properties. However, PHY may have a deprecated option to
Line 244: place PHY OF properties in the MAC node, such as Micrel PHY, and we can find
Line 245: these boards which is based on i.MX6QDL.
NXP FMan MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fman-dtsec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Madalin Bucur <madalin.bucur@nxp.com>"
Each FMan has several MACs, each implementing an Ethernet interface. Earlier versions of FMan used the Datapath Three Speed Ethernet Controller (dTSEC) for 10/100/1000 MBit/s speeds, and the 10-Gigabit Ethernet Media Access Controller (10GEC) for 10 Gbit/s speeds. Later versions of FMan use the Multirate Ethernet Media Access Controller (mEMAC) to handle all speeds.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,fman-dtsec", "fsl,fman-xgec", "fsl,fman-memac"
cell-index — required here #
Maximum value (maximum): 64
FManV2:
register[bit] MAC cell-index
============================================================
FM_EPI[16] XGEC 8
FM_EPI[16+n] dTSECn n-1
FM_NPI[11+n] dTSECn n-1
n = 1,..,5
FManV3: register[bit] MAC cell-index ============================================================ FM_EPI[16+n] mEMACn n-1 FM_EPI[25] mEMAC10 9
FM_NPI[11+n] mEMACn n-1
FM_NPI[10] mEMAC10 9
FM_NPI[11] mEMAC9 8
n = 1,..8
FM_EPI and FM_NPI are located in the FMan memory map.
2. SoC registers:
- P2041, P3041, P4080 P5020, P5040:
register[bit] FMan MAC cell
Unit index
============================================================
DCFG_DEVDISR2[7] 1 XGEC 8
DCFG_DEVDISR2[7+n] 1 dTSECn n-1
DCFG_DEVDISR2[15] 2 XGEC 8
DCFG_DEVDISR2[15+n] 2 dTSECn n-1
n = 1,..5
- T1040, T2080, T4240, B4860:
register[bit] FMan MAC cell
Unit index
============================================================
DCFG_CCSR_DEVDISR2[n-1] 1 mEMACn n-1
DCFG_CCSR_DEVDISR2[11+n] 2 mEMACn n-1
n = 1,..6,9,10
EVDISR, DCFG_DEVDISR2 and DCFG_CCSR_DEVDISR2 are located in the specific SoC "Device Configuration/Pin Control" Memory Map.
reg — required here #
Maximum number of items (maxItems): 1
fsl,fman-ports — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 2
An array of two references: the first is the FMan RX port and the second is the TX port used by this MAC.
phys — not listed as required here #
A reference to the SerDes lane(s)
Maximum number of items (maxItems): 1
phy-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"serdes"
pcsphy-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Deprecated (deprecated): true
See pcs-handle.
pcs-handle — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
A reference to the various PCSs (typically found on the SerDes). If pcs-handle-names is absent, and phy-connection-type is "xgmii", then the first reference will be assumed to be for "xfi". Otherwise, if pcs-handle-names is absent, then the first reference will be assumed to be for "sgmii".
pcs-handle-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Array item rules (items) #
The type of each PCS in pcsphy-handle.
tbi-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
A reference to the (TBI-based) PCS
Required in this object (required): "compatible", "cell-index", "reg", "fsl,fman-ports"
Property dependencies (dependencies) #
pcs-handle-names — applies when this property is present #
Also requires: "pcs-handle"
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 hereRule for matching array elements (
contains)Exact value (
const):"fsl,fman-dtsec"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@e0000 {
compatible = "fsl,fman-dtsec";
cell-index = <0>;
reg = <0xe0000 0x1000>;
fsl,fman-ports = <&fman1_rx8 &fman1_tx28>;
ptp-timer = <&ptp_timer>;
tbi-handle = <&tbi0>;
};
ethernet@e8000 {
cell-index = <4>;
compatible = "fsl,fman-memac";
reg = <0xe8000 0x1000>;
fsl,fman-ports = <&fman0_rx_0x0c &fman0_tx_0x2c>;
ptp-timer = <&ptp_timer0>;
pcs-handle = <&pcsphy4>, <&qsgmiib_pcs1>;
pcs-handle-names = "sgmii", "qsgmii";
phys = <&serdes1 1>;
phy-names = "serdes";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Frame Manager MDIO Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fman-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
FMan MDIO Node. The MDIO is a bus to which the PHY devices are connected.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,fman-mdio", "fsl,fman-xmdio", "fsl,fman-memac-mdio"
Must include "fsl,fman-mdio" for 1 Gb/s MDIO from FMan v2. Must include "fsl,fman-xmdio" for 10 Gb/s MDIO from FMan v2. Must include "fsl,fman-memac-mdio" for 1/10 Gb/s MDIO from FMan v3.
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Array item rules (items) #
Item 1
A reference to the input clock of the controller from which the MDC frequency is derived.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
fsl,fman-internal-mdio — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Fman has internal MDIO for internal PCS(Physical Coding Sublayer) PHYs and external MDIO for external PHYs. The settings and programming routines for internal/external MDIO are different. Must be included for internal MDIO.
fsl,erratum-a009885 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates the presence of the A009885 erratum describing that the contents of MDIO_DATA may become corrupt unless it is read within 16 MDC cycles of MDIO_CFG[BSY] being cleared, when performing an MDIO read operation.
fsl,erratum-a011043 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates the presence of the A011043 erratum describing that the MDIO_CFG[MDIO_RD_ER] bit may be falsely set when reading internal PCS registers. MDIO reads to internal PCS registers may result in having the MDIO_CFG[MDIO_RD_ER] bit set, even when there is no error and read data (MDIO_DATA[MDIO_DATA]) is correct. Software may get false read error when reading internal PCS registers through MDIO. As a workaround, all internal MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit. For internal PHY device on internal mdio bus, a PHY node should be created. See the definition of the PHY node in booting-without-of.txt for an example of how to define a PHY (Internal PHY has no interrupt line). - For "fsl,fman-mdio" compatible internal mdio bus, the PHY is TBI PHY. - For "fsl,fman-memac-mdio" compatible internal mdio bus, the PHY is PCS PHY. The PCS PHY address should correspond to the value of the appropriate MDEV_PORT.
little-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
IP block is little-endian mode. The default endian mode is big-endian.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@f1000 {
compatible = "fsl,fman-xmdio";
reg = <0xf1000 0x1000>;
interrupts = <101 2 0 0>;
};
mdio@e3120 {
compatible = "fsl,fman-mdio";
reg = <0xe3120 0xee0>;
fsl,fman-internal-mdio;
#address-cells = <1>;
#size-cells = <0>;
tbi-phy@8 {
reg = <0x8>;
device_type = "tbi-phy";
};
};
mdio@f1000 {
compatible = "fsl,fman-memac-mdio";
reg = <0xf1000 0x1000>;
fsl,fman-internal-mdio;
#address-cells = <1>;
#size-cells = <0>;
pcsphy6: ethernet-phy@0 {
reg = <0x0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Frame Manager MURAM Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fman-muram.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
FMan Internal memory - shared between all the FMan modules. It contains data structures that are common and written to or read by the modules.
FMan internal memory is split into the following parts:
Packet buffering (Tx/Rx FIFOs)
Frames internal context
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,fman-muram"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
muram@0 {
compatible = "fsl,fman-muram";
reg = <0x0 0x28000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Frame Manager Port Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fman-port.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
The Frame Manager (FMan) supports several types of hardware ports:
Ethernet receiver (RX)
Ethernet transmitter (TX)
Offline/Host command (O/H)
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,fman-v2-port-oh", "fsl,fman-v2-port-rx", "fsl,fman-v2-port-tx", "fsl,fman-v3-port-oh", "fsl,fman-v3-port-rx", "fsl,fman-v3-port-tx"
cell-index — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the hardware port id. Each hardware port on the FMan has its own hardware PortID. Super set of all hardware Port IDs available at FMan Reference Manual under "FMan Hardware Ports in Freescale Devices" table. Each hardware port is assigned a 4KB, port-specific page in the FMan hardware port memory region (which is part of the FMan memory map). The first 4 KB in the FMan hardware ports memory region is used for what are called common registers. The subsequent 63 4KB pages are allocated to the hardware ports. The page of a specific port is determined by the cell-index.
reg — required here #
Array item rules (items) #
Item 1
There is one reg region describing the port configuration registers.
fsl,fman-10g-port — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The default port rate is 1G. If this property exists, the port is s 10G port.
fsl,fman-best-effort-port — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The default port rate is 1G. Can be defined only if 10G-support is set. This property marks a best-effort 10G port (10G port that may not be capable of line rate).
Required in this object (required): "compatible", "reg", "cell-index"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
port@a8000 {
compatible = "fsl,fman-v2-port-tx";
reg = <0xa8000 0x1000>;
cell-index = <0x28>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Frame Manager Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,fman.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Due to the fact that the FMan is an aggregation of sub-engines (ports, MACs, etc.) the FMan node will have child nodes for each of them.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,fman"
FMan version can be determined via FM_IP_REV_1 register in the FMan block. The offset is 0xc4 from the beginning of the Frame Processing Manager memory map (0xc3000 from the beginning of the FMan node).
cell-index — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the index of the FMan unit.
The cell-index value may be used by the SoC, to identify the FMan unit in the SoC memory map. In the table below, there's a description of the cell-index use in each SoC:
- P1023: register[bit] FMan unit cell-index ============================================================ DEVDISR[1] 1 0
- P2041, P3041, P4080 P5020, P5040:
register[bit] FMan unit cell-index
============================================================
DCFG_DEVDISR2[6] 1 0
DCFG_DEVDISR2[14] 2 1
(Second FM available only in P4080 and P5040)
- B4860, T1040, T2080, T4240:
register[bit] FMan unit cell-index
============================================================
DCFG_CCSR_DEVDISR2[24] 1 0
DCFG_CCSR_DEVDISR2[25] 2 1
(Second FM available only in T4240)
DEVDISR, DCFG_DEVDISR2 and DCFG_CCSR_DEVDISR2 are located in the specific SoC "Device Configuration/Pin Control" Memory Map.
reg — required here #
Array item rules (items) #
Item 1
BMI configuration registers.
Item 2
QMI configuration registers.
Item 3
DMA configuration registers.
Item 4
FPM configuration registers.
Item 5
FMan controller configuration registers.
Minimum number of items (minItems): 1
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fmanclk"
interrupts — required here #
Array item rules (items) #
Item 1
The first element is associated with the event interrupts.
Item 2
the second element is associated with the error interrupts.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
ptimer-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
see ptp/fsl,ptp.yaml
fsl,qman-channel-range — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Specifies the range of the available dedicated channels in the FMan. The first cell specifies the beginning of the range and the second cell specifies the number of channels
Array item rules (items) #
Item 1
The first cell specifies the beginning of the range.
Item 2
The second cell specifies the number of channels. Further information available at: "Work Queue (WQ) Channel Assignments in the QMan" section in DPAA Reference Manual.
fsl,qman — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
See soc/fsl/qman.txt
fsl,bman — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
See soc/fsl/bman.txt
fsl,erratum-a050385 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
A boolean property. Indicates the presence of the erratum A050385 which indicates that DMA transactions that are split can result in a FMan lock.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
Properties matching a name pattern (patternProperties) #
^muram@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): fsl,fman-muram.yaml
^port@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): fsl,fman-port.yaml
^ethernet@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): fsl,fman-dtsec.yaml
^mdio@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): fsl,fman-mdio.yaml
^phc@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/ptp/fsl,ptp.yaml
Required in this object (required): "compatible", "cell-index", "reg", "ranges", "clocks", "clock-names", "interrupts", "fsl,qman-channel-range"
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>
fman@400000 {
compatible = "fsl,fman";
reg = <0x400000 0x100000>;
ranges = <0 0x400000 0x100000>;
#address-cells = <1>;
#size-cells = <1>;
cell-index = <1>;
clocks = <&fman_clk>;
clock-names = "fmanclk";
interrupts = <96 IRQ_TYPE_EDGE_FALLING>,
<16 IRQ_TYPE_EDGE_FALLING>;
fsl,qman-channel-range = <0x40 0xc>;
muram@0 {
compatible = "fsl,fman-muram";
reg = <0x0 0x28000>;
};
port@81000 {
cell-index = <1>;
compatible = "fsl,fman-v2-port-oh";
reg = <0x81000 0x1000>;
};
fman1_rx_0x8: port@88000 {
cell-index = <0x8>;
compatible = "fsl,fman-v2-port-rx";
reg = <0x88000 0x1000>;
};
fman1_tx_0x28: port@a8000 {
cell-index = <0x28>;
compatible = "fsl,fman-v2-port-tx";
reg = <0xa8000 0x1000>;
};
ethernet@e0000 {
compatible = "fsl,fman-dtsec";
cell-index = <0>;
reg = <0xe0000 0x1000>;
ptp-timer = <&ptp_timer>;
fsl,fman-ports = <&fman1_rx_0x8 &fman1_tx_0x28>;
tbi-handle = <&tbi5>;
};
ptp_timer: phc@fe000 {
compatible = "fsl,fman-ptp-timer";
reg = <0xfe000 0x1000>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
};
mdio@f1000 {
compatible = "fsl,fman-xmdio";
reg = <0xf1000 0x1000>;
interrupts = <101 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Gianfar (TSEC) MDIO Device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,gianfar-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes the MDIO is a bus to which the PHY devices are connected. For each device that exists on this bus, a child node should be created. Some TSECs are associated with an internal Ten-Bit Interface (TBI) PHY. This PHY is accessed through the local MDIO bus. These buses are defined similarly to the mdio buses, except they are compatible with "fsl,gianfar-tbi". The TBI PHYs underneath them are similar to normal PHYs, but the reg property is considered instructive, rather than descriptive. The reg property should be chosen so it doesn't interfere with other PHYs on the bus.
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Automatic schema selection (select) #
Exactly one of these rules must match (
oneOf) #Rule 1 #
Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"gianfar"
device_type— required hereExact value (
const):"mdio"Rule 2 #
Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"fsl,gianfar-tbi","fsl,gianfar-mdio","fsl,etsec2-tbi","fsl,etsec2-mdio","fsl,ucc-mdio","ucc_geth_phy"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "fsl,gianfar-tbi", "fsl,gianfar-mdio", "fsl,etsec2-tbi", "fsl,etsec2-mdio", "fsl,ucc-mdio", "gianfar", "ucc_geth_phy"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Offset and length of the register set for the device
Item 2
Optionally, the offset and length of the TBIPA register (TBI PHY address register). If TBIPA register is not specified, the driver will attempt to infer it from the register set specified (your mileage may vary).
device_type — not listed as required here #
Exact value (const): "mdio"
Required in this object (required): "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ucc_geth_phy"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <1>;
#size-cells = <1>;
mdio@24520 {
reg = <0x24520 0x20>;
compatible = "fsl,gianfar-mdio";
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: This is needed to distinguish gianfar.yaml and gianfar-mdio.yaml, because
Line 25: both use compatible = "gianfar" (with different device_type values)
Freescale Three-Speed Ethernet Controller (TSEC), "Gianfar"
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,gianfar.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Automatic schema selection (select) #
Exactly one of these rules must match (
oneOf) #Rule 1 #
Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"gianfar"
device_type— required hereExact value (
const):"network"Rule 2 #
Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"fsl,etsec2"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "gianfar", "fsl,etsec2"
device_type — not listed as required here #
Exact value (const): "network"
model — required here #
Allowed values (enum): "FEC", "TSEC", "eTSEC"
reg — not listed as required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
#size-cells — not listed as required here #
cell-index — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Transmit interrupt or single combined interrupt
Item 2
Receive interrupt
Item 3
Error interrupt
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
fsl,magic-packet — not listed as required here #
Value type (type): "boolean"
If present, indicates that the hardware supports waking up via magic packet.
fsl,wake-on-filer — not listed as required here #
Value type (type): "boolean"
If present, indicates that the hardware supports waking up by Filer General Purpose Interrupt (FGPI) asserted on the Rx int line. This is an advanced power management capability allowing certain packet types (user) defined by filer rules to wake up the system.
bd-stash — not listed as required here #
Value type (type): "boolean"
If present, indicates that the hardware supports stashing buffer descriptors in the L2.
rx-stash-len — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Denotes the number of bytes of a received buffer to stash in the L2.
rx-stash-idx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Denotes the index of the first byte from the received buffer to stash in the L2.
fsl,num_rx_queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of receive queues
Exact value (const): 8
fsl,num_tx_queues — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of transmit queues
Exact value (const): 8
tbi-handle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Reference (phandle) to the TBI node
Required in this object (required): "compatible", "model"
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/net/fsl,gianfar-mdio.yaml#
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 hereRule for matching array elements (
contains)Exact value (
const):"fsl,etsec2"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^queue-group@[0-9a-f]+$— name matches this regular expressionValue type (
type):"object"Properties and child nodes (
properties)
reg— required hereMaximum number of items (
maxItems):1
interrupts— required hereArray item rules (
items)Item 1
Transmit interrupt
Item 2
Receive interrupt
Item 3
Error interrupt
Required in this object (
required):"reg","interrupts"Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
When the condition does not match (
else) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
model— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereArray item rules (
items)Item 1
Transmit interrupt
Item 2
Receive interrupt
Item 3
Error interrupt
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@24000 {
device_type = "network";
model = "TSEC";
compatible = "gianfar";
reg = <0x24000 0x1000>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <29 2>, <30 2>, <34 2>;
interrupt-parent = <&mpic>;
phy-handle = <&phy0>;
};
#include <dt-bindings/interrupt-controller/irq.h>
ethernet@24000 {
compatible = "gianfar";
reg = <0x24000 0x1000>;
ranges = <0x0 0x24000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
cell-index = <0>;
device_type = "network";
model = "eTSEC";
local-mac-address = [ 00 00 00 00 00 00 ];
interrupts = <32 IRQ_TYPE_LEVEL_LOW>,
<33 IRQ_TYPE_LEVEL_LOW>,
<34 IRQ_TYPE_LEVEL_LOW>;
interrupt-parent = <&ipic>;
mdio@520 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,gianfar-mdio";
reg = <0x520 0x20>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
ethernet {
compatible = "fsl,etsec2";
ranges;
device_type = "network";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&gic>;
model = "eTSEC";
fsl,magic-packet;
dma-coherent;
queue-group@2d10000 {
reg = <0x0 0x2d10000 0x0 0x1000>;
interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
};
queue-group@2d14000 {
reg = <0x0 0x2d14000 0x0 0x1000>;
interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 12: This is needed to distinguish gianfar.yaml and gianfar-mdio.yaml, because
Line 13: both use compatible = "gianfar" (with different device_type values)
Line 125: eTSEC2 controller nodes have "queue group" subnodes and don't need a "reg"
Line 126: property.
Line 156: TSEC and eTSEC devices require three interrupts
DPAA2 MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/fsl,qoriq-mc-dpmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ioana Ciornei <ioana.ciornei@nxp.com>"
This binding represents the DPAA2 MAC objects found on the fsl-mc bus and located under the 'dpmacs' node for the fsl-mc bus DTS node.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "fsl,qoriq-mc-dpmac"
reg — required here #
Maximum number of items (maxItems): 1
The DPMAC number
pcs-handle — not listed as required here #
Maximum number of items (maxItems): 1
A reference to a node representing a PCS PHY device found on the internal MDIO bus.
phys — not listed as required here #
A reference to the SerDes lane(s)
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
dpmacs {
#address-cells = <1>;
#size-cells = <0>;
ethernet@4 {
compatible = "fsl,qoriq-mc-dpmac";
reg = <0x4>;
phy-handle = <&mdio1_phy6>;
phy-connection-type = "qsgmii";
managed = "in-band-status";
pcs-handle = <&pcs3_1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IDT 79rc3243x Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/idt,3243x-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Ethernet controller integrated into IDT 79RC3243x family SoCs
Maintainers (maintainers): "Thomas Bogendoerfer <tsbogend@alpha.franken.de>"
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): "idt,3243x-emac"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"emac"
Item 2
Exact value (
const):"dma_rx"
Item 3
Exact value (
const):"dma_tx"
interrupts — required here #
Array item rules (items) #
Item 1
RX interrupt
Item 2
TX interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mdioclk"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@60000 {
compatible = "idt,3243x-emac";
reg = <0x60000 0x10000>,
<0x40000 0x14>,
<0x40014 0x14>;
reg-names = "emac", "dma_rx", "dma_tx";
interrupt-parent = <&rcpic3>;
interrupts = <0>, <1>;
interrupt-names = "rx", "tx";
clocks = <&iclk>;
clock-names = "mdioclk";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MAC in Ingenic SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ingenic,mac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"
The Ethernet Media Access Controller in Ingenic SoCs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ingenic,jz4775-mac", "ingenic,x1000-mac", "ingenic,x1600-mac", "ingenic,x1830-mac", "ingenic,x2000-mac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "stmmaceth"
mode-reg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
An extra syscon register that control ethernet interface and timing delay
rx-clk-delay-ps — not listed as required here #
RGMII receive clock delay defined in pico seconds
tx-clk-delay-ps — not listed as required here #
RGMII transmit clock delay defined in pico seconds
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "mode-reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,x1000-cgu.h>
mac: ethernet@134b0000 {
compatible = "ingenic,x1000-mac";
reg = <0x134b0000 0x2000>;
interrupt-parent = <&intc>;
interrupts = <55>;
interrupt-names = "macirq";
clocks = <&cgu X1000_CLK_MAC>;
clock-names = "stmmaceth";
mode-reg = <&mac_phy_ctrl>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intel DWMAC glue layer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/intel,dwmac-plat.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vineetha G. Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-4.10a"
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
PTP reference clock
Item 3
Tx clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"ptp_ref"
Item 3
Exact value (
const):"tx_clk"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "macirq"
Required in this object (required): "compatible", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#define MOVISOC_KMB_PSS_GBE
#define MOVISOC_KMB_PSS_AUX_GBE_PTP
#define MOVISOC_KMB_PSS_AUX_GBE_TX
stmmac_axi_setup: stmmac-axi-config {
snps,lpi_en;
snps,wr_osr_lmt = <0x0>;
snps,rd_osr_lmt = <0x2>;
snps,blen = <0 0 0 0 16 8 4>;
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <2>;
snps,rx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,map-to-dma-channel = <0x0>;
snps,priority = <0x0>;
};
queue1 {
snps,dcb-algorithm;
snps,map-to-dma-channel = <0x1>;
snps,priority = <0x1>;
};
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <2>;
snps,tx-sched-wrr;
queue0 {
snps,weight = <0x10>;
snps,dcb-algorithm;
snps,priority = <0x0>;
};
queue1 {
snps,weight = <0x10>;
snps,dcb-algorithm;
snps,priority = <0x1>;
};
};
gmac0: ethernet@3a000000 {
compatible = "intel,keembay-dwmac", "snps,dwmac-4.10a";
interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
reg = <0x3a000000 0x8000>;
snps,perfect-filter-entries = <128>;
phy-handle = <ð_phy0>;
phy-mode = "rgmii";
rx-fifo-depth = <4096>;
tx-fifo-depth = <4096>;
clock-names = "stmmaceth", "ptp_ref", "tx_clk";
clocks = <&scmi_clk MOVISOC_KMB_PSS_GBE>,
<&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_PTP>,
<&scmi_clk MOVISOC_KMB_PSS_AUX_GBE_TX>;
snps,pbl = <0x4>;
snps,axi-config = <&stmmac_axi_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,tso;
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 58: FIXME: Remove defines and include the correct header file
Line 59: once it is available in mainline.
Intel IXP46x PTP Timer (TSYNC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/intel,ixp46x-ptp-timer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Intel IXP46x PTP timer is known in the manual as IEEE1588 Hardware Assist and Time Synchronization Hardware Assist TSYNC provides a PTP timer. It exists in the Intel IXP45x and IXP46x XScale SoCs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,ixp46x-ptp-timer"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Interrupt to trigger master mode snapshot from the PRP timer, usually a GPIO interrupt.
Item 2
Interrupt to trigger slave mode snapshot from the PRP timer, usually a GPIO interrupt.
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"master"
Item 2
Exact value (
const):"slave"
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names"
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>
ptp-timer@c8010000 {
compatible = "intel,ixp46x-ptp-timer";
reg = <0xc8010000 0x1000>;
interrupt-parent = <&gpio0>;
interrupts = <8 IRQ_TYPE_EDGE_FALLING>, <7 IRQ_TYPE_EDGE_FALLING>;
interrupt-names = "master", "slave";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Intel IXP4xx ethernet
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/intel,ixp4xx-ethernet.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): "Linus Walleij <linusw@kernel.org>"
The Intel IXP4xx ethernet makes use of the IXP4xx NPE (Network Processing Engine) and the IXP4xx Queue Manager to process the ethernet frames. It can optionally contain an MDIO bus to talk to PHYs.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,ixp4xx-ethernet"
reg — required here #
Maximum number of items (maxItems): 1
Ethernet MMIO address range
queue-rx — 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 the RX queue node
Item 2
RX queue instance to use
phandle to the RX queue on the NPE
queue-txready — 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 the TX READY queue node
Item 2
TX READY queue instance to use
phandle to the TX READY queue on the NPE
phy-mode — not listed as required here #
true — No constraints added by this property rule.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
fixed-link — not listed as required here #
true — No constraints added by this property rule.
intel,npe-handle — 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 the NPE this ethernet instance is using
Item 2
the NPE instance to use
phandle to the NPE this ethernet instance is using and the instance to use in the second cell
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
optional node for embedded MDIO controller
Required in this object (required): "compatible", "reg", "queue-rx", "queue-txready", "intel,npe-handle"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
npe: npe@c8006000 {
compatible = "intel,ixp4xx-network-processing-engine";
reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
};
ethernet@c8009000 {
compatible = "intel,ixp4xx-ethernet";
reg = <0xc8009000 0x1000>;
queue-rx = <&qmgr 4>;
queue-txready = <&qmgr 21>;
intel,npe-handle = <&npe 1>;
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
ethernet@c800c000 {
compatible = "intel,ixp4xx-ethernet";
reg = <0xc800c000 0x1000>;
queue-rx = <&qmgr 3>;
queue-txready = <&qmgr 20>;
intel,npe-handle = <&npe 2>;
phy-mode = "rgmii";
phy-handle = <&phy2>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
reg = <1>;
};
phy2: ethernet-phy@2 {
reg = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2018 Linaro Ltd.
Intel IXP4xx V.35 WAN High Speed Serial Link (HSS)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/intel,ixp4xx-hss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Intel IXP4xx HSS makes use of the IXP4xx NPE (Network Processing Engine) and the IXP4xx Queue Manager to process V.35 Wideband Modem (WAN) links.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,ixp4xx-hss"
reg — required here #
Maximum number of items (maxItems): 1
The HSS instance
intel,npe-handle — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Array item rules (
items)Item 1
phandle to the NPE this HSS instance is using
Item 2
the NPE instance number
phandle to the NPE this HSS instance is using and the instance to use in the second cell
intel,queue-chl-rxtrig — 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 the RX trigger queue on the NPE
Item 2
the queue instance number
phandle to the RX trigger queue on the NPE
intel,queue-chl-txready — 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 the TX ready queue on the NPE
Item 2
the queue instance number
phandle to the TX ready queue on the NPE
intel,queue-pkt-rx — 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 the RX queue on the NPE
Item 2
the queue instance number
phandle to the packet RX queue on the NPE
intel,queue-pkt-tx — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 4
Array item rules (items) #
Array item rules (
items)Item 1
phandle to the TX queue on the NPE
Item 2
the queue instance number
phandle to the packet TX0, TX1, TX2 and TX3 queues on the NPE
intel,queue-pkt-rxfree — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 4
Array item rules (items) #
Array item rules (
items)Item 1
phandle to the RXFREE queue on the NPE
Item 2
the queue instance number
phandle to the packet RXFREE0, RXFREE1, RXFREE2 and RXFREE3 queues on the NPE
intel,queue-pkt-txdone — 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 the TXDONE queue on the NPE
Item 2
the queue instance number
phandle to the packet TXDONE queue on the NPE
cts-gpios — required here #
Maximum number of items (maxItems): 1
Clear To Send (CTS) GPIO line
rts-gpios — required here #
Maximum number of items (maxItems): 1
Ready To Send (RTS) GPIO line
dcd-gpios — required here #
Maximum number of items (maxItems): 1
Data Carrier Detect (DCD) GPIO line
dtr-gpios — required here #
Maximum number of items (maxItems): 1
Data Terminal Ready (DTR) GPIO line
clk-internal-gpios — required here #
Maximum number of items (maxItems): 1
Clock internal GPIO line, driving this high will make the HSS use internal clocking as opposed to external clocking
Required in this object (required): "compatible", "reg", "intel,npe-handle", "intel,queue-chl-rxtrig", "intel,queue-chl-txready", "intel,queue-pkt-rx", "intel,queue-pkt-tx", "intel,queue-pkt-rxfree", "intel,queue-pkt-txdone", "cts-gpios", "rts-gpios", "dcd-gpios", "dtr-gpios", "clk-internal-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2021 Linaro Ltd.
Lantiq Xway ETOP Ethernet driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/lantiq,etop-xway.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "John Crispin <john@phrozen.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet@[0-9a-f]+$"
compatible — required here #
Exact value (const): "lantiq,etop-xway"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
TX interrupt
Item 2
RX interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
lantiq,tx-burst-length — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
TX programmable burst length.
Allowed values (enum): 2, 4, 8
lantiq,rx-burst-length — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RX programmable burst length.
Allowed values (enum): 2, 4, 8
phy-mode — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "lantiq,tx-burst-length", "lantiq,rx-burst-length", "phy-mode"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@e180000 {
compatible = "lantiq,etop-xway";
reg = <0xe180000 0x40000>;
interrupt-parent = <&icu0>;
interrupts = <73>, <78>;
interrupt-names = "tx", "rx";
lantiq,tx-burst-length = <8>;
lantiq,rx-burst-length = <8>;
phy-mode = "rmii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Lantiq PEF2256
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/lantiq,pef2256.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Herve Codina <herve.codina@bootlin.com>"
The Lantiq PEF2256, also known as Infineon PEF2256 or FALC56, is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"lantiq,pef2256"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Master Clock
Item 2
System Clock Receive
Item 3
System Clock Transmit
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mclk"
Item 2
Exact value (
const):"sclkr"
Item 3
Exact value (
const):"sclkx"
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO used to reset the device.
Maximum number of items (maxItems): 1
pinctrl — not listed as required here #
Shared schema rule ($ref): /schemas/pinctrl/pinctrl.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/pinctrl/pinmux-node.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
pins — required here
Allowed values (enum): "RPA", "RPB", "RPC", "RPD", "XPA", "XPB", "XPC", "XPD"
function — required here
Allowed values (enum): "SYPR", "RFM", "RFMB", "RSIGM", "RSIG", "DLR", "FREEZE", "RFSP", "LOS", "SYPX", "XFMS", "XSIG", "TCLK", "XMFB", "XSIGM", "DLX", "XCLK", "XLT", "GPI", "GPOH", "GPOL"
Required in this object (required): "pins", "function"
lantiq,data-rate-bps — not listed as required here #
Allowed values (enum): 2048000, 4096000, 8192000, 16384000
Default value (default): 2048000
Data rate (bit per seconds) on the system highway.
lantiq,clock-falling-edge — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Data is sent on falling edge of the clock (and received on the rising edge). If 'clock-falling-edge' is not present, data is sent on the rising edge (and received on the falling edge).
lantiq,channel-phase — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 0
The pef2256 delivers a full frame (32 8-bit time-slots in E1 and 24 8-bit
time-slots 8 8-bit signaling in E1/J1) every 125us. This lead to a data
rate of 2048000 bit/s. When lantiq,data-rate-bps is more than 2048000
bit/s, the data (all 32 8-bit) present in the frame are interleave with
unused time-slots. The lantiq,channel-phase property allows to set the
correct alignment of the interleave mechanism.
For instance, suppose lantiq,data-rate-bps = 8192000 (ie 4*2048000), and
lantiq,channel-phase = 2, the interleave schema with unused time-slots
(nu) and used time-slots (XX) for TSi is
nu nu XX nu nu nu XX nu nu nu XX nu
<-- TSi --> <- TSi+1 -> <- TSi+2 ->
With lantiq,data-rate-bps = 8192000, and lantiq,channel-phase = 1, the
interleave schema is
nu XX nu nu nu XX nu nu nu XX nu nu
<-- TSi --> <- TSi+1 -> <- TSi+2 ->
With lantiq,data-rate-bps = 4096000 (ie 2*2048000), and
lantiq,channel-phase = 1, the interleave schema is
nu XX nu XX nu XX
<-- TSi --> <- TSi+1 -> <- TSi+2 ->
Properties matching a name pattern (patternProperties) #
^codec(-([0-9]|[1-2][0-9]|3[0-1]))?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/sound/dai-common.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Codec provided by the pef2256. This codec allows to use some of the PCM system highway time-slots as audio channels to transport audio data over the E1/T1/J1 lines. The time-slots used by the codec must be set and so, the properties 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes that involve the codec. The codec uses 8-bit time-slots. 'dai-tdm-tdm-slot-with' must be set to 8. The tx and rx masks define the pef2256 time-slots assigned to the codec.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "lantiq,pef2256-codec"
#sound-dai-cells — required here
Exact value (const): 0
Required in this object (required): "compatible", "#sound-dai-cells"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
pef2256: framer@2000000 {
compatible = "lantiq,pef2256";
reg = <0x2000000 0x100>;
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
interrupt-parent = <&intc>;
clocks = <&clk_mclk>, <&clk_sclkr>, <&clk_sclkx>;
clock-names = "mclk", "sclkr", "sclkx";
reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
lantiq,data-rate-bps = <4096000>;
pinctrl {
pef2256_rpa_sypr: rpa-pins {
pins = "RPA";
function = "SYPR";
};
pef2256_xpa_sypx: xpa-pins {
pins = "XPA";
function = "SYPX";
};
};
pef2256_codec0: codec-0 {
compatible = "lantiq,pef2256-codec";
#sound-dai-cells = <0>;
sound-name-prefix = "PEF2256_0";
};
pef2256_codec1: codec-1 {
compatible = "lantiq,pef2256-codec";
#sound-dai-cells = <0>;
sound-name-prefix = "PEF2256_1";
};
};
sound {
compatible = "simple-audio-card";
#address-cells = <1>;
#size-cells = <0>;
simple-audio-card,dai-link@0 { /* CPU DAI1 - pef2256 codec 1 */
reg = <0>;
cpu {
sound-dai = <&cpu_dai1>;
};
codec {
sound-dai = <&pef2256_codec0>;
dai-tdm-slot-num = <4>;
dai-tdm-slot-width = <8>;
/* TS 1, 2, 3, 4 */
dai-tdm-slot-tx-mask = <0 1 1 1 1>;
dai-tdm-slot-rx-mask = <0 1 1 1 1>;
};
};
simple-audio-card,dai-link@1 { /* CPU DAI2 - pef2256 codec 2 */
reg = <1>;
cpu {
sound-dai = <&cpu_dai2>;
};
codec {
sound-dai = <&pef2256_codec1>;
dai-tdm-slot-num = <4>;
dai-tdm-slot-width = <8>;
/* TS 5, 6, 7, 8 */
dai-tdm-slot-tx-mask = <0 0 0 0 0 1 1 1 1>;
dai-tdm-slot-rx-mask = <0 0 0 0 0 1 1 1 1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Lantiq xRX200 GSWIP PMAC Ethernet driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/lantiq,xrx200-net.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hauke Mehrtens <hauke@hauke-m.de>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^ethernet@[0-9a-f]+$"
compatible — required here #
Exact value (const): "lantiq,xrx200-net"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
TX interrupt
Item 2
RX interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@e10b308 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "lantiq,xrx200-net";
reg = <0xe10b308 0xcf8>;
interrupt-parent = <&icu0>;
interrupts = <73>, <72>;
interrupt-names = "tx", "rx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LiteX LiteETH ethernet device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/litex,liteeth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Joel Stanley <joel@jms.id.au>"
LiteETH is a small footprint and configurable Ethernet core for FPGA based system on chips.
The hardware source is Open Source and can be found on at https://github.com/enjoy-digital/liteeth/.
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): "litex,liteeth"
reg — required here #
Array item rules (items) #
Item 1
MAC registers
Item 2
MDIO registers
Item 3
Packet buffer
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"mdio"
Item 3
Exact value (
const):"buffer"
interrupts — required here #
Maximum number of items (maxItems): 1
litex,rx-slots — not listed as required here #
Number of slots in the receive buffer
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Default value (default): 2
litex,tx-slots — not listed as required here #
Number of slots in the transmit buffer
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Default value (default): 2
litex,slot-size — not listed as required here #
Size in bytes of a slot in the tx/rx buffer
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2048
Default value (default): 2048
mac-address — 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.
phy-handle — not listed as required here #
true — No constraints added by this property rule.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mac: ethernet@8020000 {
compatible = "litex,liteeth";
reg = <0x8021000 0x100>,
<0x8020800 0x100>,
<0x8030000 0x2000>;
reg-names = "mac", "mdio", "buffer";
litex,rx-slots = <2>;
litex,tx-slots = <2>;
litex,slot-size = <0x800>;
interrupts = <0x11 0x1>;
phy-handle = <ð_phy>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
eth_phy: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause
Loongson-1B Gigabit Ethernet MAC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"
Loongson-1B Gigabit Ethernet MAC Controller is based on Synopsys DesignWare MAC (version 3.50a).
Main features - Dual 10/100/1000Mbps GMAC controllers - Full-duplex operation (IEEE 802.3x flow control automatic transmission) - Half-duplex operation (CSMA/CD Protocol and back-pressure support) - RX Checksum Offload - TX Checksum insertion - MII interface - RGMII interface
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"snps,dwmac-3.50a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
loongson,ls1-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon containing some extra configurations including PHY interface mode.
phy-mode — not listed as required here #
Allowed values (enum): "mii", "rgmii-id"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "loongson,ls1-syscon"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/loongson,ls1x-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>
gmac0: ethernet@1fe10000 {
compatible = "loongson,ls1b-gmac", "snps,dwmac-3.50a";
reg = <0x1fe10000 0x10000>;
clocks = <&clkc LS1X_CLKID_AHB>;
clock-names = "stmmaceth";
interrupt-parent = <&intc1>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
loongson,ls1-syscon = <&syscon>;
phy-handle = <&phy0>;
phy-mode = "mii";
snps,pbl = <1>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0x0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Loongson-1C Ethernet MAC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/loongson,ls1c-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Keguang Zhang <keguang.zhang@gmail.com>"
Loongson-1C Ethernet MAC Controller is based on Synopsys DesignWare MAC (version 3.50a).
Main features - 10/100Mbps - Full-duplex operation (IEEE 802.3x flow control automatic transmission) - Half-duplex operation (CSMA/CD Protocol and back-pressure support) - IEEE 802.1Q VLAN tag detection for reception frames - MII interface - RMII interface
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"snps,dwmac-3.50a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
loongson,ls1-syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon containing some extra configurations including PHY interface mode.
phy-mode — not listed as required here #
Allowed values (enum): "mii", "rmii"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "loongson,ls1-syscon"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/loongson,ls1x-clk.h>
#include <dt-bindings/interrupt-controller/irq.h>
emac: ethernet@1fe10000 {
compatible = "loongson,ls1c-emac", "snps,dwmac-3.50a";
reg = <0x1fe10000 0x10000>;
clocks = <&clkc LS1X_CLKID_AHB>;
clock-names = "stmmaceth";
interrupt-parent = <&intc1>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
loongson,ls1-syscon = <&syscon>;
phy-handle = <&phy0>;
phy-mode = "mii";
snps,pbl = <1>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@13 {
reg = <0x13>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell Aquantia Ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,aquantia.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
Marvell Aquantia Ethernet PHY require a firmware to be loaded to actually work.
This can be done and is implemented by OEM in 3 different way:
- Attached SPI flash directly to the PHY with the firmware. The PHY
will self load the firmware in the presence of this configuration.
- Read from a dedicated partition on system NAND declared in an
NVMEM cell, and loaded to the PHY using its mailbox interface.
- Manually provided firmware loaded from a file in the filesystem.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id03a1.b445","ethernet-phy-id03a1.b460","ethernet-phy-id03a1.b4a2","ethernet-phy-id03a1.b4d0","ethernet-phy-id03a1.b4e0","ethernet-phy-id03a1.b5c2","ethernet-phy-id03a1.b4b0","ethernet-phy-id03a1.b662","ethernet-phy-id03a1.b712","ethernet-phy-id31c3.1c12"
Properties and child nodes (properties) #
reg — required here #
Maximum number of items (maxItems): 1
firmware-name — not listed as required here #
specify the name of PHY firmware to load
marvell,mdi-cfg-order — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
force normal (0) or reverse (1) order of MDI pairs, overriding MDI_CFG bootstrap pin.
nvmem-cells — not listed as required here #
phandle to the firmware nvmem cell
Maximum number of items (maxItems): 1
nvmem-cell-names — not listed as required here #
Exact value (const): "firmware"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-id31c3.1c12",
"ethernet-phy-ieee802.3-c45";
reg = <0>;
firmware-name = "AQR-G4_v5.4.C-AQR_CIG_WF-1945_0x8_ID44776_VER1630.cld";
};
ethernet-phy@1 {
compatible = "ethernet-phy-id31c3.1c12",
"ethernet-phy-ieee802.3-c45";
reg = <1>;
nvmem-cells = <&aqr_fw>;
nvmem-cell-names = "firmware";
};
};
flash {
compatible = "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
/* ... */
partition@650000 {
compatible = "nvmem-cells";
label = "0:ethphyfw";
reg = <0x650000 0x80000>;
read-only;
#address-cells = <1>;
#size-cells = <1>;
aqr_fw: aqr_fw@0 {
reg = <0x0 0x5f42a>;
};
};
/* ... */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell Armada 370/XP/3700/AC5 Ethernet Controller (NETA)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,armada-370-neta.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcin Wojtas <marcin.s.wojtas@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,armada-370-neta", "marvell,armada-xp-neta", "marvell,armada-3700-neta", "marvell,armada-ac5-neta"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"bus"
phys — not listed as required here #
Maximum number of items (maxItems): 1
tx-csum-limit — not listed as required here #
Maximum MTU in bytes for Tx checksum offload; default is 1600 for armada-370-neta and 9800 for others.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
buffer-manager — not listed as required here #
Phandle to hardware buffer manager.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
bm,pool-long — not listed as required here #
Pool ID for packets larger than the short threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
bm,pool-short — not listed as required here #
Pool ID for packets smaller than the long threshold.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@70000 {
compatible = "marvell,armada-370-neta";
reg = <0x70000 0x2500>;
interrupts = <8>;
clocks = <&gate_clk 4>;
tx-csum-limit = <9800>;
phy = <&phy0>;
phy-mode = "rgmii-id";
buffer-manager = <&bm>;
bm,pool-long = <0>;
bm,pool-short = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell Armada 380/XP Buffer Manager (BM)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,armada-380-neta-bm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcin Wojtas <marcin.s.wojtas@gmail.com>"
In order to see how to hook the BM to a given ethernet port, please refer to Documentation/devicetree/bindings/net/marvell,armada-370-neta.yaml.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "marvell,armada-380-neta-bm"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
internal-mem — required here #
Phandle to internal SRAM region
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Properties matching a name pattern (patternProperties) #
^pool[0-3],capacity$ — name matches this regular expression #
size of external buffer pointers' ring maintained in DRAM for pool 0-3
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 128
Maximum value (maximum): 16352
^pool[0-3],pkt-size$ — name matches this regular expression #
maximum packet size for a short buffer pool entry (pool 0-3)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg", "clocks", "internal-mem"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
bm@c8000 {
compatible = "marvell,armada-380-neta-bm";
reg = <0xc8000 0xac>;
clocks = <&gateclk 13>;
internal-mem = <&bm_bppi>;
pool2,capacity = <4096>;
pool1,pkt-size = <512>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell Prestera DFX server
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,dfx-server.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"marvell,dfx-server"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"marvell,dfx-server"
Item 2
Exact value (
const):"simple-bus"
reg — required here #
Maximum number of items (maxItems): 1
ranges — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
bus@0 {
reg = <0 0>;
#address-cells = <2>;
#size-cells = <1>;
dfx-bus@ac000000 {
compatible = "marvell,dfx-server", "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 MBUS_ID(0x08, 0x00) 0 0x100000>;
reg = <MBUS_ID(0x08, 0x00) 0 0x100000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 42: The DFX server may expose clocks described as subnodes
Marvell USB to MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,mvusb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tobias Waldekranz <tobias@waldekranz.com>"
This controller is mounted on development boards for Marvell's Link Street family of Ethernet switches. It allows you to configure the switch's registers using the standard MDIO interface.
Since the device is connected over USB, there is no strict requirement of having a device tree representation of the device. But in order to use it with the mv88e6xxx driver, you need a device tree node in which to place the switch definition.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "usb1286,1fa4"
reg — required here #
Maximum number of items (maxItems): 1
The USB port number on the host controller
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* USB host controller */
usb {
#address-cells = <1>;
#size-cells = <0>;
mdio@1 {
compatible = "usb1286,1fa4";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-switch@0 {
compatible = "marvell,mv88e6190";
reg = <0x0>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
/* Port definitions */
};
mdio {
/* PHY definitions */
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Marvell MDIO Ethernet Controller interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,orion-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
The Ethernet controllers of the Marvel Kirkwood, Dove, Orion5x, MV78xx0, Armada 370, Armada XP, Armada 7k and Armada 8k have an identical unit that provides an interface with the MDIO bus. Additionally, Armada 7k and Armada 8k has a second unit which provides an interface with the xMDIO bus. This driver handles these interfaces.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,orion-mdio", "marvell,xmdio"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@d0072004 {
compatible = "marvell,orion-mdio";
reg = <0xd0072004 0x84>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <30>;
phy0: ethernet-phy@0 {
reg = <0>;
};
phy1: ethernet-phy@1 {
reg = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell CN913X / Marvell Armada 375, 7K, 8K Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,pp2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marcin Wojtas <mw@semihalf.com>", "Russell King <linux@armlinux.org>"
Marvell Armada 375 Ethernet Controller (PPv2.1) Marvell Armada 7K/8K Ethernet Controller (PPv2.2) Marvell CN913X Ethernet Controller (PPv2.3)
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,armada-375-pp2", "marvell,armada-7k-pp22"
reg — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 4
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
main controller clock
Item 2
GOP clock
Item 3
MG clock
Item 4
MG Core clock
Item 5
AXI clock
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"pp_clk"
Item 2
Exact value (
const):"gop_clk"
Item 3
Exact value (
const):"mg_clk"
Item 4
Exact value (
const):"mg_core_clk"
Item 5
Exact value (
const):"axi_clk"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
marvell,system-controller — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
a phandle to the system controller.
Properties matching a name pattern (patternProperties) #
^(ethernet-)?port@[0-2]$ — name matches this regular expression #
Value type (type): "object"
subnode for each ethernet port.
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
ID of the port from the MAC point of view.
Maximum value (maximum): 2
interrupts — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
interrupt(s) for the port
interrupt-names — not listed as required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Exact value (
const):"hif0"
Item 2
Exact value (
const):"hif1"
Item 3
Exact value (
const):"hif2"
Item 4
Exact value (
const):"hif3"
Item 5
Exact value (
const):"hif4"
Item 6
Exact value (
const):"hif5"
Item 7
Exact value (
const):"hif6"
Item 8
Exact value (
const):"hif7"
Item 9
Exact value (
const):"hif8"
Item 10
Exact value (
const):"link"
if more than a single interrupt for is given, must be the name associated to the interrupts listed. Valid names are: "hifX", with X in [0..8], and "link". The names "tx-cpu0", "tx-cpu1", "tx-cpu2", "tx-cpu3" and "rx-shared" are supported for backward compatibility but shouldn't be used for new additions.
phys — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Generic PHY, providing SerDes connectivity. For most modes, one lane is sufficient, but some (e.g. RXAUI) may require two.
phy-mode — required here
Allowed values (enum): "gmii", "sgmii", "rgmii-id", "1000base-x", "2500base-x", "5gbase-r", "rxaui", "10gbase-r"
port-id — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
ID of the port from the MAC point of view. Legacy binding for backward compatibility.
marvell,loopback — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
port is loopback mode.
gop-port-id — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
only for marvell,armada-7k-pp22, ID of the port from the GOP (Group Of Ports) point of view. This ID is used to index the per-port registers in the second register area.
Required in this object (required): "reg", "interrupts", "phy-mode", "port-id"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"marvell,armada-7k-pp22"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Packet Processor registers
Item 2
Networking interfaces registers
Item 3
CM3 address space used for TX Flow Control
clocks— not listed as required hereMinimum number of items (
minItems):5
clock-names— not listed as required hereMinimum number of items (
minItems):5Properties matching a name pattern (
patternProperties)
^(ethernet-)?port@[0-2]$— name matches this regular expressionRequired in this object (
required):"gop-port-id"Required in this object (
required):"marvell,system-controller"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Item 1
Packet Processor registers
Item 2
LMS registers
Item 3
Register area per eth0
Item 4
Register area per eth1
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereMaximum number of items (
maxItems):2Properties matching a name pattern (
patternProperties)
^(ethernet-)?port@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
gop-port-id— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
// For Armada 375 variant
#include <dt-bindings/interrupt-controller/mvebu-icu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@f0000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "marvell,armada-375-pp2";
reg = <0xf0000 0xa000>,
<0xc0000 0x3060>,
<0xc4000 0x100>,
<0xc5000 0x100>;
clocks = <&gateclk 3>, <&gateclk 19>;
clock-names = "pp_clk", "gop_clk";
ethernet-port@0 {
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
reg = <0>;
port-id = <0>; /* For backward compatibility. */
phy = <&phy0>;
phy-mode = "rgmii-id";
};
ethernet-port@1 {
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
reg = <1>;
port-id = <1>; /* For backward compatibility. */
phy = <&phy3>;
phy-mode = "gmii";
};
};
// For Armada 7k/8k and Cn913x variants
#include <dt-bindings/interrupt-controller/mvebu-icu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "marvell,armada-7k-pp22";
reg = <0x0 0x100000>, <0x129000 0xb000>, <0x220000 0x800>;
clocks = <&cp0_clk 1 3>, <&cp0_clk 1 9>,
<&cp0_clk 1 5>, <&cp0_clk 1 6>, <&cp0_clk 1 18>;
clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk";
marvell,system-controller = <&cp0_syscon0>;
ethernet-port@0 {
interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 59 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 63 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 67 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 71 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 129 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "hif0", "hif1", "hif2", "hif3", "hif4",
"hif5", "hif6", "hif7", "hif8", "link";
phy-mode = "10gbase-r";
phys = <&cp0_comphy4 0>;
reg = <0>;
port-id = <0>; /* For backward compatibility. */
gop-port-id = <0>;
};
ethernet-port@1 {
interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 60 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 64 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 68 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 72 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 128 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "hif0", "hif1", "hif2", "hif3", "hif4",
"hif5", "hif6", "hif7", "hif8", "link";
phy-mode = "rgmii-id";
reg = <1>;
port-id = <1>; /* For backward compatibility. */
gop-port-id = <2>;
};
ethernet-port@2 {
interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 61 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 65 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 69 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 73 IRQ_TYPE_LEVEL_HIGH>,
<ICU_GRP_NSR 127 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "hif0", "hif1", "hif2", "hif3", "hif4",
"hif5", "hif6", "hif7", "hif8", "link";
phy-mode = "2500base-x";
managed = "in-band-status";
phys = <&cp0_comphy5 2>;
sfp = <&sfp_eth3>;
reg = <2>;
port-id = <2>; /* For backward compatibility. */
gop-port-id = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Marvell Prestera switch family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/marvell,prestera.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,prestera-98dx3236","marvell,prestera-98dx3336","marvell,prestera-98dx4251"Item 2
Exact value (
const):"marvell,prestera"
Rule 2
Allowed values (
enum):"pci11ab,c804","pci11ab,c80c","pci11ab,cc1e"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 3
dfx — not listed as required here #
Reference to the DFX Server bus node.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"marvell,prestera"
When the condition matches (then) #
Properties and child nodes (
properties) #
nvmem-cells— not listed as required here #
false— Not permitted by this property rule.
nvmem-cell-names— not listed as required here #
false— Not permitted by this property rule.
When the condition does not match (else) #
Properties and child nodes (
properties) #
interrupts— not listed as required here #
false— Not permitted by this property rule.
dfx— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
packet-processor@0 {
compatible = "marvell,prestera-98dx3236", "marvell,prestera";
reg = <0 0x4000000>;
interrupts = <33>, <34>, <35>;
dfx = <&dfx>;
};
pcie@0 {
#address-cells = <3>;
#size-cells = <2>;
ranges = <0x02000000 0x0 0x100000 0x10000000 0x0 0x0>;
reg = <0x0 0x1000>;
device_type = "pci";
switch@0,0 {
reg = <0x0 0x0 0x0 0x0 0x0>;
compatible = "pci11ab,c80c";
nvmem-cells = <&mac_address 0>;
nvmem-cell-names = "mac-address";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 46: Memory mapped AlleyCat3 family
Line 54: PCI Aldrin family
Line 64: Ports can also be described
Maxim (Dallas) DS26522 Dual T1/E1/J1 Transceiver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/maxim,ds26522.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"maxim,ds26522"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
transceiver@1 {
compatible = "maxim,ds26522";
reg = <1>;
spi-max-frequency = <2000000>; /* input clock */
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MaxLinear GPY2xx PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/maxlinear,gpy2xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Michael Walle <michael@walle.cc>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Properties and child nodes (properties) #
maxlinear,use-broken-interrupts — not listed as required here #
Interrupts are broken on some GPY2xx PHYs in that they keep the interrupt line asserted for a random amount of time even after the interrupt status register is cleared. Thus it is blocking the interrupt line which is usually bad for shared lines. By default, interrupts are disabled for this PHY and polling mode is used. If one can live with the consequences, this property can be used to enable interrupt handling.
Affected PHYs (as far as known) are GPY215B and GPY215C.
Value type (type): "boolean"
Property dependencies (dependencies) #
maxlinear,use-broken-interrupts — applies when this property is present #
Also requires: "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
reg = <0>;
interrupts-extended = <&intc 0>;
maxlinear,use-broken-interrupts;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MCTP I2C transport
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mctp-i2c-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matt Johnston <matt@codeconstruct.com.au>"
An mctp-i2c-controller defines a local MCTP endpoint on an I2C controller. MCTP I2C is specified by DMTF DSP0237.
An mctp-i2c-controller must be attached to an I2C adapter which supports slave functionality. I2C busses (either directly or as subordinate mux busses) are attached to the mctp-i2c-controller with a 'mctp-controller' property on each used bus. Each mctp-controller I2C bus will be presented to the host system as a separate MCTP I2C instance.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mctp-i2c-controller"
reg — required here #
Minimum value (minimum): 1073741824
Maximum value (maximum): 1073741951
7 bit I2C address of the local endpoint. I2C_OWN_SLAVE_ADDRESS (1<<30) flag must be set.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
// Basic case of a single I2C bus
#include <dt-bindings/i2c/i2c.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
mctp-controller;
mctp@30 {
compatible = "mctp-i2c-controller";
reg = <(0x30 | I2C_OWN_SLAVE_ADDRESS)>;
};
};
// Mux topology with multiple MCTP-handling busses under
// a single mctp-i2c-controller.
// i2c1 and i2c6 can have MCTP devices, i2c5 does not.
#include <dt-bindings/i2c/i2c.h>
i2c1: i2c {
#address-cells = <1>;
#size-cells = <0>;
mctp-controller;
mctp@50 {
compatible = "mctp-i2c-controller";
reg = <(0x50 | I2C_OWN_SLAVE_ADDRESS)>;
};
};
i2c-mux {
#address-cells = <1>;
#size-cells = <0>;
i2c-parent = <&i2c1>;
i2c5: i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
eeprom@33 {
reg = <0x33>;
};
};
i2c6: i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
mctp-controller;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MDIO on GPIOs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Heiner Kallweit <hkallweit1@gmail.com>", "Russell King <linux@armlinux.org.uk>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "virtual,mdio-gpio", "microchip,mdio-smi0"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
gpios — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
MDC
Item 2
MDIO
Item 3
MDO
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
Examples (examples) #
aliases {
mdio-gpio0 = &mdio0;
};
mdio0: mdio {
compatible = "virtual,mdio-gpio";
#address-cells = <1>;
#size-cells = <0>;
gpios = <&qe_pio_a 11>,
<&qe_pio_c 6>;
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 36: Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
Line 37: node.
Properties for an MDIO bus multiplexer/switch controlled by GPIO pins.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio-mux-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
This is a special case of a MDIO bus multiplexer. One or more GPIO lines are used to control which child bus is connected.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mdio-mux-gpio"
gpios — required here #
List of GPIOs used to control the multiplexer, least significant bit first.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
Required in this object (required): "compatible", "gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
/*
An NXP sn74cbtlv3253 dual 1-of-4 switch controlled by a
pair of GPIO lines. Child busses 2 and 3 populated with 4
PHYs each.
*/
mdio-mux {
compatible = "mdio-mux-gpio";
gpios = <&gpio1 3 0>, <&gpio1 4 0>;
mdio-parent-bus = <&smi1>;
#address-cells = <1>;
#size-cells = <0>;
mdio@2 {
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&gpio>;
interrupts = <10 8>; /* Pin 10, active low */
};
ethernet-phy@2 {
reg = <2>;
interrupt-parent = <&gpio>;
interrupts = <10 8>; /* Pin 10, active low */
};
ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&gpio>;
interrupts = <10 8>; /* Pin 10, active low */
};
ethernet-phy@4 {
reg = <4>;
interrupt-parent = <&gpio>;
interrupts = <10 8>; /* Pin 10, active low */
};
};
mdio@3 {
reg = <3>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <1>;
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
};
ethernet-phy@2 {
reg = <2>;
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
};
ethernet-phy@3 {
reg = <3>;
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
};
ethernet-phy@4 {
reg = <4>;
interrupt-parent = <&gpio>;
interrupts = <12 8>; /* Pin 12, active low */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Properties for an MDIO bus multiplexer controlled by a memory-mapped device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio-mux-mmioreg.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
This is a special case of a MDIO bus multiplexer. A memory-mapped device, like an FPGA, is used to control which child bus is connected. The mdio-mux node must be a child of the memory-mapped device. The driver currently only supports devices with 8, 16 or 32-bit registers.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mdio-mux-mmioreg"
Item 2
Exact value (
const):"mdio-mux"
reg — required here #
Contains the offset of the register that controls the bus multiplexer. The size field in the 'reg' property is the size of register, and must therefore be 1, 2, or 4.
Maximum number of items (maxItems): 1
mux-mask — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Contains an eight-bit mask that specifies which bits in the register control the actual bus multiplexer. The 'reg' property of each child mdio-mux node must be constrained by this mask.
Required in this object (required): "compatible", "reg", "mux-mask"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio-mux@9 {
compatible = "mdio-mux-mmioreg", "mdio-mux";
mdio-parent-bus = <&xmdio0>;
#address-cells = <1>;
#size-cells = <0>;
reg = <9 1>; // BRDCFG1
mux-mask = <0x6>; // EMI2
mdio@0 { // Slot 1 XAUI (FM2)
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
phy_xgmii_slot1: ethernet-phy@4 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <4>;
};
};
mdio@2 { // Slot 2 XAUI (FM1)
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@4 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <4>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Properties for an MDIO bus multiplexer consumer device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio-mux-multiplexer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
This is a special case of MDIO mux when MDIO mux is defined as a consumer of a mux producer device. The mux producer can be of any type like mmio mux producer, gpio mux producer or generic register based mux producer.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/mdio-mux.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mdio-mux-multiplexer"
mux-controls — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "mux-controls"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mux: mux-controller { // Mux Producer
compatible = "reg-mux";
#mux-control-cells = <1>;
mux-reg-masks = <0x54 0xf8>, /* 0: reg 0x54, bits 7:3 */
<0x54 0x07>; /* 1: reg 0x54, bits 2:0 */
};
mdio-mux-1 { // Mux consumer
compatible = "mdio-mux-multiplexer";
mux-controls = <&mux 0>;
mdio-parent-bus = <&emdio1>;
#address-cells = <1>;
#size-cells = <0>;
mdio@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
};
mdio@8 {
reg = <0x8>;
#address-cells = <1>;
#size-cells = <0>;
};
};
mdio-mux-2 { // Mux consumer
compatible = "mdio-mux-multiplexer";
mux-controls = <&mux 1>;
mdio-parent-bus = <&emdio2>;
#address-cells = <1>;
#size-cells = <0>;
mdio@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
};
mdio@1 {
reg = <0x1>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Common MDIO bus multiplexer/switch properties.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
An MDIO bus multiplexer/switch will have several child busses that are numbered uniquely in a device dependent manner. The nodes for an MDIO bus multiplexer/switch will have one child node for each child bus.
Properties and child nodes (properties) #
mdio-parent-bus — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of the MDIO bus that this multiplexer's master-side port is connected to.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Maximum number of items (maxItems): 1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MDIO Bus Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"
These are generic properties that can apply to any MDIO bus. Any MDIO bus must have a list of child nodes, one per device on the bus. These should follow the generic ethernet-phy.yaml document, or a device specific binding document.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^mdio(-(bus|external))?(@.+|-([0-9]+))?$"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
The phandle and specifier for the GPIO that controls the RESET lines of all devices on that MDIO bus.
reset-delay-us — not listed as required here #
RESET pulse width in microseconds. It applies to all MDIO devices and must therefore be appropriately determined based on all devices requirements (maximum value of all per-device RESET pulse widths).
reset-post-delay-us — not listed as required here #
Delay after reset deassert in microseconds. It applies to all MDIO devices and it's determined by how fast all devices are ready for communication. This delay happens just before e.g. Ethernet PHY type ID auto detection.
clock-frequency — not listed as required here #
Desired MDIO bus clock frequency in Hz. Values greater than IEEE 802.3 defined 2.5MHz should only be used when all devices on the bus support the given clock speed.
suppress-preamble — not listed as required here #
The 32 bit preamble should be suppressed. In order for this to work, all devices on the bus must support suppressed preamble.
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 31
The ID number for the device.
broken-turn-around — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If set, indicates the MDIO device does not correctly release the turn around line low at end of the control phase of the MDIO transaction.
reset-gpios — not listed as required here
Maximum number of items (maxItems): 1
The GPIO phandle and specifier for the MDIO reset signal.
reset-assert-us — not listed as required here
Delay after the reset was asserted in microseconds. If this property is missing the delay will be skipped.
reset-deassert-us — not listed as required here
Delay after the reset was deasserted in microseconds. If this property is missing the delay will be skipped.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
davinci_mdio: mdio@5c030000 {
reg = <0x5c030000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&gpio2 5 1>;
reset-delay-us = <2>;
ethphy0: ethernet-phy@1 {
reg = <1>;
};
ethphy1: ethernet-phy@3 {
reg = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
MediaTek Frame Engine Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mediatek,net.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>", "Felix Fietkau <nbd@nbd.name>"
The frame engine ethernet controller can be found on MediaTek SoCs. These SoCs have dual GMAC ports.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt2701-eth", "mediatek,mt7623-eth", "mediatek,mt7621-eth", "mediatek,mt7622-eth", "mediatek,mt7629-eth", "mediatek,mt7981-eth", "mediatek,mt7986-eth", "mediatek,mt7988-eth", "ralink,rt5350-eth"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 24
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 24
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"fe0"
Item 2
Exact value (
const):"fe1"
Item 3
Exact value (
const):"fe2"
Item 4
Exact value (
const):"fe3"
Item 5
Exact value (
const):"pdma0"
Item 6
Exact value (
const):"pdma1"
Item 7
Exact value (
const):"pdma2"
Item 8
Exact value (
const):"pdma3"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 3
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fe"
Item 2
Exact value (
const):"gmac"
Item 3
Exact value (
const):"ppe"
sram — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to mmio SRAM
mediatek,ethsys — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon node that handles the port setup.
cci-control-port — not listed as required here #
true — No constraints added by this property rule.
mediatek,hifsys — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the mediatek hifsys controller used to provide various clocks and reset to the system.
mediatek,infracfg — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon node that handles the path from GMAC to PHY variants.
mediatek,pcie-mirror — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the mediatek pcie-mirror controller.
mediatek,pctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon node that handles the ports slew rate and driver current.
mediatek,sgmiisys — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum number of items (
maxItems):1
A list of phandle to the syscon node that handles the SGMII setup which is required for those SoCs equipped with SGMII.
mediatek,wed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum number of items (
maxItems):1
List of phandles to wireless ethernet dispatch nodes.
mediatek,wed-pcie — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the mediatek wed-pcie controller.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
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.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
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 hereRule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt2701-eth","mediatek,mt7623-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ethif"Item 2
Exact value (
const):"esw"Item 3
Exact value (
const):"gp1"Item 4
Exact value (
const):"gp2"
sram— not listed as required here
false— Not permitted by this property rule.
mediatek,infracfg— not listed as required here
false— Not permitted by this property rule.
mediatek,wed— not listed as required here
false— Not permitted by this property rule.
mediatek,wed-pcie— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
mediatek,pctl— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
interrupt-names— not listed as required hereMaximum number of items (
maxItems):1
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ethif"Item 2
Exact value (
const):"fe"
sram— not listed as required here
false— Not permitted by this property rule.
mediatek,infracfg— not listed as required here
false— Not permitted by this property rule.
mediatek,wed— not listed as required here
false— Not permitted by this property rule.
mediatek,wed-pcie— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7622-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clocks— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ethif"Item 2
Exact value (
const):"esw"Item 3
Exact value (
const):"gp0"Item 4
Exact value (
const):"gp1"Item 5
Exact value (
const):"gp2"Item 6
Exact value (
const):"sgmii_tx250m"Item 7
Exact value (
const):"sgmii_rx250m"Item 8
Exact value (
const):"sgmii_cdr_ref"Item 9
Exact value (
const):"sgmii_cdr_fb"Item 10
Exact value (
const):"sgmii_ck"Item 11
Exact value (
const):"eth2pll"
sram— not listed as required here
false— Not permitted by this property rule.
mediatek,infracfg— not listed as required here
false— Not permitted by this property rule.
mediatek,sgmiisys— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
mediatek,wed— not listed as required hereMinimum number of items (
minItems):2
mediatek,wed-pcie— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
mediatek,pcie-mirror— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7629-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clocks— not listed as required hereMinimum number of items (
minItems):17Maximum number of items (
maxItems):17
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"ethif"Item 2
Exact value (
const):"sgmiitop"Item 3
Exact value (
const):"esw"Item 4
Exact value (
const):"gp0"Item 5
Exact value (
const):"gp1"Item 6
Exact value (
const):"gp2"Item 7
Exact value (
const):"fe"Item 8
Exact value (
const):"sgmii_tx250m"Item 9
Exact value (
const):"sgmii_rx250m"Item 10
Exact value (
const):"sgmii_cdr_ref"Item 11
Exact value (
const):"sgmii_cdr_fb"Item 12
Exact value (
const):"sgmii2_tx250m"Item 13
Exact value (
const):"sgmii2_rx250m"Item 14
Exact value (
const):"sgmii2_cdr_ref"Item 15
Exact value (
const):"sgmii2_cdr_fb"Item 16
Exact value (
const):"sgmii_ck"Item 17
Exact value (
const):"eth2pll"
sram— not listed as required here
false— Not permitted by this property rule.
mediatek,sgmiisys— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
mediatek,wed— not listed as required here
false— Not permitted by this property rule.
mediatek,wed-pcie— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7981-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):8
interrupt-names— not listed as required hereMinimum number of items (
minItems):8
clocks— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fe"Item 2
Exact value (
const):"gp2"Item 3
Exact value (
const):"gp1"Item 4
Exact value (
const):"wocpu0"Item 5
Exact value (
const):"sgmii_ck"Item 6
Exact value (
const):"sgmii_tx250m"Item 7
Exact value (
const):"sgmii_rx250m"Item 8
Exact value (
const):"sgmii_cdr_ref"Item 9
Exact value (
const):"sgmii_cdr_fb"Item 10
Exact value (
const):"sgmii2_tx250m"Item 11
Exact value (
const):"sgmii2_rx250m"Item 12
Exact value (
const):"sgmii2_cdr_ref"Item 13
Exact value (
const):"sgmii2_cdr_fb"Item 14
Exact value (
const):"netsys0"Item 15
Exact value (
const):"netsys1"
mediatek,sgmiisys— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
mediatek,wed— not listed as required hereMaximum number of items (
maxItems):1
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7986-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):8
interrupt-names— not listed as required hereMinimum number of items (
minItems):8
clocks— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fe"Item 2
Exact value (
const):"gp2"Item 3
Exact value (
const):"gp1"Item 4
Exact value (
const):"wocpu1"Item 5
Exact value (
const):"wocpu0"Item 6
Exact value (
const):"sgmii_tx250m"Item 7
Exact value (
const):"sgmii_rx250m"Item 8
Exact value (
const):"sgmii_cdr_ref"Item 9
Exact value (
const):"sgmii_cdr_fb"Item 10
Exact value (
const):"sgmii2_tx250m"Item 11
Exact value (
const):"sgmii2_rx250m"Item 12
Exact value (
const):"sgmii2_cdr_ref"Item 13
Exact value (
const):"sgmii2_cdr_fb"Item 14
Exact value (
const):"netsys0"Item 15
Exact value (
const):"netsys1"
mediatek,infracfg— not listed as required here
false— Not permitted by this property rule.
mediatek,sgmiisys— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
mediatek,wed— not listed as required hereMinimum number of items (
minItems):2
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt7988-eth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):8
interrupt-names— not listed as required hereMinimum number of items (
minItems):8
clocks— not listed as required hereMinimum number of items (
minItems):24Maximum number of items (
maxItems):24
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"crypto"Item 2
Exact value (
const):"fe"Item 3
Exact value (
const):"gp2"Item 4
Exact value (
const):"gp1"Item 5
Exact value (
const):"gp3"Item 6
Exact value (
const):"ethwarp_wocpu2"Item 7
Exact value (
const):"ethwarp_wocpu1"Item 8
Exact value (
const):"ethwarp_wocpu0"Item 9
Exact value (
const):"esw"Item 10
Exact value (
const):"top_eth_gmii_sel"Item 11
Exact value (
const):"top_eth_refck_50m_sel"Item 12
Exact value (
const):"top_eth_sys_200m_sel"Item 13
Exact value (
const):"top_eth_sys_sel"Item 14
Exact value (
const):"top_eth_xgmii_sel"Item 15
Exact value (
const):"top_eth_mii_sel"Item 16
Exact value (
const):"top_netsys_sel"Item 17
Exact value (
const):"top_netsys_500m_sel"Item 18
Exact value (
const):"top_netsys_pao_2x_sel"Item 19
Exact value (
const):"top_netsys_sync_250m_sel"Item 20
Exact value (
const):"top_netsys_ppefb_250m_sel"Item 21
Exact value (
const):"top_netsys_warp_sel"Item 22
Exact value (
const):"xgp1"Item 23
Exact value (
const):"xgp2"Item 24
Exact value (
const):"xgp3"
mediatek,wed— not listed as required hereMinimum number of items (
minItems):2
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ralink,rt5350-eth"When the condition matches (
then) #Properties and child nodes (
properties)
mediatek,wed— not listed as required hereMinimum number of items (
minItems):2
Properties matching a name pattern (patternProperties) #
^mac@[0-2]$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1
Shared schema rule (
$ref):ethernet-controller.yaml#
Ethernet MAC node
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "mediatek,eth-mac"
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg", "compatible"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "mediatek,ethsys"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/mt7622-clk.h>
#include <dt-bindings/power/mt7622-power.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
ethernet: ethernet@1b100000 {
compatible = "mediatek,mt7622-eth";
reg = <0 0x1b100000 0 0x20000>;
interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
<GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>;
clocks = <&topckgen CLK_TOP_ETH_SEL>,
<ðsys CLK_ETH_ESW_EN>,
<ðsys CLK_ETH_GP0_EN>,
<ðsys CLK_ETH_GP1_EN>,
<ðsys CLK_ETH_GP2_EN>,
<&sgmiisys CLK_SGMII_TX250M_EN>,
<&sgmiisys CLK_SGMII_RX250M_EN>,
<&sgmiisys CLK_SGMII_CDR_REF>,
<&sgmiisys CLK_SGMII_CDR_FB>,
<&topckgen CLK_TOP_SGMIIPLL>,
<&apmixedsys CLK_APMIXED_ETH2PLL>;
clock-names = "ethif", "esw", "gp0", "gp1", "gp2",
"sgmii_tx250m", "sgmii_rx250m",
"sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck",
"eth2pll";
power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
mediatek,ethsys = <ðsys>;
mediatek,sgmiisys = <&sgmiisys>;
cci-control-port = <&cci_control2>;
mediatek,pcie-mirror = <&pcie_mirror>;
mediatek,hifsys = <&hifsys>;
dma-coherent;
#address-cells = <1>;
#size-cells = <0>;
mdio0: mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
};
phy1: ethernet-phy@1 {
reg = <1>;
};
};
gmac0: mac@0 {
compatible = "mediatek,eth-mac";
phy-mode = "rgmii";
phy-handle = <&phy0>;
reg = <0>;
};
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
phy-mode = "rgmii";
phy-handle = <&phy1>;
reg = <1>;
};
};
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/mt7622-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
eth: ethernet@15100000 {
#define CLK_ETH_FE_EN 0
#define CLK_ETH_WOCPU1_EN 3
#define CLK_ETH_WOCPU0_EN 4
#define CLK_TOP_NETSYS_SEL 43
#define CLK_TOP_NETSYS_500M_SEL 44
#define CLK_TOP_NETSYS_2X_SEL 46
#define CLK_TOP_SGM_325M_SEL 47
#define CLK_APMIXED_NET2PLL 1
#define CLK_APMIXED_SGMPLL 3
compatible = "mediatek,mt7986-eth";
reg = <0 0x15100000 0 0x80000>;
interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
clocks = <ðsys CLK_ETH_FE_EN>,
<ðsys CLK_ETH_GP2_EN>,
<ðsys CLK_ETH_GP1_EN>,
<ðsys CLK_ETH_WOCPU1_EN>,
<ðsys CLK_ETH_WOCPU0_EN>,
<&sgmiisys0 CLK_SGMII_TX250M_EN>,
<&sgmiisys0 CLK_SGMII_RX250M_EN>,
<&sgmiisys0 CLK_SGMII_CDR_REF>,
<&sgmiisys0 CLK_SGMII_CDR_FB>,
<&sgmiisys1 CLK_SGMII_TX250M_EN>,
<&sgmiisys1 CLK_SGMII_RX250M_EN>,
<&sgmiisys1 CLK_SGMII_CDR_REF>,
<&sgmiisys1 CLK_SGMII_CDR_FB>,
<&topckgen CLK_TOP_NETSYS_SEL>,
<&topckgen CLK_TOP_NETSYS_SEL>;
clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
"sgmii_tx250m", "sgmii_rx250m",
"sgmii_cdr_ref", "sgmii_cdr_fb",
"sgmii2_tx250m", "sgmii2_rx250m",
"sgmii2_cdr_ref", "sgmii2_cdr_fb",
"netsys0", "netsys1";
mediatek,ethsys = <ðsys>;
mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
assigned-clocks = <&topckgen CLK_TOP_NETSYS_2X_SEL>,
<&topckgen CLK_TOP_SGM_325M_SEL>;
assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>,
<&apmixedsys CLK_APMIXED_SGMPLL>;
#address-cells = <1>;
#size-cells = <0>;
mdio: mdio-bus {
#address-cells = <1>;
#size-cells = <0>;
phy5: ethernet-phy@0 {
compatible = "ethernet-phy-id67c9.de0a";
phy-mode = "2500base-x";
reset-gpios = <&pio 6 1>;
reset-deassert-us = <20000>;
reg = <5>;
};
phy6: ethernet-phy@1 {
compatible = "ethernet-phy-id67c9.de0a";
phy-mode = "2500base-x";
reg = <6>;
};
};
mac0: mac@0 {
compatible = "mediatek,eth-mac";
phy-mode = "2500base-x";
phy-handle = <&phy5>;
reg = <0>;
};
mac1: mac@1 {
compatible = "mediatek,eth-mac";
phy-mode = "2500base-x";
phy-handle = <&phy6>;
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek STAR Ethernet MAC Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mediatek,star-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>"
This Ethernet MAC is used on the MT8* family of SoCs from MediaTek. It's compliant with 802.3 standards and supports half- and full-duplex modes with flow-control as well as CRC offloading and VLAN tags.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt8516-eth", "mediatek,mt8518-eth", "mediatek,mt8175-eth", "mediatek,mt8365-eth"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
clock-names — required here #
Array items beyond the listed positions (additionalItems) #
false
Not allowed by this rule.
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"reg"
Item 3
Exact value (
const):"trans"
mediatek,pericfg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the device containing the PERICFG register range. This is used to control the MII mode.
mediatek,rmii-rxc — not listed as required here #
Value type (type): "boolean"
If present, indicates that the RMII reference clock, which is from external PHYs, is connected to RXC pin. Otherwise, is connected to TXC pin.
mediatek,rxc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that clock on RXC pad will be inversed.
mediatek,txc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that clock on TXC pad will be inversed.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "mediatek,pericfg", "phy-handle"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt8516-clk.h>
ethernet: ethernet@11180000 {
compatible = "mediatek,mt8516-eth";
reg = <0x11180000 0x1000>;
mediatek,pericfg = <&pericfg>;
interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_LOW>;
clocks = <&topckgen CLK_TOP_RG_ETH>,
<&topckgen CLK_TOP_66M_ETH>,
<&topckgen CLK_TOP_133M_ETH>;
clock-names = "core", "reg", "trans";
phy-handle = <ð_phy>;
phy-mode = "rmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
eth_phy: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MediaTek DWMAC glue layer controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mediatek-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biao Huang <biao.huang@mediatek.com>"
This file documents platform glue layer for stmmac.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt2712-gmac","mediatek,mt8188-gmac","mediatek,mt8195-gmac"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-4.20a"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-5.10a"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt8195-gmac"Item 3
Exact value (
const):"snps,dwmac-5.10a"
clocks — required here #
Minimum number of items (minItems): 5
Array item rules (items) #
Item 1
AXI clock
Item 2
APB clock
Item 3
MAC Main clock
Item 4
PTP clock
Item 5
RMII reference clock provided by MAC
Item 6
MAC clock gate
clock-names — required here #
Minimum number of items (minItems): 5
Array item rules (items) #
Item 1
Exact value (
const):"axi"
Item 2
Exact value (
const):"apb"
Item 3
Exact value (
const):"mac_main"
Item 4
Exact value (
const):"ptp_ref"
Item 5
Exact value (
const):"rmii_internal"
Item 6
Exact value (
const):"mac_cg"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Exact value (const): "macirq"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
mediatek,pericfg — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle to the syscon node that control ethernet interface and timing delay.
mediatek,tx-delay-ps — not listed as required here #
The internal TX clock delay (provided by this driver) in nanoseconds. For MT2712 RGMII interface, Allowed value need to be a multiple of 170, or will round down. Range 0~31*170. For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, or will round down. Range 0~31*550. For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple of 290, or will round down. Range 0~31*290.
mediatek,rx-delay-ps — not listed as required here #
The internal RX clock delay (provided by this driver) in nanoseconds. For MT2712 RGMII interface, Allowed value need to be a multiple of 170, or will round down. Range 0~31*170. For MT2712 RMII/MII interface, Allowed value need to be a multiple of 550, or will round down. Range 0~31*550. For MT8188/MT8195 RGMII/RMII/MII interface, Allowed value need to be a multiple of 290, or will round down. Range 0~31*290.
mediatek,rmii-rxc — not listed as required here #
Value type (type): "boolean"
If present, indicates that the RMII reference clock, which is from external PHYs, is connected to RXC pin. Otherwise, is connected to TXC pin.
mediatek,rmii-clk-from-mac — not listed as required here #
Value type (type): "boolean"
If present, indicates that MAC provides the RMII reference clock, which outputs to TXC pin only.
mediatek,txc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that 1. tx clock will be inversed in MII/RGMII case, 2. tx clock inside MAC will be inversed relative to reference clock which is from external PHYs in RMII case, and it rarely happen. 3. the reference clock, which outputs to TXC pin will be inversed in RMII case when the reference clock is from MAC.
mediatek,rxc-inverse — not listed as required here #
Value type (type): "boolean"
If present, indicates that 1. rx clock will be inversed in MII/RGMII case. 2. reference clock will be inversed when arrived at MAC in RMII case, when the reference clock is from external PHYs. 3. the inside clock, which be sent to MAC, will be inversed in RMII case when the reference clock is from MAC.
mediatek,mac-wol — not listed as required here #
Value type (type): "boolean"
If present, indicates that MAC supports WOL(Wake-On-LAN), and MAC WOL will be enabled. Otherwise, PHY WOL is preferred.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "phy-mode", "mediatek,pericfg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt2712-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/power/mt2712-power.h>
eth: ethernet@1101c000 {
compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
reg = <0x1101c000 0x1300>;
interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_LOW>;
interrupt-names = "macirq";
phy-mode = "rgmii-rxid";
mac-address = [00 55 7b b5 7d f7];
clock-names = "axi",
"apb",
"mac_main",
"ptp_ref",
"rmii_internal";
clocks = <&pericfg CLK_PERI_GMAC>,
<&pericfg CLK_PERI_GMAC_PCLK>,
<&topckgen CLK_TOP_ETHER_125M_SEL>,
<&topckgen CLK_TOP_ETHER_50M_SEL>,
<&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
assigned-clocks = <&topckgen CLK_TOP_ETHER_125M_SEL>,
<&topckgen CLK_TOP_ETHER_50M_SEL>,
<&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
assigned-clock-parents = <&topckgen CLK_TOP_ETHERPLL_125M>,
<&topckgen CLK_TOP_APLL1_D3>,
<&topckgen CLK_TOP_ETHERPLL_50M>;
power-domains = <&scpsys MT2712_POWER_DOMAIN_AUDIO>;
mediatek,pericfg = <&pericfg>;
mediatek,tx-delay-ps = <1530>;
snps,txpbl = <1>;
snps,rxpbl = <1>;
snps,reset-gpio = <&pio 87 GPIO_ACTIVE_LOW>;
snps,reset-delays-us = <0 10000 10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 15: We need a select here so we don't match all nodes with 'snps,dwmac'
Micrel series Gigabit Ethernet PHYs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/micrel,gigabit.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Stefan Eichenberger <eichest@gmail.com>"
Some boards require special skew tuning values, particularly when it comes to clock delays. These values can be specified in the device tree using the properties listed here.
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id0022.1610", "ethernet-phy-id0022.1611", "ethernet-phy-id0022.1620", "ethernet-phy-id0022.1631", "ethernet-phy-id0022.1640", "ethernet-phy-id0022.1650", "ethernet-phy-id0022.1660", "ethernet-phy-id0022.1670"
micrel,force-master — not listed as required here #
Value type (type): "boolean"
Force phy to master mode. Only set this option if the phy reference clock provided at CLK125_NDO pin is used as MAC reference clock because the clock jitter in slave mode is too high (errata#2). Attention: The link partner must be configurable as slave otherwise no link will be established.
coma-mode-gpios — not listed as required here #
Maximum number of items (maxItems): 1
If present the given gpio will be deasserted when the PHY is probed.
Some PHYs have a COMA mode input pin which puts the PHY into isolate and power-down mode. On some boards this input is connected to a GPIO of the SoC.
micrel,led-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED mode value to set for PHYs with configurable LEDs.
Configure the LED mode with single value. The list of PHYs and the bits that are currently supported:
LAN8814: register EP5.0, bit 6
See the respective PHY datasheet for the mode values.
Minimum value (minimum): 0
Maximum value (maximum): 1
Properties matching a name pattern (patternProperties) #
^([rt]xc)-skew-psec$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32
Skew control of the pad in picoseconds.
Minimum value (minimum): -700
Maximum value (maximum): 2400
Multiple of (multipleOf): 100
Default value (default): 0
^([rt]xd[0-3]|rxdv|txen)-skew-psec$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/int32
Skew control of the pad in picoseconds.
Minimum value (minimum): -700
Maximum value (maximum): 800
Multiple of (multipleOf): 100
Default value (default): 0
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1610","ethernet-phy-id0022.1611"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^([rt]xd[0-3]|[rt]xc|rxdv|txen)-skew-ps$— name matches this regular expressionSkew control of the pad in picoseconds. The actual increment on the chip is 120ps ranging from -840ps to 960ps, this mismatch comes from a documentation error before datasheet revision 1.2 (Feb 2014).
The device tree value to delay mapping looks as follows: Device Tree Value Delay -------------------------- 0 -840ps 200 -720ps 400 -600ps 600 -480ps 800 -360ps 1000 -240ps 1200 -120ps 1400 0ps 1600 120ps 1800 240ps 2000 360ps 2200 480ps 2400 600ps 2600 720ps 2800 840ps 3000 960ps
Minimum value (
minimum):0Maximum value (
maximum):3000Multiple of (
multipleOf):200Default value (
default):1400
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id0022.1620"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^([rt]xc)-skew-ps$— name matches this regular expressionSkew control of the pad in picoseconds.
The device tree value to delay mapping is as follows: Device Tree Value Delay -------------------------- 0 -900ps 60 -840ps 120 -780ps 180 -720ps 240 -660ps 300 -600ps 360 -540ps 420 -480ps 480 -420ps 540 -360ps 600 -300ps 660 -240ps 720 -180ps 780 -120ps 840 -60ps 900 0ps 960 60ps 1020 120ps 1080 180ps 1140 240ps 1200 300ps 1260 360ps 1320 420ps 1380 480ps 1440 540ps 1500 600ps 1560 660ps 1620 720ps 1680 780ps 1740 840ps 1800 900ps 1860 960ps
Minimum value (
minimum):0Maximum value (
maximum):1860Multiple of (
multipleOf):60Default value (
default):900
^([rt]xd[0-3]|rxdv|txen)-skew-ps$— name matches this regular expressionSkew control of the pad in picoseconds.
The device tree value to delay mapping is as follows: Device Tree Value Delay -------------------------- 0 -420ps 60 -360ps 120 -300ps 180 -240ps 240 -180ps 300 -120ps 360 -60ps 420 0ps 480 60ps 540 120ps 600 180ps 660 240ps 720 300ps 780 360ps 840 420ps 900 480ps
Minimum value (
minimum):0Maximum value (
maximum):900Multiple of (
multipleOf):60Default value (
default):420
Rule 4 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1640","ethernet-phy-id0022.1650"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^([rt]xd[0-3]|[rt]xc|rxdv|txen)-skew-psec$— name matches this regular expression
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id0022.1620"When the condition matches (
then) #Properties and child nodes (
properties)
micrel,force-master— not listed as required here
false— Not permitted by this property rule.
Rule 6 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id0022.1660"When the condition matches (
then) #Properties and child nodes (
properties)
coma-mode-gpios— not listed as required here
false— Not permitted by this property rule.
micrel,led-mode— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@7 {
compatible = "ethernet-phy-id0022.1610";
reg = <7>;
rxc-skew-ps = <3000>;
rxdv-skew-ps = <0>;
txc-skew-ps = <3000>;
txen-skew-ps = <0>;
};
ethernet-phy@9 {
compatible = "ethernet-phy-id0022.1640";
reg = <9>;
rxc-skew-psec = <(-100)>;
txc-skew-psec = <(-100)>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 21: KSZ9021
Line 22: KSZ9021RLRN
Line 23: KSZ9031
Line 24: KSZ9477
Line 25: KSZ9131
Line 26: LAN8841
Line 27: LAN8814
Line 28: LAN8804
Micrel KS8851 Ethernet MAC (SPI and Parallel bus options)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
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 hereRule 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 hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule 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 hereMinimum 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
Micrel KSZ series PHYs and switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/micrel.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Stefan Eichenberger <eichest@gmail.com>"
The Micrel KSZ series contains different network phys and switches.
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id000e.7237", "ethernet-phy-id0022.1430", "ethernet-phy-id0022.1435", "ethernet-phy-id0022.1510", "ethernet-phy-id0022.1537", "ethernet-phy-id0022.1550", "ethernet-phy-id0022.1555", "ethernet-phy-id0022.1556", "ethernet-phy-id0022.1560", "ethernet-phy-id0022.1570", "ethernet-phy-id0022.161a", "ethernet-phy-id0022.1720"
micrel,fiber-mode — not listed as required here #
Value type (type): "boolean"
If present the PHY is configured to operate in fiber mode.
The KSZ8041FTL variant supports fiber mode, enabled by the FXEN boot strapping pin. It can't be determined from the PHY registers whether the PHY is in fiber mode, so this boolean device tree property can be used to describe it.
In fiber mode, auto-negotiation is disabled and the PHY can only work in 100base-fx (full and half duplex) modes.
micrel,led-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED mode value to set for PHYs with configurable LEDs.
Configure the LED mode with single value. The list of PHYs and the bits that are currently supported:
KSZ8001: register 0x1e, bits 15..14 KSZ8041: register 0x1e, bits 15..14 KSZ8021: register 0x1f, bits 5..4 KSZ8031: register 0x1f, bits 5..4 KSZ8051: register 0x1f, bits 5..4 KSZ8081: register 0x1f, bits 5..4 KSZ8091: register 0x1f, bits 5..4
See the respective PHY datasheet for the mode values.
Minimum value (minimum): 0
Maximum value (maximum): 3
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id0022.1510"When the condition matches (
then) #Properties and child nodes (
properties)
micrel,fiber-mode— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1510","ethernet-phy-id0022.1555","ethernet-phy-id0022.1556","ethernet-phy-id0022.1550","ethernet-phy-id0022.1560","ethernet-phy-id0022.161a"When the condition matches (
then) #Properties and child nodes (
properties)
micrel,led-mode— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0022.1555","ethernet-phy-id0022.1556","ethernet-phy-id0022.1560"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required hereExact value (
const):"rmii-ref"The RMII reference input clock. Used to determine the XI input clock.
micrel,rmii-reference-clock-select-25-mhz— not listed as required hereValue type (
type):"boolean"RMII Reference Clock Select bit selects 25 MHz mode
Setting the RMII Reference Clock Select bit enables 25 MHz rather than 50 MHz clock mode.
Requirements triggered by another property (dependentRequired): { micrel,rmii-reference-clock-select-25-mhz: "clock-names" }
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@5 {
compatible = "ethernet-phy-id0022.1510";
reg = <5>;
micrel,led-mode = <2>;
micrel,fiber-mode;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: KSZ8873MLL
Line 20: KSZ886X
Line 21: KSZ8863
Line 22: KSZ8041
Line 23: KSZ8041RNLI
Line 24: KSZ8051
Line 25: KSZ8021
Line 26: KSZ8031
Line 27: KSZ8081, KSZ8091
Line 28: KSZ8061
Line 29: KSZ8001
Line 30: KS8737
Microchip LAN8650/1 10BASE-T1S MACPHY Ethernet Controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/microchip,lan8650.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Parthiban Veerasooran <parthiban.veerasooran@microchip.com>"
The LAN8650/1 combines a Media Access Controller (MAC) and an Ethernet PHY to enable 10BASE‑T1S networks. The Ethernet Media Access Controller (MAC) module implements a 10 Mbps half duplex Ethernet MAC, compatible with the IEEE 802.3 standard and a 10BASE-T1S physical layer transceiver integrated into the LAN8650/1. The communication between the Host and the MAC-PHY is specified in the OPEN Alliance 10BASE-T1x MACPHY Serial Interface (TC6).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/ethernet-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"microchip,lan8650"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"microchip,lan8651"Item 2
Exact value (
const):"microchip,lan8650"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Interrupt from MAC-PHY asserted in the event of Receive Chunks Available, Transmit Chunk Credits Available and Extended Status Event.
Maximum number of items (maxItems): 1
spi-max-frequency — required here #
Minimum value (minimum): 15000000
Maximum value (maximum): 25000000
Required in this object (required): "compatible", "reg", "interrupts", "spi-max-frequency"
Properties not evaluated by applicable rules (unevaluatedProperties) #
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 = "microchip,lan8651", "microchip,lan8650";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <ð0_pins>;
interrupt-parent = <&gpio>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
local-mac-address = [04 05 06 01 02 03];
spi-max-frequency = <15000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip SMSC9500/LAN9530/LAN9730 USB Ethernet Controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/microchip,lan95xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
Device tree properties for hard wired SMSC95xx compatible USB Ethernet controller.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"usb424,9500","usb424,9505","usb424,9530","usb424,9730","usb424,9900","usb424,9901","usb424,9902","usb424,9903","usb424,9904","usb424,9905","usb424,9906","usb424,9907","usb424,9908","usb424,9909","usb424,9e00","usb424,9e01","usb424,9e08","usb424,ec00"
reg — 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.
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
usb {
#address-cells = <1>;
#size-cells = <0>;
ethernet@1 {
compatible = "usb424,9e00";
reg = <1>;
local-mac-address = [00 00 00 00 00 00];
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 23: SMSC9500 USB Ethernet Device
Line 24: SMSC9505 USB Ethernet Device
Line 25: SMSC LAN9530 USB Ethernet Device
Line 26: SMSC LAN9730 USB Ethernet Device
Line 27: SMSC9500 USB Ethernet Device (SAL10)
Line 28: SMSC9505 USB Ethernet Device (SAL10)
Line 29: SMSC9500A USB Ethernet Device (SAL10)
Line 30: SMSC9505A USB Ethernet Device (SAL10)
Line 31: SMSC9512/9514 USB Hub & Ethernet Device (SAL10)
Line 32: SMSC9500A USB Ethernet Device (HAL)
Line 33: SMSC9505A USB Ethernet Device (HAL)
Line 34: SMSC9500 USB Ethernet Device (Alternate ID)
Line 35: SMSC9500A USB Ethernet Device (Alternate ID)
Line 36: SMSC9512/9514 USB Hub & Ethernet Device ID)
Line 37: SMSC9500A USB Ethernet Device
Line 38: SMSC9505A USB Ethernet Device
Line 39: SMSC LAN89530 USB Ethernet Device
Line 40: SMSC9512/9514 USB Hub & Ethernet Device
Microchip Lan966x Ethernet switch controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/microchip,lan966x-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Horatiu Vultur <horatiu.vultur@microchip.com>"
The lan966x switch is a multi-port Gigabit AVB/TSN Ethernet Switch with two integrated 10/100/1000Base-T PHYs. In addition to the integrated PHYs, it supports up to 2RGMII/RMII, up to 3BASE-X/SERDES/2.5GBASE-X and up to 2 Quad-SGMII/Quad-USGMII interfaces.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^switch@[0-9a-f]+$"
compatible — required here #
Exact value (const): "microchip,lan966x-switch"
reg — required here #
Array item rules (items) #
Item 1
cpu target
Item 2
general control block target
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpu"
Item 2
Exact value (
const):"gcb"
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
register based extraction
Item 2
frame dma based extraction
Item 3
analyzer interrupt
Item 4
ptp interrupt
Item 5
ptp external interrupt
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"xtr"
Item 2
Exact value (
const):"fdma"
Item 3
Exact value (
const):"ana"
Item 4
Exact value (
const):"ptp"
Item 5
Exact value (
const):"ptp-ext"
resets — required here #
Array item rules (items) #
Item 1
Reset controller used for switch core reset (soft reset)
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
ethernet-ports — required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/net/ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
reg — required here
Switch port number
phys — required here
Phandle of a Ethernet SerDes PHY
phy-mode — required here
This specifies the interface used by the Ethernet SerDes towards the PHY or SFP.
Allowed values (enum): "gmii", "sgmii", "qsgmii", "1000base-x", "2500base-x"
phy-handle — not listed as required here
Phandle of a Ethernet PHY.
sfp — not listed as required here
Phandle of an SFP.
managed — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg", "phys", "phy-mode"
Exactly one of these rules must match (oneOf)
Rule 1
Rule 2
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "resets", "reset-names", "ethernet-ports"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
switch: switch@e0000000 {
compatible = "microchip,lan966x-switch";
reg = <0xe0000000 0x0100000>,
<0xe2000000 0x0800000>;
reg-names = "cpu", "gcb";
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "xtr";
resets = <&switch_reset 0>;
reset-names = "switch";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port0: port@0 {
reg = <0>;
phy-handle = <&phy0>;
phys = <&serdes 0 0>;
phy-mode = "gmii";
};
port1: port@1 {
reg = <1>;
sfp = <&sfp_eth1>;
managed = "in-band-status";
phys = <&serdes 2 4>;
phy-mode = "sgmii";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Microchip Sparx5 Ethernet switch controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/microchip,sparx5-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Steen Hegelund <steen.hegelund@microchip.com>", "Lars Povlsen <lars.povlsen@microchip.com>", "Daniel Machon <daniel.machon@microchip.com>"
The SparX-5 Enterprise Ethernet switch family provides a rich set of Enterprise switching features such as advanced TCAM-based VLAN and QoS processing enabling delivery of differentiated services, and security through TCAM-based frame processing using versatile content aware processor (VCAP).
IPv4/IPv6 Layer 3 (L3) unicast and multicast routing is supported with up to 18K IPv4/9K IPv6 unicast LPM entries and up to 9K IPv4/3K IPv6 (S,G) multicast groups.
L3 security features include source guard and reverse path forwarding (uRPF) tasks. Additional L3 features include VRF-Lite and IP tunnels (IP over GRE/IP).
The SparX-5 switch family targets managed Layer 2 and Layer 3 equipment in SMB, SME, and Enterprise where high port count 1G/2.5G/5G/10G switching with 10G/25G aggregation links is required.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^switch@[0-9a-f]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"microchip,lan9691-switch","microchip,sparx5-switch"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,lan969c-switch","microchip,lan969b-switch","microchip,lan969a-switch","microchip,lan9699-switch","microchip,lan9698-switch","microchip,lan9697-switch","microchip,lan9696-switch","microchip,lan9695-switch","microchip,lan9694-switch","microchip,lan9693-switch","microchip,lan9692-switch"Item 2
Exact value (
const):"microchip,lan9691-switch"
reg — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
cpu target
Item 2
devices target
Item 3
general control block target
reg-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"cpu"
Item 2
Exact value (
const):"devices"
Item 3
Exact value (
const):"gcb"
interrupts — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
register based extraction
Item 2
frame dma based extraction
Item 3
ptp interrupt
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"xtr"
Item 2
Exact value (
const):"fdma"
Item 3
Exact value (
const):"ptp"
resets — not listed as required here #
Array item rules (items) #
Item 1
Reset controller used for switch core reset (soft reset)
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
mac-address — not listed as required here #
true — No constraints added by this property rule.
ethernet-ports — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Shared schema rule ($ref): /schemas/net/ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Switch port number
phys — not listed as required here
Maximum number of items (maxItems): 1
phandle of a Ethernet SerDes PHY. This defines which SerDes instance will handle the Ethernet traffic.
microchip,bandwidth — required here
Specifies bandwidth in Mbit/s allocated to the port.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 25000
microchip,sd-sgpio — not listed as required here
Index of the ports Signal Detect SGPIO in the set of 384 SGPIOs This is optional, and only needed if the default used index is is not correct.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 383
rx-internal-delay-ps — not listed as required here
RGMII Receive Clock Delay defined in pico seconds, used to select the DLL phase shift between 1000 ps (45 degree shift at 1Gbps) and 3300 ps (147 degree shift at 1Gbps). A value of 0 ps will disable any delay. The Default is no delay.
Allowed values (enum): 0, 1000, 1700, 2000, 2500, 3000, 3300
Default value (default): 0
tx-internal-delay-ps — not listed as required here
RGMII Transmit Clock Delay defined in pico seconds, used to select the DLL phase shift between 1000 ps (45 degree shift at 1Gbps) and 3300 ps (147 degree shift at 1Gbps). A value of 0 ps will disable any delay. The Default is no delay.
Allowed values (enum): 0, 1000, 1700, 2000, 2500, 3000, 3300
Default value (default): 0
Required in this object (required): "reg", "phy-mode", "microchip,bandwidth"
Condition (if)
This rule must not match (
not)Properties and child nodes (
properties)
phy-mode— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rgmii","rgmii-id","rgmii-rxid","rgmii-txid"
When the condition matches (then)
Exactly one of these rules must match (oneOf)
Rule 1
Rule 2
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "ethernet-ports"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):2
reg-names— not listed as required hereMaximum number of items (
maxItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— not listed as required hereMinimum number of items (
minItems):3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
switch: switch@600000000 {
compatible = "microchip,sparx5-switch";
reg = <0 0x401000>,
<0x10004000 0x7fc000>,
<0x11010000 0xaf0000>;
reg-names = "cpu", "devices", "gcb";
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "xtr";
resets = <&reset 0>;
reset-names = "switch";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port0: port@0 {
reg = <0>;
microchip,bandwidth = <1000>;
phys = <&serdes 13>;
phy-handle = <&phy0>;
phy-mode = "qsgmii";
};
/* ... */
/* Then the 25G interfaces */
port60: port@60 {
reg = <60>;
microchip,bandwidth = <25000>;
phys = <&serdes 29>;
phy-mode = "10gbase-r";
sfp = <&sfp_eth60>;
managed = "in-band-status";
microchip,sd-sgpio = <365>;
};
port61: port@61 {
reg = <61>;
microchip,bandwidth = <25000>;
phys = <&serdes 30>;
phy-mode = "10gbase-r";
sfp = <&sfp_eth61>;
managed = "in-band-status";
microchip,sd-sgpio = <369>;
};
port62: port@62 {
reg = <62>;
microchip,bandwidth = <25000>;
phys = <&serdes 31>;
phy-mode = "10gbase-r";
sfp = <&sfp_eth62>;
managed = "in-band-status";
microchip,sd-sgpio = <373>;
};
port63: port@63 {
reg = <63>;
microchip,bandwidth = <25000>;
phys = <&serdes 32>;
phy-mode = "10gbase-r";
sfp = <&sfp_eth63>;
managed = "in-band-status";
microchip,sd-sgpio = <377>;
};
/* Finally the Management interface */
port64: port@64 {
reg = <64>;
microchip,bandwidth = <1000>;
phys = <&serdes 0>;
phy-handle = <&phy64>;
phy-mode = "sgmii";
mac-address = [ 00 00 00 01 02 03 ];
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
MotorComm yt8xxx Ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/motorcomm,yt8xxx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Sae <frank.sae@motor-comm.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id4f51.e91a", "ethernet-phy-id4f51.e91b"
rx-internal-delay-ps — not listed as required here #
RGMII RX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds.
Allowed values (enum): 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650, 1800, 1900, 1950, 2050, 2100, 2200, 2250, 2350, 2500, 2650, 2800, 2950, 3100, 3250, 3400, 3550, 3700, 3850, 4000, 4150
Default value (default): 1950
tx-internal-delay-ps — not listed as required here #
RGMII TX Clock Delay used only when PHY operates in RGMII mode with internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds.
Allowed values (enum): 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650, 1800, 1950, 2100, 2250
Default value (default): 1950
motorcomm,clk-out-frequency-hz — not listed as required here #
clock output on clock output pin.
Allowed values (enum): 0, 25000000, 125000000
Default value (default): 0
motorcomm,keep-pll-enabled — not listed as required here #
If set, keep the PLL enabled even if there is no link. Useful if you want to use the clock output without an ethernet link.
Value type (type): "boolean"
motorcomm,auto-sleep-disabled — not listed as required here #
If set, PHY will not enter sleep mode and close AFE after unplug cable for a timer.
Value type (type): "boolean"
motorcomm,rx-clk-drv-microamp — not listed as required here #
drive strength of rx_clk rgmii pad. The YT8531 RGMII LDO voltage supports 1.8V/3.3V, and the LDO voltage can be configured with hardware pull-up resistors to match the SOC voltage (usually 1.8V). The software can read the registers to obtain the LDO voltage and configure the legal drive strength(curren). ===================================================== | voltage | current Available (uA) | | 1.8v | 1200 2100 2700 2910 3110 3600 3970 4350 | | 3.3v | 3070 4080 4370 4680 5020 5450 5740 6140 | =====================================================
Allowed values (enum): 1200, 2100, 2700, 2910, 3070, 3110, 3600, 3970, 4080, 4350, 4370, 4680, 5020, 5450, 5740, 6140
Default value (default): 2910
motorcomm,rx-data-drv-microamp — not listed as required here #
drive strength of rx_data/rx_ctl rgmii pad. The YT8531 RGMII LDO voltage supports 1.8V/3.3V, and the LDO voltage can be configured with hardware pull-up resistors to match the SOC voltage (usually 1.8V). The software can read the registers to obtain the LDO voltage and configure the legal drive strength(curren). ===================================================== | voltage | current Available (uA) | | 1.8v | 1200 2100 2700 2910 3110 3600 3970 4350 | | 3.3v | 3070 4080 4370 4680 5020 5450 5740 6140 | =====================================================
Allowed values (enum): 1200, 2100, 2700, 2910, 3070, 3110, 3600, 3970, 4080, 4350, 4370, 4680, 5020, 5450, 5740, 6140
Default value (default): 2910
motorcomm,tx-clk-adj-enabled — not listed as required here #
This configuration is mainly to adapt to VF2 with JH7110 SoC. Useful if you want to use tx-clk-xxxx-inverted to adj the delay of tx clk.
Value type (type): "boolean"
motorcomm,tx-clk-10-inverted — not listed as required here #
Use original or inverted RGMII Transmit PHY Clock to drive the RGMII Transmit PHY Clock delay train configuration when speed is 10Mbps.
Value type (type): "boolean"
motorcomm,tx-clk-100-inverted — not listed as required here #
Use original or inverted RGMII Transmit PHY Clock to drive the RGMII Transmit PHY Clock delay train configuration when speed is 100Mbps.
Value type (type): "boolean"
motorcomm,tx-clk-1000-inverted — not listed as required here #
Use original or inverted RGMII Transmit PHY Clock to drive the RGMII Transmit PHY Clock delay train configuration when speed is 1000Mbps.
Value type (type): "boolean"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rgmii-id";
ethernet-phy@4 {
/* Only needed to make DT lint tools work. Do not copy/paste
* into real DTS files.
*/
compatible = "ethernet-phy-id4f51.e91a";
reg = <4>;
rx-internal-delay-ps = <2100>;
tx-internal-delay-ps = <150>;
motorcomm,clk-out-frequency-hz = <0>;
motorcomm,keep-pll-enabled;
motorcomm,auto-sleep-disabled;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rgmii";
ethernet-phy@5 {
/* Only needed to make DT lint tools work. Do not copy/paste
* into real DTS files.
*/
compatible = "ethernet-phy-id4f51.e91a";
reg = <5>;
motorcomm,clk-out-frequency-hz = <125000000>;
motorcomm,keep-pll-enabled;
motorcomm,auto-sleep-disabled;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microsemi MII Management Controller (MIIM)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mscc,miim.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"mscc,ocelot-miim","microchip,lan966x-miim"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mscc,ocelot-miim"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
reg — required here #
Array item rules (items) #
Item 1
base address
Item 2
associated reset register for internal PHYs
Minimum number of items (minItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
true — No constraints added by this property rule.
resets — not listed as required here #
Array item rules (items) #
Item 1
Reset shared with all blocks attached to the Switch Core Register Bus (CSR) including VRAP slave.
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@107009c {
compatible = "mscc,ocelot-miim";
reg = <0x107009c 0x36>, <0x10700f0 0x8>;
interrupts = <14>;
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Microchip VSC7514 Ethernet switch controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mscc,vsc7514-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Oltean <vladimir.oltean@nxp.com>", "Claudiu Manoil <claudiu.manoil@nxp.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>"
Bindings for the Microchip VSC7514 switch driver
The VSC7514 switch driver handles up to 11 ports and can inject/extract packets using CPU. Additionally, PTP is supported as well as FDMA for faster packet extraction/injection.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mscc,vsc7514-switch"When the condition matches (
then) #Shared schema rule (
$ref):ethernet-switch.yaml#/$defs/ethernet-portsRequired in this object (
required):"interrupts","interrupt-names"Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):21
reg-names— not listed as required hereMinimum number of items (
minItems):21
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"mscc,vsc7512-switch"When the condition matches (
then) #Shared schema rule (
$ref):/schemas/net/dsa/dsa.yaml#/$defs/ethernet-portsProperties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):20
reg-names— not listed as required hereMaximum number of items (
maxItems):20
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mscc,vsc7512-switch", "mscc,vsc7514-switch"
reg — required here #
Minimum number of items (minItems): 20
Array item rules (items) #
Item 1
system target
Item 2
rewriter target
Item 3
qs target
Item 4
PTP target
Item 5
Port0 target
Item 6
Port1 target
Item 7
Port2 target
Item 8
Port3 target
Item 9
Port4 target
Item 10
Port5 target
Item 11
Port6 target
Item 12
Port7 target
Item 13
Port8 target
Item 14
Port9 target
Item 15
Port10 target
Item 16
QSystem target
Item 17
Analyzer target
Item 18
S0 target
Item 19
S1 target
Item 20
S2 target
Item 21
fdma target
reg-names — required here #
Minimum number of items (minItems): 20
Array item rules (items) #
Item 1
Exact value (
const):"sys"
Item 2
Exact value (
const):"rew"
Item 3
Exact value (
const):"qs"
Item 4
Exact value (
const):"ptp"
Item 5
Exact value (
const):"port0"
Item 6
Exact value (
const):"port1"
Item 7
Exact value (
const):"port2"
Item 8
Exact value (
const):"port3"
Item 9
Exact value (
const):"port4"
Item 10
Exact value (
const):"port5"
Item 11
Exact value (
const):"port6"
Item 12
Exact value (
const):"port7"
Item 13
Exact value (
const):"port8"
Item 14
Exact value (
const):"port9"
Item 15
Exact value (
const):"port10"
Item 16
Exact value (
const):"qsys"
Item 17
Exact value (
const):"ana"
Item 18
Exact value (
const):"s0"
Item 19
Exact value (
const):"s1"
Item 20
Exact value (
const):"s2"
Item 21
Exact value (
const):"fdma"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
PTP ready
Item 2
register based extraction
Item 3
frame dma based extraction
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ptp_rdy"
Item 2
Exact value (
const):"xtr"
Item 3
Exact value (
const):"fdma"
Required in this object (required): "compatible", "reg", "reg-names", "ethernet-ports"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
switch@1010000 {
compatible = "mscc,vsc7514-switch";
reg = <0x1010000 0x10000>,
<0x1030000 0x10000>,
<0x1080000 0x100>,
<0x10e0000 0x10000>,
<0x11e0000 0x100>,
<0x11f0000 0x100>,
<0x1200000 0x100>,
<0x1210000 0x100>,
<0x1220000 0x100>,
<0x1230000 0x100>,
<0x1240000 0x100>,
<0x1250000 0x100>,
<0x1260000 0x100>,
<0x1270000 0x100>,
<0x1280000 0x100>,
<0x1800000 0x80000>,
<0x1880000 0x10000>,
<0x1040000 0x10000>,
<0x1050000 0x10000>,
<0x1060000 0x10000>,
<0x1a0 0x1c4>;
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
"port2", "port3", "port4", "port5", "port6",
"port7", "port8", "port9", "port10", "qsys",
"ana", "s0", "s1", "s2", "fdma";
interrupts = <18 21 16>;
interrupt-names = "ptp_rdy", "xtr", "fdma";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port0: port@0 {
reg = <0>;
phy-handle = <&phy0>;
phy-mode = "internal";
};
port1: port@1 {
reg = <1>;
phy-handle = <&phy1>;
phy-mode = "internal";
};
};
};
ethernet-switch@1 {
compatible = "mscc,vsc7512-switch";
reg = <0x71010000 0x10000>,
<0x71030000 0x10000>,
<0x71080000 0x100>,
<0x710e0000 0x10000>,
<0x711e0000 0x100>,
<0x711f0000 0x100>,
<0x71200000 0x100>,
<0x71210000 0x100>,
<0x71220000 0x100>,
<0x71230000 0x100>,
<0x71240000 0x100>,
<0x71250000 0x100>,
<0x71260000 0x100>,
<0x71270000 0x100>,
<0x71280000 0x100>,
<0x71800000 0x80000>,
<0x71880000 0x10000>,
<0x71040000 0x10000>,
<0x71050000 0x10000>,
<0x71060000 0x10000>;
reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
"port2", "port3", "port4", "port5", "port6",
"port7", "port8", "port9", "port10", "qsys",
"ana", "s0", "s1", "s2";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ethernet = <&mac_sw>;
phy-handle = <&phy0>;
phy-mode = "internal";
};
port@1 {
reg = <1>;
phy-handle = <&phy1>;
phy-mode = "internal";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 128: VSC7514 (Switchdev)
Line 176: VSC7512 (DSA)
Microsemi VSC8531 Gigabit Ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/mscc-phy-vsc8531.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
The VSC8531 is a Gigabit Ethernet PHY with configurable MAC interface drive strength and LED modes.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0007.0570","ethernet-phy-id0007.0772"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"ethernet-phy-id0007.0570","ethernet-phy-id0007.0772"
Item 2
Exact value (
const):"ethernet-phy-ieee802.3-c22"
vsc8531,vddmac — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The VDDMAC voltage in millivolts. This property is used in combination with the edge-slowdown property to control the drive strength of the MAC interface output signals.
Allowed values (enum): 3300, 2500, 1800, 1500
Default value (default): 3300
vsc8531,edge-slowdown — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Percentage by which the edge rate should be slowed down relative to the fastest possible edge time. This setting helps reduce electromagnetic interference (EMI) by adjusting the drive strength of the MAC interface output signals. Valid values depend on the vddmac voltage setting according to the edge rate change table in the datasheet.
- When vsc8531,vddmac = 3300 mV: allowed values are 0, 2, 4, 7, 10, 17, 29, and 53.
(Recommended: 7)
- When vsc8531,vddmac = 2500 mV: allowed values are 0, 3, 6, 10, 14, 23, 37, and 63.
(Recommended: 10)
- When vsc8531,vddmac = 1800 mV: allowed values are 0, 5, 9, 16, 23, 35, 52, and 76.
(Recommended: 0)
- When vsc8531,vddmac = 1500 mV: allowed values are 0, 6, 14, 21, 29, 42, 58, and 77.
(Recommended: 0)
Allowed values (enum): 0, 2, 3, 4, 5, 6, 7, 9, 10, 14, 16, 17, 21, 23, 29, 35, 37, 42, 52, 53, 58, 63, 76, 77
Default value (default): 0
vsc8531,led-0-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED[0] behavior mode. See include/dt-bindings/net/mscc-phy-vsc8531.h for available modes.
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 1
vsc8531,led-1-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED[1] behavior mode. See include/dt-bindings/net/mscc-phy-vsc8531.h for available modes.
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 2
vsc8531,led-2-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED[2] behavior mode. See include/dt-bindings/net/mscc-phy-vsc8531.h for available modes.
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
vsc8531,led-3-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
LED[3] behavior mode. See include/dt-bindings/net/mscc-phy-vsc8531.h for available modes.
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 8
load-save-gpios — not listed as required here #
GPIO phandle used for the load/save operation of the PTP hardware clock (PHC).
Maximum number of items (maxItems): 1
Property dependencies (dependencies) #
vsc8531,edge-slowdown — applies when this property is present #
Also requires: "vsc8531,vddmac"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/net/mscc-phy-vsc8531.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-id0007.0772", "ethernet-phy-ieee802.3-c22";
reg = <0>;
vsc8531,vddmac = <3300>;
vsc8531,edge-slowdown = <7>;
vsc8531,led-0-mode = <VSC8531_LINK_1000_ACTIVITY>;
vsc8531,led-1-mode = <VSC8531_LINK_100_ACTIVITY>;
load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: VSC8531
Line 25: VSC8541
Line 33: VSC8531
Line 34: VSC8541
Network Class Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/network-class.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>"
Properties and child nodes (properties) #
address-bits — not listed as required here #
Specifies number of address bits required to address the device described by this node, e.g. size of the MAC address.
Default value (default): 48
Exact value (const): 48
local-mac-address — not listed as required here #
Specifies MAC address that was assigned to the network device described by the node containing this property.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 6
mac-address — not listed as required here #
Specifies the MAC address that was last used by the boot program. This property should be used in cases where the MAC address assigned to the device by the boot program is different from the local-mac-address property. This property shall be used only if the value differs from local-mac-address property value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 6
Maximum number of items (maxItems): 6
max-frame-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum transfer unit (IEEE defined MTU), rather than the maximum frame size (there\'s contradiction in the Devicetree Specification).
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Tegra234 MGBE Multi-Gigabit Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nvidia,tegra234-mgbe.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <treding@nvidia.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra234-mgbe"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hypervisor"
Item 2
Exact value (
const):"mac"
Item 3
Exact value (
const):"xpcs"
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
interrupt-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"common"
Item 2
Exact value (
const):"macsec-ns"
Item 3
Exact value (
const):"macsec"
clocks — required here #
Maximum number of items (maxItems): 12
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mgbe"
Item 2
Exact value (
const):"mac"
Item 3
Exact value (
const):"mac-divider"
Item 4
Exact value (
const):"ptp_ref"
Item 5
Exact value (
const):"rx-input-m"
Item 6
Exact value (
const):"rx-input"
Item 7
Exact value (
const):"tx"
Item 8
Exact value (
const):"eee-pcs"
Item 9
Exact value (
const):"rx-pcs-input"
Item 10
Exact value (
const):"rx-pcs-m"
Item 11
Exact value (
const):"rx-pcs"
Item 12
Exact value (
const):"tx-pcs"
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"pcs"
interconnects — not listed as required here #
Array item rules (items) #
Item 1
memory read client
Item 2
memory write client
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma-mem"
Item 2
Exact value (
const):"write"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
phy-handle — required here #
true — No constraints added by this property rule.
phy-mode — required here #
Rule for matching array elements (contains) #
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Optional node for embedded MDIO controller.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "resets", "reset-names", "power-domains", "phy-handle", "phy-mode"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/memory/tegra234-mc.h>
#include <dt-bindings/power/tegra234-powergate.h>
#include <dt-bindings/reset/tegra234-reset.h>
ethernet@6800000 {
compatible = "nvidia,tegra234-mgbe";
reg = <0x06800000 0x10000>,
<0x06810000 0x10000>,
<0x068a0000 0x10000>;
reg-names = "hypervisor", "mac", "xpcs";
interrupts = <GIC_SPI 384 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "common";
clocks = <&bpmp TEGRA234_CLK_MGBE0_APP>,
<&bpmp TEGRA234_CLK_MGBE0_MAC>,
<&bpmp TEGRA234_CLK_MGBE0_MAC_DIVIDER>,
<&bpmp TEGRA234_CLK_MGBE0_PTP_REF>,
<&bpmp TEGRA234_CLK_MGBE0_RX_INPUT_M>,
<&bpmp TEGRA234_CLK_MGBE0_RX_INPUT>,
<&bpmp TEGRA234_CLK_MGBE0_TX>,
<&bpmp TEGRA234_CLK_MGBE0_EEE_PCS>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS_INPUT>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>,
<&bpmp TEGRA234_CLK_MGBE0_RX_PCS>,
<&bpmp TEGRA234_CLK_MGBE0_TX_PCS>;
clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m",
"rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m",
"rx-pcs", "tx-pcs";
resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>,
<&bpmp TEGRA234_RESET_MGBE0_PCS>;
reset-names = "mac", "pcs";
interconnects = <&mc TEGRA234_MEMORY_CLIENT_MGBEARD &emc>,
<&mc TEGRA234_MEMORY_CLIENT_MGBEAWR &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu_niso0 TEGRA234_SID_MGBE>;
power-domains = <&bpmp TEGRA234_POWER_DOMAIN_MGBEA>;
phy-handle = <&mgbe0_phy>;
phy-mode = "usxgmii";
mdio {
#address-cells = <1>;
#size-cells = <0>;
mgbe0_phy: phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0x0>;
#phy-cells = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP i.MX8/9 DWMAC glue layer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,dwmac-imx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Clark Wang <xiaoning.wang@nxp.com>", "Shawn Guo <shawnguo@kernel.org>", "NXP Linux Team <linux-imx@nxp.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"nxp,imx8mp-dwmac-eqos","nxp,imx8dxl-dwmac-eqos","nxp,imx93-dwmac-eqos"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"nxp,imx8mp-dwmac-eqos","nxp,imx8dxl-dwmac-eqos","nxp,imx93-dwmac-eqos"Item 2
Exact value (
const):"snps,dwmac-5.10a"
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
MAC host clock
Item 2
MAC apb clock
Item 3
MAC timer clock
Item 4
MAC RGMII TX clock
Item 5
EQOS MEM clock
clock-names — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 5
Rule for matching array elements (contains) #
Allowed values (
enum):"stmmaceth","pclk","ptp_ref","tx","mem"
interrupts — not listed as required here #
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Item 2
Exact value (
const):"eth_wake_irq"
intf_mode — not listed as 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 the GPR syscon
Item 2
the offset of the GPR register
Should be phandle/offset pair. The phandle to the syscon node which encompases the GPR register, and the offset of the GPR register.
nvmem-cells — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
true — No constraints added by this property rule.
snps,rmii_refclk_ext — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
To select RMII reference clock from external.
Required in this object (required): "compatible", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/imx8mp-clock.h>
eqos: ethernet@30bf0000 {
compatible = "nxp,imx8mp-dwmac-eqos","snps,dwmac-5.10a";
reg = <0x30bf0000 0x10000>;
interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq";
clocks = <&clk IMX8MP_CLK_ENET_QOS_ROOT>,
<&clk IMX8MP_CLK_QOS_ENET_ROOT>,
<&clk IMX8MP_CLK_ENET_QOS_TIMER>,
<&clk IMX8MP_CLK_ENET_QOS>;
clock-names = "stmmaceth", "pclk", "ptp_ref", "tx";
phy-mode = "rgmii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 14: We need a select here so we don't match all nodes with 'snps,dwmac'
NXP LPC32xx SoC Ethernet Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,lpc-eth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc-eth"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
use-iram — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Use LPC32xx internal SRAM (IRAM) for DMA buffering
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@31060000 {
compatible = "nxp,lpc-eth";
reg = <0x31060000 0x1000>;
interrupt-parent = <&mic>;
interrupts = <29 0>;
phy-mode = "rmii";
use-iram;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP LPC1850 GMAC ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,lpc1850-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"snps,dwmac-3.611"
Item 3
Exact value (
const):"snps,dwmac"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc18xx-ccu.h>
ethernet@40010000 {
compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
reg = <0x40010000 0x2000>;
interrupts = <5>;
interrupt-names = "macirq";
clocks = <&ccu1 CLK_CPU_ETHERNET>;
clock-names = "stmmaceth";
resets = <&rgu 22>;
reset-names = "stmmaceth";
rx-fifo-depth = <256>;
tx-fifo-depth = <256>;
snps,pbl = <4>;
snps,force_thresh_dma_mode;
phy-mode = "rgmii-id";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 12: We need a select here so we don't match all nodes with 'snps,dwmac'
NETC Blocks Control
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,netc-blk-ctrl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Usually, NETC has 2 blocks of 64KB registers, integrated endpoint register block (IERB) and privileged register block (PRB). IERB is used for pre-boot initialization for all NETC devices, such as ENETC, Timer, EMIDO and so on. And PRB controls global reset and global error handling for NETC. Moreover, for the i.MX platform, there is also a NETCMIX block for link configuration, such as MII protocol, PCS protocol, etc.
Maintainers (maintainers): "Wei Fang <wei.fang@nxp.com>", "Clark Wang <xiaoning.wang@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,imx94-netc-blk-ctrl", "nxp,imx95-netc-blk-ctrl"
reg — required here #
Maximum number of items (maxItems): 3
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ierb"
Item 2
Exact value (
const):"prb"
Item 3
Exact value (
const):"netcmix"
#address-cells — required here #
Exact value (const): 2
#size-cells — required here #
Exact value (const): 2
ranges — required here #
true — No constraints added by this property rule.
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^pcie@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/pci/host-generic-pci.yaml#
Required in this object (required): "compatible", "reg", "reg-names", "#address-cells", "#size-cells", "ranges"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
bus {
#address-cells = <2>;
#size-cells = <2>;
system-controller@4cde0000 {
compatible = "nxp,imx95-netc-blk-ctrl";
reg = <0x0 0x4cde0000 0x0 0x10000>,
<0x0 0x4cdf0000 0x0 0x10000>,
<0x0 0x4c81000c 0x0 0x18>;
reg-names = "ierb", "prb", "netcmix";
#address-cells = <2>;
#size-cells = <2>;
ranges;
clocks = <&scmi_clk 98>;
clock-names = "ipg";
power-domains = <&scmi_devpd 18>;
pcie@4cb00000 {
compatible = "pci-host-ecam-generic";
reg = <0x0 0x4cb00000 0x0 0x100000>;
#address-cells = <3>;
#size-cells = <2>;
device_type = "pci";
bus-range = <0x1 0x1>;
ranges = <0x82000000 0x0 0x4cce0000 0x0 0x4cce0000 0x0 0x20000
0xc2000000 0x0 0x4cd10000 0x0 0x4cd10000 0x0 0x10000>;
mdio@0,0 {
compatible = "pci1131,ee00";
reg = <0x010000 0 0 0 0>;
#address-cells = <1>;
#size-cells = <0>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP S32G2xx/S32G3xx/S32R45 GMAC ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,s32-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jan Petrous (OSS) <jan.petrous@oss.nxp.com>"
This device is a Synopsys DWC IP, integrated on NXP S32G/R SoCs. The SoC series S32G2xx and S32G3xx feature one DWMAC instance, the SoC S32R45 has two instances. The devices can use RGMII/RMII/MII interface over Pinctrl device or the output can be routed to the embedded SerDes for SGMII connectivity.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"nxp,s32g2-dwmac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nxp,s32g3-dwmac","nxp,s32r45-dwmac"Item 2
Exact value (
const):"nxp,s32g2-dwmac"
reg — not listed as required here #
Array item rules (items) #
Item 1
Main GMAC registers
Item 2
GMAC PHY mode control register
nxp,phy-sel — not listed as 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 the GPR syscon node
Item 2
offset of PHY selection register
This phandle points to the GMAC_0_CTRL_STS register which controls the GMAC_0 configuration options. The register lets you select the PHY interface and the PHY mode. It also controls if the FTM_0 or FTM_1 FlexTimer Modules connect to GMAC_0.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "macirq"
clocks — required here #
Array item rules (items) #
Item 1
Main GMAC clock
Item 2
Transmit clock
Item 3
Receive clock
Item 4
PTP reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"tx"
Item 3
Exact value (
const):"rx"
Item 4
Exact value (
const):"ptp_ref"
Required in this object (required): "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/phy/phy.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
ethernet@4033c000 {
compatible = "nxp,s32g2-dwmac";
reg = <0x0 0x4033c000 0x0 0x2000>, /* gmac IP */
<0x0 0x4007c004 0x0 0x4>; /* GMAC_0_CTRL_STS */
nxp,phy-sel = <&gpr 0x4>;
interrupt-parent = <&gic>;
interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
clocks = <&clks 24>, <&clks 17>, <&clks 16>, <&clks 15>;
clock-names = "stmmaceth", "tx", "rx", "ptp_ref";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <5>;
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <5>;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2021-2024 NXP
NXP TJA11xx PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/nxp,tja11xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"
Bindings for NXP TJA11xx automotive PHYs
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id0180.dc40", "ethernet-phy-id0180.dc41", "ethernet-phy-id0180.dc48", "ethernet-phy-id0180.dd00", "ethernet-phy-id0180.dd01", "ethernet-phy-id0180.dd02", "ethernet-phy-id0180.dc80", "ethernet-phy-id0180.dc82", "ethernet-phy-id001b.b010", "ethernet-phy-id001b.b013", "ethernet-phy-id001b.b030", "ethernet-phy-id001b.b031"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id0180.dc40","ethernet-phy-id0180.dc41","ethernet-phy-id0180.dc48","ethernet-phy-id0180.dd00","ethernet-phy-id0180.dd01","ethernet-phy-id0180.dd02"When the condition matches (
then) #Properties and child nodes (
properties)
nxp,rmii-refclk-in— not listed as required hereValue type (
type):"boolean"The REF_CLK is provided for both transmitted and received data in RMII mode. This clock signal is provided by the PHY and is typically derived from an external 25MHz crystal. Alternatively, a 50MHz clock signal generated by an external oscillator can be connected to pin REF_CLK. A third option is to connect a 25MHz clock to pin CLK_IN_OUT. So, the REF_CLK should be configured as input or output according to the actual circuit connection. If present, indicates that the REF_CLK will be configured as interface reference clock input when RMII mode enabled. If not present, the REF_CLK will be configured as interface reference clock output when RMII mode enabled. Only supported on TJA1100 and TJA1101.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ethernet-phy-id001b.b010","ethernet-phy-id001b.b013","ethernet-phy-id001b.b030","ethernet-phy-id001b.b031"When the condition matches (
then) #Properties and child nodes (
properties)
nxp,rmii-refclk-out— not listed as required hereValue type (
type):"boolean"Enable 50MHz RMII reference clock output on REF_CLK pin.
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Some packages have multiple PHYs. Secondary PHY should be defines as subnode of the first (parent) PHY.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 31
The ID number for the child PHY. Should be +1 of parent PHY.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
tja1101_phy0: ethernet-phy@4 {
compatible = "ethernet-phy-id0180.dc40";
reg = <0x4>;
nxp,rmii-refclk-in;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
tja1102_phy0: ethernet-phy@4 {
reg = <0x4>;
#address-cells = <1>;
#size-cells = <0>;
tja1102_phy1: ethernet-phy@5 {
reg = <0x5>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+
QCA AR71XX MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qca,ar71xx.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): "Oleksij Rempel <o.rempel@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"qca,ar7100-eth","qca,ar7240-eth","qca,ar7241-eth","qca,ar7242-eth","qca,ar9130-eth","qca,ar9330-eth","qca,ar9340-eth","qca,qca9530-eth","qca,qca9550-eth","qca,qca9560-eth"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
MAC main clock
Item 2
MDIO clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"eth"
Item 2
Exact value (
const):"mdio"
resets — required here #
Array item rules (items) #
Item 1
MAC reset
Item 2
MDIO reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"mdio"
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "phy-mode", "clocks", "clock-names", "resets", "reset-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
eth0: ethernet@19000000 {
compatible = "qca,ar9330-eth";
reg = <0x19000000 0x200>;
interrupts = <4>;
resets = <&rst 9>, <&rst 22>;
reset-names = "mac", "mdio";
clocks = <&pll 1>, <&pll 2>;
clock-names = "eth", "mdio";
phy-mode = "mii";
phy-handle = <&phy_port4>;
};
eth1: ethernet@1a000000 {
compatible = "qca,ar9330-eth";
reg = <0x1a000000 0x200>;
interrupts = <5>;
resets = <&rst 13>, <&rst 23>;
reset-names = "mac", "mdio";
clocks = <&pll 1>, <&pll 2>;
clock-names = "eth", "mdio";
phy-mode = "gmii";
fixed-link {
speed = <1000>;
full-duplex;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
switch10: switch@10 {
compatible = "qca,ar9331-switch";
reg = <0x10>;
resets = <&rst 8>;
reset-names = "switch";
interrupt-parent = <&miscintc>;
interrupts = <12>;
interrupt-controller;
#interrupt-cells = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
switch_port0: port@0 {
reg = <0x0>;
ethernet = <ð1>;
phy-mode = "gmii";
fixed-link {
speed = <1000>;
full-duplex;
};
};
switch_port1: port@1 {
reg = <0x1>;
phy-handle = <&phy_port0>;
phy-mode = "internal";
};
switch_port2: port@2 {
reg = <0x2>;
phy-handle = <&phy_port1>;
phy-mode = "internal";
};
switch_port3: port@3 {
reg = <0x3>;
phy-handle = <&phy_port2>;
phy-mode = "internal";
};
switch_port4: port@4 {
reg = <0x4>;
phy-handle = <&phy_port3>;
phy-mode = "internal";
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&switch10>;
phy_port0: ethernet-phy@0 {
reg = <0x0>;
interrupts = <0>;
};
phy_port1: ethernet-phy@1 {
reg = <0x1>;
interrupts = <0>;
};
phy_port2: ethernet-phy@2 {
reg = <0x2>;
interrupts = <0>;
};
phy_port3: ethernet-phy@3 {
reg = <0x3>;
interrupts = <0>;
};
phy_port4: ethernet-phy@4 {
reg = <0x4>;
interrupts = <0>;
};
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: Atheros AR7100
Line 21: Atheros AR7240
Line 22: Atheros AR7241
Line 23: Atheros AR7242
Line 24: Atheros AR9130
Line 25: Atheros AR9330
Line 26: Atheros AR9340
Line 27: Qualcomm Atheros QCA9530
Line 28: Qualcomm Atheros QCA9550
Line 29: Qualcomm Atheros QCA9560
Line 74: Lager board
Qualcomm Atheros AR803x PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qca,ar803x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"
Bindings for Qualcomm Atheros AR803x PHYs
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):7
resets— not listed as required hereArray item rules (
items)Item 1
GE PHY MISC reset which triggers a reset across MDC, DSP, RX, and TX lines.
qcom,dac-preset-short-cable— not listed as required hereSet if this phy is connected to another phy to adjust the values for MDAC and EDAC to adjust amplitude, bias current settings, and error detection and correction algorithm to accommodate for short cable length. If not set, DAC values are not modified and it is assumed the MDI output pins of this PHY are directly connected to an RJ45 connector.
Value type (
type):"boolean"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id004d.d0c0"
qca,clk-out-frequency — not listed as required here #
Clock output frequency in Hertz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 25000000, 50000000, 62500000, 125000000
qca,clk-out-strength — not listed as required here #
Clock output driver strength.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
qca,disable-smarteee — not listed as required here #
Disable Atheros SmartEEE feature.
Value type (type): "boolean"
qca,keep-pll-enabled — not listed as required here #
If set, keep the PLL enabled even if there is no link. Useful if you want to use the clock output without an ethernet link.
Only supported on the AR8031.
Value type (type): "boolean"
qca,disable-hibernation-mode — not listed as required here #
Disable Atheros AR803X PHYs hibernation mode. If present, indicates that the hardware of PHY will not enter power saving mode when the cable is disconnected. And the RX_CLK always keeps outputting a valid clock.
Value type (type): "boolean"
qca,smarteee-tw-us-100m — not listed as required here #
EEE Tw parameter for 100M links.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 255
qca,smarteee-tw-us-1g — not listed as required here #
EEE Tw parameter for gigabit links.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 255
vddio-supply — not listed as required here #
RGMII I/O voltage regulator (see regulator/regulator.yaml).
The PHY supports RGMII I/O voltages of 1.5V, 1.8V and 2.5V. You can either connect this to the vddio-regulator (1.5V / 1.8V) or the vddh-regulator (2.5V).
Only supported on the AR8031.
vddio-regulator — not listed as required here #
Value type (type): "object"
Initial data for the VDDIO regulator. Set this to 1.5V or 1.8V.
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
vddh-regulator — not listed as required here #
Value type (type): "object"
Dummy subnode to model the external connection of the PHY VDDH regulator to VDDIO.
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/net/qca-ar803x.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rgmii-id";
ethernet-phy@0 {
reg = <0>;
qca,clk-out-frequency = <125000000>;
qca,clk-out-strength = <AR803X_STRENGTH_FULL>;
vddio-supply = <&vddio>;
vddio: vddio-regulator {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
};
};
#include <dt-bindings/net/qca-ar803x.h>
ethernet {
#address-cells = <1>;
#size-cells = <0>;
phy-mode = "rgmii-id";
ethernet-phy@0 {
reg = <0>;
qca,clk-out-frequency = <50000000>;
qca,keep-pll-enabled;
vddio-supply = <&vddh>;
vddh: vddh-regulator {
};
};
};
#include <dt-bindings/reset/qcom,gcc-ipq5018.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ge_phy: ethernet-phy@7 {
compatible = "ethernet-phy-id004d.d0c0";
reg = <7>;
resets = <&gcc GCC_GEPHY_MISC_ARES>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+
Line 29: This PHY is always at MDIO address 7 in the IPQ5018 SoC
Qualcomm QCA7000
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qca,qca7000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
The QCA7000 is a serial-to-powerline bridge with a host interface which could be configured either as SPI or UART slave. This configuration is done by the QCA7000 firmware.
(a) Ethernet over SPI
In order to use the QCA7000 as SPI device it must be defined as a child of a SPI master in the device tree.
(b) Ethernet over UART
In order to use the QCA7000 as UART slave it must be defined as a child of a UART master in the device tree. It is possible to preconfigure the UART settings of the QCA7000 firmware, but it's not possible to change them during runtime
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "qca,qca7000"
reg — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
qca,legacy-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set the SPI data transfer of the QCA7000 to legacy mode. In this mode the SPI master must toggle the chip select between each data word. In burst mode these gaps aren't necessary, which is faster. This setting depends on how the QCA7000 is setup via GPIO pin strapping. If the property is missing the driver defaults to burst mode.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Rule 2 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
spi-cpha— not listed as required here
true— No constraints added by this property rule.
spi-cpol— not listed as required here
true— No constraints added by this property rule.
spi-max-frequency— not listed as required hereDefault value (
default):8000000Maximum value (
maximum):16000000Minimum value (
minimum):1000000All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#When the condition does not match (
else) #Properties and child nodes (
properties)
current-speed— not listed as required hereDefault value (
default):115200
qca,legacy-mode— not listed as required here
false— Not permitted by this property rule.All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):/schemas/serial/serial-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet@0 {
compatible = "qca,qca7000";
reg = <0x0>;
interrupt-parent = <&gpio3>;
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
spi-cpha;
spi-cpol;
spi-max-frequency = <8000000>;
local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
};
};
serial {
ethernet {
compatible = "qca,qca7000";
local-mac-address = [ a0 b0 c0 d0 e0 f0 ];
current-speed = <38400>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Atheros QCA808X PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qca,qca808x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
QCA808X PHYs can have up to 3 LEDs attached. All 3 LEDs are disabled by default. 2 LEDs have dedicated pins with the 3rd LED having the double function of Interrupt LEDs/GPIO or additional LED. By default this special PIN is set to LED function.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id004d.d101"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-id004d.d101";
reg = <0>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_WAN;
default-state = "keep";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Qualcomm BAM Data Multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,bam-dmux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
The BAM Data Multiplexer provides access to the network data channels of modems integrated into many older Qualcomm SoCs, e.g. Qualcomm MSM8916 or MSM8974. It is built using a simple protocol layer on top of a DMA engine (Qualcomm BAM DMA) and bidirectional interrupts to coordinate power control.
Note that this schema does not directly describe a hardware block but rather a firmware convention that combines several other hardware blocks (such as the DMA engine). As such it is specific to a firmware version, not a particular SoC or hardware version.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,bam-dmux"
interrupts — required here #
Interrupts used by the modem to signal the AP. Both interrupts must be declared as IRQ_TYPE_EDGE_BOTH.
Array item rules (items) #
Item 1
Power control
Item 2
Power control acknowledgment
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pc"
Item 2
Exact value (
const):"pc-ack"
qcom,smem-states — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used by the AP to signal the modem.
Array item rules (items) #
Item 1
Power control
Item 2
Power control acknowledgment
qcom,smem-state-names — required here #
Names for the state bits used by the AP to signal the modem.
Array item rules (items) #
Item 1
Exact value (
const):"pc"
Item 2
Exact value (
const):"pc-ack"
dmas — required here #
Array item rules (items) #
Item 1
TX DMA channel phandle
Item 2
RX DMA channel phandle
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Required in this object (required): "compatible", "interrupts", "interrupt-names", "qcom,smem-states", "qcom,smem-state-names", "dmas", "dma-names"
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>
mpss: remoteproc {
bam-dmux {
compatible = "qcom,bam-dmux";
interrupt-parent = <&modem_smsm>;
interrupts = <1 IRQ_TYPE_EDGE_BOTH>, <11 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "pc", "pc-ack";
qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>;
qcom,smem-state-names = "pc", "pc-ack";
dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>;
dma-names = "tx", "rx";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Ethernet ETHQOS device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ethqos.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Konrad Dybcio <konradybcio@kernel.org>"
dwmmac based Qualcomm ethernet devices which support Gigabit ethernet (version v2.3.0 and onwards).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,qcs404-ethqos"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,sa8775p-ethqos"
Rule 3
Allowed values (
enum):"qcom,qcs404-ethqos","qcom,sa8775p-ethqos","qcom,sc8280xp-ethqos","qcom,sm8150-ethqos"
reg — not listed as required here #
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"rgmii"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Combined signal for various interrupt events
Item 2
The interrupt that occurs when Rx exits the LPI state
Item 3
The interrupt that occurs when HW safety error triggered
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Item 2
Item 3
Exact value (
const):"sfty"
clocks — required here #
Maximum number of items (maxItems): 4
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"pclk"
Item 3
Exact value (
const):"ptp_ref"
Item 4
iommus — not listed as required here #
Maximum number of items (maxItems): 1
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interconnects — not listed as required here #
Maximum number of items (maxItems): 2
interconnect-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpu-mac"
Item 2
Exact value (
const):"mac-mem"
phys — not listed as required here #
true — No constraints added by this property rule.
phy-names — not listed as required here #
Exact value (const): "serdes"
Required in this object (required): "compatible", "clocks", "clock-names", "reg-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-qcs404.h>
#include <dt-bindings/gpio/gpio.h>
ethernet: ethernet@7a80000 {
compatible = "qcom,qcs404-ethqos";
reg = <0x07a80000 0x10000>,
<0x07a96000 0x100>;
reg-names = "stmmaceth", "rgmii";
clock-names = "stmmaceth", "pclk", "ptp_ref", "rgmii";
clocks = <&gcc GCC_ETH_AXI_CLK>,
<&gcc GCC_ETH_SLAVE_AHB_CLK>,
<&gcc GCC_ETH_PTP_CLK>,
<&gcc GCC_ETH_RGMII_CLK>;
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 782 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_lpi", "sfty";
rx-fifo-depth = <4096>;
tx-fifo-depth = <4096>;
snps,tso;
snps,reset-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
snps,reset-delays-us = <0 10000 10000>;
pinctrl-names = "default";
pinctrl-0 = <ðernet_defaults>;
phy-handle = <&phy1>;
phy-mode = "rgmii";
mdio {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "snps,dwmac-mdio";
phy1: phy@4 {
compatible = "ethernet-phy-ieee802.3-c22";
device_type = "ethernet-phy";
reg = <0x4>;
#phy-cells = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Qualcomm IP Accelerator (IPA)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ipa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alex Elder <elder@kernel.org>"
This binding describes the Qualcomm IPA. The IPA is capable of offloading certain network processing tasks (e.g. filtering, routing, and NAT) from the main processor. The IPA sits between multiple independent "execution environments," including the Application Processor (AP) and the modem. The IPA presents a Generic Software Interface (GSI) to each execution environment. The GSI is an integral part of the IPA, but it is logically isolated and has a distinct interrupt and a separately-defined address space. See also soc/qcom/qcom,smp2p.txt and interconnect/interconnect.txt. See iommu/iommu.txt and iommu/arm,smmu.yaml for more information about SMMU bindings. - | -------- --------- | | | | | AP +<---. .----+ Modem | | +--. | | .->+ | | | | | | | | | -------- | | | | --------- v | v | --+-+---+-+-- | GSI | |-----------| | | | IPA | | | -------------
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,msm8998-ipa","qcom,sc7180-ipa","qcom,sc7280-ipa","qcom,sdm845-ipa","qcom,sdx55-ipa","qcom,sdx65-ipa","qcom,sm6350-ipa","qcom,sm8350-ipa","qcom,sm8550-ipa"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,sm8550-ipa"
reg — required here #
Array item rules (items) #
Item 1
IPA registers
Item 2
IPA shared memory
Item 3
GSI registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipa-reg"
Item 2
Exact value (
const):"ipa-shared"
Item 3
Exact value (
const):"gsi"
iommus — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "core"
interrupts — required here #
Array item rules (items) #
Item 1
IPA interrupt (hardware IRQ)
Item 2
GSI interrupt (hardware IRQ)
Item 3
Modem clock query interrupt (smp2p interrupt)
Item 4
Modem setup ready interrupt (smp2p interrupt)
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipa"
Item 2
Exact value (
const):"gsi"
Item 3
Exact value (
const):"ipa-clock-query"
Item 4
Exact value (
const):"ipa-setup-ready"
interconnects — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Path leading to system memory
Item 2
Path between the AP and IPA config space
Rule 2
Array item rules (
items)Item 1
Path leading to system memory
Item 2
Path leading to internal memory
Item 3
Path between the AP and IPA config space
interconnect-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"memory"Item 2
Exact value (
const):"config"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"memory"Item 2
Exact value (
const):"imem"Item 3
Exact value (
const):"config"
qcom,qmp — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the AOSS side-channel message RAM
qcom,smem-states — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used in by the AP to signal the modem.
Array item rules (items) #
Item 1
Whether the "ipa-clock-enabled" state bit is valid
Item 2
Whether the IPA clock is enabled (if valid)
qcom,smem-state-names — not listed as required here #
The names of the state bits used for SMP2P output
Array item rules (items) #
Item 1
Exact value (
const):"ipa-clock-enabled-valid"
Item 2
Exact value (
const):"ipa-clock-enabled"
qcom,gsi-loader — not listed as required here #
Allowed values (enum): "self", "modem", "skip"
Indicates how GSI firmware should be loaded. If the AP loads and validates GSI firmware, this property has value "self". If the modem does this, this property has value "modem". Otherwise, "skip" means GSI firmware loading is not required.
modem-init — not listed as required here #
Deprecated (deprecated): true
Value type (type): "boolean"
This is the older (deprecated) way of indicating how GSI firmware should be loaded. If present, the modem loads GSI firmware; if absent, the AP loads GSI firmware.
memory-region — not listed as required here #
Maximum number of items (maxItems): 1
If present, a phandle for a reserved memory area that holds the firmware passed to Trust Zone for authentication. Required when the AP (not the modem) performs early initialization.
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
If present, name (or relative path) of the file within the firmware search path containing the firmware image used when initializing IPA hardware. Optional, and only used when Trust Zone performs early initialization.
Required in this object (required): "compatible", "iommus", "reg", "clocks", "interrupts", "interconnects", "qcom,smem-states"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
modem-init— not listed as required here
false— Not permitted by this property rule.Condition (
if)Properties and child nodes (
properties)
qcom,gsi-loader— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"self"When the condition matches (
then)When the condition does not match (
else) #Condition (
if)This rule must not match (
not)When the condition matches (
then)
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/interconnect/qcom,sdm845.h>
smp2p-mpss {
compatible = "qcom,smp2p";
interrupts = <GIC_SPI 576 IRQ_TYPE_EDGE_RISING>;
mboxes = <&apss_shared 6>;
qcom,smem = <94>, <432>;
qcom,local-pid = <0>;
qcom,remote-pid = <5>;
ipa_smp2p_out: ipa-ap-to-modem {
qcom,entry-name = "ipa";
#qcom,smem-state-cells = <1>;
};
ipa_smp2p_in: ipa-modem-to-ap {
qcom,entry-name = "ipa";
interrupt-controller;
#interrupt-cells = <2>;
};
};
ipa@1e40000 {
compatible = "qcom,sc7180-ipa";
qcom,gsi-loader = "self";
memory-region = <&ipa_fw_mem>;
firmware-name = "qcom/sc7180-trogdor/modem/modem.mbn";
iommus = <&apps_smmu 0x440 0x0>,
<&apps_smmu 0x442 0x0>;
reg = <0x1e40000 0x7000>,
<0x1e47000 0x2000>,
<0x1e04000 0x2c000>;
reg-names = "ipa-reg",
"ipa-shared",
"gsi";
interrupts-extended = <&intc GIC_SPI 311 IRQ_TYPE_EDGE_RISING>,
<&intc GIC_SPI 432 IRQ_TYPE_LEVEL_HIGH>,
<&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ipa",
"gsi",
"ipa-clock-query",
"ipa-setup-ready";
clocks = <&rpmhcc RPMH_IPA_CLK>;
clock-names = "core";
interconnects =
<&aggre2_noc MASTER_IPA 0 &mc_virt SLAVE_EBI1 0>,
<&aggre2_noc MASTER_IPA 0 &system_noc SLAVE_IMEM 0>,
<&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_IPA_CFG 0>;
interconnect-names = "memory",
"imem",
"config";
qcom,qmp = <&aoss_qmp>;
qcom,smem-states = <&ipa_smp2p_out 0>,
<&ipa_smp2p_out 1>;
qcom,smem-state-names = "ipa-clock-enabled-valid",
"ipa-clock-enabled";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Line 178: If qcom,gsi-loader is present, modem-init must not be present
Line 186: If qcom,gsi-loader is "self", the AP loads GSI firmware, and
Line 187: memory-region must be specified
Line 197: If qcom,gsi-loader is not present, we use deprecated behavior.
Line 198: If modem-init is not present, the AP loads GSI firmware, and
Line 199: memory-region must be specified.
Qualcomm IPQ40xx MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ipq4019-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robert Marko <robert.marko@sartura.hr>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,ipq4019-mdio","qcom,ipq5018-mdio"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq6018-mdio","qcom,ipq8074-mdio","qcom,ipq9574-mdio"Item 2
Exact value (
const):"qcom,ipq4019-mdio"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
the first Address and length of the register set for the MDIO controller. the second Address and length of the register for ethernet LDO, this second address range is only required by the platform IPQ50xx.
clocks — not listed as required here #
Array item rules (items) #
Item 1
MDIO clock source frequency fixed to 100MHZ
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"gcc_mdio_ahb_clk"
clock-frequency — not listed as required here #
The MDIO bus clock that must be output by the MDIO bus hardware, if absent, the default hardware values are used. MDC rate is feed by an external clock (fixed 100MHz) and is divider internally. The default divider is /256 resulting in the default rate applied of 390KHz. To follow 802.3 standard that instruct up to 2.5MHz by default, if this property is not declared and the divider is set to /256, by default 1.5625Mhz is select.
Allowed values (enum): 390625, 781250, 1562500, 3125000, 6250000, 12500000
Default value (default): 1562500
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,ipq5018-mdio","qcom,ipq6018-mdio","qcom,ipq8074-mdio","qcom,ipq9574-mdio"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required here
false— Not permitted by this property rule.
clock-names— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio@90000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,ipq4019-mdio";
reg = <0x90000 0x64>;
ethphy0: ethernet-phy@0 {
reg = <0>;
};
ethphy1: ethernet-phy@1 {
reg = <1>;
};
ethphy2: ethernet-phy@2 {
reg = <2>;
};
ethphy3: ethernet-phy@3 {
reg = <3>;
};
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Qualcomm ipq806x MDIO bus controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ipq8064-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ansuel Smith <ansuelsmth@gmail.com>"
The ipq806x soc have a MDIO dedicated controller that is used to communicate with the gmac phy connected.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,ipq8064-mdio"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
mdio0: mdio@37000000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,ipq8064-mdio";
reg = <0x37000000 0x200000>;
clocks = <&gcc GMAC_CORE1_CLK>;
switch@10 {
compatible = "qca,qca8337";
reg = <0x10>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* ... */
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Qualcomm IPQ packet process engine (PPE)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,ipq9574-ppe.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Luo Jie <quic_luoj@quicinc.com>", "Lei Wei <quic_leiwei@quicinc.com>", "Suruchi Agarwal <quic_suruchia@quicinc.com>", "Pavithra R <quic_pavir@quicinc.com>"
The Ethernet functionality in the PPE (Packet Process Engine) is comprised of three components, the switch core, port wrapper and Ethernet DMA.
The Switch core in the IPQ9574 PPE has maximum of 6 front panel ports and two FIFO interfaces. One of the two FIFO interfaces is used for Ethernet port to host CPU communication using Ethernet DMA. The other is used communicating to the EIP engine which is used for IPsec offload. On the IPQ9574, the PPE includes 6 GMAC/XGMACs that can be connected with external Ethernet PHY. Switch core also includes BM (Buffer Management), QM (Queue Management) and SCH (Scheduler) modules for supporting the packet processing.
The port wrapper provides connections from the 6 GMAC/XGMACS to UNIPHY (PCS) supporting various modes such as SGMII/QSGMII/PSGMII/USXGMII/10G-BASER. There are 3 UNIPHY (PCS) instances supported on the IPQ9574.
Ethernet DMA is used to transmit and receive packets between the six Ethernet ports and ARM host CPU.
The follow diagram shows the PPE hardware block along with its connectivity to the external hardware blocks such clock hardware blocks (CMNPLL, GCC, NSS clock controller) and Ethernet PCS/PHY blocks. For depicting the PHY connectivity, one 4x1 Gbps PHY (QCA8075) and two 10 GBps PHYs are used as an example.
+---------+
| 48 MHZ |
+----+----+
|(clock)
v
+----+----+
+------| CMN PLL |
| +----+----+
| |(clock)
| v
| +----+----+ +----+----+ (clock) +----+----+
| +---| NSSCC | | GCC |--------->| MDIO |
| | +----+----+ +----+----+ +----+----+
| | |(clock & reset) |(clock)
| | v v
| | +----+---------------------+--+----------+----------+---------+
| | | +-----+ |EDMA FIFO | | EIP FIFO|
| | | | SCH | +----------+ +---------+
| | | +-----+ | | |
| | | +------+ +------+ +-------------------+ |
| | | | BM | | QM | IPQ9574-PPE | L2/L3 Process | |
| | | +------+ +------+ +-------------------+ |
| | | | |
| | | +-------+ +-------+ +-------+ +-------+ +-------+ +-------+ |
| | | | MAC0 | | MAC1 | | MAC2 | | MAC3 | | XGMAC4| |XGMAC5 | |
| | | +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ +---+---+ |
| | | | | | | | | |
| | +-----+---------+---------+---------+---------+---------+-----+
| | | | | | | |
| | +---+---------+---------+---------+---+ +---+---+ +---+---+
+--+---->| PCS0 | | PCS1 | | PCS2 |
|(clock) +---+---------+---------+---------+---+ +---+---+ +---+---+
| | | | | | |
| +---+---------+---------+---------+---+ +---+---+ +---+---+
+------->| QCA8075 PHY | | PHY4 | | PHY5 |
(clock) +-------------------------------------+ +-------+ +-------+
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,ipq9574-ppe"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
PPE core clock
Item 2
PPE APB (Advanced Peripheral Bus) clock
Item 3
PPE IPE (Ingress Process Engine) clock
Item 4
PPE BM, QM and scheduler clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ppe"
Item 2
Exact value (
const):"apb"
Item 3
Exact value (
const):"ipe"
Item 4
Exact value (
const):"btq"
resets — required here #
Maximum number of items (maxItems): 1
PPE reset, which is necessary before configuring PPE hardware
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
PPE switch miscellaneous interrupt
interconnects — required here #
Array item rules (items) #
Item 1
Bus interconnect path leading to PPE switch core function
Item 2
Bus interconnect path leading to PPE register access
Item 3
Bus interconnect path leading to QoS generation
Item 4
Bus interconnect path leading to timeout reference
Item 5
Bus interconnect path leading to NSS NOC from memory NOC
Item 6
Bus interconnect path leading to memory NOC from NSS NOC
Item 7
Bus interconnect path leading to enhanced memory NOC from NSS NOC
interconnect-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ppe"
Item 2
Exact value (
const):"ppe_cfg"
Item 3
Exact value (
const):"qos_gen"
Item 4
Exact value (
const):"timeout_ref"
Item 5
Exact value (
const):"nssnoc_memnoc"
Item 6
Exact value (
const):"memnoc_nssnoc"
Item 7
Exact value (
const):"memnoc_nssnoc_1"
ethernet-dma — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
EDMA (Ethernet DMA) is used to transmit packets between PPE and ARM host CPU. There are 32 TX descriptor rings, 32 TX completion rings, 24 RX descriptor rings and 8 RX fill rings supported.
Properties and child nodes (properties) #
clocks — required here
Array item rules (items)
Item 1
EDMA system clock
Item 2
EDMA APB (Advanced Peripheral Bus) clock
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"sys"
Item 2
Exact value (
const):"apb"
resets — required here
Maximum number of items (maxItems): 1
EDMA reset
interrupts — required here
Minimum number of items (minItems): 65
Maximum number of items (maxItems): 65
interrupt-names — required here
Minimum number of items (minItems): 65
Maximum number of items (maxItems): 65
Array item rules (items)
Exactly one of these rules must match (
oneOf)Rule 1
String pattern (
pattern):"^txcmpl_([1-2]?[0-9]|3[01])$"Rule 2
String pattern (
pattern):"^rxfill_[0-7]$"Rule 3
String pattern (
pattern):"^rxdesc_(1?[0-9]|2[0-3])$"Rule 4
Exact value (
const):"misc"
Interrupts "txcmpl_[0-31]" are the Ethernet DMA TX completion ring interrupts. Interrupts "rxfill_[0-7]" are the Ethernet DMA RX fill ring interrupts. Interrupts "rxdesc_[0-23]" are the Ethernet DMA RX Descriptor ring interrupts. Interrupt "misc" is the Ethernet DMA miscellaneous error interrupt.
Required in this object (required): "clocks", "clock-names", "resets", "interrupts", "interrupt-names"
ethernet-ports — not listed as required here #
Properties matching a name pattern (patternProperties) #
^ethernet-port@[1-6]+$ — name matches this regular expression
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Shared schema rule ($ref): ethernet-switch-port.yaml#
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 1
Maximum value (maximum): 6
PPE Ethernet port ID
clocks — required here
Array item rules (items)
Item 1
Port MAC clock
Item 2
Port RX clock
Item 3
Port TX clock
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"rx"
Item 3
Exact value (
const):"tx"
resets — required here
Array item rules (items)
Item 1
Port MAC reset
Item 2
Port RX reset
Item 3
Port TX reset
reset-names — required here
Array item rules (items)
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"rx"
Item 3
Exact value (
const):"tx"
Required in this object (required): "reg", "clocks", "clock-names", "resets", "reset-names"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "interconnects", "interconnect-names", "ethernet-dma"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-switch.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,ipq9574-gcc.h>
#include <dt-bindings/clock/qcom,ipq9574-nsscc.h>
#include <dt-bindings/interconnect/qcom,ipq9574.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/qcom,ipq9574-nsscc.h>
ethernet-switch@3a000000 {
compatible = "qcom,ipq9574-ppe";
reg = <0x3a000000 0xbef800>;
clocks = <&nsscc NSS_CC_PPE_SWITCH_CLK>,
<&nsscc NSS_CC_PPE_SWITCH_CFG_CLK>,
<&nsscc NSS_CC_PPE_SWITCH_IPE_CLK>,
<&nsscc NSS_CC_PPE_SWITCH_BTQ_CLK>;
clock-names = "ppe",
"apb",
"ipe",
"btq";
resets = <&nsscc PPE_FULL_RESET>;
interrupts = <GIC_SPI 498 IRQ_TYPE_LEVEL_HIGH>;
interconnects = <&nsscc MASTER_NSSNOC_PPE &nsscc SLAVE_NSSNOC_PPE>,
<&nsscc MASTER_NSSNOC_PPE_CFG &nsscc SLAVE_NSSNOC_PPE_CFG>,
<&gcc MASTER_NSSNOC_QOSGEN_REF &gcc SLAVE_NSSNOC_QOSGEN_REF>,
<&gcc MASTER_NSSNOC_TIMEOUT_REF &gcc SLAVE_NSSNOC_TIMEOUT_REF>,
<&gcc MASTER_MEM_NOC_NSSNOC &gcc SLAVE_MEM_NOC_NSSNOC>,
<&gcc MASTER_NSSNOC_MEMNOC &gcc SLAVE_NSSNOC_MEMNOC>,
<&gcc MASTER_NSSNOC_MEM_NOC_1 &gcc SLAVE_NSSNOC_MEM_NOC_1>;
interconnect-names = "ppe",
"ppe_cfg",
"qos_gen",
"timeout_ref",
"nssnoc_memnoc",
"memnoc_nssnoc",
"memnoc_nssnoc_1";
ethernet-dma {
clocks = <&nsscc NSS_CC_PPE_EDMA_CLK>,
<&nsscc NSS_CC_PPE_EDMA_CFG_CLK>;
clock-names = "sys",
"apb";
resets = <&nsscc EDMA_HW_RESET>;
interrupts = <GIC_SPI 363 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 364 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 365 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 366 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 367 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 368 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 369 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 370 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 371 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 372 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 373 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 374 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 375 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 376 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 377 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 378 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 379 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 380 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 381 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 382 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 383 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 384 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 509 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 507 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 505 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 504 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 503 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 502 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 501 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 500 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 356 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 359 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 360 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 361 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 362 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 331 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 333 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 342 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 348 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 349 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 351 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 352 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 499 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "txcmpl_0",
"txcmpl_1",
"txcmpl_2",
"txcmpl_3",
"txcmpl_4",
"txcmpl_5",
"txcmpl_6",
"txcmpl_7",
"txcmpl_8",
"txcmpl_9",
"txcmpl_10",
"txcmpl_11",
"txcmpl_12",
"txcmpl_13",
"txcmpl_14",
"txcmpl_15",
"txcmpl_16",
"txcmpl_17",
"txcmpl_18",
"txcmpl_19",
"txcmpl_20",
"txcmpl_21",
"txcmpl_22",
"txcmpl_23",
"txcmpl_24",
"txcmpl_25",
"txcmpl_26",
"txcmpl_27",
"txcmpl_28",
"txcmpl_29",
"txcmpl_30",
"txcmpl_31",
"rxfill_0",
"rxfill_1",
"rxfill_2",
"rxfill_3",
"rxfill_4",
"rxfill_5",
"rxfill_6",
"rxfill_7",
"rxdesc_0",
"rxdesc_1",
"rxdesc_2",
"rxdesc_3",
"rxdesc_4",
"rxdesc_5",
"rxdesc_6",
"rxdesc_7",
"rxdesc_8",
"rxdesc_9",
"rxdesc_10",
"rxdesc_11",
"rxdesc_12",
"rxdesc_13",
"rxdesc_14",
"rxdesc_15",
"rxdesc_16",
"rxdesc_17",
"rxdesc_18",
"rxdesc_19",
"rxdesc_20",
"rxdesc_21",
"rxdesc_22",
"rxdesc_23",
"misc";
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
ethernet-port@1 {
reg = <1>;
phy-mode = "qsgmii";
managed = "in-band-status";
phy-handle = <&phy0>;
pcs-handle = <&pcs0_ch0>;
clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
<&nsscc NSS_CC_PORT1_RX_CLK>,
<&nsscc NSS_CC_PORT1_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT1_MAC_ARES>,
<&nsscc PORT1_RX_ARES>,
<&nsscc PORT1_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
ethernet-port@2 {
reg = <2>;
phy-mode = "qsgmii";
managed = "in-band-status";
phy-handle = <&phy1>;
pcs-handle = <&pcs0_ch1>;
clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
<&nsscc NSS_CC_PORT2_RX_CLK>,
<&nsscc NSS_CC_PORT2_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT2_MAC_ARES>,
<&nsscc PORT2_RX_ARES>,
<&nsscc PORT2_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
ethernet-port@3 {
reg = <3>;
phy-mode = "qsgmii";
managed = "in-band-status";
phy-handle = <&phy2>;
pcs-handle = <&pcs0_ch2>;
clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
<&nsscc NSS_CC_PORT3_RX_CLK>,
<&nsscc NSS_CC_PORT3_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT3_MAC_ARES>,
<&nsscc PORT3_RX_ARES>,
<&nsscc PORT3_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
ethernet-port@4 {
reg = <4>;
phy-mode = "qsgmii";
managed = "in-band-status";
phy-handle = <&phy3>;
pcs-handle = <&pcs0_ch3>;
clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
<&nsscc NSS_CC_PORT4_RX_CLK>,
<&nsscc NSS_CC_PORT4_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT4_MAC_ARES>,
<&nsscc PORT4_RX_ARES>,
<&nsscc PORT4_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
ethernet-port@5 {
reg = <5>;
phy-mode = "usxgmii";
managed = "in-band-status";
phy-handle = <&phy4>;
pcs-handle = <&pcs1_ch0>;
clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
<&nsscc NSS_CC_PORT5_RX_CLK>,
<&nsscc NSS_CC_PORT5_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT5_MAC_ARES>,
<&nsscc PORT5_RX_ARES>,
<&nsscc PORT5_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
ethernet-port@6 {
reg = <6>;
phy-mode = "usxgmii";
managed = "in-band-status";
phy-handle = <&phy5>;
pcs-handle = <&pcs2_ch0>;
clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
<&nsscc NSS_CC_PORT6_RX_CLK>,
<&nsscc NSS_CC_PORT6_TX_CLK>;
clock-names = "mac",
"rx",
"tx";
resets = <&nsscc PORT6_MAC_ARES>,
<&nsscc PORT6_RX_ARES>,
<&nsscc PORT6_TX_ARES>;
reset-names = "mac",
"rx",
"tx";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Qualcomm QCA807x Ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,qca807x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>", "Robert Marko <robert.marko@sartura.hr>"
Qualcomm QCA8072/5 Ethernet PHY is PHY package of 2 or 5 IEEE 802.3 clause 22 compliant 10BASE-Te, 100BASE-TX and 1000BASE-T PHY-s.
They feature 2 SerDes, one for PSGMII or QSGMII connection with MAC, while second one is SGMII for connection to MAC or fiber.
Both models have a combo port that supports 1000BASE-X and 100BASE-FX fiber.
Each PHY inside of QCA807x series has 4 digitally controlled output only pins that natively drive LED-s for up to 2 attached LEDs. Some vendor also use these 4 output for GPIO usage without attaching LEDs.
Note that output pins can be set to drive LEDs OR GPIO, mixed definition are not accepted.
Shared schema rule ($ref): ethernet-phy-package.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,qca8072-package", "qcom,qca8075-package"
qcom,package-mode — not listed as required here #
PHY package can be configured in 3 mode following this table:
First Serdes mode Second Serdes mode
Option 1 PSGMII for copper Disabled
ports 0-4
Option 2 PSGMII for copper 1000BASE-X / 100BASE-FX
ports 0-4
Option 3 QSGMII for copper SGMII for
ports 0-3 copper port 4
PSGMII mode (option 1 or 2) is configured dynamically based on the presence of a connected SFP device.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "qsgmii", "psgmii"
Default value (default): "psgmii"
qcom,tx-drive-strength-milliwatt — not listed as required here #
set the TX Amplifier value in mv.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 400, 500, 600
Default value (default): 600
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): ethernet-phy.yaml#
Properties and child nodes (properties) #
qcom,dac-full-amplitude — not listed as required here
Set Analog MDI driver amplitude to FULL. With this not defined, amplitude is set to DSP. (amplitude is adjusted based on cable length) With this enabled and qcom,dac-full-bias-current and qcom,dac-disable-bias-current-tweak disabled, bias current is half.
Value type (type): "boolean"
qcom,dac-full-bias-current — not listed as required here
Set Analog MDI driver bias current to FULL. With this not defined, bias current is set to DSP. (bias current is adjusted based on cable length) Actual bias current might be different with qcom,dac-disable-bias-current-tweak disabled.
Value type (type): "boolean"
qcom,dac-disable-bias-current-tweak — not listed as required here
Set Analog MDI driver bias current to disable tweak to bias current.
With this not defined, bias current tweak are enabled by default.
With this enabled the following tweak are NOT applied:
- With both FULL amplitude and FULL bias current: bias current
is set to half.
- With only DSP amplitude: bias current is set to half and
is set to 1/4 with cable < 10m.
- With DSP bias current (included both DSP amplitude and
DSP bias current): bias current is half the detected current
with cable < 10m.
Value type (type): "boolean"
gpio-controller — not listed as required here
true — No constraints added by this property rule.
#gpio-cells — not listed as required here
Exact value (const): 2
Condition (if) #
When the condition matches (then) #
Properties and child nodes (
properties)
leds— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy-package@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,qca8075-package";
reg = <0>;
qcom,package-mode = "qsgmii";
ethernet-phy@0 {
reg = <0>;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
default-state = "keep";
};
};
};
ethernet-phy@1 {
reg = <1>;
};
ethernet-phy@2 {
reg = <2>;
gpio-controller;
#gpio-cells = <2>;
};
ethernet-phy@3 {
reg = <3>;
};
ethernet-phy@4 {
reg = <4>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Realtek RTL82xx PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/realtek,rtl82xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Florian Fainelli <f.fainelli@gmail.com>", "Heiner Kallweit <hkallweit1@gmail.com>"
Bindings for Realtek RTL82xx PHYs
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "ethernet-phy-id001c.c800", "ethernet-phy-id001c.c816", "ethernet-phy-id001c.c838", "ethernet-phy-id001c.c840", "ethernet-phy-id001c.c848", "ethernet-phy-id001c.c849", "ethernet-phy-id001c.c84a", "ethernet-phy-id001c.c862", "ethernet-phy-id001c.c878", "ethernet-phy-id001c.c880", "ethernet-phy-id001c.c910", "ethernet-phy-id001c.c912", "ethernet-phy-id001c.c913", "ethernet-phy-id001c.c914", "ethernet-phy-id001c.c915", "ethernet-phy-id001c.c916", "ethernet-phy-id001c.c942", "ethernet-phy-id001c.c961", "ethernet-phy-id001c.cad0", "ethernet-phy-id001c.cb00"
leds — not listed as required here #
true — No constraints added by this property rule.
realtek,clkout-disable — not listed as required here #
Value type (type): "boolean"
Disable CLKOUT clock, CLKOUT clock default is enabled after hardware reset.
realtek,aldps-enable — not listed as required here #
Value type (type): "boolean"
Enable ALDPS mode, ALDPS mode default is disabled after hardware reset.
wakeup-source — not listed as required here #
Value type (type): "boolean"
Enable Wake-on-LAN support for the RTL8211F PHY.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ethernet-phy-id001c.c916"When the condition matches (
then) #Properties and child nodes (
properties)
leds— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy1: ethernet-phy@1 {
reg = <1>;
realtek,clkout-disable;
realtek,aldps-enable;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+
Realtek RTL9300 MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/realtek,rtl9301-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"realtek,rtl9302b-mdio","realtek,rtl9302c-mdio","realtek,rtl9303-mdio"Item 2
Exact value (
const):"realtek,rtl9301-mdio"
Rule 2
Exact value (
const):"realtek,rtl9301-mdio"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^mdio-bus@[0-3]$ — name matches this regular expression #
Shared schema rule ($ref): mdio.yaml#
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Properties matching a name pattern (patternProperties) #
^ethernet-phy@[a-f0-9]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): ethernet-phy.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio-controller@ca00 {
compatible = "realtek,rtl9301-mdio";
reg = <0xca00 0x200>;
#address-cells = <1>;
#size-cells = <0>;
mdio-bus@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0>;
};
};
mdio-bus@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Realtek Switch with Internal CPU
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/realtek,rtl9301-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"
The RTL9300 is a series of is an Ethernet switches with an integrated CPU. A number of different peripherals are accessed through a common register block, represented here as a syscon node.
Shared schema rule ($ref): ethernet-switch.yaml#/$defs/ethernet-ports
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"realtek,rtl9301-switch","realtek,rtl9302b-switch","realtek,rtl9302c-switch","realtek,rtl9303-switch"
Item 2
Exact value (
const):"syscon"
Item 3
Exact value (
const):"simple-mfd"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 2
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"switch"
Item 2
Exact value (
const):"nic"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
reboot@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/power/reset/syscon-reboot.yaml#
i2c@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/i2c/realtek,rtl9301-i2c.yaml#
mdio-controller@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): realtek,rtl9301-mdio.yaml#
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet-switch@1b000000 {
compatible = "realtek,rtl9301-switch", "syscon", "simple-mfd";
reg = <0x1b000000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <23>, <24>;
interrupt-names = "switch", "nic";
#address-cells = <1>;
#size-cells = <1>;
reboot@c {
compatible = "syscon-reboot";
reg = <0x0c 0x4>;
value = <0x01>;
};
i2c@36c {
compatible = "realtek,rtl9301-i2c";
reg = <0x36c 0x14>;
#address-cells = <1>;
#size-cells = <0>;
i2c@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
gpio@20 {
compatible = "nxp,pca9555";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
};
};
i2c@2 {
reg = <2>;
#address-cells = <1>;
#size-cells = <0>;
gpio@20 {
compatible = "nxp,pca9555";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
};
};
};
i2c@388 {
compatible = "realtek,rtl9301-i2c";
reg = <0x388 0x14>;
#address-cells = <1>;
#size-cells = <0>;
i2c@7 {
reg = <7>;
#address-cells = <1>;
#size-cells = <0>;
gpio@20 {
compatible = "nxp,pca9555";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
};
};
};
mdio-controller@ca00 {
compatible = "realtek,rtl9301-mdio";
reg = <0xca00 0x200>;
#address-cells = <1>;
#size-cells = <0>;
mdio-bus@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@0 {
reg = <0>;
};
};
mdio-bus@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
phy2: ethernet-phy@0 {
reg = <0>;
};
};
};
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
phy-handle = <&phy1>;
};
port@1 {
reg = <1>;
phy-handle = <&phy2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas Electronics SH EtherMAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,ether.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): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,gether-r8a7740","renesas,gether-r8a77980","renesas,ether-r7s72100","renesas,ether-r7s9210"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,ether-r8a7778","renesas,ether-r8a7779"Item 2
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,ether-r8a7742","renesas,ether-r8a7743","renesas,ether-r8a7745","renesas,ether-r8a7790","renesas,ether-r8a7791","renesas,ether-r8a7793","renesas,ether-r8a7794"Item 2
reg — required here #
Array item rules (items) #
Item 1
E-DMAC/feLic registers
Item 2
TSU registers
Minimum number of items (minItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
number of address cells for the MDIO bus
Exact value (const): 1
#size-cells — required here #
number of size cells on the MDIO bus
Exact value (const): 0
clocks — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
true — No constraints added by this property rule.
phy-handle — required here #
true — No constraints added by this property rule.
renesas,no-ether-link — not listed as required here #
Value type (type): "boolean"
specify when a board does not provide a proper Ether LINK signal
renesas,ether-link-active-low — not listed as required here #
Value type (type): "boolean"
specify when the Ether LINK signal is active-low instead of normal active-high
Properties matching a name pattern (patternProperties) #
@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Required in this object (required): "compatible", "reg", "interrupts", "phy-mode", "phy-handle", "#address-cells", "#size-cells", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
#include <dt-bindings/gpio/gpio.h>
ethernet@ee700000 {
compatible = "renesas,ether-r8a7790", "renesas,rcar-gen2-ether";
reg = <0xee700000 0x400>;
interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 813>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 813>;
phy-mode = "rmii";
phy-handle = <&phy1>;
renesas,ether-link-active-low;
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
compatible = "ethernet-phy-id0022.1537",
"ethernet-phy-ieee802.3-c22";
reg = <1>;
interrupt-parent = <&irqc0>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio5 31 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 20: device is a part of R8A7740 SoC
Line 21: device is a part of R8A77980 SoC
Line 22: device is a part of R7S72100 SoC
Line 23: device is a part of R7S9210 SoC
Line 26: device is a part of R8A7778 SoC
Line 27: device is a part of R8A7779 SoC
Line 29: a generic R-Car Gen1 device
Line 32: device is a part of R8A7742 SoC
Line 33: device is a part of R8A7743 SoC
Line 34: device is a part of R8A7745 SoC
Line 35: device is a part of R8A7790 SoC
Line 36: device is a part of R8A7791 SoC
Line 37: device is a part of R8A7793 SoC
Line 38: device is a part of R8A7794 SoC
Line 40: a generic R-Car Gen2 or RZ/G1 device
Line 103: Lager board
Renesas Ethernet AVB
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,etheravb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,etheravb-r8a7742","renesas,etheravb-r8a7743","renesas,etheravb-r8a7744","renesas,etheravb-r8a7745","renesas,etheravb-r8a77470","renesas,etheravb-r8a7790","renesas,etheravb-r8a7791","renesas,etheravb-r8a7792","renesas,etheravb-r8a7793","renesas,etheravb-r8a7794"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen2"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,etheravb-r8a774a1","renesas,etheravb-r8a774b1","renesas,etheravb-r8a774c0","renesas,etheravb-r8a774e1","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965","renesas,etheravb-r8a77970","renesas,etheravb-r8a77980","renesas,etheravb-r8a77990","renesas,etheravb-r8a77995"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen3"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,etheravb-r8a779a0","renesas,etheravb-r8a779g0","renesas,etheravb-r8a779h0"Item 2
Exact value (
const):"renesas,etheravb-rcar-gen4"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,etheravb-rzv2m"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g043-gbeth","renesas,r9a07g044-gbeth","renesas,r9a07g054-gbeth","renesas,r9a08g045-gbeth"Item 2
Exact value (
const):"renesas,rzg2l-gbeth"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
MAC register block
Item 2
Stream buffer
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 29
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 29
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
true — No constraints added by this property rule.
phy-handle — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Number of address cells for the MDIO bus.
Exact value (const): 1
Deprecated (deprecated): true
#size-cells — not listed as required here #
Number of size cells on the MDIO bus.
Exact value (const): 0
Deprecated (deprecated): true
mdio — not listed as required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
renesas,no-ether-link — not listed as required here #
Value type (type): "boolean"
Specify when a board does not provide a proper AVB_LINK signal.
renesas,ether-link-active-low — not listed as required here #
Value type (type): "boolean"
Specify when the AVB_LINK signal is active-low instead of normal active-high.
rx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 1800
tx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
Properties matching a name pattern (patternProperties) #
@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Deprecated (deprecated): true
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains", "resets", "phy-mode", "phy-handle"
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 hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-rcar-gen2","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-rcar-gen2","renesas,rzg2l-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"mux"Item 2
Exact value (
const):"fil"Item 3
Exact value (
const):"arp_ns"
rx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-rzv2m"When the condition matches (
then)Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):29Maximum number of items (
maxItems):29
interrupt-names— required hereArray item rules (
items)String pattern (
pattern):"^(ch(1?)[0-9])|ch20|ch21|dia|dib|err_a|err_b|mgmt_a|mgmt_b|line3$"
rx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else)Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):25Maximum number of items (
maxItems):25
interrupt-names— required hereArray item rules (
items)String pattern (
pattern):"^ch[0-9]+$"Required in this object (
required):"interrupt-names","rx-internal-delay-ps"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,etheravb-r8a774a1","renesas,etheravb-r8a774b1","renesas,etheravb-r8a774e1","renesas,etheravb-r8a7795","renesas,etheravb-r8a7796","renesas,etheravb-r8a77961","renesas,etheravb-r8a77965","renesas,etheravb-r8a77970","renesas,etheravb-r8a77980","renesas,etheravb-rcar-gen4"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
tx-internal-delay-ps— not listed as required here
false— Not permitted by this property rule.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-r8a77995"When the condition matches (
then) #Properties and child nodes (
properties)
rx-internal-delay-ps— not listed as required hereExact value (
const):1800
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-r8a77980"When the condition matches (
then) #Properties and child nodes (
properties)
tx-internal-delay-ps— not listed as required hereExact value (
const):2000
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzg2l-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Main clock
Item 2
Register access clock
Item 3
Reference clock for RGMII
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"axi"Item 2
Exact value (
const):"chi"Item 3
Exact value (
const):"refclk"When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,etheravb-rzv2m"When the condition matches (
then)Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
Main clock
Item 2
Coherent Hub Interface clock
Item 3
gPTP reference clock
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"axi"Item 2
Exact value (
const):"chi"Item 3
Exact value (
const):"gptp"When the condition does not match (
else)Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
AVB functional clock
Item 2
Optional TXC reference clock
clock-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"fck"Item 2
Exact value (
const):"refclk"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
#include <dt-bindings/gpio/gpio.h>
aliases {
ethernet0 = &avb;
};
avb: ethernet@e6800000 {
compatible = "renesas,etheravb-r8a7795",
"renesas,etheravb-rcar-gen3";
reg = <0xe6800000 0x800>, <0xe6a00000 0x10000>;
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6",
"ch7", "ch8", "ch9", "ch10", "ch11", "ch12",
"ch13", "ch14", "ch15", "ch16", "ch17", "ch18",
"ch19", "ch20", "ch21", "ch22", "ch23", "ch24";
clocks = <&cpg CPG_MOD 812>;
clock-names = "fck";
iommus = <&ipmmu_ds0 16>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 812>;
phy-mode = "rgmii";
phy-handle = <&phy0>;
rx-internal-delay-ps = <0>;
tx-internal-delay-ps = <2000>;
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
compatible = "ethernet-phy-id0022.1622",
"ethernet-phy-ieee802.3-c22";
rxc-skew-ps = <1500>;
reg = <0>;
interrupt-parent = <&gpio2>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio2 10 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 17: RZ/G1H
Line 18: RZ/G1M
Line 19: RZ/G1N
Line 20: RZ/G1E
Line 21: RZ/G1C
Line 22: R-Car H2
Line 23: R-Car M2-W
Line 24: R-Car V2H
Line 25: R-Car M2-N
Line 26: R-Car E2
Line 27: R-Car Gen2 and RZ/G1
Line 31: RZ/G2M
Line 32: RZ/G2N
Line 33: RZ/G2E
Line 34: RZ/G2H
Line 35: R-Car H3
Line 36: R-Car M3-W
Line 37: R-Car M3-W+
Line 38: R-Car M3-N
Line 39: R-Car V3M
Line 40: R-Car V3H
Line 41: R-Car E3
Line 42: R-Car D3
Line 43: R-Car Gen3 and RZ/G2
Line 47: R-Car V3U
Line 48: R-Car V4H
Line 49: R-Car V4M
Line 50: R-Car Gen4
Line 54: RZ/V2M
Line 55: RZ/V2M compatible
Line 59: RZ/G2UL and RZ/Five
Line 60: RZ/G2{L,LC}
Line 61: RZ/V2L
Line 62: RZ/G3S
Line 63: RZ/{G2L,G2UL,V2L} family
Line 131: In older bindings there where no mdio child-node to describe the MDIO bus
Line 132: and the PHY. To not fail older bindings accept any node with an address. New
Line 133: users should describe the PHY inside the mdio child-node.
Renesas Ethernet TSN End-station
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,ethertsn.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Niklas Söderlund <niklas.soderlund@ragnatech.se>"
The RTSN device provides Ethernet network using a 10 Mbps, 100 Mbps, or 1 Gbps full-duplex link via MII/GMII/RMII/RGMII. Depending on the connected PHY.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"renesas,rcar-gen4-ethertsn"
reg — required here #
Array item rules (items) #
Item 1
TSN End Station target
Item 2
generalized Precision Time Protocol target
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tsnes"
Item 2
Exact value (
const):"gptp"
interrupts — required here #
Array item rules (items) #
Item 1
TX data interrupt
Item 2
RX data interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
Rule for matching array elements (contains) #
phy-handle — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Specifies a reference to a node representing a PHY device.
rx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 1800
Default value (default): 0
tx-internal-delay-ps — not listed as required here #
Allowed values (enum): 0, 2000
Default value (default): 0
mdio — required here #
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "power-domains", "resets", "phy-mode", "phy-handle", "mdio"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a779g0-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a779g0-sysc.h>
#include <dt-bindings/gpio/gpio.h>
tsn0: ethernet@e6460000 {
compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn";
reg = <0xe6460000 0x7000>,
<0xe6449000 0x500>;
reg-names = "tsnes", "gptp";
interrupts = <GIC_SPI 429 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tx", "rx";
clocks = <&cpg CPG_MOD 2723>;
power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>;
resets = <&cpg 2723>;
phy-mode = "rgmii";
tx-internal-delay-ps = <2000>;
phy-handle = <&phy3>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
reset-post-delay-us = <4000>;
phy3: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <0>;
interrupt-parent = <&gpio4>;
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 23: R-Car V4H
Renesas Ethernet Switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,r8a779f0-ether-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "renesas,r8a779f0-ether-switch"
reg — required here #
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"base"
Item 2
Exact value (
const):"secure_base"
interrupts — required here #
Maximum number of items (maxItems): 47
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"mfwd_error"
Item 2
Exact value (
const):"race_error"
Item 3
Exact value (
const):"coma_error"
Item 4
Exact value (
const):"gwca0_error"
Item 5
Exact value (
const):"gwca1_error"
Item 6
Exact value (
const):"etha0_error"
Item 7
Exact value (
const):"etha1_error"
Item 8
Exact value (
const):"etha2_error"
Item 9
Exact value (
const):"gptp0_status"
Item 10
Exact value (
const):"gptp1_status"
Item 11
Exact value (
const):"mfwd_status"
Item 12
Exact value (
const):"race_status"
Item 13
Exact value (
const):"coma_status"
Item 14
Exact value (
const):"gwca0_status"
Item 15
Exact value (
const):"gwca1_status"
Item 16
Exact value (
const):"etha0_status"
Item 17
Exact value (
const):"etha1_status"
Item 18
Exact value (
const):"etha2_status"
Item 19
Exact value (
const):"rmac0_status"
Item 20
Exact value (
const):"rmac1_status"
Item 21
Exact value (
const):"rmac2_status"
Item 22
Exact value (
const):"gwca0_rxtx0"
Item 23
Exact value (
const):"gwca0_rxtx1"
Item 24
Exact value (
const):"gwca0_rxtx2"
Item 25
Exact value (
const):"gwca0_rxtx3"
Item 26
Exact value (
const):"gwca0_rxtx4"
Item 27
Exact value (
const):"gwca0_rxtx5"
Item 28
Exact value (
const):"gwca0_rxtx6"
Item 29
Exact value (
const):"gwca0_rxtx7"
Item 30
Exact value (
const):"gwca1_rxtx0"
Item 31
Exact value (
const):"gwca1_rxtx1"
Item 32
Exact value (
const):"gwca1_rxtx2"
Item 33
Exact value (
const):"gwca1_rxtx3"
Item 34
Exact value (
const):"gwca1_rxtx4"
Item 35
Exact value (
const):"gwca1_rxtx5"
Item 36
Exact value (
const):"gwca1_rxtx6"
Item 37
Exact value (
const):"gwca1_rxtx7"
Item 38
Exact value (
const):"gwca0_rxts0"
Item 39
Exact value (
const):"gwca0_rxts1"
Item 40
Exact value (
const):"gwca1_rxts0"
Item 41
Exact value (
const):"gwca1_rxts1"
Item 42
Exact value (
const):"rmac0_mdio"
Item 43
Exact value (
const):"rmac1_mdio"
Item 44
Exact value (
const):"rmac2_mdio"
Item 45
Exact value (
const):"rmac0_phy"
Item 46
Exact value (
const):"rmac1_phy"
Item 47
Exact value (
const):"rmac2_phy"
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Maximum number of items (maxItems): 16
power-domains — required here #
Maximum number of items (maxItems): 1
ethernet-ports — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Port number of ETHA (TSNA).
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/net/ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Port number of ETHA (TSNA).
phys — required here
Maximum number of items (maxItems): 1
Phandle of an Ethernet SERDES.
mdio — required here
Shared schema rule ($ref): /schemas/net/mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Required in this object (required): "reg", "phy-handle", "phy-mode", "phys", "mdio"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "resets", "power-domains", "ethernet-ports"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a779f0-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a779f0-sysc.h>
ethernet@e6880000 {
compatible = "renesas,r8a779f0-ether-switch";
reg = <0xe6880000 0x20000>, <0xe68c0000 0x20000>;
reg-names = "base", "secure_base";
interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 257 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 258 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 259 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 260 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 263 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 266 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 267 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 271 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 273 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 274 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 276 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 277 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 278 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 280 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 282 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 283 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 284 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 291 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 295 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 296 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 298 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 299 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 301 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 302 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 304 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "mfwd_error", "race_error",
"coma_error", "gwca0_error",
"gwca1_error", "etha0_error",
"etha1_error", "etha2_error",
"gptp0_status", "gptp1_status",
"mfwd_status", "race_status",
"coma_status", "gwca0_status",
"gwca1_status", "etha0_status",
"etha1_status", "etha2_status",
"rmac0_status", "rmac1_status",
"rmac2_status",
"gwca0_rxtx0", "gwca0_rxtx1",
"gwca0_rxtx2", "gwca0_rxtx3",
"gwca0_rxtx4", "gwca0_rxtx5",
"gwca0_rxtx6", "gwca0_rxtx7",
"gwca1_rxtx0", "gwca1_rxtx1",
"gwca1_rxtx2", "gwca1_rxtx3",
"gwca1_rxtx4", "gwca1_rxtx5",
"gwca1_rxtx6", "gwca1_rxtx7",
"gwca0_rxts0", "gwca0_rxts1",
"gwca1_rxts0", "gwca1_rxts1",
"rmac0_mdio", "rmac1_mdio",
"rmac2_mdio",
"rmac0_phy", "rmac1_phy",
"rmac2_phy";
clocks = <&cpg CPG_MOD 1505>;
power-domains = <&sysc R8A779F0_PD_ALWAYS_ON>;
resets = <&cpg 1505>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
phy-handle = <ð_phy0>;
phy-mode = "sgmii";
phys = <ð_serdes 0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};
port@1 {
reg = <1>;
phy-handle = <ð_phy1>;
phy-mode = "sgmii";
phys = <ð_serdes 1>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};
port@2 {
reg = <2>;
phy-handle = <ð_phy2>;
phy-mode = "sgmii";
phys = <ð_serdes 2>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas GMAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,rzn1-gmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Romain Gantois <romain.gantois@bootlin.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a06g032-gmac","renesas,rzn1-gmac"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"renesas,rzn1-gmac"
Item 3
Exact value (
const):"snps,dwmac"
interrupts — not listed as required here #
Maximum number of items (maxItems): 3
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Item 2
Exact value (
const):"eth_wake_irq"
Item 3
Exact value (
const):"eth_lpi"
pcs-handle — not listed as required here #
phandle pointing to a PCS sub-node compatible with renesas,rzn1-miic.yaml#
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r9a06g032-sysctrl.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@44000000 {
compatible = "renesas,r9a06g032-gmac", "renesas,rzn1-gmac", "snps,dwmac";
reg = <0x44000000 0x2000>;
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
clock-names = "stmmaceth";
clocks = <&sysctrl R9A06G032_HCLK_GMAC0>;
power-domains = <&sysctrl>;
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
tx-fifo-depth = <2048>;
rx-fifo-depth = <4096>;
pcs-handle = <&mii_conv1>;
phy-mode = "mii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
GBETH glue layer for Renesas RZ/V2H(P) (and similar SoCs)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/renesas,rzv2h-gbeth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a09g047-gbeth","renesas,r9a09g056-gbeth","renesas,r9a09g057-gbeth","renesas,r9a09g077-gbeth","renesas,r9a09g087-gbeth","renesas,rzv2h-gbeth"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a08g046-gbeth"Item 2
Exact value (
const):"snps,dwmac-5.30a"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g047-gbeth","renesas,r9a09g056-gbeth","renesas,r9a09g057-gbeth"Item 2
Exact value (
const):"renesas,rzv2h-gbeth"Item 3
Exact value (
const):"snps,dwmac-5.20"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g077-gbeth"Item 2
Exact value (
const):"snps,dwmac-5.20"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-gbeth"Item 2
Exact value (
const):"renesas,r9a09g077-gbeth"Item 3
Exact value (
const):"snps,dwmac-5.20"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
CSR/Register access clock
Item 2
AXI system/Main clock
Item 3
PTP clock
Item 4
TX clock
Item 5
RX clock
Item 6
TX clock phase-shifted by 180 degrees
Item 7
RX clock phase-shifted by 180 degrees
Item 8
RMII clock
Item 9
RMII TX clock
Item 10
RMII RX clock
Minimum number of items (
minItems):7
Rule 2
Array item rules (
items)Item 1
CSR clock
Item 2
AXI system clock
Item 3
TX clock
clock-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"pclk"Item 3
Exact value (
const):"ptp_ref"Item 4
Exact value (
const):"tx"Item 5
Exact value (
const):"rx"Item 6
Exact value (
const):"tx-180"Item 7
Exact value (
const):"rx-180"Item 8
Exact value (
const):"rmii"Item 9
Exact value (
const):"rmii_tx"Item 10
Exact value (
const):"rmii_rx"Minimum number of items (
minItems):7
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"pclk"Item 3
Exact value (
const):"tx"
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"tx-queue-0"Item 9
Exact value (
const):"tx-queue-1"Item 10
Exact value (
const):"tx-queue-2"Item 11
Exact value (
const):"tx-queue-3"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"tx-queue-0"Item 9
Exact value (
const):"tx-queue-1"Item 10
Exact value (
const):"tx-queue-2"Item 11
Exact value (
const):"tx-queue-3"Item 12
Exact value (
const):"ptp-pps-0"Item 13
Exact value (
const):"ptp-pps-1"Item 14
Exact value (
const):"ptp-pps-2"Item 15
Exact value (
const):"ptp-pps-3"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"macirq"Item 2
Exact value (
const):"eth_wake_irq"Item 3
Exact value (
const):"eth_lpi"Item 4
Exact value (
const):"rx-queue-0"Item 5
Exact value (
const):"rx-queue-1"Item 6
Exact value (
const):"rx-queue-2"Item 7
Exact value (
const):"rx-queue-3"Item 8
Exact value (
const):"rx-queue-4"Item 9
Exact value (
const):"rx-queue-5"Item 10
Exact value (
const):"rx-queue-6"Item 11
Exact value (
const):"rx-queue-7"Item 12
Exact value (
const):"tx-queue-0"Item 13
Exact value (
const):"tx-queue-1"Item 14
Exact value (
const):"tx-queue-2"Item 15
Exact value (
const):"tx-queue-3"Item 16
Exact value (
const):"tx-queue-4"Item 17
Exact value (
const):"tx-queue-5"Item 18
Exact value (
const):"tx-queue-6"Item 19
Exact value (
const):"tx-queue-7"
resets — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
AXI power-on system reset
Rule 2
Array item rules (
items)Item 1
AXI power-on system reset
Item 2
AHB reset
pcs-handle — not listed as required here #
phandle pointing to a PCS sub-node compatible with Documentation/devicetree/bindings/net/pcs/renesas,rzn1-miic.yaml# (Refer RZ/T2H portion in the DT-binding file)
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a08g046-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):10
clock-names— not listed as required hereMinimum number of items (
minItems):10
interrupts— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
interrupt-names— not listed as required hereMinimum number of items (
minItems):15Maximum number of items (
maxItems):15
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a09g077-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):3
clock-names— not listed as required hereMaximum number of items (
maxItems):3
interrupts— not listed as required hereMinimum number of items (
minItems):19
interrupt-names— not listed as required hereMinimum number of items (
minItems):19
resets— not listed as required hereMinimum number of items (
minItems):2
reset-names— required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
pcs-handle— not listed as required here
false— Not permitted by this property rule.
reset-names— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzv2h-gbeth"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):7
clock-names— not listed as required hereMaximum number of items (
maxItems):7
interrupts— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
interrupt-names— not listed as required hereMinimum number of items (
minItems):11Maximum number of items (
maxItems):11
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@15c30000 {
compatible = "renesas,r9a09g057-gbeth", "renesas,rzv2h-gbeth", "snps,dwmac-5.20";
reg = <0x15c30000 0x10000>;
clocks = <&cpg CPG_MOD 0xbd>, <&cpg CPG_MOD 0xbc>,
<&ptp_clock>, <&cpg CPG_MOD 0xb8>,
<&cpg CPG_MOD 0xb9>, <&cpg CPG_MOD 0xba>,
<&cpg CPG_MOD 0xbb>;
clock-names = "stmmaceth", "pclk", "ptp_ref",
"tx", "rx", "tx-180", "rx-180";
resets = <&cpg 0xb0>;
interrupts = <GIC_SPI 765 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 767 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 766 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 772 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 773 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 774 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 745 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 768 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 769 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 770 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 771 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi",
"rx-queue-0", "rx-queue-1", "rx-queue-2",
"rx-queue-3", "tx-queue-0", "tx-queue-1",
"tx-queue-2", "tx-queue-3";
phy-mode = "rgmii-id";
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
rx-fifo-depth = <8192>;
tx-fifo-depth = <8192>;
snps,fixed-burst;
snps,force_thresh_dma_mode;
snps,axi-config = <&stmmac_axi_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,txpbl = <32>;
snps,rxpbl = <32>;
phy-handle = <&phy0>;
stmmac_axi_setup: stmmac-axi-config {
snps,lpi_en;
snps,wr_osr_lmt = <0xf>;
snps,rd_osr_lmt = <0xf>;
snps,blen = <16 8 4 0 0 0 0>;
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <4>;
snps,rx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
snps,map-to-dma-channel = <0>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
snps,map-to-dma-channel = <1>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
snps,map-to-dma-channel = <2>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x8>;
snps,map-to-dma-channel = <3>;
};
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <4>;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x1>;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 30: RZ/G3L
Line 34: RZ/G3E
Line 35: RZ/V2N
Line 36: RZ/V2H(P)
Line 40: RZ/T2H
Line 43: RZ/N2H
GPIO controlled rfkill switch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/rfkill-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Johannes Berg <johannes@sipsolutions.net>", "Philipp Zabel <p.zabel@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rfkill-gpio"
label — not listed as required here #
rfkill switch name, defaults to node name
radio-type — required here #
rfkill radio type
Allowed values (enum): "bluetooth", "fm", "gps", "nfc", "ultrawideband", "wimax", "wlan", "wwan"
shutdown-gpios — required here #
Maximum number of items (maxItems): 1
default-blocked — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
configure rfkill state as blocked at boot
Required in this object (required): "compatible", "radio-type", "shutdown-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
rfkill {
compatible = "rfkill-gpio";
label = "rfkill-pcie-wlan";
radio-type = "wlan";
shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
default-blocked;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Rockchip RK3036/RK3066/RK3188 Ethernet Media Access Controller (EMAC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/rockchip,emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rockchip,rk3036-emac", "rockchip,rk3066-emac", "rockchip,rk3188-emac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
host clock
Item 2
reference clock
Item 3
mac TX/RX clock
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"macref"
Item 3
Exact value (
const):"macclk"
rockchip,grf — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the syscon GRF used to control speed and mode for the EMAC.
phy-supply — not listed as required here #
Phandle to a regulator if the PHY needs one.
mdio — required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "rockchip,grf", "phy", "phy-mode", "mdio"
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 hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3036-emac"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereMinimum number of items (
minItems):3When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereMaximum number of items (
maxItems):2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3188-cru-common.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@10204000 {
compatible = "rockchip,rk3188-emac";
reg = <0xc0fc2000 0x3c>;
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
clock-names = "hclk", "macref";
rockchip,grf = <&grf>;
pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>;
pinctrl-names = "default";
phy = <&phy0>;
phy-mode = "rmii";
phy-supply = <&vcc_rmii>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@0 {
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Rockchip 10/100/1000 Ethernet driver(GMAC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/rockchip-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Wu <david.wu@rock-chips.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"rockchip,px30-gmac","rockchip,rk3128-gmac","rockchip,rk3228-gmac","rockchip,rk3288-gmac","rockchip,rk3308-gmac","rockchip,rk3328-gmac","rockchip,rk3366-gmac","rockchip,rk3368-gmac","rockchip,rk3399-gmac","rockchip,rk3506-gmac","rockchip,rk3528-gmac","rockchip,rk3568-gmac","rockchip,rk3576-gmac","rockchip,rk3588-gmac","rockchip,rv1108-gmac","rockchip,rv1126-gmac"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-gmac","rockchip,rk3128-gmac","rockchip,rk3228-gmac","rockchip,rk3288-gmac","rockchip,rk3308-gmac","rockchip,rk3328-gmac","rockchip,rk3366-gmac","rockchip,rk3368-gmac","rockchip,rk3399-gmac","rockchip,rv1108-gmac"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,rk3506-gmac","rockchip,rk3528-gmac","rockchip,rk3568-gmac","rockchip,rk3576-gmac","rockchip,rk3588-gmac","rockchip,rv1126-gmac"Item 2
Exact value (
const):"snps,dwmac-4.20a"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Item 2
Exact value (
const):"eth_wake_irq"
clocks — required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 8
clock-names — required here #
Rule for matching array elements (contains) #
Allowed values (
enum):"stmmaceth","mac_clk_tx","mac_clk_rx","aclk_mac","pclk_mac","clk_mac_ref","clk_mac_refout","clk_mac_speed"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
clock_in_out — not listed as required here #
For RGMII, it must be "input", means main clock(125MHz) is not sourced from SoC's PLL, but input from PHY. For RMII, "input" means PHY provides the reference clock(50MHz), "output" means GMAC provides the reference clock.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "input", "output"
Default value (default): "input"
rockchip,grf — required here #
The phandle of the syscon node for the general register file.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
rockchip,php-grf — not listed as required here #
The phandle of the syscon node for the peripheral general register file.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
tx_delay — not listed as required here #
Delay value for TXD timing.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 127
Default value (default): 48
rx_delay — not listed as required here #
Delay value for RXD timing.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 127
Default value (default): 16
phy-supply — not listed as required here #
PHY regulator
Required in this object (required): "compatible", "clocks", "clock-names", "rockchip,grf"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3576-gmac","rockchip,rk3588-gmac"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
rockchip,php-grf— not listed as required here
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"rockchip,rk3506-gmac","rockchip,rk3528-gmac"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):5
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/rk3288-cru.h>
gmac: ethernet@ff290000 {
compatible = "rockchip,rk3288-gmac";
reg = <0xff290000 0x10000>;
interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
clocks = <&cru SCLK_MAC>,
<&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
<&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
<&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
clock-names = "stmmaceth",
"mac_clk_rx", "mac_clk_tx",
"clk_mac_ref", "clk_mac_refout",
"aclk_mac", "pclk_mac";
assigned-clocks = <&cru SCLK_MAC>;
assigned-clock-parents = <&ext_gmac>;
rockchip,grf = <&grf>;
phy-mode = "rgmii-id";
clock_in_out = "input";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 12: We need a select here so we don't match all nodes with 'snps,dwmac'
Small Form Factor (SFF) Committee Small Form-factor Pluggable (SFP) Transceiver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/sff,sfp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Russell King <linux@armlinux.org.uk>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sff,sfp", "sff,sff"
i2c-bus — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle of an I2C bus controller for the SFP two wire serial
maximum-power-milliwatt — not listed as required here #
Minimum value (minimum): 1000
Default value (default): 1000
Maximum module power consumption Specifies the maximum power consumption allowable by a module in the slot, in milli-Watts. Presently, modules can be up to 1W, 1.5W or 2W.
mod-def0-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the MOD-DEF0 (AKA Mod_ABS) module presence input gpio signal, active (module absent) high. Must not be present for SFF modules
los-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the Receiver Loss of Signal Indication input gpio signal, active (signal lost) high
tx-fault-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the Module Transmitter Fault input gpio signal, active (fault condition) high
tx-disable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the Transmitter Disable output gpio signal, active (Tx disable) high
rate-select0-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the Rx Signaling Rate Select (AKA RS0) output gpio signal, low - low Rx rate, high - high Rx rate Must not be present for SFF modules
rate-select1-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO phandle and a specifier of the Tx Signaling Rate Select (AKA RS1) output gpio signal (SFP+ only), low - low Tx rate, high - high Tx rate. Must not be present for SFF modules
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"sff,sff"When the condition matches (
then) #Properties and child nodes (
properties)
mod-def0-gpios— not listed as required here
false— Not permitted by this property rule.
rate-select0-gpios— not listed as required here
false— Not permitted by this property rule.
rate-select1-gpios— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "i2c-bus"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
sfp1: sfp {
compatible = "sff,sfp";
i2c-bus = <&sfp_1g_i2c>;
los-gpios = <&cpm_gpio2 22 GPIO_ACTIVE_HIGH>;
mod-def0-gpios = <&cpm_gpio2 21 GPIO_ACTIVE_LOW>;
maximum-power-milliwatt = <1000>;
pinctrl-names = "default";
pinctrl-0 = <&cpm_sfp_1g_pins &cps_sfp_1g_pins>;
tx-disable-gpios = <&cps_gpio1 24 GPIO_ACTIVE_HIGH>;
tx-fault-gpios = <&cpm_gpio2 19 GPIO_ACTIVE_HIGH>;
};
ethernet {
phy-names = "comphy";
phys = <&cps_comphy5 0>;
sfp = <&sfp1>;
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
sfp2: sfp {
compatible = "sff,sfp";
i2c-bus = <&sfp_i2c>;
los-gpios = <&cps_gpio1 28 GPIO_ACTIVE_HIGH>;
mod-def0-gpios = <&cps_gpio1 27 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&cps_sfpp0_pins>;
tx-disable-gpios = <&cps_gpio1 29 GPIO_ACTIVE_HIGH>;
tx-fault-gpios = <&cps_gpio1 26 GPIO_ACTIVE_HIGH>;
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c45";
pinctrl-names = "default";
pinctrl-0 = <&cpm_phy0_pins &cps_phy0_pins>;
reg = <0>;
interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
sfp = <&sfp2>;
};
};
ethernet {
phy = <&phy>;
phy-mode = "10gbase-kr";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: for SFP modules
Line 17: for soldered down SFF modules
Smart Mixed-Signal Connectivity (SMSC) LAN911x/912x Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
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)
Smart Mixed-Signal Connectivity (SMSC) LAN91C9x/91C1xx Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/smsc,lan91c111.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Pitre <nico@fluxnic.net>"
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): "smsc,lan91c111"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — 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 #
Allowed values (enum): 1, 2, 4
Default value (default): 4
reset-gpios — not listed as required here #
GPIO connected to control RESET pin
Maximum number of items (maxItems): 1
power-gpios — not listed as required here #
GPIO connect to control PWRDWN pin
Maximum number of items (maxItems): 1
pxa-u16-align4 — not listed as required here #
put in place the workaround the force all u16 writes to be 32 bits aligned
Value type (type): "boolean"
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/interrupt-controller/arm-gic.h>
ethernet@4010000 {
compatible = "smsc,lan91c111";
reg = <0x40100000 0x10000>;
phy-mode = "mii";
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
reg-io-width = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Synopsys DesignWare MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/snps,dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Torgue <alexandre.torgue@foss.st.com>", "Giuseppe Cavallaro <peppe.cavallaro@st.com>", "Jose Abreu <joabreu@synopsys.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"snps,dwmac","snps,dwmac-3.40a","snps,dwmac-3.50a","snps,dwmac-3.610","snps,dwmac-3.70a","snps,dwmac-3.710","snps,dwmac-3.72a","snps,dwmac-4.00","snps,dwmac-4.10a","snps,dwmac-4.20a","snps,dwmac-5.00a","snps,dwmac-5.10a","snps,dwmac-5.20","snps,dwmac-5.30a","snps,dwxgmac","snps,dwxgmac-2.10","st,spear600-gmac"
Properties and child nodes (properties) #
compatible — required here #
Rule for matching array elements (contains) #
Allowed values (
enum):"allwinner,sun7i-a20-gmac","allwinner,sun8i-a83t-emac","allwinner,sun8i-h3-emac","allwinner,sun8i-r40-gmac","allwinner,sun8i-v3s-emac","allwinner,sun50i-a64-emac","amlogic,meson6-dwmac","amlogic,meson8b-dwmac","amlogic,meson8m2-dwmac","amlogic,meson-gxbb-dwmac","amlogic,meson-axg-dwmac","ingenic,jz4775-mac","ingenic,x1000-mac","ingenic,x1600-mac","ingenic,x1830-mac","ingenic,x2000-mac","loongson,ls2k-dwmac","loongson,ls7a-dwmac","nxp,s32g2-dwmac","qcom,qcs404-ethqos","qcom,sa8775p-ethqos","qcom,sc8280xp-ethqos","qcom,sm8150-ethqos","renesas,r9a06g032-gmac","renesas,r9a08g046-gbeth","renesas,r9a09g077-gbeth","renesas,rzn1-gmac","renesas,rzv2h-gbeth","rockchip,px30-gmac","rockchip,rk3128-gmac","rockchip,rk3228-gmac","rockchip,rk3288-gmac","rockchip,rk3308-gmac","rockchip,rk3328-gmac","rockchip,rk3366-gmac","rockchip,rk3368-gmac","rockchip,rk3399-gmac","rockchip,rk3506-gmac","rockchip,rk3528-gmac","rockchip,rk3568-gmac","rockchip,rk3576-gmac","rockchip,rk3588-gmac","rockchip,rv1108-gmac","rockchip,rv1126-gmac","snps,dwmac","snps,dwmac-3.40a","snps,dwmac-3.50a","snps,dwmac-3.610","snps,dwmac-3.70a","snps,dwmac-3.710","snps,dwmac-3.72a","snps,dwmac-4.00","snps,dwmac-4.10a","snps,dwmac-4.20a","snps,dwmac-5.00a","snps,dwmac-5.10a","snps,dwmac-5.20","snps,dwmac-5.30a","snps,dwxgmac","snps,dwxgmac-2.10","sophgo,sg2042-dwmac","sophgo,sg2044-dwmac","starfive,jh7100-dwmac","starfive,jh7110-dwmac","tesla,fsd-ethqos","thead,th1520-gmac"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
interrupt-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 19
Array item rules (items) #
Exactly one of these rules must match (
oneOf)Rule 1
Combined signal for various interrupt events
Exact value (
const):"macirq"Rule 2
The interrupt to manage the remote wake-up packet detection
Exact value (
const):"eth_wake_irq"Rule 3
The interrupt that occurs when Rx exits the LPI state
Exact value (
const):"eth_lpi"Rule 4
The interrupt that occurs when HW safety error triggered
Exact value (
const):"sfty"Rule 5
Per channel receive completion interrupt
String pattern (
pattern):"^rx-queue-[0-7]$"Rule 6
Per channel transmit completion interrupt
String pattern (
pattern):"^tx-queue-[0-7]$"Rule 7
PPS interrupt
String pattern (
pattern):"^ptp-pps-[0-3]$"
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
Array items beyond the listed positions (additionalItems) #
true
Allowed by this rule.
Array item rules (items) #
Item 1
GMAC main clock
Item 2
Peripheral registers interface clock
Item 3
PTP reference clock. This clock is used for programming the Timestamp Addend Register. If not passed then the system clock will be used and this is fine on some platforms.
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
Array items beyond the listed positions (additionalItems) #
true
Allowed by this rule.
Rule for matching array elements (contains) #
resets — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
GMAC stmmaceth reset
Item 2
AHB reset
reset-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"stmmaceth"Item 2
Exact value (
const):"ahb"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
mac-mode — not listed as required here #
Shared schema rule ($ref): ethernet-controller.yaml#/properties/phy-connection-type
The property is identical to 'phy-mode', and assumes that there is mode converter in-between the MAC & PHY (e.g. GMII-to-RGMII). This converter can be passive (no SW requirement), and requires that the MAC operate in a different mode than the PHY in order to function.
snps,axi-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
AXI BUS Mode parameters. Phandle to a node that can contain the following properties * snps,lpi_en, enable Low Power Interface * snps,xit_frm, unlock on WoL * snps,wr_osr_lmt, max write outstanding req. limit * snps,rd_osr_lmt, max read outstanding req. limit * snps,kbbe, do not cross 1KiB boundary. * snps,blen, this is a vector of supported burst length. * snps,fb, fixed-burst * snps,mb, mixed-burst * snps,rb, rebuild INCRx Burst
snps,mtl-rx-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Multiple RX Queues parameters. Phandle to a node that implements the 'rx-queues-config' object described in this binding.
rx-queues-config — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
snps,rx-queues-to-use — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
number of RX queues to be used in the driver
snps,rx-sched-sp — not listed as required here
Value type (type): "boolean"
Strict priority
snps,rx-sched-wsp — not listed as required here
Value type (type): "boolean"
Weighted Strict priority
All of these rules must match (allOf) #
Rule 1
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,rx-sched-wsp— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,rx-sched-sp— not listed as required here
false— Not permitted by this property rule.
Properties matching a name pattern (patternProperties) #
^queue[0-9]$ — name matches this regular expression
Each subnode represents a queue.
Value type (type): "object"
Properties and child nodes (properties)
snps,dcb-algorithm — not listed as required here
Value type (type): "boolean"
Queue to be enabled as DCB
snps,avb-algorithm — not listed as required here
Value type (type): "boolean"
Queue to be enabled as AVB
snps,map-to-dma-channel — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
DMA channel id to map
snps,route-avcp — not listed as required here
Value type (type): "boolean"
AV Untagged Control packets
snps,route-ptp — not listed as required here
Value type (type): "boolean"
PTP Packets
snps,route-dcbcp — not listed as required here
Value type (type): "boolean"
DCB Control Packets
snps,route-up — not listed as required here
Value type (type): "boolean"
Untagged Packets
snps,route-multi-broad — not listed as required here
Value type (type): "boolean"
Multicast & Broadcast Packets
snps,priority — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 1
Bitmask of the tagged frames priorities assigned to the queue
All of these rules must match (allOf)
Rule 1
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,avb-algorithm— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,dcb-algorithm— not listed as required here
false— Not permitted by this property rule.
Rule 3
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,route-ptp— not listed as required here
false— Not permitted by this property rule.
snps,route-dcbcp— not listed as required here
false— Not permitted by this property rule.
snps,route-up— not listed as required here
false— Not permitted by this property rule.
snps,route-multi-broad— not listed as required here
false— Not permitted by this property rule.
Rule 4
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,route-avcp— not listed as required here
false— Not permitted by this property rule.
snps,route-dcbcp— not listed as required here
false— Not permitted by this property rule.
snps,route-up— not listed as required here
false— Not permitted by this property rule.
snps,route-multi-broad— not listed as required here
false— Not permitted by this property rule.
Rule 5
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,route-avcp— not listed as required here
false— Not permitted by this property rule.
snps,route-ptp— not listed as required here
false— Not permitted by this property rule.
snps,route-up— not listed as required here
false— Not permitted by this property rule.
snps,route-multi-broad— not listed as required here
false— Not permitted by this property rule.
Rule 6
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,route-avcp— not listed as required here
false— Not permitted by this property rule.
snps,route-ptp— not listed as required here
false— Not permitted by this property rule.
snps,route-dcbcp— not listed as required here
false— Not permitted by this property rule.
snps,route-multi-broad— not listed as required here
false— Not permitted by this property rule.
Rule 7
Condition (
if)Required in this object (
required):"snps,route-multi-broad"When the condition matches (
then)Properties and child nodes (
properties)
snps,route-avcp— not listed as required here
false— Not permitted by this property rule.
snps,route-ptp— not listed as required here
false— Not permitted by this property rule.
snps,route-dcbcp— not listed as required here
false— Not permitted by this property rule.
snps,route-up— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
snps,mtl-tx-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Multiple TX Queues parameters. Phandle to a node that implements the 'tx-queues-config' object described in this binding.
tx-queues-config — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
snps,tx-queues-to-use — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
number of TX queues to be used in the driver
snps,tx-sched-wrr — not listed as required here
Value type (type): "boolean"
Weighted Round Robin
snps,tx-sched-wfq — not listed as required here
Value type (type): "boolean"
Weighted Fair Queuing
snps,tx-sched-dwrr — not listed as required here
Value type (type): "boolean"
Deficit Weighted Round Robin
All of these rules must match (allOf) #
Rule 1
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,tx-sched-wfq— not listed as required here
false— Not permitted by this property rule.
snps,tx-sched-dwrr— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,tx-sched-wrr— not listed as required here
false— Not permitted by this property rule.
snps,tx-sched-dwrr— not listed as required here
false— Not permitted by this property rule.
Rule 3
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,tx-sched-wrr— not listed as required here
false— Not permitted by this property rule.
snps,tx-sched-wfq— not listed as required here
false— Not permitted by this property rule.
Properties matching a name pattern (patternProperties) #
^queue[0-9]$ — name matches this regular expression
Each subnode represents a queue.
Value type (type): "object"
Properties and child nodes (properties)
snps,weight — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
TX queue weight (if using a DCB weight algorithm)
snps,dcb-algorithm — not listed as required here
Value type (type): "boolean"
TX queue will be working in DCB
snps,avb-algorithm — not listed as required here
Value type (type): "boolean"
TX queue will be working in AVB. Queue 0 is reserved for legacy traffic and so no AVB is available in this queue.
snps,send_slope — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
enable Low Power Interface
snps,idle_slope — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
unlock on WoL
snps,high_credit — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
max write outstanding req. limit
snps,low_credit — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
max read outstanding req. limit
snps,priority — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Maximum number of items (maxItems): 1
Bitmask of the tagged frames priorities assigned to the queue. When a PFC frame is received with priorities matching the bitmask, the queue is blocked from transmitting for the pause time specified in the PFC frame.
snps,coe-unsupported — not listed as required here
Value type (type): "boolean"
TX checksum offload is unsupported by the TX queue.
All of these rules must match (allOf)
Rule 1
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,avb-algorithm— not listed as required here
false— Not permitted by this property rule.
Rule 2
Condition (
if)When the condition matches (
then)Properties and child nodes (
properties)
snps,dcb-algorithm— not listed as required here
false— Not permitted by this property rule.
snps,weight— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
snps,reset-gpio — not listed as required here #
Deprecated (deprecated): true
Maximum number of items (maxItems): 1
PHY Reset GPIO
snps,reset-active-low — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Indicates that the PHY Reset is active low
snps,reset-delays-us — not listed as required here #
Deprecated (deprecated): true
Triplet of delays. The 1st cell is reset pre-delay in micro seconds. The 2nd cell is reset pulse in micro seconds. The 3rd cell is reset post-delay in micro seconds.
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
snps,aal — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Use Address-Aligned Beats
snps,pbl — not listed as required here #
Programmable Burst Length (tx and rx)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 16, 32
snps,txpbl — not listed as required here #
Tx Programmable Burst Length. If set, DMA tx will use this value rather than snps,pbl.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 16, 32
snps,rxpbl — not listed as required here #
Rx Programmable Burst Length. If set, DMA rx will use this value rather than snps,pbl.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 16, 32
snps,no-pbl-x8 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Don\'t multiply the pbl/txpbl/rxpbl values by 8. For core rev < 3.50, don\'t multiply the values by 4.
snps,fixed-burst — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Program the DMA to use the fixed burst mode
snps,mixed-burst — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Program the DMA to use the mixed burst mode
snps,force_thresh_dma_mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Force DMA to use the threshold mode for both tx and rx
snps,force_sf_dma_mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Force DMA to use the Store and Forward mode for both tx and rx. This flag is ignored if force_thresh_dma_mode is set.
snps,en-tx-lpi-clockgating — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Deprecated (deprecated): true
Enable gating of the MAC TX clock during TX low-power mode
snps,multicast-filter-bins — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of multicast filter hash bins supported by this device instance
snps,perfect-filter-entries — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of perfect filter entries supported by this device instance
snps,ps-speed — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Port selection speed that can be passed to the core when PCS is supported. For example, this is used in case of SGMII and MAC2MAC connection.
snps,clk-csr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Frequency division factor for MDC clock.
snps,tso — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enables the TSO feature otherwise it will be managed by MAC HW capability register.
mdio — not listed as required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Creates and registers an MDIO bus.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "snps,dwmac-mdio"
Required in this object (required): "compatible"
stmmac-axi-config — not listed as required here #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
AXI BUS Mode parameters.
Properties and child nodes (properties) #
snps,lpi_en — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
enable Low Power Interface
snps,xit_frm — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
unlock on WoL
snps,wr_osr_lmt — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
max write outstanding req. limit
snps,rd_osr_lmt — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
max read outstanding req. limit
snps,kbbe — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
do not cross 1KiB boundary.
snps,blen — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
this is a vector of supported burst length.
Minimum number of items (minItems): 7
Maximum number of items (maxItems): 7
snps,fb — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
fixed-burst
snps,mb — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
mixed-burst
snps,rb — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
rebuild INCRx Burst
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "phy-mode"
Property dependencies (dependencies) #
snps,reset-active-low — applies when this property is present #
Also requires: "snps,reset-gpio"
snps,reset-delays-us — applies when this property is present #
Also requires: "snps,reset-gpio"
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 hereThis rule must not match (
not)Rule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun7i-a20-gmac","allwinner,sun8i-a83t-emac","allwinner,sun8i-h3-emac","allwinner,sun8i-r40-gmac","allwinner,sun8i-v3s-emac","allwinner,sun50i-a64-emac","loongson,ls2k-dwmac","loongson,ls7a-dwmac","ingenic,jz4775-mac","ingenic,x1000-mac","ingenic,x1600-mac","ingenic,x1830-mac","ingenic,x2000-mac","qcom,qcs404-ethqos","qcom,sa8775p-ethqos","qcom,sc8280xp-ethqos","qcom,sm8150-ethqos","snps,dwmac-4.00","snps,dwmac-4.10a","snps,dwmac-4.20a","snps,dwmac-5.00a","snps,dwmac-5.10a","snps,dwmac-5.20","snps,dwmac-5.30a","snps,dwxgmac","snps,dwxgmac-2.10","st,spear600-gmac"When the condition matches (
then) #Properties and child nodes (
properties)
snps,tso— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
gmac0: ethernet@e0800000 {
compatible = "snps,dwxgmac-2.10", "snps,dwxgmac";
reg = <0xe0800000 0x8000>;
interrupt-parent = <&vic1>;
interrupts = <24 23 22>;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
mac-address = [000000000000]; /* Filled in by U-Boot */
max-frame-size = <3800>;
phy-mode = "gmii";
snps,multicast-filter-bins = <256>;
snps,perfect-filter-entries = <128>;
rx-fifo-depth = <16384>;
tx-fifo-depth = <16384>;
clocks = <&clock>;
clock-names = "stmmaceth";
snps,axi-config = <&stmmac_axi_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
snps,mtl-tx-config = <&mtl_tx_setup>;
stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <0xf>;
snps,rd_osr_lmt = <0xf>;
snps,blen = <256 128 64 32 0 0 0>;
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <1>;
snps,rx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,map-to-dma-channel = <0x0>;
snps,priority = <0x0>;
};
};
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <2>;
snps,tx-sched-wrr;
queue0 {
snps,weight = <0x10>;
snps,dcb-algorithm;
snps,priority = <0x0>;
};
queue1 {
snps,avb-algorithm;
snps,send_slope = <0x1000>;
snps,idle_slope = <0x1000>;
snps,high_credit = <0x3E800>;
snps,low_credit = <0xFFC18000>;
snps,priority = <0x1>;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy1: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 14: Select every compatible, including the deprecated ones. This way, we
Line 15: will be able to report a warning when we have that compatible, since
Line 16: we will validate the node thanks to the select, but won't report it
Line 17: as a valid value in the compatible property description
Line 40: Deprecated
Line 48: We need to include all the compatibles from schemas that will
Line 49: include that schemas, otherwise compatible won't validate for
Line 50: those.
Line 735: FIXME: We should set it, but it would report all the generic
Line 736: properties as additional properties.
Line 737: additionalProperties: false
Socionext NetSec Ethernet Controller IP
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/socionext,synquacer-netsec.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jassi Brar <jaswinder.singh@linaro.org>", "Ilias Apalodimas <ilias.apalodimas@linaro.org>"
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): "socionext,synquacer-netsec"
reg — required here #
Array item rules (items) #
Item 1
control register area
Item 2
EEPROM holding the MAC address and microengine firmware
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "phy_ref_clk"
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
mdio — required here #
Shared schema rule ($ref): mdio.yaml#
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "mdio"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
ethernet@522d0000 {
compatible = "socionext,synquacer-netsec";
reg = <0x522d0000 0x10000>, <0x10000000 0x10000>;
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_netsec>;
clock-names = "phy_ref_clk";
phy-mode = "rgmii";
max-speed = <1000>;
max-frame-size = <9000>;
phy-handle = <&phy1>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Socionext AVE ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/socionext,uniphier-ave4.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"
This describes the devicetree bindings for AVE ethernet controller implemented on Socionext UniPhier SoCs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "socionext,uniphier-pro4-ave4", "socionext,uniphier-pxs2-ave4", "socionext,uniphier-ld11-ave4", "socionext,uniphier-ld20-ave4", "socionext,uniphier-pxs3-ave4", "socionext,uniphier-nx1-ave4"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
true — No constraints added by this property rule.
phy-handle — 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.
local-mac-address — not listed as required here #
true — No constraints added by this property rule.
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
resets — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
reset-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
socionext,syscon-phy-mode — not listed as 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 configures phy mode
Item 2
ID of MAC instance
A phandle to syscon with one argument that configures phy mode. The argument is the ID of MAC instance.
mdio — required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
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 hereRule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-pro4-ave4"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gio"Item 2
Exact value (
const):"ether"Item 3
Exact value (
const):"ether-gb"Item 4
Exact value (
const):"ether-phy"
resets— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
reset-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"gio"Item 2
Exact value (
const):"ether"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereExact value (
const):"ether"
resets— not listed as required hereMaximum number of items (
maxItems):1
reset-names— not listed as required hereExact value (
const):"ether"
Required in this object (required): "compatible", "reg", "interrupts", "phy-mode", "phy-handle", "clocks", "clock-names", "resets", "reset-names", "mdio"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ether: ethernet@65000000 {
compatible = "socionext,uniphier-ld20-ave4";
reg = <0x65000000 0x8500>;
interrupts = <0 66 4>;
phy-mode = "rgmii";
phy-handle = <ðphy>;
clock-names = "ether";
clocks = <&sys_clk 6>;
reset-names = "ether";
resets = <&sys_rst 6>;
socionext,syscon-phy-mode = <&soc_glue 0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy: ethernet-phy@1 {
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sophgo CV1800B DWMAC glue layer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/sophgo,cv1800b-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"sophgo,cv1800b-dwmac"
Item 2
Exact value (
const):"snps,dwmac-3.70a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
PTP clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"ptp_ref"
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "stmmaceth"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ethernet@4070000 {
compatible = "sophgo,cv1800b-dwmac", "snps,dwmac-3.70a";
reg = <0x04070000 0x10000>;
clocks = <&clk 35>, <&clk 36>;
clock-names = "stmmaceth", "ptp_ref";
interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
phy-handle = <&internal_ephy>;
phy-mode = "internal";
resets = <&rst 12>;
reset-names = "stmmaceth";
rx-fifo-depth = <8192>;
tx-fifo-depth = <8192>;
snps,multicast-filter-bins = <0>;
snps,perfect-filter-entries = <1>;
snps,aal;
snps,txpbl = <8>;
snps,rxpbl = <8>;
snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
snps,axi-config = <&gmac0_stmmac_axi_setup>;
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
};
gmac0_mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <1>;
queue0 {};
};
gmac0_mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <1>;
queue0 {};
};
gmac0_stmmac_axi_setup: stmmac-axi-config {
snps,blen = <16 8 4 0 0 0 0>;
snps,rd_osr_lmt = <2>;
snps,wr_osr_lmt = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Sophgo SG2044 DWMAC glue layer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/sophgo,sg2044-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Inochi Amaoto <inochiama@gmail.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"sophgo,sg2044-dwmac","sophgo,sg2042-dwmac"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"sophgo,sg2042-dwmac"Item 2
Exact value (
const):"snps,dwmac-5.00a"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"sophgo,sg2044-dwmac"Item 2
Exact value (
const):"snps,dwmac-5.30a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
PTP clock
Item 3
TX clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"ptp_ref"
Item 3
Exact value (
const):"tx"
dma-noncoherent — not listed as required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
reset-names — required here #
Exact value (const): "stmmaceth"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"sophgo,sg2042-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
phy-mode— not listed as required hereWhen the condition does not match (
else) #Properties and child nodes (
properties)
phy-mode— not listed as required hereAllowed values (
enum):"rgmii","rgmii-rxid","rgmii-txid","rgmii-id"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ethernet@30006000 {
compatible = "sophgo,sg2044-dwmac", "snps,dwmac-5.30a";
reg = <0x30006000 0x4000>;
clocks = <&clk 151>, <&clk 152>, <&clk 154>;
clock-names = "stmmaceth", "ptp_ref", "tx";
interrupt-parent = <&intc>;
interrupts = <296 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
phy-handle = <&phy0>;
phy-mode = "rgmii-id";
resets = <&rst 30>;
reset-names = "stmmaceth";
snps,multicast-filter-bins = <0>;
snps,perfect-filter-entries = <1>;
snps,aal;
snps,tso;
snps,txpbl = <32>;
snps,rxpbl = <32>;
snps,mtl-rx-config = <&gmac0_mtl_rx_setup>;
snps,mtl-tx-config = <&gmac0_mtl_tx_setup>;
snps,axi-config = <&gmac0_stmmac_axi_setup>;
gmac0_mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <8>;
snps,rx-sched-wsp;
queue0 {};
queue1 {};
queue2 {};
queue3 {};
queue4 {};
queue5 {};
queue6 {};
queue7 {};
};
gmac0_mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <8>;
queue0 {};
queue1 {};
queue2 {};
queue3 {};
queue4 {};
queue5 {};
queue6 {};
queue7 {};
};
gmac0_stmmac_axi_setup: stmmac-axi-config {
snps,blen = <16 8 4 0 0 0 0>;
snps,wr_osr_lmt = <1>;
snps,rd_osr_lmt = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SpacemiT K1 Ethernet MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
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
StarFive JH7110 DWMAC glue layer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/starfive,jh7110-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Emil Renner Berthing <kernel@esmil.dk>", "Samin Guo <samin.guo@starfivetech.com>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"starfive,jh7100-dwmac","starfive,jh7110-dwmac"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"starfive,jh7100-dwmac"Item 2
Exact value (
const):"snps,dwmac"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"starfive,jh7110-dwmac"Item 2
Exact value (
const):"snps,dwmac-5.20"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"starfive,jh8100-dwmac"Item 2
Exact value (
const):"starfive,jh7110-dwmac"Item 3
Exact value (
const):"snps,dwmac-5.20"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
GMAC AHB clock
Item 3
PTP clock
Item 4
TX clock
Item 5
GTX clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"pclk"
Item 3
Exact value (
const):"ptp_ref"
Item 4
Exact value (
const):"tx"
Item 5
Exact value (
const):"gtx"
starfive,tx-use-rgmii-clk — not listed as required here #
Tx clock is provided by external rgmii clock.
Value type (type): "boolean"
starfive,syscon — not listed as 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 configures phy mode
Item 2
Offset of phy mode selection
Item 3
Shift of phy mode selection
A phandle to syscon with two arguments that configure phy mode. The argument one is the offset of phy mode selection, the argument two is the shift of phy mode selection.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names", "resets", "reset-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"starfive,jh7100-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
interrupt-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
resets— not listed as required hereMaximum number of items (
maxItems):1
reset-names— not listed as required hereExact value (
const):"ahb"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"starfive,jh7110-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
interrupt-names— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"starfive,jh8100-dwmac"When the condition matches (
then)Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):1
reset-names— not listed as required hereExact value (
const):"stmmaceth"When the condition does not match (
else)Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):2
reset-names— not listed as required hereMinimum number of items (
minItems):2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@16030000 {
compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20";
reg = <0x16030000 0x10000>;
clocks = <&clk 3>, <&clk 2>, <&clk 109>,
<&clk 6>, <&clk 111>;
clock-names = "stmmaceth", "pclk", "ptp_ref",
"tx", "gtx";
resets = <&rst 1>, <&rst 2>;
reset-names = "stmmaceth", "ahb";
interrupts = <7>, <6>, <5>;
interrupt-names = "macirq", "eth_wake_irq", "eth_lpi";
phy-mode = "rgmii-id";
snps,multicast-filter-bins = <64>;
snps,perfect-filter-entries = <8>;
rx-fifo-depth = <2048>;
tx-fifo-depth = <2048>;
snps,fixed-burst;
snps,no-pbl-x8;
snps,tso;
snps,force_thresh_dma_mode;
snps,axi-config = <&stmmac_axi_setup>;
snps,en-tx-lpi-clockgating;
snps,txpbl = <16>;
snps,rxpbl = <16>;
starfive,syscon = <&aon_syscon 0xc 0x12>;
phy-handle = <&phy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
stmmac_axi_setup: stmmac-axi-config {
snps,lpi_en;
snps,wr_osr_lmt = <4>;
snps,rd_osr_lmt = <4>;
snps,blen = <256 128 64 32 0 0 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2022 StarFive Technology Co., Ltd.
STMicroelectronics STM32 / MCU DWMAC glue layer controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/stm32-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Torgue <alexandre.torgue@foss.st.com>", "Christophe Roullier <christophe.roullier@foss.st.com>"
This file documents platform glue layer for stmmac.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"st,stm32-dwmac","st,stm32mp1-dwmac","st,stm32mp13-dwmac","st,stm32mp25-dwmac"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-5.20"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"st,stm32mp1-dwmac","st,stm32mp13-dwmac"Item 2
Exact value (
const):"snps,dwmac-4.20a"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-4.10a"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-3.50a"
reg — not listed as required here #
true — No constraints added by this property rule.
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Item 2
Exact value (
const):"eth_wake_irq"
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
GMAC main clock
Item 2
MAC TX clock
Item 3
MAC RX clock
Item 4
For MPU family, used for power mode
Item 5
For MPU family, used for PHY without quartz
Item 6
PTP clock
clock-names — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 6
Rule for matching array elements (contains) #
Allowed values (
enum):"stmmaceth","mac-clk-tx","mac-clk-rx","ethstp","eth-ck","ptp_ref"
st,syscon — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Minimum number of items (
minItems):2Array item rules (
items)Item 1
phandle to the syscon node which encompases the glue register
Item 2
offset of the control register
Item 3
field to set mask in register
Should be phandle/offset pair. The phandle to the syscon node which encompases the glue register, the offset of the control register and the mask to set bitfield in control register
st,ext-phyclk — not listed as required here #
set this property in RMII mode when you have PHY without crystal 50MHz and want to select RCC clock instead of ETH_REF_CLK. OR in RGMII mode when you want to select RCC clock instead of ETH_CLK125.
Value type (type): "boolean"
st,eth-clk-sel — not listed as required here #
set this property in RGMII PHY when you want to select RCC clock instead of ETH_CLK125.
Value type (type): "boolean"
st,eth-ref-clk-sel — not listed as required here #
set this property in RMII mode when you have PHY without crystal 50MHz and want to select RCC clock instead of ETH_REF_CLK.
Value type (type): "boolean"
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "clocks", "clock-names", "st,syscon"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"st,stm32-dwmac","st,stm32mp1-dwmac","st,stm32mp25-dwmac"When the condition matches (
then) #Properties and child nodes (
properties)
st,syscon— not listed as required hereArray item rules (
items)Minimum number of items (
minItems):2Maximum number of items (
maxItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
st,syscon— not listed as required hereArray item rules (
items)Minimum number of items (
minItems):3Maximum number of items (
maxItems):3
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/stm32mp1-clks.h>
//Example 1
ethernet0: ethernet@5800a000 {
compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a";
reg = <0x5800a000 0x2000>;
reg-names = "stmmaceth";
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
clock-names = "stmmaceth",
"mac-clk-tx",
"mac-clk-rx",
"ethstp",
"eth-ck";
clocks = <&rcc ETHMAC>,
<&rcc ETHTX>,
<&rcc ETHRX>,
<&rcc ETHSTP>,
<&rcc ETHCK_K>;
st,syscon = <&syscfg 0x4>;
snps,pbl = <2>;
snps,axi-config = <&stmmac_axi_config_0>;
snps,tso;
phy-mode = "rgmii";
};
//Example 2 (MCU example)
ethernet1: ethernet@40028000 {
compatible = "st,stm32-dwmac", "snps,dwmac-3.50a";
reg = <0x40028000 0x8000>;
reg-names = "stmmaceth";
interrupts = <0 61 0>, <0 62 0>;
interrupt-names = "macirq", "eth_wake_irq";
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
clocks = <&rcc 0 25>, <&rcc 0 26>, <&rcc 0 27>;
st,syscon = <&syscfg 0x4>;
snps,pbl = <8>;
snps,mixed-burst;
phy-mode = "mii";
};
//Example 3
ethernet2: ethernet@40027000 {
compatible = "st,stm32-dwmac", "snps,dwmac-4.10a";
reg = <0x40028000 0x8000>;
reg-names = "stmmaceth";
interrupts = <61>;
interrupt-names = "macirq";
clock-names = "stmmaceth", "mac-clk-tx", "mac-clk-rx";
clocks = <&rcc 62>, <&rcc 61>, <&rcc 60>;
st,syscon = <&syscfg 0x4>;
snps,pbl = <8>;
phy-mode = "mii";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 17: We need a select here so we don't match all nodes with 'snps,dwmac'
Sunplus SP7021 Dual Ethernet MAC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/sunplus,sp7021-emac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wells Lu <wellslutw@gmail.com>"
Sunplus SP7021 dual 10M/100M Ethernet MAC controller. Device node of the controller has following properties.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sunplus,sp7021-emac"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
ethernet-ports — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Ethernet ports to PHY
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-1]$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Port to PHY
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 1
phy-handle — required here
Maximum number of items (maxItems): 1
phy-mode — required here
Maximum number of items (maxItems): 1
nvmem-cells — required here
Array item rules (items)
Item 1
nvmem cell address of MAC address
nvmem-cell-names — required here
names corresponding to the nvmem cells
Array item rules (items)
Item 1
Exact value (
const):"mac-address"
Required in this object (required): "reg", "phy-handle", "phy-mode", "nvmem-cells", "nvmem-cell-names"
mdio — required here #
Shared schema rule ($ref): mdio.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "pinctrl-0", "pinctrl-names", "ethernet-ports", "mdio"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ethernet@9c108000 {
compatible = "sunplus,sp7021-emac";
reg = <0x9c108000 0x400>;
interrupt-parent = <&intc>;
interrupts = <66 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 0xa7>;
resets = <&rstc 0x97>;
pinctrl-0 = <&emac_demo_board_v3_pins>;
pinctrl-names = "default";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
phy-handle = <ð_phy0>;
phy-mode = "rmii";
nvmem-cells = <&mac_addr0>;
nvmem-cell-names = "mac-address";
};
port@1 {
reg = <1>;
phy-handle = <ð_phy1>;
phy-mode = "rmii";
nvmem-cells = <&mac_addr1>;
nvmem-cell-names = "mac-address";
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;
eth_phy0: ethernet-phy@0 {
reg = <0>;
};
eth_phy1: ethernet-phy@1 {
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) Sunplus Co., Ltd. 2021
FSD Ethernet Quality of Service
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/tesla,fsd-ethqos.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Swathi K S <swathi.ks@samsung.com>"
Tesla ethernet devices based on dwmmac support Gigabit ethernet.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "tesla,fsd-ethqos"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
clocks — required here #
Minimum number of items (minItems): 5
Array item rules (items) #
Item 1
PTP clock
Item 2
Master bus clock
Item 3
Slave bus clock
Item 4
MAC TX clock
Item 5
MAC RX clock
Item 6
Master2 bus clock
Item 7
Slave2 bus clock
Item 8
RX MUX clock
Item 9
PHY RX clock
Item 10
PERIC RGMII clock
clock-names — required here #
Minimum number of items (minItems): 5
Array item rules (items) #
Item 1
Exact value (
const):"ptp_ref"
Item 2
Exact value (
const):"master_bus"
Item 3
Exact value (
const):"slave_bus"
Item 4
Exact value (
const):"tx"
Item 5
Exact value (
const):"rx"
Item 6
Exact value (
const):"master2_bus"
Item 7
Exact value (
const):"slave2_bus"
Item 8
Exact value (
const):"eqos_rxclk_mux"
Item 9
Exact value (
const):"eqos_phyrxclk"
Item 10
Exact value (
const):"dout_peric_rgmii_clk"
iommus — required here #
Maximum number of items (maxItems): 1
phy-mode — required here #
Allowed values (enum): "rgmii", "rgmii-id", "rgmii-rxid", "rgmii-txid"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "iommus", "phy-mode"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/fsd-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
ethernet1: ethernet@14300000 {
compatible = "tesla,fsd-ethqos";
reg = <0x0 0x14300000 0x0 0x10000>;
interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
clocks = <&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_PTP_REF_I>,
<&clock_peric PERIC_EQOS_TOP_IPCLKPORT_ACLK_I>,
<&clock_peric PERIC_EQOS_TOP_IPCLKPORT_HCLK_I>,
<&clock_peric PERIC_EQOS_TOP_IPCLKPORT_RGMII_CLK_I>,
<&clock_peric PERIC_EQOS_TOP_IPCLKPORT_CLK_RX_I>,
<&clock_peric PERIC_BUS_D_PERIC_IPCLKPORT_EQOSCLK>,
<&clock_peric PERIC_BUS_P_PERIC_IPCLKPORT_EQOSCLK>,
<&clock_peric PERIC_EQOS_PHYRXCLK_MUX>,
<&clock_peric PERIC_EQOS_PHYRXCLK>,
<&clock_peric PERIC_DOUT_RGMII_CLK>;
clock-names = "ptp_ref", "master_bus", "slave_bus","tx",
"rx", "master2_bus", "slave2_bus", "eqos_rxclk_mux",
"eqos_phyrxclk","dout_peric_rgmii_clk";
assigned-clocks = <&clock_peric PERIC_EQOS_PHYRXCLK_MUX>,
<&clock_peric PERIC_EQOS_PHYRXCLK>;
assigned-clock-parents = <&clock_peric PERIC_EQOS_PHYRXCLK>;
pinctrl-names = "default";
pinctrl-0 = <ð1_tx_clk>, <ð1_tx_data>, <ð1_tx_ctrl>,
<ð1_phy_intr>, <ð1_rx_clk>, <ð1_rx_data>,
<ð1_rx_ctrl>, <ð1_mdio>;
iommus = <&smmu_peric 0x0 0x1>;
phy-mode = "rgmii-id";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
T-HEAD TH1520 GMAC Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/thead,th1520-gmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Drew Fustini <dfustini@tenstorrent.com>"
The TH1520 GMAC is described in the TH1520 Peripheral Interface User Manual https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs
Features include
- Compliant with IEEE802.3 Specification
- IEEE 1588-2008 standard for precision networked clock synchronization
- Supports 10/100/1000Mbps data transfer rate
- Supports RGMII/MII interface
- Preamble and start of frame data (SFD) insertion in Transmit path
- Preamble and SFD deletion in the Receive path
- Automatic CRC and pad generation options for receive frames
- MDIO master interface for PHY device configuration and management
The GMAC Registers consists of two parts
- APB registers are used to configure clock frequency/clock enable/clock
direction/PHY interface type.
- AHB registers are use to configure GMAC core (DesignWare Core part).
GMAC core register consists of DMA registers and GMAC registers.
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Array item rules (items) #
Item 1
Item 2
Exact value (
const):"snps,dwmac-3.70a"
reg — not listed as required here #
Array item rules (items) #
Item 1
DesignWare GMAC IP core registers
Item 2
GMAC APB registers
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"dwmac"
Item 2
Exact value (
const):"apb"
clocks — required here #
Array item rules (items) #
Item 1
GMAC main clock
Item 2
Peripheral registers interface clock
Item 3
APB glue registers interface clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"pclk"
Item 3
Exact value (
const):"apb"
interrupts — not listed as required here #
Array item rules (items) #
Item 1
Combined signal for various interrupt events
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"macirq"
Required in this object (required): "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
gmac0: ethernet@e7070000 {
compatible = "thead,th1520-gmac", "snps,dwmac-3.70a";
reg = <0xe7070000 0x2000>, <0xec003000 0x1000>;
reg-names = "dwmac", "apb";
clocks = <&clk 1>, <&clk 2>, <&clk 3>;
clock-names = "stmmaceth", "pclk", "apb";
interrupts = <66>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
snps,fixed-burst;
snps,axi-config = <&stmmac_axi_setup>;
snps,pbl = <32>;
phy-handle = <&phy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@0 {
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments Simplelink CC1352P7 wireless MCU
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,cc1352p7.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The CC1352P7 MCU can be connected via SPI or UART.
Maintainers (maintainers): "Ayush Singh <ayushdevel1325@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,cc1352p7"
clocks — not listed as required here #
Array item rules (items) #
Item 1
high-frequency main system (MCU and peripherals) clock
Item 2
low-frequency system clock
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sclk_hf"
Item 2
Exact value (
const):"sclk_lf"
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
bootloader-backdoor-gpios — not listed as required here #
Maximum number of items (maxItems): 1
gpios to enable bootloader backdoor in cc1352p7 bootloader to allow flashing new firmware.
vdds-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
serial {
mcu {
compatible = "ti,cc1352p7";
clocks = <&sclk_hf 0>, <&sclk_lf 25>;
clock-names = "sclk_hf", "sclk_lf";
reset-gpios = <&pio 35 GPIO_ACTIVE_LOW>;
bootloader-backdoor-gpios = <&pio 36 GPIO_ACTIVE_LOW>;
vdds-supply = <&vdds>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
TI SoC Ethernet Switch Controller (CPSW)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,cpsw-switch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Siddharth Vadapalli <s-vadapalli@ti.com>", "Roger Quadros <rogerq@kernel.org>"
The 3-port switch gigabit ethernet subsystem provides ethernet packet communication and can be configured as an ethernet switch. It provides the gigabit media independent interface (GMII),reduced gigabit media independent interface (RGMII), reduced media independent interface (RMII), the management data input output (MDIO) for physical layer device (PHY) management.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"ti,cpsw-switch"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ti,am335x-cpsw-switch"Item 2
Exact value (
const):"ti,cpsw-switch"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"ti,am4372-cpsw-switch"Item 2
Exact value (
const):"ti,cpsw-switch"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"ti,dra7-cpsw-switch"Item 2
Exact value (
const):"ti,cpsw-switch"
reg — required here #
Maximum number of items (maxItems): 1
The physical base address and size of full the CPSW module IO range
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Maximum number of items (maxItems): 1
CPSW functional clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
interrupts — required here #
Array item rules (items) #
Item 1
RX_THRESH interrupt
Item 2
RX interrupt
Item 3
TX interrupt
Item 4
MISC interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx_thresh"
Item 2
Exact value (
const):"rx"
Item 3
Exact value (
const):"tx"
Item 4
Exact value (
const):"misc"
pinctrl-names — not listed as required here #
true — No constraints added by this property rule.
syscon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the system control device node which provides access to efuse IO range with MAC addresses
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[12]$ — name matches this regular expression
Value type (type): "object"
CPSW external ports
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
CPSW port number
phys — required here
Maximum number of items (maxItems): 1
phandle on phy-gmii-sel PHY
label — not listed as required here
label associated with this port
ti,dual-emac-pvid — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 1024
Specifies default PORT VID to be used to segregate ports. Default value - CPSW port number.
Required in this object (required): "reg", "phys"
cpts — not listed as required here #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
The Common Platform Time Sync (CPTS) module
Properties and child nodes (properties) #
clocks — required here
Maximum number of items (maxItems): 1
CPTS reference clock
clock-names — required here
Array item rules (items)
Item 1
Exact value (
const):"cpts"
cpts_clock_mult — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Numerator to convert input clock ticks into ns
cpts_clock_shift — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Denominator to convert input clock ticks into ns. Mult and shift will be calculated basing on CPTS rftclk frequency if both cpts_clock_shift and cpts_clock_mult properties are not provided.
Required in this object (required): "clocks", "clock-names"
Properties matching a name pattern (patternProperties) #
^mdio@ — name matches this regular expression #
Value type (type): "object"
CPSW MDIO bus.
Shared schema rule ($ref): ti,davinci-mdio.yaml#
Required in this object (required): "compatible", "reg", "ranges", "clocks", "clock-names", "interrupts", "interrupt-names", "#address-cells", "#size-cells"
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/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/dra7.h>
mac_sw: switch@0 {
compatible = "ti,dra7-cpsw-switch","ti,cpsw-switch";
reg = <0x0 0x4000>;
ranges = <0 0 0x4000>;
clocks = <&gmac_main_clk>;
clock-names = "fck";
#address-cells = <1>;
#size-cells = <1>;
syscon = <&scm_conf>;
interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "rx_thresh", "rx", "tx", "misc";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
cpsw_port1: port@1 {
reg = <1>;
label = "port1";
mac-address = [ 00 00 00 00 00 00 ];
phys = <&phy_gmii_sel 1>;
phy-handle = <ðphy0_sw>;
phy-mode = "rgmii";
ti,dual-emac-pvid = <1>;
};
cpsw_port2: port@2 {
reg = <2>;
label = "wan";
mac-address = [ 00 00 00 00 00 00 ];
phys = <&phy_gmii_sel 2>;
phy-handle = <ðphy1_sw>;
phy-mode = "rgmii";
ti,dual-emac-pvid = <2>;
};
};
davinci_mdio_sw: mdio@1000 {
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
reg = <0x1000 0x100>;
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 0>;
clock-names = "fck";
#address-cells = <1>;
#size-cells = <0>;
bus_freq = <1000000>;
ethphy0_sw: ethernet-phy@0 {
reg = <0>;
};
ethphy1_sw: ethernet-phy@1 {
reg = <1>;
};
};
cpts {
clocks = <&gmac_clkctrl DRA7_GMAC_GMAC_CLKCTRL 25>;
clock-names = "cpts";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI SoC Davinci/Keystone2 MDIO Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,davinci-mdio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Grygorii Strashko <grygorii.strashko@ti.com>"
TI SoC Davinci/Keystone2 MDIO Controller
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mdio.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"ti,davinci_mdio"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ti,keystone_mdio"Item 2
Exact value (
const):"ti,davinci_mdio"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"ti,cpsw-mdio"Item 2
Exact value (
const):"ti,davinci_mdio"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"ti,am4372-mdio"Item 2
Exact value (
const):"ti,cpsw-mdio"Item 3
Exact value (
const):"ti,davinci_mdio"
reg — required here #
Maximum number of items (maxItems): 1
bus_freq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 2500000
MDIO Bus frequency
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
ti,hwmods — not listed as required here #
TI hwmod name
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Array item rules (items) #
Exact value (
const):"davinci_mdio"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"ti,davinci_mdio"
When the condition matches (then) #
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
davinci_mdio: mdio@4a101000 {
compatible = "ti,davinci_mdio";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x4a101000 0x1000>;
bus_freq = <1000000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
TI DP83822 ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,dp83822.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
The DP83822 is a low-power, single-port, 10/100 Mbps Ethernet PHY. It provides all of the physical layer functions needed to transmit and receive data over standard, twisted-pair cables or to connect to an external, fiber-optic transceiver. Additionally, the DP83822 provides flexibility to connect to a MAC through a standard MII, RMII, or RGMII interface
Specifications about the Ethernet PHY can be found at:
http://www.ti.com/lit/ds/symlink/dp83822i.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-phy.yaml#
Properties and child nodes (properties) #
reg — required here #
Maximum number of items (maxItems): 1
ti,link-loss-low — not listed as required here #
Value type (type): "boolean"
DP83822 PHY in Fiber mode only. Sets the DP83822 to detect a link drop condition when the signal goes high. If not set then link drop will occur when the signal goes low. This property is only applicable if the fiber mode support is strapped to on.
ti,fiber-mode — not listed as required here #
Value type (type): "boolean"
DP83822 PHY only. If present the DP83822 PHY is configured to operate in fiber mode Fiber mode support can also be strapped. If the strap pin is not set correctly or not set at all then this boolean can be used to enable it. If the fiber mode is not strapped then signal detection for the PHY is disabled. In fiber mode, auto-negotiation is disabled and the PHY can only work in 100base-fx (full and half duplex) modes. This property is deprecated, for details please refer to Documentation/devicetree/bindings/net/ethernet-connector.yaml
Deprecated (deprecated): true
rx-internal-delay-ps — not listed as required here #
DP83822 PHY only. Setting this property to a non-zero number sets the RX internal delay for the PHY. The internal delay for the PHY is fixed to 3.5ns relative to receive data.
tx-internal-delay-ps — not listed as required here #
DP83822 PHY only. Setting this property to a non-zero number sets the TX internal delay for the PHY. The internal delay for the PHY is fixed to 3.5ns relative to transmit data.
ti,cfg-dac-minus-one-bp — not listed as required here #
DP83826 PHY only. Sets the voltage ratio (with respect to the nominal value) of the logical level -1 for the MLT-3 encoded TX data.
Allowed values (enum): 5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000
Default value (default): 10000
ti,cfg-dac-plus-one-bp — not listed as required here #
DP83826 PHY only. Sets the voltage ratio (with respect to the nominal value) of the logical level +1 for the MLT-3 encoded TX data.
Allowed values (enum): 5000, 5625, 6250, 6875, 7500, 8125, 8750, 9375, 10000, 10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000
Default value (default): 10000
ti,rmii-mode — not listed as required here #
If present, select the RMII operation mode. Two modes are
available:
- RMII master, where the PHY outputs a 50MHz reference clock which can
be connected to the MAC.
- RMII slave, where the PHY expects a 50MHz reference clock input
shared with the MAC.
The RMII operation mode can also be configured by its straps.
If the strap pin is not set correctly or not set at all, then this can be
used to configure it.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "master", "slave"
ti,gpio2-clk-out — not listed as required here #
DP83822 PHY only. The GPIO2 pin on the DP83822 can be configured as clock output. When omitted, the PHY's default will be left as is.
- 'mac-if': In MII mode the clock frequency is 25-MHz, in RMII Mode the
clock frequency is 50-MHz and in RGMII Mode the clock frequency is
25-MHz.
- 'xi': XI clock(pass-through clock from XI pin).
- 'int-ref': Internal reference clock 25-MHz.
- 'rmii-master-mode-ref': RMII master mode reference clock 50-MHz. RMII
master mode reference clock is identical to MAC IF clock in RMII master
mode.
- 'free-running': Free running clock 125-MHz.
- 'recovered': Recovered clock is a 125-MHz recovered clock from a
connected link partner.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "mac-if", "xi", "int-ref", "rmii-master-mode-ref", "free-running", "recovered"
mac-termination-ohms — not listed as required here #
Allowed values (enum): 43, 44, 46, 48, 50, 53, 55, 58, 61, 65, 69, 73, 78, 84, 91, 99
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
reg = <0>;
rx-internal-delay-ps = <1>;
tx-internal-delay-ps = <1>;
ti,gpio2-clk-out = "xi";
mac-termination-ohms = <43>;
mdi {
connector-0 {
media = "BaseF";
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
Line 2: Copyright (C) 2020 Texas Instruments Incorporated
TI DP83867 ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,dp83867.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): "Andrew Davis <afd@ti.com>"
The DP83867 device is a robust, low power, fully featured Physical Layer transceiver with integrated PMD sublayers to support 10BASE-Te, 100BASE-TX and 1000BASE-T Ethernet protocols.
The DP83867 is designed for easy implementation of 10/100/1000 Mbps Ethernet LANs. It interfaces directly to twisted pair media via an external transformer. This device interfaces directly to the MAC layer through the IEEE 802.3 Standard Media Independent Interface (MII), the IEEE 802.3 Gigabit Media Independent Interface (GMII) or Reduced GMII (RGMII).
Specifications about the Ethernet PHY can be found at:
https://www.ti.com/lit/gpn/dp83867ir
Properties and child nodes (properties) #
reg — required here #
Maximum number of items (maxItems): 1
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Nvmem data cell containing the value to write to the IO_IMPEDANCE_CTRL field of the IO_MUX_CFG register.
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"io_impedance_ctrl"
ti,min-output-impedance — not listed as required here #
Value type (type): "boolean"
MAC Interface Impedance control to set the programmable output impedance to a minimum value (35 ohms).
ti,max-output-impedance — not listed as required here #
Value type (type): "boolean"
MAC Interface Impedance control to set the programmable output impedance
to a maximum value (70 ohms).
Note: Specifying an io_impedance_ctrl nvmem cell or one of the
ti,min-output-impedance, ti,max-output-impedance properties
are mutually exclusive. If more than one is present, an nvmem
cell takes precedence over ti,max-output-impedance, which in
turn takes precedence over ti,min-output-impedance.
tx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Transmitt FIFO depth see dt-bindings/net/ti-dp83867.h for values
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Receive FIFO depth see dt-bindings/net/ti-dp83867.h for values
ti,clk-output-sel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Muxing option for CLK_OUT pin. See dt-bindings/net/ti-dp83867.h for applicable values. The CLK_OUT pin can also be disabled by this property. When omitted, the PHY's default will be left as is.
ti,rx-internal-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RGMII Receive Clock Delay - see dt-bindings/net/ti-dp83867.h for applicable values. Required only if interface type is PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_RXID.
ti,tx-internal-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RGMII Transmit Clock Delay - see dt-bindings/net/ti-dp83867.h for applicable values. Required only if interface type is PHY_INTERFACE_MODE_RGMII_ID or PHY_INTERFACE_MODE_RGMII_TXID.
Note: If the interface type is PHY_INTERFACE_MODE_RGMII the TX/RX clock
delays will be left at their default values, as set by the PHY's pin
strapping. The default strapping will use a delay of 2.00 ns. Thus
PHY_INTERFACE_MODE_RGMII, by default, does not behave as RGMII with no
internal delay, but as PHY_INTERFACE_MODE_RGMII_ID. The device tree
should use "rgmii-id" if internal delays are desired as this may be
changed in future to cause "rgmii" mode to disable delays.
ti,dp83867-rxctrl-strap-quirk — not listed as required here #
Value type (type): "boolean"
This denotes the fact that the board has RX_DV/RX_CTRL pin strapped in mode 1 or 2. To ensure PHY operation, there are specific actions that software needs to take when this pin is strapped in these modes. See data manual for details.
ti,sgmii-ref-clock-output-enable — not listed as required here #
Value type (type): "boolean"
This denotes which SGMII configuration is used (4 or 6-wire modes). Some MACs work with differential SGMII clock. See data manual for details.
ti,fifo-depth — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Transmitt FIFO depth- see dt-bindings/net/ti-dp83867.h for applicable values.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/net/ti-dp83867.h>
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
reg = <0>;
tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,max-output-impedance;
ti,clk-output-sel = <DP83867_CLK_O_SEL_CHN_A_RCLK>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
Line 2: Copyright (C) 2019 Texas Instruments Incorporated
TI DP83869 ethernet PHY
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,dp83869.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-phy.yaml#
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
The DP83869HM device is a robust, fully-featured Gigabit (PHY) transceiver with integrated PMD sublayers that supports 10BASE-Te, 100BASE-TX and 1000BASE-T Ethernet protocols. The DP83869 also supports 1000BASE-X and 100BASE-FX Fiber protocols. This device interfaces to the MAC layer through Reduced GMII (RGMII) and SGMII The DP83869HM supports Media Conversion in Managed mode. In this mode, the DP83869HM can run 1000BASE-X-to-1000BASE-T and 100BASE-FX-to-100BASE-TX conversions. The DP83869HM can also support Bridge Conversion from RGMII to SGMII and SGMII to RGMII.
Specifications about the Ethernet PHY can be found at:
http://www.ti.com/lit/ds/symlink/dp83869hm.pdf
Properties and child nodes (properties) #
reg — required here #
Maximum number of items (maxItems): 1
ti,min-output-impedance — not listed as required here #
Value type (type): "boolean"
MAC Interface Impedance control to set the programmable output impedance to a minimum value (35 ohms).
ti,max-output-impedance — not listed as required here #
Value type (type): "boolean"
MAC Interface Impedance control to set the programmable output impedance to a maximum value (70 ohms).
tx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Transmitt FIFO depth see dt-bindings/net/ti-dp83869.h for values
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Receive FIFO depth see dt-bindings/net/ti-dp83869.h for values
ti,clk-output-sel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Muxing option for CLK_OUT pin see dt-bindings/net/ti-dp83869.h for values.
ti,op-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Operational mode for the PHY. If this is not set then the operational mode is set by the straps. see dt-bindings/net/ti-dp83869.h for values
rx-internal-delay-ps — not listed as required here #
Delay is in pico seconds
Allowed values (enum): 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000, 3250, 3500, 3750, 4000
Default value (default): 2000
tx-internal-delay-ps — not listed as required here #
Delay is in pico seconds
Allowed values (enum): 250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000, 3250, 3500, 3750, 4000
Default value (default): 2000
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/net/ti-dp83869.h>
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
reg = <0>;
tx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
rx-fifo-depth = <DP83869_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,op-mode = <DP83869_RGMII_COPPER_ETHERNET>;
ti,max-output-impedance;
ti,clk-output-sel = <DP83869_CLK_O_SEL_CHN_A_RCLK>;
rx-internal-delay-ps = <2000>;
tx-internal-delay-ps = <2000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
Line 2: Copyright (C) 2019 Texas Instruments Incorporated
Texas Instruments ICSS Industrial Ethernet Peripheral (IEP) module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,icss-iep.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Md Danish Anwar <danishanwar@ti.com>", "Parvathi Pudi <parvathi@couthit.com>", "Basharath Hussain Khaja <basharath@couthit.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"ti,am642-icss-iep","ti,j721e-icss-iep"Item 2
Exact value (
const):"ti,am654-icss-iep"
Rule 2
Allowed values (
enum):"ti,am654-icss-iep","ti,am5728-icss-iep","ti,am4376-icss-iep","ti,am3356-icss-iep"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
phandle to the IEP source clock
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Interrupt specifier for capture/compare IRQ.
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"iep_cap_cmp"
Required in this object (required): "compatible", "reg", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* AM65x */
icssg0_iep0: iep@2e000 {
compatible = "ti,am654-icss-iep";
reg = <0x2e000 0x1000>;
clocks = <&icssg0_iepclk_mux>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments ICSSG PRUSS Ethernet
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,icssg-prueth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Md Danish Anwar <danishanwar@ti.com>"
Ethernet based on the Programmable Real-Time Unit and Industrial Communication Subsystem.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am642-icssg-prueth", "ti,am654-icssg-prueth", "ti,am654-sr1-icssg-prueth"
sram — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to MSMC SRAM node
dmas — required here #
Minimum number of items (minItems): 10
Maximum number of items (maxItems): 12
dma-names — required here #
Minimum number of items (minItems): 10
Array item rules (items) #
Item 1
Exact value (
const):"tx0-0"
Item 2
Exact value (
const):"tx0-1"
Item 3
Exact value (
const):"tx0-2"
Item 4
Exact value (
const):"tx0-3"
Item 5
Exact value (
const):"tx1-0"
Item 6
Exact value (
const):"tx1-1"
Item 7
Exact value (
const):"tx1-2"
Item 8
Exact value (
const):"tx1-3"
Item 9
Exact value (
const):"rx0"
Item 10
Exact value (
const):"rx1"
Item 11
Exact value (
const):"rxmgm0"
Item 12
Exact value (
const):"rxmgm1"
ti,mii-g-rt — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to MII_G_RT module's syscon regmap.
ti,mii-rt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to MII_RT module's syscon regmap
ti,pa-stats — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to PA_STATS module's syscon regmap. PA_STATS is a set of registers where different statistics related to ICSSG, are dumped by ICSSG firmware. PA_STATS module's syscon regmap will help the device to access/read/write those statistics.
ti,iep — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Maximum number of items (maxItems): 2
Array item rules (items) #
Maximum number of items (
maxItems):1
phandle to IEP (Industrial Ethernet Peripheral) for ICSSG
interrupts — required here #
Maximum number of items (maxItems): 2
Interrupt specifiers to TX timestamp IRQ.
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx_ts0"
Item 2
Exact value (
const):"tx_ts1"
ethernet-ports — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[0-1]$ — name matches this regular expression
Value type (type): "object"
ICSSG PRUETH external ports
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
ICSSG PRUETH port number
interrupts — not listed as required here
Maximum number of items (maxItems): 1
ti,syscon-rgmii-delay — not listed as required here
Array item rules (items)
Item 1
Array item rules (
items)Item 1
phandle to system controller node
Item 2
The offset to ICSSG control register
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
phandle to system controller node and register offset to ICSSG control register for RGMII transmit delay
ti,half-duplex-capable — not listed as required here
Value type (type): "boolean"
Indicates that the PHY output pin COL is routed to ICSSG GPIO pin (PRGx_PRU0/1_GPIO10) as input so that the ICSSG MII port is capable of half duplex operations.
Required in this object (required): "reg"
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Required in this object (required): "compatible", "sram", "dmas", "dma-names", "ethernet-ports", "ti,mii-g-rt", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/remoteproc/ti,pru-consumer.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,am654-sr1-icssg-prueth"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required hereMinimum number of items (
minItems):12
dma-names— not listed as required hereMinimum number of items (
minItems):12When the condition does not match (
else) #Properties and child nodes (
properties)
dmas— not listed as required hereMaximum number of items (
maxItems):10
dma-names— not listed as required hereMaximum number of items (
maxItems):10
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* Example k3-am654 base board SR2.0, dual-emac */
pruss2_eth: ethernet {
compatible = "ti,am654-icssg-prueth";
pinctrl-names = "default";
pinctrl-0 = <&icssg2_rgmii_pins_default>;
sram = <&msmc_ram>;
ti,prus = <&pru2_0>, <&rtu2_0>, <&tx_pru2_0>,
<&pru2_1>, <&rtu2_1>, <&tx_pru2_1>;
firmware-name = "ti-pruss/am65x-pru0-prueth-fw.elf",
"ti-pruss/am65x-rtu0-prueth-fw.elf",
"ti-pruss/am65x-txpru0-prueth-fw.elf",
"ti-pruss/am65x-pru1-prueth-fw.elf",
"ti-pruss/am65x-rtu1-prueth-fw.elf",
"ti-pruss/am65x-txpru1-prueth-fw.elf";
ti,pruss-gp-mux-sel = <2>, /* MII mode */
<2>,
<2>,
<2>, /* MII mode */
<2>,
<2>;
dmas = <&main_udmap 0xc300>, /* egress slice 0 */
<&main_udmap 0xc301>, /* egress slice 0 */
<&main_udmap 0xc302>, /* egress slice 0 */
<&main_udmap 0xc303>, /* egress slice 0 */
<&main_udmap 0xc304>, /* egress slice 1 */
<&main_udmap 0xc305>, /* egress slice 1 */
<&main_udmap 0xc306>, /* egress slice 1 */
<&main_udmap 0xc307>, /* egress slice 1 */
<&main_udmap 0x4300>, /* ingress slice 0 */
<&main_udmap 0x4301>; /* ingress slice 1 */
dma-names = "tx0-0", "tx0-1", "tx0-2", "tx0-3",
"tx1-0", "tx1-1", "tx1-2", "tx1-3",
"rx0", "rx1";
ti,mii-g-rt = <&icssg2_mii_g_rt>;
ti,pa-stats = <&icssg2_pa_stats>;
ti,iep = <&icssg2_iep0>, <&icssg2_iep1>;
interrupt-parent = <&icssg2_intc>;
interrupts = <24 0 2>, <25 1 3>;
interrupt-names = "tx_ts0", "tx_ts1";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
pruss2_emac0: port@0 {
reg = <0>;
phy-handle = <&pruss2_eth0_phy>;
phy-mode = "rgmii-id";
interrupts-extended = <&icssg2_intc 24>;
ti,syscon-rgmii-delay = <&scm_conf 0x4120>;
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
pruss2_emac1: port@1 {
reg = <1>;
phy-handle = <&pruss2_eth1_phy>;
phy-mode = "rgmii-id";
interrupts-extended = <&icssg2_intc 25>;
ti,syscon-rgmii-delay = <&scm_conf 0x4124>;
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: for AM64x SoC family
Line 20: for AM65x SoC family
Line 21: for AM65x SoC family, SR1.0
Texas Instruments ICSSM PRUSS Ethernet
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,icssm-prueth.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roger Quadros <rogerq@ti.com>", "Andrew F. Davis <afd@ti.com>", "Parvathi Pudi <parvathi@couthit.com>", "Basharath Hussain Khaja <basharath@couthit.com>"
Ethernet based on the Programmable Real-Time Unit and Industrial Communication Subsystem.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,am57-prueth", "ti,am4376-prueth", "ti,am3359-prueth"
sram — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to OCMC SRAM node
ti,mii-rt — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to the MII_RT peripheral for ICSS
ti,iep — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to IEP (Industrial Ethernet Peripheral) for ICSS
ti,ecap — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
phandle to Enhanced Capture (eCAP) event for ICSS
interrupts — required here #
Array item rules (items) #
Item 1
High priority Rx Interrupt specifier.
Item 2
Low priority Rx Interrupt specifier.
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx_hp"
Item 2
Exact value (
const):"rx_lp"
ethernet-ports — required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^ethernet-port@[0-1]$ — name matches this regular expression
Value type (type): "object"
ICSSM PRUETH external ports
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
ICSSM PRUETH port number
interrupts — not listed as required here
Maximum number of items (maxItems): 3
interrupt-names — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"emac_ptp_tx"
Item 3
Exact value (
const):"hsr_ptp_tx"
Required in this object (required): "reg"
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Required in this object (required): "compatible", "sram", "ti,mii-rt", "ti,iep", "ti,ecap", "ethernet-ports", "interrupts", "interrupt-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/remoteproc/ti,pru-consumer.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* Dual-MAC Ethernet application node on PRU-ICSS2 */
pruss2_eth: pruss2-eth {
compatible = "ti,am57-prueth";
ti,prus = <&pru2_0>, <&pru2_1>;
sram = <&ocmcram1>;
ti,mii-rt = <&pruss2_mii_rt>;
ti,iep = <&pruss2_iep>;
ti,ecap = <&pruss2_ecap>;
interrupts = <20 2 2>, <21 3 3>;
interrupt-names = "rx_hp", "rx_lp";
interrupt-parent = <&pruss2_intc>;
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
pruss2_emac0: ethernet-port@0 {
reg = <0>;
phy-handle = <&pruss2_eth0_phy>;
phy-mode = "mii";
interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
interrupt-names = "rx", "emac_ptp_tx", "hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
pruss2_emac1: ethernet-port@1 {
reg = <1>;
phy-handle = <&pruss2_eth1_phy>;
phy-mode = "mii";
interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
interrupt-names = "rx", "emac_ptp_tx", "hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};
};
/* Dual-MAC Ethernet application node on PRU-ICSS1 */
pruss1_eth: pruss1-eth {
compatible = "ti,am4376-prueth";
ti,prus = <&pru1_0>, <&pru1_1>;
sram = <&ocmcram>;
ti,mii-rt = <&pruss1_mii_rt>;
ti,iep = <&pruss1_iep>;
ti,ecap = <&pruss1_ecap>;
interrupts = <20 2 2>, <21 3 3>;
interrupt-names = "rx_hp", "rx_lp";
interrupt-parent = <&pruss1_intc>;
pinctrl-0 = <&pruss1_eth_default>;
pinctrl-names = "default";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
pruss1_emac0: ethernet-port@0 {
reg = <0>;
phy-handle = <&pruss1_eth0_phy>;
phy-mode = "mii";
interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
interrupt-names = "rx", "emac_ptp_tx",
"hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
pruss1_emac1: ethernet-port@1 {
reg = <1>;
phy-handle = <&pruss1_eth1_phy>;
phy-mode = "mii";
interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
interrupt-names = "rx", "emac_ptp_tx",
"hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};
};
/* Dual-MAC Ethernet application node on PRU-ICSS */
pruss_eth: pruss-eth {
compatible = "ti,am3359-prueth";
ti,prus = <&pru0>, <&pru1>;
sram = <&ocmcram>;
ti,mii-rt = <&pruss_mii_rt>;
ti,iep = <&pruss_iep>;
ti,ecap = <&pruss_ecap>;
interrupts = <20 2 2>, <21 3 3>;
interrupt-names = "rx_hp", "rx_lp";
interrupt-parent = <&pruss_intc>;
pinctrl-0 = <&pruss_eth_default>;
pinctrl-names = "default";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
pruss_emac0: ethernet-port@0 {
reg = <0>;
phy-handle = <&pruss_eth0_phy>;
phy-mode = "mii";
interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
interrupt-names = "rx", "emac_ptp_tx",
"hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
pruss_emac1: ethernet-port@1 {
reg = <1>;
phy-handle = <&pruss_eth1_phy>;
phy-mode = "mii";
interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
interrupt-names = "rx", "emac_ptp_tx",
"hsr_ptp_tx";
/* Filled in by bootloader */
local-mac-address = [00 00 00 00 00 00];
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: for AM57x SoC family
Line 23: for AM43x SoC family
Line 24: for AM33x SoC family
The TI AM654x/J721E/AM642x SoC Gigabit Ethernet MAC (Media Access Controller)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,k3-am654-cpsw-nuss.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Siddharth Vadapalli <s-vadapalli@ti.com>", "Roger Quadros <rogerq@kernel.org>"
The TI AM654x/J721E SoC Gigabit Ethernet MAC (CPSW2G NUSS) has two ports (one external) and provides Ethernet packet communication for the device. The TI AM642x SoC Gigabit Ethernet MAC (CPSW3G NUSS) has three ports (two external) and provides Ethernet packet communication and switching. The internal Communications Port Programming Interface (CPPI5) (Host port 0). Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels and one RX channels and operating by NAVSS Unified DMA Peripheral Root Complex (UDMA-P) controller. CPSWxG features updated Address Lookup Engine (ALE). priority level Quality Of Service (QOS) support (802.1p) Support for Audio/Video Bridging (P802.1Qav/D6.0) Support for IEEE 1588 Clock Synchronization (2008 Annex D, Annex E and Annex F) Flow Control (802.3x) Support Time Sensitive Network Support IEEE P902.3br/D2.0 Interspersing Express Traffic IEEE 802.1Qbv/D2.2 Enhancements for Scheduled Traffic Configurable number of addresses plus VLANs Configurable number of classifier/policers VLAN support, 802.1Q compliant, Auto add port VLAN for untagged frames on ingress, Auto VLAN removal on egress and auto pad to minimum frame size. RX/TX csum offload Management Data Input/Output (MDIO) interface for PHYs management RMII/RGMII Interfaces support new version of Common Platform Time Sync (CPTS) The CPSWxG NUSS is integrated into device MCU domain named MCU_CPSW0 on AM654x/J721E SoC. device MAIN domain named CPSW0 on AM642x SoC. Specifications can be found at https://www.ti.com/lit/pdf/spruid7 https://www.ti.com/lit/zip/spruil1 https://www.ti.com/lit/pdf/spruim2
Properties and child nodes (properties) #
#address-cells — required here #
true — No constraints added by this property rule.
#size-cells — required here #
true — No constraints added by this property rule.
compatible — required here #
Allowed values (enum): "ti,am642-cpsw-nuss", "ti,am654-cpsw-nuss", "ti,j7200-cpswxg-nuss", "ti,j721e-cpsw-nuss", "ti,j721e-cpswxg-nuss", "ti,j784s4-cpswxg-nuss"
reg — required here #
Maximum number of items (maxItems): 1
The physical base address and size of full the CPSWxG NUSS IO range
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpsw_nuss"
ranges — required here #
true — No constraints added by this property rule.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
clocks — required here #
Maximum number of items (maxItems): 1
CPSWxG NUSS functional clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
assigned-clock-parents — not listed as required here #
true — No constraints added by this property rule.
assigned-clocks — not listed as required here #
true — No constraints added by this property rule.
power-domains — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 9
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx0"
Item 2
Exact value (
const):"tx1"
Item 3
Exact value (
const):"tx2"
Item 4
Exact value (
const):"tx3"
Item 5
Exact value (
const):"tx4"
Item 6
Exact value (
const):"tx5"
Item 7
Exact value (
const):"tx6"
Item 8
Exact value (
const):"tx7"
Item 9
Exact value (
const):"rx"
ethernet-ports — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^port@[1-8]$ — name matches this regular expression
Value type (type): "object"
CPSWxG NUSS external ports
Shared schema rule ($ref): ethernet-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 1
Maximum value (maximum): 8
CPSW port number
phys — required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
CPSW MAC's PHY.
Item 2
Serdes PHY. Serdes PHY is required only if the Serdes has to be configured in the Single-Link configuration.
phy-names — not listed as required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Exact value (
const):"mac"
Item 2
Exact value (
const):"serdes"
label — not listed as required here
label associated with this port
fixed-link — not listed as required here
true — No constraints added by this property rule.
ti,mac-only — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Specifies the port works in mac-only mode.
ti,syscon-efuse — not listed as 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 the system control device node which provides access to efuse
Item 2
offset to efuse registers???
Phandle to the system control device node which provides access to efuse IO range with MAC addresses
Required in this object (required): "reg", "phys"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^mdio@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): ti,davinci-mdio.yaml#
CPSW MDIO bus.
^cpts@[0-9a-f]+ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): ti,k3-am654-cpts.yaml#
CPSW Common Platform Time Sync (CPTS) module.
Required in this object (required): "compatible", "reg", "reg-names", "ranges", "clocks", "clock-names", "power-domains", "dmas", "dma-names", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,j721e-cpswxg-nuss","ti,j784s4-cpswxg-nuss"When the condition matches (
then) #Properties and child nodes (
properties)
ethernet-ports— not listed as required hereProperties matching a name pattern (
patternProperties)
^port@[5-8]$— name matches this regular expression
false— Not permitted by this property rule.
^port@[1-4]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):4
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ti,j7200-cpswxg-nuss","ti,j721e-cpswxg-nuss","ti,j784s4-cpswxg-nuss"When the condition matches (
then) #Properties and child nodes (
properties)
ethernet-ports— not listed as required hereProperties matching a name pattern (
patternProperties)
^port@[3-8]$— name matches this regular expression
false— Not permitted by this property rule.
^port@[1-2]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/soc/ti,sci_pm_domain.h>
#include <dt-bindings/net/ti-dp83867.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
mcu_cpsw: ethernet@46000000 {
compatible = "ti,am654-cpsw-nuss";
#address-cells = <2>;
#size-cells = <2>;
reg = <0x0 0x46000000 0x0 0x200000>;
reg-names = "cpsw_nuss";
ranges = <0x0 0x0 0x0 0x46000000 0x0 0x200000>;
dma-coherent;
clocks = <&k3_clks 5 10>;
clock-names = "fck";
power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
pinctrl-names = "default";
pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
dmas = <&mcu_udmap 0xf000>,
<&mcu_udmap 0xf001>,
<&mcu_udmap 0xf002>,
<&mcu_udmap 0xf003>,
<&mcu_udmap 0xf004>,
<&mcu_udmap 0xf005>,
<&mcu_udmap 0xf006>,
<&mcu_udmap 0xf007>,
<&mcu_udmap 0x7000>;
dma-names = "tx0", "tx1", "tx2", "tx3", "tx4", "tx5", "tx6", "tx7",
"rx";
ethernet-ports {
#address-cells = <1>;
#size-cells = <0>;
cpsw_port1: port@1 {
reg = <1>;
ti,mac-only;
label = "port1";
ti,syscon-efuse = <&mcu_conf 0x200>;
phys = <&phy_gmii_sel 1>;
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
};
};
davinci_mdio: mdio@f00 {
compatible = "ti,cpsw-mdio","ti,davinci_mdio";
reg = <0x0 0xf00 0x0 0x100>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&k3_clks 5 10>;
clock-names = "fck";
bus_freq = <1000000>;
phy0: ethernet-phy@0 {
reg = <0>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
};
};
cpts@3d000 {
compatible = "ti,am65-cpts";
reg = <0x0 0x3d000 0x0 0x400>;
clocks = <&k3_clks 18 2>;
clock-names = "cpts";
interrupts-extended = <&gic500 GIC_SPI 858 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "cpts";
ti,cpts-ext-ts-inputs = <4>;
ti,cpts-periodic-outputs = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
The TI AM654x/J721E Common Platform Time Sync (CPTS) module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Siddharth Vadapalli <s-vadapalli@ti.com>", "Roger Quadros <rogerq@kernel.org>"
The TI AM654x/J721E CPTS module is used to facilitate host control of time sync operations. Main features of CPTS module are - selection of multiple external clock sources - Software control of time sync events via interrupt or polling - 64-bit timestamp mode in ns with PPM and nudge adjustment. - hardware timestamp push inputs (HWx_TS_PUSH) - timestamp counter compare output (TS_COMP) - timestamp counter bit output (TS_SYNC) - periodic Generator function outputs (TS_GENFx) - Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn) (TSN) - external hardware timestamp push inputs (HWx_TS_PUSH) timestamping
Depending on integration it enables compliance with the IEEE 1588-2008 standard for a precision clock synchronization protocol, Ethernet Enhanced Scheduled Traffic Operations (CPTS_ESTFn) and PCIe Subsystem Precision Time Measurement (PTM).
TI AM654x/J721E SoCs has several similar CPTS modules integrated into the different parts of the system which could be synchronized with each other - Main CPTS - MCU CPSW CPTS with IEEE 1588-2008 support - PCIe subsystem CPTS for PTM support
Depending on CPTS module integration and when CPTS is integral part of another module (MCU CPSW for example) "compatible" and "reg" can be omitted - parent module is fully responsible for CPTS enabling and configuration.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^cpts@[0-9a-f]+$"
compatible — required here #
Allowed values (enum): "ti,am65-cpts", "ti,j721e-cpts"
reg — required here #
Maximum number of items (maxItems): 1
The physical base address and size of CPTS IO range
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpts"
clocks — required here #
Maximum number of items (maxItems): 1
CPTS reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpts"
interrupts — required here #
Array item rules (items) #
Item 1
CPTS events interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"cpts"
assigned-clock-parents — not listed as required here #
true — No constraints added by this property rule.
assigned-clocks — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
ti,cpts-ext-ts-inputs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 8
Number of hardware timestamp push inputs (HWx_TS_PUSH)
ti,cpts-periodic-outputs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 8
Number of timestamp Generator function outputs (TS_GENFx)
ti,pps — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
The pair of HWx_TS_PUSH input and TS_GENFy output indexes used for PPS events generation. Platform/board specific.
refclk-mux — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
CPTS reference clock multiplexer clock
Properties and child nodes (properties) #
#clock-cells — not listed as required here
Exact value (const): 0
clocks — required here
Maximum number of items (maxItems): 8
Required in this object (required): "clocks"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts", "interrupt-names"
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/interrupt-controller/arm-gic.h>
cpts@310d0000 {
compatible = "ti,am65-cpts";
reg = <0x310d0000 0x400>;
reg-names = "cpts";
clocks = <&main_cpts_mux>;
clock-names = "cpts";
interrupts-extended = <&k3_irq 163 0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "cpts";
ti,cpts-periodic-outputs = <6>;
ti,cpts-ext-ts-inputs = <8>;
main_cpts_mux: refclk-mux {
#clock-cells = <0>;
clocks = <&k3_clks 118 5>, <&k3_clks 118 11>,
<&k3_clks 157 91>, <&k3_clks 157 77>,
<&k3_clks 157 102>, <&k3_clks 157 80>,
<&k3_clks 120 3>, <&k3_clks 121 3>;
assigned-clocks = <&main_cpts_mux>;
assigned-clock-parents = <&k3_clks 118 11>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments PRU-ICSS Enhanced Capture (eCAP) event module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/ti,pruss-ecap.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Murali Karicheri <m-karicheri2@ti.com>", "Parvathi Pudi <parvathi@couthit.com>", "Basharath Hussain Khaja <basharath@couthit.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,pruss-ecap"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pruss2_ecap: ecap@30000 {
compatible = "ti,pruss-ecap";
reg = <0x30000 0x60>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Toshiba Visconti DWMAC Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/toshiba,visconti-dwmac.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):snps,dwmac.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"snps,dwmac-4.20a"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
main clock
Item 2
PHY reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"stmmaceth"
Item 2
Exact value (
const):"phy_ref_clk"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
interrupt-names — not listed as required here #
Exact value (const): "macirq"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/toshiba,tmpv770x.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
piether: ethernet@28000000 {
compatible = "toshiba,visconti-dwmac", "snps,dwmac-4.20a";
reg = <0 0x28000000 0 0x10000>;
interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "macirq";
clocks = <&pismu TMPV770X_CLK_PIETHER_BUS>, <&pismu TMPV770X_CLK_PIETHER_125M>;
clock-names = "stmmaceth", "phy_ref_clk";
snps,txpbl = <4>;
snps,rxpbl = <4>;
snps,tso;
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
mdio {
#address-cells = <0x1>;
#size-cells = <0x0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@1 {
device_type = "ethernet-phy";
reg = <0x1>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
The Vertexcom MSE102x (SPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/vertexcom-mse102x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Wahren <stefan.wahren@chargebyte.com>"
Vertexcom's MSE102x are a family of HomePlug GreenPHY chips. They can be connected either via RGMII, RMII or SPI to a host CPU. In order to use a MSE102x chip as SPI device, it must be defined as a child of an SPI master device in the device tree. More information can be found at http://www.vertexcom.com/doc/MSE1022%20Product%20Brief.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "vertexcom,mse1021", "vertexcom,mse1022"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
spi-max-frequency — required here #
Minimum value (minimum): 6000000
Maximum value (maximum): 7142857
Required in this object (required): "compatible", "reg", "interrupts", "spi-cpha", "spi-cpol", "spi-max-frequency"
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>
spi {
#address-cells = <1>;
#size-cells = <0>;
ethernet@0 {
compatible = "vertexcom,mse1021";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
spi-cpha;
spi-cpol;
spi-max-frequency = <7142857>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
VIA Rhine 10/100 Network Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/via,vt8500-rhine.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
VIA's Ethernet controller integrated into VIA VT8500, WonderMedia WM8950 and related SoCs
Maintainers (maintainers): "Alexey Charkov <alchark@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "via,vt8500-rhine"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ethernet@d8004000 {
compatible = "via,vt8500-rhine";
reg = <0xd8004000 0x100>;
interrupts = <10>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
AXI 1G/2.5G Ethernet Subsystem
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/xlnx,axi-ethernet.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Also called AXI 1G/2.5G Ethernet Subsystem, the xilinx axi ethernet IP core provides connectivity to an external ethernet PHY supporting different interfaces: MII, GMII, RGMII, SGMII, 1000BaseX. It also includes two segments of memory for buffering TX and RX, as well as the capability of offloading TX/RX checksum calculation off the processor.
Management configuration is done through the AXI interface, while payload is sent and received through means of an AXI DMA controller. This driver includes the DMA driver code, so this driver is incompatible with AXI DMA driver.
Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,axi-ethernet-1.00.a", "xlnx,axi-ethernet-1.01.a", "xlnx,axi-ethernet-2.01.a"
reg — required here #
Address and length of the IO space, as well as the address and length of the AXI DMA controller IO space, unless axistream-connected is specified, in which case the reg attribute of the node referenced by it is used.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Array item rules (items) #
Item 1
Ethernet core interrupt
Item 2
Tx DMA interrupt
Item 3
Rx DMA interrupt
Ethernet core interrupt is optional. If axistream-connected property is present DMA node should contains TX/RX DMA interrupts else DMA interrupt resources are mentioned on ethernet node.
Minimum number of items (minItems): 1
phy-handle — required here #
true — No constraints added by this property rule.
xlnx,rxmem — required here #
Set to allocated memory buffer for Rx/Tx in the hardware.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
phy-mode — not listed as required here #
Allowed values (enum): "mii", "gmii", "rgmii", "sgmii", "1000base-x"
xlnx,phy-type — not listed as required here #
Do not use, but still accepted in preference to phy-mode.
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
xlnx,txcsum — not listed as required here #
TX checksum offload. 0 or empty for disabling TX checksum offload, 1 to enable partial TX checksum offload and 2 to enable full TX checksum offload.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
xlnx,rxcsum — not listed as required here #
RX checksum offload. 0 or empty for disabling RX checksum offload, 1 to enable partial RX checksum offload and 2 to enable full RX checksum offload.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
xlnx,switch-x-sgmii — not listed as required here #
Value type (type): "boolean"
Indicate the Ethernet core is configured to support both 1000BaseX and SGMII modes. If set, the phy-mode should be set to match the mode selected on core reset (i.e. by the basex_or_sgmii core input line).
clocks — not listed as required here #
Array item rules (items) #
Item 1
Clock for AXI register slave interface.
Item 2
AXI4-Stream clock for TXD RXD TXC and RXS interfaces.
Item 3
Ethernet reference clock, used by signal delay primitives and transceivers.
Item 4
MGT reference clock (used by optional internal PCS/PMA PHY)
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"s_axi_lite_clk"
Item 2
Exact value (
const):"axis_clk"
Item 3
Exact value (
const):"ref_clk"
Item 4
Exact value (
const):"mgt_clk"
axistream-connected — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle of AXI DMA controller which contains the resources used by this device. If this is specified, the DMA-related resources from that device (DMA registers and DMA TX/RX interrupts) rather than this one will be used.
mdio — not listed as required here #
Value type (type): "object"
pcs-handle — not listed as required here #
Phandle to the internal PCS/PMA PHY in SGMII or 1000Base-X modes, where "pcs-handle" should be used to point to the PCS/PMA PHY, and "phy-handle" should point to an external PHY if exists.
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 32
TX and RX DMA channel phandle
dma-names — not listed as required here #
Array item rules (items) #
String pattern (
pattern):"^[tr]x_chan([0-9]|1[0-5])$"
Should be "tx_chan0", "tx_chan1" ... "tx_chan15" for DMA Tx channel Should be "rx_chan0", "rx_chan1" ... "rx_chan15" for DMA Rx channel
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 32
Required in this object (required): "compatible", "interrupts", "reg", "xlnx,rxmem", "phy-handle"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/net/ethernet-controller.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
axi_ethernet_eth: ethernet@40c00000 {
compatible = "xlnx,axi-ethernet-1.00.a";
interrupts = <2 0 1>;
clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
phy-mode = "mii";
reg = <0x40c00000 0x40000>,<0x50c00000 0x40000>;
dmas = <&xilinx_dma 0>, <&xilinx_dma 1>;
dma-names = "tx_chan0", "rx_chan0";
xlnx,rxcsum = <0x2>;
xlnx,rxmem = <0x800>;
xlnx,txcsum = <0x2>;
phy-handle = <&phy0>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: ethernet-phy@1 {
device_type = "ethernet-phy";
reg = <1>;
};
};
};
axi_ethernet_eth1: ethernet@40000000 {
compatible = "xlnx,axi-ethernet-1.00.a";
interrupts = <0>;
clock-names = "s_axi_lite_clk", "axis_clk", "ref_clk", "mgt_clk";
clocks = <&axi_clk>, <&axi_clk>, <&pl_enet_ref_clk>, <&mgt_clk>;
phy-mode = "mii";
reg = <0x40000000 0x40000>;
xlnx,rxcsum = <0x2>;
xlnx,rxmem = <0x800>;
xlnx,txcsum = <0x2>;
phy-handle = <&phy1>;
axistream-connected = <&dma>;
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy1: ethernet-phy@1 {
device_type = "ethernet-phy";
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx Emaclite Ethernet controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/xlnx,emaclite.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>", "Harini Katakam <harini.katakam@amd.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):ethernet-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,opb-ethernetlite-1.01.a", "xlnx,opb-ethernetlite-1.01.b", "xlnx,xps-ethernetlite-1.00.a", "xlnx,xps-ethernetlite-2.00.a", "xlnx,xps-ethernetlite-2.01.a", "xlnx,xps-ethernetlite-3.00.a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
phy-handle — 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.
xlnx,tx-ping-pong — not listed as required here #
Value type (type): "boolean"
hardware supports tx ping pong buffer.
xlnx,rx-ping-pong — not listed as required here #
Value type (type): "boolean"
hardware supports rx ping pong buffer.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "phy-handle"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
axi_ethernetlite_1: ethernet@40e00000 {
compatible = "xlnx,xps-ethernetlite-3.00.a";
reg = <0x40e00000 0x10000>;
interrupt-parent = <&axi_intc_1>;
interrupts = <1>;
clocks = <&dummy>;
local-mac-address = [00 00 00 00 00 00];
phy-handle = <&phy0>;
xlnx,rx-ping-pong;
xlnx,tx-ping-pong;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx GMII to RGMII Converter
Peios Kernel / Hardware and drivers / Device-tree binding reference / Network bindings
Schema identifier ($id): "http://devicetree.org/schemas/net/xlnx,gmii-to-rgmii.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Harini Katakam <harini.katakam@amd.com>"
The Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media Independent Interface (RGMII) core provides the RGMII between RGMII-compliant ethernet physical media devices (PHY) and the Gigabit Ethernet controller. This core can be used in all three modes of operation(10/100/1000 Mb/s). The Management Data Input/Output (MDIO) interface is used to configure the speed of operation. This core can switch dynamically between the three different speed modes by configuring the converter register through mdio write. The core cannot function without an external phy connected to it.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "xlnx,gmii-to-rgmii-1.0"
reg — required here #
Minimum value (minimum): 0
Maximum value (maximum): 31
The ID number for the phy.
phy-handle — required here #
Shared schema rule ($ref): ethernet-controller.yaml#/properties/phy-handle
clocks — not listed as required here #
Array item rules (items) #
Item 1
200/375 MHz free-running clock is used as input clock.
Required in this object (required): "compatible", "reg", "phy-handle"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy: ethernet-phy@0 {
reg = <0>;
};
gmiitorgmii@8 {
compatible = "xlnx,gmii-to-rgmii-1.0";
reg = <8>;
phy-handle = <&phy>;
clocks = <&dummy>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)