Skip to contentSkip to conversation

Add pa-stats Support

PATCH Applied MD Danish Anwar 2 participants 6 messages Oct 14, 2024 – Oct 28, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Add pa-stats Support

This series adds ti,pa-stats node to AM64x and AM65x dts files. The driver and binding patches are already merged.

MD Danish Anwar (4):
arm64: dts: ti: k3-am65-main: Add ti,pruss-pa-st node
arm64: dts: ti: k3-am654-icssg2: Add ti,pa-stats property
arm64: dts: ti: k3-am64-main: Add ti,pruss-pa-st node
arm64: dts: ti: k3-am64: Add ti,pa-stats property

 arch/arm64/boot/dts/ti/k3-am64-main.dtsi    | 10 ++++++++++
 arch/arm64/boot/dts/ti/k3-am642-evm.dts     |  1 +
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi    | 15 +++++++++++++++
 arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso |  1 +
 arch/arm64/boot/dts/ti/k3-am654-idk.dtso    |  2 ++
 5 files changed, 29 insertions(+)

base-commit: d61a00525464bfc5fe92c6ad713350988e492b88

Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/4 arm64: dts: ti: k3-am65-main: Add ti,pruss-pa-st node

Add pa-stats nodes to k3-am65-main.dtsi for all ICSSG instances. This is needed to dump IET related statistics for ICSSG Driver.

---
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/ti/k3-am65-main.dtsi +15 -0
index 1f1af7ea2330..94a812a1355b 100644
@@ -1167,6 +1167,11 @@ icssg0_mii_g_rt: mii-g-rt@33000 {
 			reg = <0x33000 0x1000>;
 		};
 
+		icssg0_pa_stats: pa-stats@2c000 {
+			compatible = "ti,pruss-pa-st", "syscon";
+			reg = <0x2c000 0x1000>;
+		};
+
 		icssg0_intc: interrupt-controller@20000 {
 			compatible = "ti,icssg-intc";
 			reg = <0x20000 0x2000>;
@@ -1333,6 +1338,11 @@ icssg1_mii_g_rt: mii-g-rt@33000 {
 			reg = <0x33000 0x1000>;
 		};
 
+		icssg1_pa_stats: pa-stats@2c000 {
+			compatible = "ti,pruss-pa-st", "syscon";
+			reg = <0x2c000 0x1000>;
+		};
+
 		icssg1_intc: interrupt-controller@20000 {
 			compatible = "ti,icssg-intc";
 			reg = <0x20000 0x2000>;
@@ -1499,6 +1509,11 @@ icssg2_mii_g_rt: mii-g-rt@33000 {
 			reg = <0x33000 0x1000>;
 		};
 
+		icssg2_pa_stats: pa-stats@2c000 {
+			compatible = "ti,pruss-pa-st", "syscon";
+			reg = <0x2c000 0x1000>;
+		};
+
 		icssg2_intc: interrupt-controller@20000 {
 			compatible = "ti,icssg-intc";
 			reg = <0x20000 0x2000>;
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/4 arm64: dts: ti: k3-am654-icssg2: Add ti,pa-stats property

In reply to MD Danish Anwar

Add ti,pa-stats phandles to AM65x device trees. This is a phandle to PA_STATS syscon regmap and will be used to dump IET related statistics for ICSSG Driver

---
 arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso | 1 +
 arch/arm64/boot/dts/ti/k3-am654-idk.dtso    | 2 ++
 2 files changed, 3 insertions(+)
arch/arm64/boot/dts/ti/k3-am654-icssg2.dtso +1 -0
index 0a6e75265ba9..66bb0b913d49 100644
@@ -41,6 +41,7 @@ icssg2_eth: icssg2-eth {
 
 		ti,mii-g-rt = <&icssg2_mii_g_rt>;
 		ti,mii-rt = <&icssg2_mii_rt>;
+		ti,pa-stats = <&icssg2_pa_stats>;
 		ti,iep = <&icssg2_iep0>, <&icssg2_iep1>;
 
 		interrupt-parent = <&icssg2_intc>;
arch/arm64/boot/dts/ti/k3-am654-idk.dtso +2 -0
index b0ce2cb2fdc8..6cb44dae9f90 100644
@@ -43,6 +43,7 @@ icssg0_eth: icssg0-eth {
 
 		ti,mii-g-rt = <&icssg0_mii_g_rt>;
 		ti,mii-rt = <&icssg0_mii_rt>;
+		ti,pa-stats = <&icssg0_pa_stats>;
 		ti,iep = <&icssg0_iep0>,  <&icssg0_iep1>;
 
 		interrupt-parent = <&icssg0_intc>;
@@ -109,6 +110,7 @@ icssg1_eth: icssg1-eth {
 
 		ti,mii-g-rt = <&icssg1_mii_g_rt>;
 		ti,mii-rt = <&icssg1_mii_rt>;
+		ti,pa-stats = <&icssg1_pa_stats>;
 		ti,iep = <&icssg1_iep0>,  <&icssg1_iep1>;
 
 		interrupt-parent = <&icssg1_intc>;
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/4 arm64: dts: ti: k3-am64-main: Add ti,pruss-pa-st node

In reply to MD Danish Anwar

Add pa-stats nodes to k3-am64-main.dtsi for all ICSSG instances. This is needed to dump IET related statistics for ICSSG Driver.

---
 arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/ti/k3-am64-main.dtsi +10 -0
index 7eae18399caa..82cd910e06b8 100644
@@ -1261,6 +1261,11 @@ icssg0_mii_g_rt: mii-g-rt@33000 {
 			reg = <0x33000 0x1000>;
 		};
 
+		icssg0_pa_stats: pa-stats@2c000 {
+			compatible = "ti,pruss-pa-st", "syscon";
+			reg = <0x2c000 0x1000>;
+		};
+
 		icssg0_intc: interrupt-controller@20000 {
 			compatible = "ti,icssg-intc";
 			reg = <0x20000 0x2000>;
@@ -1426,6 +1431,11 @@ icssg1_mii_g_rt: mii-g-rt@33000 {
 			reg = <0x33000 0x1000>;
 		};
 
+		icssg1_pa_stats: pa-stats@2c000 {
+			compatible = "ti,pruss-pa-st", "syscon";
+			reg = <0x2c000 0x1000>;
+		};
+
 		icssg1_intc: interrupt-controller@20000 {
 			compatible = "ti,icssg-intc";
 			reg = <0x20000 0x2000>;
Signature · 1 line
2.34.1
#4 lore raw

PATCH 4/4 arm64: dts: ti: k3-am64: Add ti,pa-stats property

In reply to MD Danish Anwar

Add ti,pa-stats phandles to k3-am64x-evm.dts. This is a phandle to PA_STATS syscon regmap and will be used to dump IET related statistics for ICSSG Driver

---
 arch/arm64/boot/dts/ti/k3-am642-evm.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/ti/k3-am642-evm.dts +1 -0
index 97ca16f00cd2..3e9361ba2cb9 100644
@@ -253,6 +253,7 @@ icssg1_eth: icssg1-eth {
 		ti,mii-g-rt = <&icssg1_mii_g_rt>;
 		ti,mii-rt = <&icssg1_mii_rt>;
 		ti,iep = <&icssg1_iep0>,  <&icssg1_iep1>;
+		ti,pa-stats = <&icssg1_pa_stats>;
 		interrupt-parent = <&icssg1_intc>;
 		interrupts = <24 0 2>, <25 1 3>;
 		interrupt-names = "tx_ts0", "tx_ts1";
Signature · 1 line
2.34.1
maintainer Applied
#5 lore raw
In reply to MD Danish Anwar

Hi MD Danish Anwar,

Quoted 10 lines · MD Danish Anwar

This series adds ti,pa-stats node to AM64x and AM65x dts files. The driver and binding patches are already merged.

MD Danish Anwar (4):
arm64: dts: ti: k3-am65-main: Add ti,pruss-pa-st node
arm64: dts: ti: k3-am654-icssg2: Add ti,pa-stats property
arm64: dts: ti: k3-am64-main: Add ti,pruss-pa-st node
arm64: dts: ti: k3-am64: Add ti,pa-stats property

[...]

I have applied the following to branch ti-k3-dts-next on [1]. Thank you!

[1/4] arm64: dts: ti: k3-am65-main: Add ti,pruss-pa-st node

      commit: aef4959ee000069d13461166eefe0de86a0bda8c
[2/4] arm64: dts: ti: k3-am654-icssg2: Add ti,pa-stats property
      commit: 6fb909467d5ac9439eb67c3b33ed301f9ff83357
[3/4] arm64: dts: ti: k3-am64-main: Add ti,pruss-pa-st node
      commit: 007f3e72c9138d5951aac58b993db0114eddfca7
[4/4] arm64: dts: ti: k3-am64: Add ti,pa-stats property
      commit: 30a9a1a26b9568f49aee24a888767105cb0855b2

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh