arm64: dts: qcom: sdm845-starqltechn: add support for slpi
cover arm64: dts: qcom: sdm845-starqltechn: add support for slpi
This series add support for Qualcomm sensor low power island for Galaxy S9 (starqltechn).
---
Dzmitry Sankouski (2):
arm64: dts: qcom: sdm845-starqltechn: fix slpi reserved mem
arm64: dts: qcom: sdm845-starqltechn: add slpi support
.../boot/dts/qcom/sdm845-samsung-starqltechn.dts | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-)
---
base-commit: be5d4872e528796df9d7425f2bd9b3893eb3a42c
change-id: 20250911-starqltechn_slpi-677008f4e06f
Best regards,
Signature · 1 line
Dzmitry Sankouski <[email protected]>
PATCH 1/2 arm64: dts: qcom: sdm845-starqltechn: fix slpi reserved mem
When adding adsp reserved mem, slpi reserved memory was shrunk according to vendor kernel log:
Removed memory: created DMA memory pool at 0x0000000096700000, size 15 M
However, kernel refuses to boot firmware with 15MiB reserved region. Increase slpi reserved region to 16MiB.
--- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +1 -1
@@ -118,7 +118,7 @@ removed_region: removed-region@88f00000 { }; slpi_mem: slpi@96700000 { - reg = <0 0x96700000 0 0xf00000>; + reg = <0 0x96700000 0 0x1000000>; no-map; };
Signature · 1 line
2.39.5
Re: [PATCH 1/2] arm64: dts: qcom: sdm845-starqltechn: fix slpi reserved mem
Quoted 6 lines · Dzmitry Sankouski
When adding adsp reserved mem, slpi reserved memory was shrunk according to vendor kernel log:
Removed memory: created DMA memory pool at 0x0000000096700000, size 15 MHowever, kernel refuses to boot firmware with 15MiB reserved region.
Why so?
Quoted 1 line
Increase slpi reserved region to 16MiB.
It would make sense, given the PIL reserved range is now almost contiguous (bar the hole between spss_mem and adsp_mem.. you might want to check that one out as well)
Konrad
Quoted 21 lines
Fixes 58782c229e3e ("arm64: dts: qcom: sdm845-starqltechn: add initial sound support")Signed-off-by Dzmitry Sankouski <[email protected]>--- arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +1
-1@@ -118,7 +118,7 @@ removed_region: removed-region@88f00000 { }; slpi_mem: slpi@96700000 { - reg = <0 0x96700000 0 0xf00000>; + reg = <0 0x96700000 0 0x1000000>; no-map; };
Re: [PATCH 1/2] arm64: dts: qcom: sdm845-starqltechn: fix slpi reserved mem
пт, 12 сент. 2025 г. в 1-3:58, Konrad Dybcio <[email protected]>:
Quoted 6 lines
Quoted 3 lines
However, kernel refuses to boot firmware with 15MiB reserved region.
Why so?
It fails with load firmware with:
``` [ 22.452709] qcom_q6v5_pas 5c00000.remoteproc: segment outside memory range [ 22.453163] remoteproc remoteproc1: can't start rproc slpi: -22 ```
I tried to debug print addresses, but those numbers didn't make sense for me. I updated the commit message to be more clear.
Quoted 6 lines
Quoted 1 line
Increase slpi reserved region to 16MiB.
It would make sense, given the PIL reserved range is now almost contiguous (bar the hole between
spss_memandadsp_mem.. you might want to check that one out as well)
Actually there's no gap between spss_mem and adsp_mem, adsp starts from 0x97800000, while spss starts from 0x97700000 and occupies 0x100000, so 0x97700000 + 0x100000 = 0x97800000.
Also, I noticed, spss_mem is not referenced anywhere.
Signature · 2 lines
Best regards and thanks for review, Dzmitry
PATCH 2/2 arm64: dts: qcom: sdm845-starqltechn: add slpi support
In reply to Dzmitry SankouskiAdd support for Qualcomm sensor low power island.
--- .../boot/dts/qcom/sdm845-samsung-starqltechn.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +24 -0
@@ -902,6 +902,14 @@ &ipa { status = "okay"; }; +&slpi_pas { + firmware-name = "qcom/sdm845/starqltechn/slpi.mbn"; + pinctrl-0 = <&slpi_ldo_active_state>; + pinctrl-1 = <&slpi_ldo_sleep_state>; + pinctrl-names = "default", "sleep"; + status = "okay"; +}; + &usb_1 { status = "okay"; };
@@ -1028,6 +1036,22 @@ sd_card_det_n_state: sd-card-det-n-state { bias-pull-up; }; + slpi_ldo_active_state: slpi-ldo-active-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high; + }; + + slpi_ldo_sleep_state: slpi-ldo-sleep-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + touch_irq_state: touch-irq-state { pins = "gpio120"; function = "gpio";
Signature · 1 line
2.39.5
Re: [PATCH 2/2] arm64: dts: qcom: sdm845-starqltechn: add slpi support
Quoted 12 lines · Dzmitry Sankouski
Add support for Qualcomm sensor low power island.
Signed-off-by Dzmitry Sankouski <[email protected]>--- .../boot/dts/qcom/sdm845-samsung-starqltechn.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +0
-0
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts &ipa { · line 908
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +4
-0@@ -902,6 +902,14 @@ &ipa { status = "okay"; }; +&slpi_pas { + firmware-name = "qcom/sdm845/starqltechn/slpi.mbn"; + pinctrl-0 = <&slpi_ldo_active_state>; + pinctrl-1 = <&slpi_ldo_sleep_state>;
It would perhaps make sense to model it as a GPIO regulator..
I found a downstream kernel for this device and it seems like this is indeed a Samsung addition
The vendor kernel gates the regulator when the SLPI is shut off, but I think it would be reasonable to keep it always-on given you don't really want that to happen, and if you need to restart the subsystem, not pulsing the regulator should also likely work
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts &ipa { · line 910
Quoted 2 lines
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +2
-0+ pinctrl-names = "default", "sleep"; + status = "okay";
a newline before status is customary
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +2
-0+}; + &usb_1 { status = "okay"; };
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts sd_card_det_n_state: sd-card-det-n-state { · line 1044
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +6
-0@@ -1028,6 +1036,22 @@ sd_card_det_n_state: sd-card-det-n-state { bias-pull-up; }; + slpi_ldo_active_state: slpi-ldo-active-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-high;
Modeling the gpio-regulator will let you get rid of output- properties here, which are discouraged in favor of gpiod_ APIs in drivers
Konrad
Quoted 14 lines
arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts +10
-0+ }; + + slpi_ldo_sleep_state: slpi-ldo-sleep-state { + pins = "gpio8"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; + touch_irq_state: touch-irq-state { pins = "gpio120"; function = "gpio";