public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] cpufreq: ti: Fix probe ordering and add device link support for K3 SoCs
@ 2026-04-01 10:53 Akashdeep Kaur
  2026-04-01 10:53 ` [PATCH v2 1/6] cpufreq: ti: Add EPROBE_DEFER " Akashdeep Kaur
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Akashdeep Kaur @ 2026-04-01 10:53 UTC (permalink / raw)
  To: krzk, praneeth, nm, vigneshr, kristo, robh, krzk+dt, conor+dt,
	rafael, viresh.kumar, linux-arm-kernel, devicetree, linux-kernel,
	linux-pm, d-gole
  Cc: vishalm, sebin.francis, k-willis, a-kaur

For K3 SoCs, ti-cpufreq depends on k3-socinfo to provide SoC revision
information via soc_device_match(). If ti-cpufreq probes before
k3-socinfo, soc_device_match() returns NULL, causing incorrect 
revision detection and OPP table initialization failures.

Add EPROBE_DEFER handling in ti-cpufreq when soc_device_match() fails
for K3 SoCs, ensuring k3-socinfo probes first.

Add device link support via a new DT property "ti,soc-info" in CPU
OPP tables. Device links prevent unbinding k3-socinfo while
ti-cpufreq is using it.

EPROBE_DEFER handles first-boot probe ordering, while device links
provide runtime dependency management.

For backward compatibility, the DT property is optional.

Changes in v2
- Added DT bindings documentation for ti,soc-info property
- Reordered patches: bindings first, then driver changes, then DTS
- Link to v1: https://lore.kernel.org/all/20260330120105.2985200-1-a-kaur@ti.com/

Testing
- Verified correct probe ordering on AM625, AM62A7, AM62P5 platforms

Signed-off-by: Akashdeep Kaur <a-kaur@ti.com>
---

Akashdeep Kaur (6):
  cpufreq: ti: Add EPROBE_DEFER for K3 SoCs
  dt-bindings: opp: ti-cpu: Add ti,soc-info property
  cpufreq: ti: Add device link to k3-socinfo
  arm64: dts: ti: k3-am625: Add ti,soc-info to OPP table
  arm64: dts: ti: k3-am62a7: Add ti,soc-info to OPP table
  arm64: dts: ti: k3-am62p5: Add ti,soc-info to OPP table

 .../opp/operating-points-v2-ti-cpu.yaml       | 11 ++++
 arch/arm64/boot/dts/ti/k3-am625.dtsi          |  1 +
 arch/arm64/boot/dts/ti/k3-am62a7.dtsi         |  1 +
 arch/arm64/boot/dts/ti/k3-am62p5.dtsi         |  1 +
 drivers/cpufreq/ti-cpufreq.c                  | 61 +++++++++++++++++++
 5 files changed, 75 insertions(+)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-04-02  7:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 10:53 [PATCH v2 0/6] cpufreq: ti: Fix probe ordering and add device link support for K3 SoCs Akashdeep Kaur
2026-04-01 10:53 ` [PATCH v2 1/6] cpufreq: ti: Add EPROBE_DEFER " Akashdeep Kaur
2026-04-01 10:54 ` [PATCH v2 2/6] dt-bindings: opp: ti-cpu: Add ti,soc-info property Akashdeep Kaur
2026-04-02  7:39   ` Krzysztof Kozlowski
2026-04-01 10:54 ` [PATCH v2 3/6] cpufreq: ti: Add device link to k3-socinfo Akashdeep Kaur
2026-04-01 10:54 ` [PATCH v2 4/6] arm64: dts: ti: k3-am625: Add ti,soc-info to OPP table Akashdeep Kaur
2026-04-01 10:54 ` [PATCH v2 5/6] arm64: dts: ti: k3-am62a7: " Akashdeep Kaur
2026-04-01 10:54 ` [PATCH v2 6/6] arm64: dts: ti: k3-am62p5: " Akashdeep Kaur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox