Texas Instruments ICSSG PRUSS Ethernet
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