The TI AM654x/J721E/AM642x SoC Gigabit Ethernet MAC (Media Access Controller)
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)