we are trying to do this for the S32G3 based on the BSP-41.
I was able to extend the dtsi tree with the etms, funnels, etrs.
find . -name "*etm*
./usr/bin/setmetamode
./lib/modules/5.15.153-rt75+gadceb7e8fa72/kernel/drivers/hwtracing/coresight/coresight-etm4x.ko
./sys/class/devlink/platform:firmware:scmi--amba:51440000.etm
./sys/class/devlink/platform:firmware:scmi--amba:51540000.etm
./sys/class/devlink/platform:firmware:scmi--amba:51640000.etm
./sys/class/devlink/platform:firmware:scmi--amba:51740000.etm
./sys/devices/platform/51440000.etm
./sys/devices/platform/51540000.etm
./sys/devices/platform/51640000.etm
./sys/devices/platform/51740000.etm
./sys/devices/platform/firmware:scmi/consumer:amba:51740000.etm
./sys/devices/platform/firmware:scmi/consumer:amba:51440000.etm
./sys/devices/platform/firmware:scmi/consumer:amba:51540000.etm
./sys/devices/platform/firmware:scmi/consumer:amba:51640000.etm
./sys/devices/cs_etm
./sys/devices/virtual/devlink/platform:firmware:scmi--amba:51440000.etm
./sys/devices/virtual/devlink/platform:firmware:scmi--amba:51540000.etm
./sys/devices/virtual/devlink/platform:firmware:scmi--amba:51640000.etm
./sys/devices/virtual/devlink/platform:firmware:scmi--amba:51740000.etm
./sys/bus/amba/devices/51440000.etm
./sys/bus/amba/devices/51540000.etm
./sys/bus/amba/devices/51640000.etm
./sys/bus/amba/devices/51740000.etm
./sys/bus/amba/drivers/coresight-etm4x
./sys/bus/platform/drivers/coresight-etm4x
./sys/bus/event_source/devices/cs_etm
./sys/firmware/devicetree/base/etm@51740000
./sys/firmware/devicetree/base/etm@51640000
./sys/firmware/devicetree/base/etm@51540000
./sys/firmware/devicetree/base/etm@51440000
./sys/module/coresight/holders/coresight_etm4x
./sys/module/coresight_etm4x
./sys/module/coresight_etm4x/drivers/platform:coresight-etm4x
./sys/module/coresight_etm4x/drivers/amba:coresight-etm4x
but unfortunately I cannot see any device running on the coresight bus.
ls -la /sys/bus/coresight/devices/
total 0
drwxr-xr-x 2 root root 0 Apr 28 18:53 .
drwxr-xr-x 4 root root 0 Apr 28 17:42 ..
The etms, funnels, etrs are enabled in the device tree:
status = "okay";
What is unclear in the documentation (reference manual S32G3) is what clocks should be used for the CoreSight and each of the devices?
RM mentions in the chapter 77.6.1 that the clocks used are sys2_clk and core2_clk, but these are nowhere described that they are. Can you please provide information what clocks these are? and how the following should be configured
cpu = <&clks>;
clocks = <&clks S32G_SCMI_CLK_PFE_AXI>; //Find a correct clock - core2_clk
clock-names = "core2_clk"; //Find a correct clock - core2_clk
Thank you for the support.