Devicetree
 help / color / mirror / Atom feed
From: Fabricio Akio via B4 Relay <devnull+fabricioakio.gmail.com@kernel.org>
To: Srinivas Kandagatla <srini@kernel.org>,
	Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>
Cc: Dmitry Baryshkov <lumag@kernel.org>,
	 Martin Botka <martin.botka@somainline.org>,
	 Alexey Minnekhanov <alexeymin@minlexx.ru>,
	 Krzysztof Kozlowski <krzk@kernel.org>,
	linux-arm-msm@vger.kernel.org,  linux-sound@vger.kernel.org,
	devicetree@vger.kernel.org,
	 Fabricio Akio <fabricioakio@gmail.com>
Subject: [PATCH 0/2] SDM630: Add the SLIMbus controller
Date: Thu, 03 Dec 2026 23:01:10 -0300	[thread overview]
Message-ID: <20261203-sdm630-slimbus-v1-0-deea19192b3e@gmail.com> (raw)

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>



             reply	other threads:[~2026-12-04  2:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  2:01 Fabricio Akio via B4 Relay [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203-sdm630-slimbus-v1-0-deea19192b3e@gmail.com \
    --to=devnull+fabricioakio.gmail.com@kernel.org \
    --cc=abelvesa@kernel.org \
    --cc=alexeymin@minlexx.ru \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=fabricioakio@gmail.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=martin.botka@somainline.org \
    --cc=robh@kernel.org \
    --cc=srini@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox