[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13fea5c0-5906-4075-b734-52649e35eb69@linaro.org>
Date: Tue, 18 Jun 2024 16:12:08 +0200
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: Dzmitry Sankouski <dsankouski@...il.com>,
Sebastian Reichel <sre@...nel.org>, Bjorn Andersson <andersson@...nel.org>,
Michael Turquette <mturquette@...libre.com>, Stephen Boyd
<sboyd@...nel.org>, Neil Armstrong <neil.armstrong@...aro.org>,
Jessica Zhang <quic_jesszhan@...cinc.com>, Sam Ravnborg <sam@...nborg.org>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Lee Jones <lee@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>, Pavel Machek <pavel@....cz>,
Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Uwe Kleine-König <ukleinek@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>, Chanwoo Choi <cw00.choi@...sung.com>,
phone-devel@...r.kernel.org
Cc: linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-clk@...r.kernel.org,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-input@...r.kernel.org, linux-leds@...r.kernel.org,
linux-pwm@...r.kernel.org, linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH v3 23/23] arm64: dts: qcom: starqltechn: add new features
On 6/18/24 15:59, Dzmitry Sankouski wrote:
> Add support for new features:
> - sound (headphones and mics only)
> - gpu
> - panel
> - buttons
> - MAX77705 MFD:
> - charger
> - fuelgauge
> - haptic
> - led
>
> Signed-off-by: Dzmitry Sankouski <dsankouski@...il.com>
> ---
Please split this up
> .../boot/dts/qcom/sdm845-samsung-starqltechn.dts | 593 ++++++++++++++++++++-
> 1 file changed, 592 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
> index bad154b1e894..28a5210e22fb 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-samsung-starqltechn.dts
> @@ -7,15 +7,40 @@
>
> /dts-v1/;
>
> +#include <dt-bindings/input/linux-event-codes.h>
> #include <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
> +#include <dt-bindings/sound/qcom,q6afe.h>
> +#include <dt-bindings/sound/qcom,q6asm.h>
> +
> #include "sdm845.dtsi"
> +#include "pm8998.dtsi"
> +#include "sdm845-wcd9340.dtsi"
> +
> +/delete-node/ &rmtfs_mem;
> +/delete-node/ &adsp_mem;
> +/delete-node/ &slpi_mem;
> +/delete-node/ &spss_mem;
>
> / {
> chassis-type = "handset";
> model = "Samsung Galaxy S9 SM-G9600";
> compatible = "samsung,starqltechn", "qcom,sdm845";
>
> + aliases {
> + serial0 = &uart9;
> + };
> +
> + battery: battery {
> + compatible = "simple-battery";
> + constant-charge-current-max-microamp = <2150000>;
> + charge-full-design-microamp-hours = <3000000>;
> +
> + over-voltage-threshold-microvolt = <4500000>;
> + voltage-min-design-microvolt = <3400000>;
> + voltage-max-design-microvolt = <4350000>;
> + };
> +
> chosen {
> #address-cells = <2>;
> #size-cells = <2>;
> @@ -59,9 +84,199 @@ memory@...00000 {
> ftrace-size = <0x40000>;
> pmsg-size = <0x40000>;
> };
> +
> + /* The rmtfs_mem needs to be guarded due to "XPU limitations"
> + * it is otherwise possible for an allocation adjacent to the
> + * rmtfs_mem region to trigger an XPU violation, causing a crash.
> + */
> + rmtfs_lower_guard: memory@...00000 {
> + no-map;
> + reg = <0 0xfde00000 0 0x1000>;
> + };
qcom,use-guard-pages instead
> +
> + rmtfs_mem: rmtfs-mem@...01000 {
> + compatible = "qcom,rmtfs-mem";
> + reg = <0 0xfde01000 0 0x200000>;
> + no-map;
> +
> + qcom,client-id = <1>;
> + qcom,vmid = <15>;
QCOM_SCM_VMID_MSS_MSA
[...]
> + /*
> + * It seems like reserving the old rmtfs_mem region is also needed to prevent
> + * random crashes which are most likely modem related, more testing needed.
> + */
> + removed_region: removed-region@...00000 {
> + no-map;
> + reg = <0 0x88f00000 0 0x1c00000>;
Please keep no-map below reg for consistency
[...]
> +
> +&gmu {
> + status = "okay";
> +};
Drop this and remove the disablement in 845.dtsi, gmu is only probed when
GPU is
[...]
> gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>;
Do you know what these are for?
Konrad
Powered by blists - more mailing lists