Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] SDM630: Add the SLIMbus controller
@ 2026-12-04  2:01 Fabricio Akio via B4 Relay
  2026-12-04  2:01 ` [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller Fabricio Akio via B4 Relay
  2026-12-04  2:01 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Add the SLIMbus controller Fabricio Akio via B4 Relay
  0 siblings, 2 replies; 4+ messages in thread
From: Fabricio Akio via B4 Relay @ 2026-12-04  2:01 UTC (permalink / raw)
  To: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Bjorn Andersson, Konrad Dybcio, Abel Vesa
  Cc: Dmitry Baryshkov, Martin Botka, Alexey Minnekhanov,
	Krzysztof Kozlowski, linux-arm-msm, linux-sound, devicetree,
	Fabricio Akio

The SDM630's SLIMbus NGD reports version 2.0.0. The driver handles it as
it does the versions it knows, so the binding gains the version as a
compatible with v2.1.0, the nearest of them, as its fallback, and
sdm630.dtsi gains the controller and its BAM, both disabled.

Tested on a Motorola Moto X4 (SDM630), whose board file is not in
mainline yet, on sdm660-mainline's kernel: the controller registers, the
board's codec gets its logical address and a stream plays. It needs
"slimbus: qcom-ngd-ctrl: Restore the interrupt and RX queue setup on
resume" to work past the controller's first runtime suspend:
https://lore.kernel.org/r/20261203-slim-ngd-resume-irq-v1-1-05a85b6da1fd@gmail.com

From the vendor's kernel, the addresses and interrupts, and the
execution environment:
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/arch/arm/boot/dts/qcom/sdm630.dtsi#L921-L932
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/drivers/slimbus/slim-msm-ngd.c#L1794
The two pipes are the ones its driver derives from the NGD's status
register, read on the phone:
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/drivers/slimbus/slim-msm.c#L886-L887
and
https://github.com/LineageOS/android_kernel_motorola_msm8998/blob/ce9ea8f125c7302ae9b2fec84f23a69271e957c3/drivers/slimbus/slim-msm.c#L946-L948
The BAM's channel and execution-environment counts were read on the
phone.

Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
Fabricio Akio (2):
      dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller
      arm64: dts: qcom: sdm630: Add the SLIMbus controller

 .../devicetree/bindings/slimbus/qcom,slim-ngd.yaml | 10 ++++++---
 arch/arm64/boot/dts/qcom/sdm630.dtsi               | 26 ++++++++++++++++++++++
 2 files changed, 33 insertions(+), 3 deletions(-)
---
base-commit: 799dd936553182df5770dde7f38d94c8337df75a
change-id: 20261203-sdm630-slimbus-b8c9680100eb

Best regards,
--  
Fabricio Akio <fabricioakio@gmail.com>



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

end of thread, other threads:[~2026-12-04  2:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  2:01 [PATCH 0/2] SDM630: Add the SLIMbus controller Fabricio Akio via B4 Relay
2026-12-04  2:01 ` [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller Fabricio Akio via B4 Relay
2026-12-04  2:11   ` sashiko-bot
2026-12-04  2:01 ` [PATCH 2/2] arm64: dts: qcom: sdm630: Add the SLIMbus controller Fabricio Akio via B4 Relay

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