Qualcomm Ethernet ETHQOS device
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