* [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
* [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller
2026-12-04 2:01 [PATCH 0/2] SDM630: Add the SLIMbus controller Fabricio Akio via B4 Relay
@ 2026-12-04 2:01 ` 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
1 sibling, 1 reply; 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
From: Fabricio Akio <fabricioakio@gmail.com>
The SLIMbus controller of the SDM630 reports version 2.0.0 in its
version register. Add a compatible for it, with v2.1.0, the nearest
version the binding has, as the fallback.
Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
index 27a92b79c724..4dd479bd762d 100644
--- a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
+++ b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
@@ -18,9 +18,13 @@ description:
properties:
compatible:
- enum:
- - qcom,slim-ngd-v1.5.0 # for MSM8996
- - qcom,slim-ngd-v2.1.0 # for SDM845
+ oneOf:
+ - enum:
+ - qcom,slim-ngd-v1.5.0 # for MSM8996
+ - qcom,slim-ngd-v2.1.0 # for SDM845
+ - items:
+ - const: qcom,slim-ngd-v2.0.0 # for SDM630
+ - const: qcom,slim-ngd-v2.1.0
reg:
maxItems: 1
--
2.56.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: sdm630: Add the SLIMbus controller
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:01 ` Fabricio Akio via B4 Relay
1 sibling, 0 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
From: Fabricio Akio <fabricioakio@gmail.com>
Describe the SLIMbus controller of the audio subsystem, managed by the
ADSP, and the BAM that carries its messages, both disabled.
Signed-off-by: Fabricio Akio <fabricioakio@gmail.com>
---
arch/arm64/boot/dts/qcom/sdm630.dtsi | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi
index 20225732e4a8..14b1e63ec667 100644
--- a/arch/arm64/boot/dts/qcom/sdm630.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi
@@ -2397,6 +2397,32 @@ dmic2-data-pins {
};
};
+ slimbam: dma-controller@15184000 {
+ compatible = "qcom,bam-v1.7.0";
+ reg = <0x15184000 0x2a000>;
+ interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
+ #dma-cells = <1>;
+ num-channels = <23>;
+ qcom,controlled-remotely;
+ qcom,ee = <1>;
+ qcom,num-ees = <4>;
+
+ status = "disabled";
+ };
+
+ slim_ngd: slim-ngd@151c0000 {
+ compatible = "qcom,slim-ngd-v2.0.0",
+ "qcom,slim-ngd-v2.1.0";
+ reg = <0x151c0000 0x2c000>;
+ interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
+ dmas = <&slimbam 3>, <&slimbam 4>;
+ dma-names = "rx", "tx";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
adsp_pil: remoteproc@15700000 {
compatible = "qcom,sdm660-adsp-pas";
reg = <0x15700000 0x4040>;
--
2.56.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller
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
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-12-04 2:11 UTC (permalink / raw)
To: Fabricio Akio; +Cc: linux-sound, devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: slimbus: qcom,slim-ngd: older v2.0.0 falls back
to newer v2.1.0
--
commit 54813d5a6ccad4714dd739dbf0575002f101e98e
Author: Fabricio Akio <fabricioakio@gmail.com>
dt-bindings: slimbus: qcom,slim-ngd: Add the SDM630's controller
This commit adds the qcom,slim-ngd-v2.0.0 compatible for the SDM630
SLIMbus controller to qcom,slim-ngd.yaml, with qcom,slim-ngd-v2.1.0 as
its fallback.
> diff --git a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> index 27a92b79c7241..4dd479bd762d6 100644
> --- a/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> +++ b/Documentation/devicetree/bindings/slimbus/qcom,slim-ngd.yaml
> @@ -18,9 +18,13 @@ description:
>
> properties:
> compatible:
> - enum:
> - - qcom,slim-ngd-v1.5.0 # for MSM8996
> - - qcom,slim-ngd-v2.1.0 # for SDM845
> + oneOf:
> + - enum:
> + - qcom,slim-ngd-v1.5.0 # for MSM8996
> + - qcom,slim-ngd-v2.1.0 # for SDM845
> + - items:
> + - const: qcom,slim-ngd-v2.0.0 # for SDM630
> + - const: qcom,slim-ngd-v2.1.0
[Severity: Medium]
Should the older qcom,slim-ngd-v2.0.0 revision declare the newer
qcom,slim-ngd-v2.1.0 revision as its fallback compatible?
Per Documentation/devicetree/bindings/writing-bindings.rst, fallback
compatibles represent backwards compatibility with a prior implementation,
so newer IP revisions fall back to older ones rather than the reverse (as
in Documentation/devicetree/bindings/soundwire/qcom,soundwire.yaml).
qcom_slim_ngd_dt_match[] in drivers/slimbus/qcom-ngd-ctrl.c currently maps
both v1.5.0 and v2.1.0 to ngd_v1_5_offset_info, but any future driver
change keying a v2.1.0-only register or quirk off qcom,slim-ngd-v2.1.0
would misprogram the v2.0.0 hardware on SDM630.
If v2.0.0 is backwards-compatible with v1.5.0, qcom,slim-ngd-v1.5.0 would
be the proper fallback; otherwise qcom,slim-ngd-v2.0.0 should be added as a
standalone entry in the enum with a driver match entry.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-sdm630-slimbus-v1-0-deea19192b3e@gmail.com?part=1
^ 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