2020-03-24 00:52:48 +02:00
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id : http://devicetree.org/schemas/net/ti,k3-am654-cpsw-nuss.yaml#
$schema : http://devicetree.org/meta-schemas/core.yaml#
2021-01-15 21:28:49 +02:00
title : The TI AM654x/J721E/AM642x SoC Gigabit Ethernet MAC (Media Access Controller) Device Tree Bindings
2020-03-24 00:52:48 +02:00
maintainers :
- Grygorii Strashko <grygorii.strashko@ti.com>
- Sekhar Nori <nsekhar@ti.com>
description :
The TI AM654x/J721E SoC Gigabit Ethernet MAC (CPSW2G NUSS) has two ports
(one external) and provides Ethernet packet communication for the device.
2021-01-15 21:28:49 +02:00
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).
2020-03-24 00:52:48 +02:00
Host Port 0 CPPI Packet Streaming Interface interface supports 8 TX channels
2021-01-15 21:28:49 +02:00
and one RX channels and operating by NAVSS Unified DMA Peripheral Root
Complex (UDMA-P) controller.
2020-03-24 00:52:48 +02:00
2021-01-15 21:28:49 +02:00
CPSWxG features
updated Address Lookup Engine (ALE).
2020-03-24 00:52:48 +02:00
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
2021-01-15 21:28:49 +02:00
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.
2020-03-24 00:52:48 +02:00
Specifications can be found at
2021-01-15 21:28:49 +02:00
https://www.ti.com/lit/pdf/spruid7
https://www.ti.com/lit/zip/spruil1
https://www.ti.com/lit/pdf/spruim2
2020-03-24 00:52:48 +02:00
properties :
"#address-cells": true
"#size-cells": true
compatible :
2021-08-24 14:51:54 -05:00
enum :
- ti,am654-cpsw-nuss
2022-08-22 12:31:23 +05:30
- ti,j7200-cpswxg-nuss
2021-08-24 14:51:54 -05:00
- ti,j721e-cpsw-nuss
- ti,am642-cpsw-nuss
2020-03-24 00:52:48 +02:00
reg :
maxItems : 1
description :
2021-01-15 21:28:49 +02:00
The physical base address and size of full the CPSWxG NUSS IO range
2020-03-24 00:52:48 +02:00
reg-names :
items :
- const : cpsw_nuss
ranges : true
dma-coherent : true
clocks :
2021-01-04 16:02:53 -07:00
maxItems : 1
2021-01-15 21:28:49 +02:00
description : CPSWxG NUSS functional clock
2020-03-24 00:52:48 +02:00
clock-names :
items :
- const : fck
2021-01-15 21:28:49 +02:00
assigned-clock-parents : true
assigned-clocks : true
2020-03-24 00:52:48 +02:00
power-domains :
maxItems : 1
dmas :
maxItems : 9
dma-names :
items :
- const : tx0
- const : tx1
- const : tx2
- const : tx3
- const : tx4
- const : tx5
- const : tx6
- const : tx7
- const : rx
ethernet-ports :
type : object
properties :
'#address-cells' :
const : 1
'#size-cells' :
const : 0
patternProperties :
2022-08-22 12:31:23 +05:30
"^port@[1-4]$" :
2020-04-20 21:24:47 -05:00
type : object
2021-01-15 21:28:49 +02:00
description : CPSWxG NUSS external ports
2020-04-20 21:24:47 -05:00
$ref : ethernet-controller.yaml#
2022-08-25 14:26:07 -05:00
unevaluatedProperties : false
2020-04-20 21:24:47 -05:00
properties :
reg :
2021-01-15 21:28:49 +02:00
minimum : 1
2022-08-22 12:31:23 +05:30
maximum : 4
2020-04-20 21:24:47 -05:00
description : CPSW port number
phys :
maxItems : 1
description : phandle on phy-gmii-sel PHY
label :
description : label associated with this port
ti,mac-only :
2020-12-17 16:34:29 -06:00
$ref : /schemas/types.yaml#/definitions/flag
2020-04-20 21:24:47 -05:00
description :
Specifies the port works in mac-only mode.
ti,syscon-efuse :
2020-12-17 16:34:29 -06:00
$ref : /schemas/types.yaml#/definitions/phandle-array
2022-01-18 19:50:38 -06:00
items :
- items :
- description : Phandle to the system control device node which
provides access to efuse
- description : offset to efuse registers???
2020-04-20 21:24:47 -05:00
description :
Phandle to the system control device node which provides access
to efuse IO range with MAC addresses
required :
- reg
- phys
2020-03-24 00:52:48 +02:00
additionalProperties : false
patternProperties :
"^mdio@[0-9a-f]+$" :
type : object
2020-04-15 19:55:49 -05:00
$ref : "ti,davinci-mdio.yaml#"
2020-03-24 00:52:48 +02:00
description :
CPSW MDIO bus.
2020-05-06 21:14:00 +03:00
"^cpts@[0-9a-f]+" :
2020-05-01 23:50:05 +03:00
type : object
2020-06-10 15:49:12 -06:00
$ref : "ti,k3-am654-cpts.yaml#"
2020-05-01 23:50:05 +03:00
description :
CPSW Common Platform Time Sync (CPTS) module.
2020-03-24 00:52:48 +02:00
required :
- compatible
- reg
- reg-names
- ranges
- clocks
- clock-names
- power-domains
- dmas
- dma-names
- '#address-cells'
- '#size-cells'
2022-08-22 12:31:23 +05:30
allOf :
- if :
not :
properties :
compatible :
contains :
const : ti,j7200-cpswxg-nuss
then :
properties :
ethernet-ports :
patternProperties :
"^port@[3-4]$": false
2020-03-24 00:52:48 +02:00
additionalProperties : false
examples :
- |
#include <dt-bindings/pinctrl/k3.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>
#include <dt-bindings/net/ti-dp83867.h>
2020-05-06 21:14:00 +03:00
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
2020-03-24 00:52:48 +02:00
2020-05-12 15:45:43 -05:00
bus {
2020-03-24 00:52:48 +02:00
#address-cells = <2>;
#size-cells = <2>;
2020-05-12 15:45:43 -05:00
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 {
2020-03-24 00:52:48 +02:00
reg = <1>;
ti,mac-only;
label = "port1";
ti,syscon-efuse = <&mcu_conf 0x200>;
phys = <&phy_gmii_sel 1>;
phy-mode = "rgmii-rxid";
phy-handle = <&phy0>;
2020-05-12 15:45:43 -05:00
};
};
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 {
2020-03-24 00:52:48 +02:00
reg = <0>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
2020-05-12 15:45:43 -05:00
};
};
2020-03-24 00:52:48 +02:00
};
2020-05-06 21:14:00 +03:00
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>;
};
2020-03-24 00:52:48 +02:00
};