* [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:38 ` Konrad Dybcio
2025-09-18 3:13 ` Dmitry Baryshkov
2025-09-17 1:09 ` [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth Paul Sajna
` (12 subsequent siblings)
13 siblings, 2 replies; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
in accordance with:
https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 124 ++++++++++++-------------
1 file changed, 62 insertions(+), 62 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 99dafc6716e76e25aad0755e6004dc952779689f..82d6543835324ed92300c4ed24c51f4b79321f99 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -38,11 +38,6 @@ reserved-memory {
#size-cells = <2>;
ranges;
- qseecom_mem: memory@b2000000 {
- reg = <0 0xb2000000 0 0x1800000>;
- no-map;
- };
-
gpu_mem: memory@8c415000 {
reg = <0 0x8c415000 0 0x2000>;
no-map;
@@ -99,6 +94,11 @@ memory@9d400000 {
no-map;
};
+ qseecom_mem: memory@b2000000 {
+ reg = <0 0xb2000000 0 0x1800000>;
+ no-map;
+ };
+
/* rmtfs lower guard */
memory@f0800000 {
reg = <0 0xf0800000 0 0x1000>;
@@ -482,14 +482,22 @@ &mss_pil {
status = "okay";
};
+&pm8998_gpios {
+ vol_up_pin_a: vol-up-active-state {
+ pins = "gpio6";
+ function = "normal";
+ input-enable;
+ bias-pull-up;
+ qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
+ };
+};
+
&pm8998_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
};
&sdhc_2 {
- status = "okay";
-
cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
@@ -497,55 +505,8 @@ &sdhc_2 {
vmmc-supply = <&vreg_l21a_2p95>;
vqmmc-supply = <&vddpx_2>;
-};
-
-/*
- * UFS works partially and only with clk_ignore_unused.
- * Sometimes it crashes with I/O errors.
- */
-&ufs_mem_hc {
- status = "okay";
-
- reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
-
- vcc-supply = <&vreg_l20a_2p95>;
- vcc-max-microamp = <600000>;
-};
-
-&ufs_mem_phy {
- status = "okay";
-
- vdda-phy-supply = <&vdda_ufs1_core>;
- vdda-pll-supply = <&vdda_ufs1_1p2>;
-};
-
-&usb_1 {
- status = "okay";
-};
-
-&usb_1_dwc3 {
- /* TODO: these devices have usb id pin */
- dr_mode = "peripheral";
-};
-
-&usb_1_hsphy {
- status = "okay";
-
- vdd-supply = <&vdda_usb1_ss_core>;
- vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
- vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
-
- qcom,imp-res-offset-value = <8>;
- qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
- qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
- qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
-};
-&usb_1_qmpphy {
status = "okay";
-
- vdda-phy-supply = <&vdda_usb1_ss_1p2>;
- vdda-pll-supply = <&vdda_usb1_ss_core>;
};
/* PINCTRL - additions to nodes defined in sdm845.dtsi */
@@ -586,12 +547,51 @@ sd_card_det_n: sd-card-det-n-state {
};
};
-&pm8998_gpios {
- vol_up_pin_a: vol-up-active-state {
- pins = "gpio6";
- function = "normal";
- input-enable;
- bias-pull-up;
- qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
- };
+/*
+ * UFS works partially and only with clk_ignore_unused.
+ * Sometimes it crashes with I/O errors.
+ */
+&ufs_mem_hc {
+ reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
+
+ vcc-supply = <&vreg_l20a_2p95>;
+ vcc-max-microamp = <600000>;
+
+ status = "okay";
+};
+
+&ufs_mem_phy {
+ vdda-phy-supply = <&vdda_ufs1_core>;
+ vdda-pll-supply = <&vdda_ufs1_1p2>;
+
+ status = "okay";
+};
+
+&usb_1 {
+ status = "okay";
+};
+
+&usb_1_dwc3 {
+ /* TODO: these devices have usb id pin */
+ dr_mode = "peripheral";
+};
+
+&usb_1_hsphy {
+ vdd-supply = <&vdda_usb1_ss_core>;
+ vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
+ vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
+
+ qcom,imp-res-offset-value = <8>;
+ qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
+ qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
+ qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
+
+ status = "okay";
+};
+
+&usb_1_qmpphy {
+ vdda-phy-supply = <&vdda_usb1_ss_1p2>;
+ vdda-pll-supply = <&vdda_usb1_ss_core>;
+
+ status = "okay";
};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties
2025-09-17 1:09 ` [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties Paul Sajna
@ 2025-09-17 13:38 ` Konrad Dybcio
2025-09-18 3:13 ` Dmitry Baryshkov
1 sibling, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:38 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> in accordance with:
> https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties
2025-09-17 1:09 ` [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties Paul Sajna
2025-09-17 13:38 ` Konrad Dybcio
@ 2025-09-18 3:13 ` Dmitry Baryshkov
1 sibling, 0 replies; 41+ messages in thread
From: Dmitry Baryshkov @ 2025-09-18 3:13 UTC (permalink / raw)
To: Paul Sajna
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg, linux-arm-msm, devicetree,
linux-kernel, phone-devel, Amir Dahan, Christopher Brown
On Tue, Sep 16, 2025 at 06:09:47PM -0700, Paul Sajna wrote:
> in accordance with:
> https://docs.kernel.org/devicetree/bindings/dts-coding-style.html
Please don't continue commit subject into commit message. It should be a
separate complete text.
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
> arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 124 ++++++++++++-------------
> 1 file changed, 62 insertions(+), 62 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> index 99dafc6716e76e25aad0755e6004dc952779689f..82d6543835324ed92300c4ed24c51f4b79321f99 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> @@ -38,11 +38,6 @@ reserved-memory {
> #size-cells = <2>;
> ranges;
>
> - qseecom_mem: memory@b2000000 {
> - reg = <0 0xb2000000 0 0x1800000>;
> - no-map;
> - };
> -
> gpu_mem: memory@8c415000 {
> reg = <0 0x8c415000 0 0x2000>;
> no-map;
> @@ -99,6 +94,11 @@ memory@9d400000 {
> no-map;
> };
>
> + qseecom_mem: memory@b2000000 {
> + reg = <0 0xb2000000 0 0x1800000>;
> + no-map;
> + };
> +
> /* rmtfs lower guard */
> memory@f0800000 {
> reg = <0 0xf0800000 0 0x1000>;
> @@ -482,14 +482,22 @@ &mss_pil {
> status = "okay";
> };
>
> +&pm8998_gpios {
> + vol_up_pin_a: vol-up-active-state {
> + pins = "gpio6";
> + function = "normal";
> + input-enable;
> + bias-pull-up;
> + qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
> + };
> +};
> +
> &pm8998_resin {
> linux,code = <KEY_VOLUMEDOWN>;
> status = "okay";
> };
>
> &sdhc_2 {
> - status = "okay";
> -
> cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
>
> pinctrl-names = "default";
> @@ -497,55 +505,8 @@ &sdhc_2 {
>
> vmmc-supply = <&vreg_l21a_2p95>;
> vqmmc-supply = <&vddpx_2>;
> -};
> -
> -/*
> - * UFS works partially and only with clk_ignore_unused.
> - * Sometimes it crashes with I/O errors.
> - */
> -&ufs_mem_hc {
> - status = "okay";
> -
> - reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
> -
> - vcc-supply = <&vreg_l20a_2p95>;
> - vcc-max-microamp = <600000>;
> -};
> -
> -&ufs_mem_phy {
> - status = "okay";
> -
> - vdda-phy-supply = <&vdda_ufs1_core>;
> - vdda-pll-supply = <&vdda_ufs1_1p2>;
> -};
> -
> -&usb_1 {
> - status = "okay";
> -};
> -
> -&usb_1_dwc3 {
> - /* TODO: these devices have usb id pin */
> - dr_mode = "peripheral";
> -};
> -
> -&usb_1_hsphy {
> - status = "okay";
> -
> - vdd-supply = <&vdda_usb1_ss_core>;
> - vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
> - vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
> -
> - qcom,imp-res-offset-value = <8>;
> - qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
> - qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
> - qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
> -};
>
> -&usb_1_qmpphy {
> status = "okay";
> -
> - vdda-phy-supply = <&vdda_usb1_ss_1p2>;
> - vdda-pll-supply = <&vdda_usb1_ss_core>;
> };
>
> /* PINCTRL - additions to nodes defined in sdm845.dtsi */
> @@ -586,12 +547,51 @@ sd_card_det_n: sd-card-det-n-state {
> };
> };
>
> -&pm8998_gpios {
> - vol_up_pin_a: vol-up-active-state {
> - pins = "gpio6";
> - function = "normal";
> - input-enable;
> - bias-pull-up;
> - qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
> - };
> +/*
> + * UFS works partially and only with clk_ignore_unused.
> + * Sometimes it crashes with I/O errors.
> + */
> +&ufs_mem_hc {
> + reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
> +
> + vcc-supply = <&vreg_l20a_2p95>;
> + vcc-max-microamp = <600000>;
> +
> + status = "okay";
> +};
> +
> +&ufs_mem_phy {
> + vdda-phy-supply = <&vdda_ufs1_core>;
> + vdda-pll-supply = <&vdda_ufs1_1p2>;
> +
> + status = "okay";
> +};
> +
> +&usb_1 {
> + status = "okay";
> +};
> +
> +&usb_1_dwc3 {
> + /* TODO: these devices have usb id pin */
> + dr_mode = "peripheral";
> +};
> +
> +&usb_1_hsphy {
> + vdd-supply = <&vdda_usb1_ss_core>;
> + vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
> + vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
> +
> + qcom,imp-res-offset-value = <8>;
> + qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
> + qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
> + qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
> +
> + status = "okay";
> +};
> +
> +&usb_1_qmpphy {
> + vdda-phy-supply = <&vdda_usb1_ss_1p2>;
> + vdda-pll-supply = <&vdda_usb1_ss_core>;
> +
> + status = "okay";
> };
>
> --
> 2.51.0
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
2025-09-17 1:09 ` [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:40 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger Paul Sajna
` (11 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
uart9 is debug serial on USB SBU1/2
uart6 is bluetooth
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 45 ++++++++++++++++++++++++++
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 10 ++++++
2 files changed, 55 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 82d6543835324ed92300c4ed24c51f4b79321f99..911f5e614d0a4a85da61570ce400a85efa08623b 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -27,10 +27,17 @@
/delete-node/ &wlan_msa_mem;
/ {
+ aliases {
+ serial0 = &uart9;
+ serial1 = &uart6;
+ };
+
chosen {
#address-cells = <2>;
#size-cells = <2>;
ranges;
+
+ stdout-path = "serial0:115200n8";
};
reserved-memory {
@@ -595,3 +602,41 @@ &usb_1_qmpphy {
status = "okay";
};
+
+&qupv3_id_0 {
+ status = "okay";
+};
+
+&qupv3_id_1 {
+ status = "okay";
+};
+
+&qup_uart9_rx {
+ drive-strength = <2>;
+ bias-pull-up;
+};
+
+&qup_uart9_tx {
+ drive-strength = <2>;
+ bias-disable;
+};
+
+&uart6 {
+ pinctrl-0 = <&qup_uart6_4pin>;
+
+ status = "okay";
+
+ bluetooth {
+ compatible = "qcom,wcn3990-bt";
+
+ vddio-supply = <&vreg_s4a_1p8>;
+ vddxo-supply = <&vreg_l7a_1p8>;
+ vddrf-supply = <&vreg_l17a_1p3>;
+ vddch0-supply = <&vreg_l25a_3p3>;
+ max-speed = <3200000>;
+ };
+};
+
+&uart9 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index a12723310c8b630a4961de671ea8b60f1f8b512b..49225e4fa80e5f45a36964d5d733dc238e4413f8 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -66,3 +66,13 @@ thinq_key_default: thinq-key-default-state {
bias-pull-up;
};
};
+
+&uart6 {
+ bluetooth {
+ /*
+ * This path is relative to the qca/
+ * subdir under lib/firmware.
+ */
+ firmware-name = "judyln/crnv21.bin";
+ };
+};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth
2025-09-17 1:09 ` [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth Paul Sajna
@ 2025-09-17 13:40 ` Konrad Dybcio
2025-09-18 2:17 ` Paul Sajna
0 siblings, 1 reply; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:40 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> uart9 is debug serial on USB SBU1/2
> uart6 is bluetooth
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
I would imagine the SBU uart requires a jig or some other config..
Could you put that information in the commit message?
[...]
> +&uart6 {
> + bluetooth {
It'd be better if you introduced a new label for the bt node and
referred to it by that label here
> + /*
> + * This path is relative to the qca/
> + * subdir under lib/firmware.
> + */
This comment is a little redundant
> + firmware-name = "judyln/crnv21.bin";
Is that fw different to other SDM845 LG firmwares?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth
2025-09-17 13:40 ` Konrad Dybcio
@ 2025-09-18 2:17 ` Paul Sajna
0 siblings, 0 replies; 41+ messages in thread
From: Paul Sajna @ 2025-09-18 2:17 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
September 17, 2025 at 1:40 PM, "Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com mailto:konrad.dybcio@oss.qualcomm.com?to=%22Konrad%20Dybcio%22%20%3Ckonrad.dybcio%40oss.qualcomm.com%3E > wrote:
> > + /*
> > + * This path is relative to the qca/
> > + * subdir under lib/firmware.
> > + */
> >
> This comment is a little redundant
Is it? Most of the other firmware paths are relative to /lib/firmware/qcom/sdm845/LG/judyln, while this one is /lib/firmware/qca/judyln
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
2025-09-17 1:09 ` [PATCH v2 01/13] arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties Paul Sajna
2025-09-17 1:09 ` [PATCH v2 02/13] arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:47 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds Paul Sajna
` (10 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
From: Christopher Brown <crispybrown@gmail.com>
Values based on lineageos kernel
Signed-off-by: Christopher Brown <crispybrown@gmail.com>
---
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index 49225e4fa80e5f45a36964d5d733dc238e4413f8..be488891d0ab01c5bfd3762514fbf1c3bbf6845a 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -37,6 +37,14 @@ key-thinq {
interrupts = <89 IRQ_TYPE_LEVEL_LOW>;
};
};
+
+ battery: battery {
+ compatible = "simple-battery";
+
+ charge-full-design-microamp-hours = <3000000>;
+ voltage-min-design-microvolt = <3200000>;
+ voltage-max-design-microvolt = <4400000>;
+ };
};
&adsp_pas {
@@ -57,6 +65,11 @@ &mss_pil {
firmware-name = "qcom/sdm845/judyln/mba.mbn", "qcom/sdm845/judyln/modem.mbn";
};
+&pmi8998_charger {
+ status = "okay";
+ monitored-battery = <&battery>;
+};
+
&tlmm {
thinq_key_default: thinq-key-default-state {
pins = "gpio89";
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
2025-09-17 1:09 ` [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger Paul Sajna
@ 2025-09-17 13:47 ` Konrad Dybcio
2025-09-18 1:44 ` Chris Brown
` (2 more replies)
0 siblings, 3 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:47 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> From: Christopher Brown <crispybrown@gmail.com>
>
> Values based on lineageos kernel
A link for reference would be nice to see
>
> Signed-off-by: Christopher Brown <crispybrown@gmail.com>
> ---
> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> index 49225e4fa80e5f45a36964d5d733dc238e4413f8..be488891d0ab01c5bfd3762514fbf1c3bbf6845a 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> @@ -37,6 +37,14 @@ key-thinq {
> interrupts = <89 IRQ_TYPE_LEVEL_LOW>;
> };
> };
> +
> + battery: battery {
> + compatible = "simple-battery";
> +
> + charge-full-design-microamp-hours = <3000000>;
> + voltage-min-design-microvolt = <3200000>;
3.2 is rather low.. are you sure?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
2025-09-17 13:47 ` Konrad Dybcio
@ 2025-09-18 1:44 ` Chris Brown
[not found] ` <CABN5=wFgARbrhqyNbgQ_iMKPt8M7ixZPEhvXVd6AY+Jv+7=YWw@mail.gmail.com>
2025-10-23 9:12 ` Pavel Machek
2 siblings, 0 replies; 41+ messages in thread
From: Chris Brown @ 2025-09-18 1:44 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg,
linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan
Source https://github.com/EmanuelCN/android_kernel_lge_sdm845/blob/U/arch/arm64/boot/dts/lge/sdm845-battery/LGE_BLT39_LGC_3000mAh.dtsi
Small assumption on my part that "fg-cutoff-voltage" has the same
meaning as "voltage-min-design-microvolt"
On Wed, 17 Sept 2025 at 09:47, Konrad Dybcio
<konrad.dybcio@oss.qualcomm.com> wrote:
>
> On 9/17/25 3:09 AM, Paul Sajna wrote:
> > From: Christopher Brown <crispybrown@gmail.com>
> >
> > Values based on lineageos kernel
>
> A link for reference would be nice to see
>
> >
> > Signed-off-by: Christopher Brown <crispybrown@gmail.com>
> > ---
> > arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > index 49225e4fa80e5f45a36964d5d733dc238e4413f8..be488891d0ab01c5bfd3762514fbf1c3bbf6845a 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > @@ -37,6 +37,14 @@ key-thinq {
> > interrupts = <89 IRQ_TYPE_LEVEL_LOW>;
> > };
> > };
> > +
> > + battery: battery {
> > + compatible = "simple-battery";
> > +
> > + charge-full-design-microamp-hours = <3000000>;
> > + voltage-min-design-microvolt = <3200000>;
>
> 3.2 is rather low.. are you sure?
>
> Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread[parent not found: <CABN5=wFgARbrhqyNbgQ_iMKPt8M7ixZPEhvXVd6AY+Jv+7=YWw@mail.gmail.com>]
* Re: [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
[not found] ` <CABN5=wFgARbrhqyNbgQ_iMKPt8M7ixZPEhvXVd6AY+Jv+7=YWw@mail.gmail.com>
@ 2025-10-07 13:52 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-10-07 13:52 UTC (permalink / raw)
To: Chris Brown
Cc: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg,
linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan
On 9/18/25 3:29 AM, Chris Brown wrote:
> Source
> https://github.com/EmanuelCN/android_kernel_lge_sdm845/blob/U/arch/arm64/boot/dts/lge/sdm845-battery/LGE_BLT39_LGC_3000mAh.dtsi
> Small assumption on my part that "fg-cutoff-voltage" has the same meaning
> as "voltage-min-design-microvolt"
Hm, I suppose we're not getting any more information
As an additional test, would you like to discharge to phone to 1% and
check what the battery voltage property says in sysfs?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
2025-09-17 13:47 ` Konrad Dybcio
2025-09-18 1:44 ` Chris Brown
[not found] ` <CABN5=wFgARbrhqyNbgQ_iMKPt8M7ixZPEhvXVd6AY+Jv+7=YWw@mail.gmail.com>
@ 2025-10-23 9:12 ` Pavel Machek
2 siblings, 0 replies; 41+ messages in thread
From: Pavel Machek @ 2025-10-23 9:12 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg,
linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]
On Wed 2025-09-17 15:47:47, Konrad Dybcio wrote:
> On 9/17/25 3:09 AM, Paul Sajna wrote:
> > From: Christopher Brown <crispybrown@gmail.com>
> >
> > Values based on lineageos kernel
>
> A link for reference would be nice to see
>
> >
> > Signed-off-by: Christopher Brown <crispybrown@gmail.com>
> > ---
> > arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > index 49225e4fa80e5f45a36964d5d733dc238e4413f8..be488891d0ab01c5bfd3762514fbf1c3bbf6845a 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > @@ -37,6 +37,14 @@ key-thinq {
> > interrupts = <89 IRQ_TYPE_LEVEL_LOW>;
> > };
> > };
> > +
> > + battery: battery {
> > + compatible = "simple-battery";
> > +
> > + charge-full-design-microamp-hours = <3000000>;
> > + voltage-min-design-microvolt = <3200000>;
>
> 3.2 is rather low.. are you sure?
In flashlights (etc), Li-IONs are often pulled down to 3.00V. It does
not have any great advantage because it goes down from 3.3 to 3.0V
pretty quickly, but it is not completely insane.
Actually, under load, it may make sense: internal voltage will be
higher at that point.
Best regards,
Pavel
--
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, Netanyahu and Musk!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (2 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 03/13] arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:42 ` Konrad Dybcio
2025-10-23 9:10 ` Pavel Machek
2025-09-17 1:09 ` [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel Paul Sajna
` (9 subsequent siblings)
13 siblings, 2 replies; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
From: Amir Dahan <system64fumo@protonmail.com>
Add the multicolor status led in the phone's notch
Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 28 ++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 911f5e614d0a4a85da61570ce400a85efa08623b..db28a2494a0cc4b9e9d997d11f1acfb116e586e3 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -6,6 +6,7 @@
*/
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
@@ -504,6 +505,33 @@ &pm8998_resin {
status = "okay";
};
+&pmi8998_lpg {
+ status = "okay";
+
+ multi-led {
+ color = <LED_COLOR_ID_RGB>;
+ function = LED_FUNCTION_STATUS;
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@3 {
+ reg = <3>;
+ color = <LED_COLOR_ID_BLUE>;
+ };
+
+ led@4 {
+ reg = <4>;
+ color = <LED_COLOR_ID_GREEN>;
+ };
+
+ led@5 {
+ reg = <5>;
+ color = <LED_COLOR_ID_RED>;
+ };
+ };
+};
+
&sdhc_2 {
cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds
2025-09-17 1:09 ` [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds Paul Sajna
@ 2025-09-17 13:42 ` Konrad Dybcio
2025-10-23 9:10 ` Pavel Machek
1 sibling, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:42 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> From: Amir Dahan <system64fumo@protonmail.com>
>
> Add the multicolor status led in the phone's notch
>
> Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
Sending someone else's changes is fine, but Linux submission guidelines
require that you add your own sign-off at the end of the existing tag
chain (i.e. git commit --amend -s) to certify under your name that you
believe a patch doesn't e.g. break any licensing
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds
2025-09-17 1:09 ` [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds Paul Sajna
2025-09-17 13:42 ` Konrad Dybcio
@ 2025-10-23 9:10 ` Pavel Machek
1 sibling, 0 replies; 41+ messages in thread
From: Pavel Machek @ 2025-10-23 9:10 UTC (permalink / raw)
To: Paul Sajna
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg, linux-arm-msm, devicetree,
linux-kernel, phone-devel, Amir Dahan, Christopher Brown
[-- Attachment #1: Type: text/plain, Size: 967 bytes --]
Hi!
> From: Amir Dahan <system64fumo@protonmail.com>
>
> Add the multicolor status led in the phone's notch
led->LED, "notch"->"notch."
> Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
> @@ -504,6 +505,33 @@ &pm8998_resin {
> status = "okay";
> };
>
> +&pmi8998_lpg {
> + status = "okay";
> +
> + multi-led {
> + color = <LED_COLOR_ID_RGB>;
> + function = LED_FUNCTION_STATUS;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + led@3 {
> + reg = <3>;
> + color = <LED_COLOR_ID_BLUE>;
> + };
> +
> + led@4 {
> + reg = <4>;
> + color = <LED_COLOR_ID_GREEN>;
> + };
> +
> + led@5 {
> + reg = <5>;
> + color = <LED_COLOR_ID_RED>;
> + };
> + };
> +};
> +
> &sdhc_2 {
> cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
>
>
--
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, Netanyahu and Musk!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (3 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 04/13] arm64: dts: qcom: sdm845-lg-common: Add leds Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:50 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes Paul Sajna
` (8 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
And supporting msm drm nodes, including backlight
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
Co-developed-by: Amir Dahan <system64fumo@protonmail.com>
Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 8 +--
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 67 ++++++++++++++++++++++++++
2 files changed, 71 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index db28a2494a0cc4b9e9d997d11f1acfb116e586e3..ea4de09b549d1d436897ea6059d27556041a6b68 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -461,10 +461,6 @@ &cdsp_pas {
status = "okay";
};
-&dispcc {
- status = "disabled";
-};
-
&gcc {
protected-clocks = <GCC_QSPI_CORE_CLK>,
<GCC_QSPI_CORE_CLK_SRC>,
@@ -532,6 +528,10 @@ led@5 {
};
};
+&pmi8998_wled {
+ status = "okay";
+};
+
&sdhc_2 {
cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index be488891d0ab01c5bfd3762514fbf1c3bbf6845a..8077a9fb0dc28237fc6ac0b70c8ef45a0d72876d 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -61,6 +61,45 @@ zap-shader {
};
};
+&mdss {
+ status = "okay";
+};
+
+&mdss_dsi0 {
+ vdda-supply = <&vdda_mipi_dsi0_1p2>;
+
+ status = "okay";
+
+ display_panel: panel@0 {
+ reg = <0>;
+ compatible = "lg,sw49410";
+
+ backlight = <&pmi8998_wled>;
+ reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&sde_dsi_active &sde_te_active>;
+ pinctrl-1 = <&sde_dsi_sleep &sde_te_sleep>;
+
+ port {
+ panel_in: endpoint {
+ remote-endpoint = <&mdss_dsi0_out>;
+ };
+ };
+ };
+};
+
+&mdss_dsi0_phy {
+ vdds-supply = <&vdda_mipi_dsi0_pll>;
+
+ status = "okay";
+};
+
+&mdss_dsi0_out {
+ remote-endpoint = <&panel_in>;
+ data-lanes = <0 1 2 3>;
+};
+
&mss_pil {
firmware-name = "qcom/sdm845/judyln/mba.mbn", "qcom/sdm845/judyln/modem.mbn";
};
@@ -78,6 +117,34 @@ thinq_key_default: thinq-key-default-state {
drive-strength = <2>;
bias-pull-up;
};
+
+ sde_dsi_active: sde-dsi-active-state {
+ pins = "gpio6";
+ function = "gpio";
+ drive-strength = <8>;
+ bias-disable;
+ };
+
+ sde_dsi_sleep: sde-dsi-sleep-state {
+ pins = "gpio6";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+
+ sde_te_active: sde-te-active-state {
+ pins = "gpio10";
+ function = "mdp_vsync";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
+ sde_te_sleep: sde-te-sleep-state {
+ pins = "gpio10";
+ function = "mdp_vsync";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
};
&uart6 {
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel
2025-09-17 1:09 ` [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel Paul Sajna
@ 2025-09-17 13:50 ` Konrad Dybcio
2025-09-18 1:51 ` Paul Sajna
[not found] ` <da2f17a144374f326de9e0c5bec638829a31cd1e@postmarketos.org>
0 siblings, 2 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:50 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> And supporting msm drm nodes, including backlight
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> Co-developed-by: Amir Dahan <system64fumo@protonmail.com>
> Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
> ---
[...]
> + display_panel: panel@0 {
> + reg = <0>;
> + compatible = "lg,sw49410";
> +
> + backlight = <&pmi8998_wled>;
> + reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
> +
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&sde_dsi_active &sde_te_active>;
> + pinctrl-1 = <&sde_dsi_sleep &sde_te_sleep>;
pinctrl-n
pinctrl-names
is preferred
[...]
> + sde_te_active: sde-te-active-state {
> + pins = "gpio10";
> + function = "mdp_vsync";
> + drive-strength = <2>;
> + bias-disable;
The vendor kernel (for Sony phones at least) does pull-down on both
active and sleep, making them the same
Konrad
> + };
> +
> + sde_te_sleep: sde-te-sleep-state {
> + pins = "gpio10";
> + function = "mdp_vsync";
> + drive-strength = <2>;
> + bias-pull-down;
> + };
> };
>
> &uart6 {
>
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel
2025-09-17 13:50 ` Konrad Dybcio
@ 2025-09-18 1:51 ` Paul Sajna
[not found] ` <da2f17a144374f326de9e0c5bec638829a31cd1e@postmarketos.org>
1 sibling, 0 replies; 41+ messages in thread
From: Paul Sajna @ 2025-09-18 1:51 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
September 17, 2025 at 1:50 PM, "Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com mailto:konrad.dybcio@oss.qualcomm.com?to=%22Konrad%20Dybcio%22%20%3Ckonrad.dybcio%40oss.qualcomm.com%3E > wrote:
> The vendor kernel (for Sony phones at least) does pull-down on both
> active and sleep, making them the same
>
> Konrad
>
> >
> > + };
> > +
> > + sde_te_sleep: sde-te-sleep-state {
> > + pins = "gpio10";
> > + function = "mdp_vsync";
> > + drive-strength = <2>;
> > + bias-pull-down;
> > + };
> > };
> >
> > &uart6 {
> >
>
https://github.com/LineageOS/android_kernel_lge_sdm845/blob/lineage-22.2/arch/arm64/boot/dts/lge/sdm845-judy/sdm845-judy_common/sdm845-judy_common-pinctrl.dtsi#L109-L148
^ permalink raw reply [flat|nested] 41+ messages in thread[parent not found: <da2f17a144374f326de9e0c5bec638829a31cd1e@postmarketos.org>]
* Re: [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel
[not found] ` <da2f17a144374f326de9e0c5bec638829a31cd1e@postmarketos.org>
@ 2025-10-07 13:53 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-10-07 13:53 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/18/25 3:38 AM, Paul Sajna wrote:
> September 17, 2025 at 1:50 PM, "Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com mailto:konrad.dybcio@oss.qualcomm.com?to=%22Konrad%20Dybcio%22%20%3Ckonrad.dybcio%40oss.qualcomm.com%3E > wrote
>
>
>>
>> The vendor kernel (for Sony phones at least) does pull-down on both
>> active and sleep, making them the same
>>
>> Konrad
>>
>>>
>>> + };
>>> +
>>> + sde_te_sleep: sde-te-sleep-state {
>>> + pins = "gpio10";
>>> + function = "mdp_vsync";
>>> + drive-strength = <2>;
>>> + bias-pull-down;
>>> + };
>>> };
>>>
>>> &uart6 {
>>>
>>
>
> https://github.com/LineageOS/android_kernel_lge_sdm845/blob/lineage-22.2/arch/arm64/boot/dts/lge/sdm845-judy/sdm845-judy_common/sdm845-judy_common-pinctrl.dtsi#L109-L148
Take a look at these lines instead
https://github.com/LineageOS/android_kernel_lge_sdm845/blob/lineage-22.2/arch/arm64/boot/dts/lge/sdm845-judy/sdm845-judy_common/sdm845-judy_common-pinctrl.dtsi#L137-L161
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (4 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 05/13] arm64: dts: qcom: sdm845-lg-judyln: Add display panel Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:51 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 07/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node Paul Sajna
` (7 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
Add paths for Qualcomm firmware, including:
ipa, modem, bluetooth, venus, gpu
Enable adsp and cdsp nodes since their firmware is present
GPU and bluetooth are confirmed working, others may need more
testing/fixes
But regardless they will need the firmware paths specified here
and firmware added upstream before they will work, so might as well
get started on it now.
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 10 ++++++++++
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 16 ++++++++++++----
2 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index ea4de09b549d1d436897ea6059d27556041a6b68..44a76e047c8faf71959ebf9a5b278e1f66000087 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -173,6 +173,10 @@ &adsp_pas {
status = "okay";
};
+&cdsp_pas {
+ status = "okay";
+};
+
&apps_rsc {
regulators-0 {
compatible = "qcom,pm8998-rpmh-regulators";
@@ -479,6 +483,8 @@ zap-shader {
&ipa {
qcom,gsi-loader = "modem";
+ memory-region = <&ipa_fw_mem>;
+
status = "okay";
};
@@ -668,3 +674,7 @@ bluetooth {
&uart9 {
status = "okay";
};
+
+&venus {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index 8077a9fb0dc28237fc6ac0b70c8ef45a0d72876d..7d05698f1225d951804752b6fc062c1b4f583516 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -48,19 +48,23 @@ battery: battery {
};
&adsp_pas {
- firmware-name = "qcom/sdm845/judyln/adsp.mbn";
+ firmware-name = "qcom/sdm845/LG/judyln/adsp.mbn";
};
&cdsp_pas {
- firmware-name = "qcom/sdm845/judyln/cdsp.mbn";
+ firmware-name = "qcom/sdm845/LG/judyln/cdsp.mbn";
};
&gpu {
zap-shader {
- firmware-name = "qcom/sdm845/judyln/a630_zap.mbn";
+ firmware-name = "qcom/sdm845/LG/judyln/a630_zap.mbn";
};
};
+&ipa {
+ firmware-name = "qcom/sdm845/LG/judyln/ipa_fws.mbn";
+};
+
&mdss {
status = "okay";
};
@@ -101,7 +105,7 @@ &mdss_dsi0_out {
};
&mss_pil {
- firmware-name = "qcom/sdm845/judyln/mba.mbn", "qcom/sdm845/judyln/modem.mbn";
+ firmware-name = "qcom/sdm845/LG/judyln/mba.mbn", "qcom/sdm845/LG/judyln/modem.mbn";
};
&pmi8998_charger {
@@ -156,3 +160,7 @@ bluetooth {
firmware-name = "judyln/crnv21.bin";
};
};
+
+&venus {
+ firmware-name = "qcom/sdm845/LG/judyln/venus.mbn";
+};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes
2025-09-17 1:09 ` [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes Paul Sajna
@ 2025-09-17 13:51 ` Konrad Dybcio
2025-09-18 1:52 ` Paul Sajna
0 siblings, 1 reply; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:51 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> Add paths for Qualcomm firmware, including:
> ipa, modem, bluetooth, venus, gpu
>
> Enable adsp and cdsp nodes since their firmware is present
This commit message is a little out of sync with the patch content
[...]
> &adsp_pas {
> - firmware-name = "qcom/sdm845/judyln/adsp.mbn";
> + firmware-name = "qcom/sdm845/LG/judyln/adsp.mbn";
> };
>
> &cdsp_pas {
> - firmware-name = "qcom/sdm845/judyln/cdsp.mbn";
> + firmware-name = "qcom/sdm845/LG/judyln/cdsp.mbn";
> };
>
> &gpu {
> zap-shader {
> - firmware-name = "qcom/sdm845/judyln/a630_zap.mbn";
> + firmware-name = "qcom/sdm845/LG/judyln/a630_zap.mbn";
> };
> };
>
> +&ipa {
> + firmware-name = "qcom/sdm845/LG/judyln/ipa_fws.mbn";
> +};
> +
> &mdss {
> status = "okay";
> };
> @@ -101,7 +105,7 @@ &mdss_dsi0_out {
> };
>
> &mss_pil {
> - firmware-name = "qcom/sdm845/judyln/mba.mbn", "qcom/sdm845/judyln/modem.mbn";
> + firmware-name = "qcom/sdm845/LG/judyln/mba.mbn", "qcom/sdm845/LG/judyln/modem.mbn";
You're changing all of these paths.. have the previous ones ever
been used, e.g. in pmOS, to the best of your knowledge?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes
2025-09-17 13:51 ` Konrad Dybcio
@ 2025-09-18 1:52 ` Paul Sajna
0 siblings, 0 replies; 41+ messages in thread
From: Paul Sajna @ 2025-09-18 1:52 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
September 17, 2025 at 1:51 PM, "Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com mailto:konrad.dybcio@oss.qualcomm.com?to=%22Konrad%20Dybcio%22%20%3Ckonrad.dybcio%40oss.qualcomm.com%3E > wrote:
> You're changing all of these paths.. have the previous ones ever
> been used, e.g. in pmOS, to the best of your knowledge?
>
> Konrad
>
The previous values have been used in pmos, but I can fix the firmware package when it comes time for pmos to sync this back.
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 07/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (5 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 06/13] arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:44 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 08/13] arm64: dts: qcom: sdm845-lg-common: Add chassis-type Paul Sajna
` (6 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
Wi-Fi now works with this patch and relevant firmware
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 12 ++++++++++++
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 4 ++++
2 files changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 44a76e047c8faf71959ebf9a5b278e1f66000087..01ac32ae8728558741d5d47fdd00219b349f225c 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -678,3 +678,15 @@ &uart9 {
&venus {
status = "okay";
};
+
+&wifi {
+ vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
+ vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
+ vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
+ vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
+ vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;
+
+ qcom,snoc-host-cap-skip-quirk;
+
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index 7d05698f1225d951804752b6fc062c1b4f583516..e84b45ed82fd13850ea7ec1f34ddac5b59fc1434 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -164,3 +164,7 @@ bluetooth {
&venus {
firmware-name = "qcom/sdm845/LG/judyln/venus.mbn";
};
+
+&wifi {
+ qcom,calibration-variant = "lg_judyln";
+};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 07/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node
2025-09-17 1:09 ` [PATCH v2 07/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node Paul Sajna
@ 2025-09-17 13:44 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:44 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> Wi-Fi now works with this patch and relevant firmware
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
Well it hopefully does ;)
Would you mind adding a snipped of the dmesg, e.g. as Dmitry did in
Commit b6a56a5a25d6 ("arm64: dts: qcom: qrb2210-rb1: add wifi variant
property") for future reference?
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 08/13] arm64: dts: qcom: sdm845-lg-common: Add chassis-type
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (6 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 07/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:44 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions Paul Sajna
` (5 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
The sdm845-lg devices are all phones, therefore handset chassis
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 01ac32ae8728558741d5d47fdd00219b349f225c..920a87e422518df980fd36a70b47f7b728536d23 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -28,6 +28,8 @@
/delete-node/ &wlan_msa_mem;
/ {
+ chassis-type = "handset";
+
aliases {
serial0 = &uart9;
serial1 = &uart6;
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 08/13] arm64: dts: qcom: sdm845-lg-common: Add chassis-type
2025-09-17 1:09 ` [PATCH v2 08/13] arm64: dts: qcom: sdm845-lg-common: Add chassis-type Paul Sajna
@ 2025-09-17 13:44 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:44 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> The sdm845-lg devices are all phones, therefore handset chassis
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (7 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 08/13] arm64: dts: qcom: sdm845-lg-common: Add chassis-type Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:59 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 10/13] arm64: dts: qcom: sdm845-lg-common: Add camera flash Paul Sajna
` (4 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
Add display dimensions for proper scaling
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index e84b45ed82fd13850ea7ec1f34ddac5b59fc1434..8c1692f86e6ceea7b718361965e78f95d39373bb 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -23,6 +23,13 @@ framebuffer@9d400000 {
format = "a8r8g8b8";
lab-supply = <&lab>;
ibb-supply = <&ibb>;
+
+ panel = <&fb_panel>;
+
+ fb_panel: fb-panel {
+ width-mm = <65>;
+ height-mm = <140>;
+ };
};
};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
2025-09-17 1:09 ` [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions Paul Sajna
@ 2025-09-17 13:59 ` Konrad Dybcio
2025-09-17 14:54 ` Alexey Minnekhanov
0 siblings, 1 reply; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:59 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> Add display dimensions for proper scaling
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> index e84b45ed82fd13850ea7ec1f34ddac5b59fc1434..8c1692f86e6ceea7b718361965e78f95d39373bb 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> @@ -23,6 +23,13 @@ framebuffer@9d400000 {
> format = "a8r8g8b8";
> lab-supply = <&lab>;
> ibb-supply = <&ibb>;
> +
> + panel = <&fb_panel>;
> +
> + fb_panel: fb-panel {
> + width-mm = <65>;
> + height-mm = <140>;
It'd be nicer if you moved these properties to the actual panel
node (the DSI one) and referenced that one instead (I think that
should work)
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
2025-09-17 13:59 ` Konrad Dybcio
@ 2025-09-17 14:54 ` Alexey Minnekhanov
2025-10-07 13:55 ` Konrad Dybcio
0 siblings, 1 reply; 41+ messages in thread
From: Alexey Minnekhanov @ 2025-09-17 14:54 UTC (permalink / raw)
To: Konrad Dybcio, Paul Sajna, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 17.09.2025 16:59, Konrad Dybcio wrote:
> On 9/17/25 3:09 AM, Paul Sajna wrote:
>> Add display dimensions for proper scaling
>>
>> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
>> ---
>> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 7 +++++++
>> 1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>> index e84b45ed82fd13850ea7ec1f34ddac5b59fc1434..8c1692f86e6ceea7b718361965e78f95d39373bb 100644
>> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>> @@ -23,6 +23,13 @@ framebuffer@9d400000 {
>> format = "a8r8g8b8";
>> lab-supply = <&lab>;
>> ibb-supply = <&ibb>;
>> +
>> + panel = <&fb_panel>;
>> +
>> + fb_panel: fb-panel {
>> + width-mm = <65>;
>> + height-mm = <140>;
>
> It'd be nicer if you moved these properties to the actual panel
> node (the DSI one) and referenced that one instead (I think that
> should work)
>
> Konrad
>
Hi!
First of all this code doesn't work well for upstream, because it causes
errors with dtbs checks like:
framebuffer@9d400000 (simple-framebuffer): 'fb-panel' does not match
any of the regexes: '^[a-zA-Z0-9-]+-supply$', '^pinctrl-[0-9]+$'
^^ The subnode is not allowed by bindings.
The whole reasoning for this little hack is that the upstream
recommended approach to solve the "unknown DPI" for framebuffer issue
is to put width-mm, height-mm into real panel node and and reference it
in simple-fb node - sonds very nice in theory, but also doesn't work
well in practice, and explanation why will take a bit longer, please
bear with me for a minute.
If we do as recommended, device tree structure will look like this:
framebuffer@9d400000 {
...
panel = <&display_panel>;
};
soc@0 {
....
mdss {
...
dsi0 {
...
display_panel: panel@0 {
reg = <0>;
compatible = "lg,sw49410";
...
width-mm = <65>;
height-mm = <140>;
};
...
Then, to my understanding, due to how fw-devlink works, the panel=<&..>
link from simplefb node to display_panel node creates a probe-time
dependency, so that the whole display stack probes first: MDSS, DSI
controller, maybe even Adreno GPU, *AND* panel all probe first, thus
making the mere existence of simple-framebuffer pointless.
Additionally, simple-framebuffer probes succesfully after that,
creating "second GPU" entry in as /dev/dri/card1 making it look like
system has 2 GPUS, which confuses almost every window manager in
userspace later. Normally, if simplefb probes first, it gets unloaded
and replaced by MDSS and does not cause any chaos. In the end the whole
situation looks even more silly than the fake panel subnode hack.
Therefore for upstream I'd recommend to just drop any fb-panel hacks and
to not use panel=<&...> with reference to real panel either.
It would all be much much easier if we could just specify width-mm/
height-mm directly in simplefb node, but DT maintainers rejected that idea.
---
Regards,
Alexey Minnekhanov
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
2025-09-17 14:54 ` Alexey Minnekhanov
@ 2025-10-07 13:55 ` Konrad Dybcio
2025-10-09 18:02 ` Alexey Minnekhanov
0 siblings, 1 reply; 41+ messages in thread
From: Konrad Dybcio @ 2025-10-07 13:55 UTC (permalink / raw)
To: Alexey Minnekhanov, Paul Sajna, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 4:54 PM, Alexey Minnekhanov wrote:
> On 17.09.2025 16:59, Konrad Dybcio wrote:
>> On 9/17/25 3:09 AM, Paul Sajna wrote:
>>> Add display dimensions for proper scaling
>>>
>>> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
>>> ---
>>> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 7 +++++++
>>> 1 file changed, 7 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>>> index e84b45ed82fd13850ea7ec1f34ddac5b59fc1434..8c1692f86e6ceea7b718361965e78f95d39373bb 100644
>>> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
>>> @@ -23,6 +23,13 @@ framebuffer@9d400000 {
>>> format = "a8r8g8b8";
>>> lab-supply = <&lab>;
>>> ibb-supply = <&ibb>;
>>> +
>>> + panel = <&fb_panel>;
>>> +
>>> + fb_panel: fb-panel {
>>> + width-mm = <65>;
>>> + height-mm = <140>;
>>
>> It'd be nicer if you moved these properties to the actual panel
>> node (the DSI one) and referenced that one instead (I think that
>> should work)
>>
>> Konrad
>>
>
> Hi!
>
> First of all this code doesn't work well for upstream, because it causes
> errors with dtbs checks like:
>
> framebuffer@9d400000 (simple-framebuffer): 'fb-panel' does not match any of the regexes: '^[a-zA-Z0-9-]+-supply$', '^pinctrl-[0-9]+$'
>
> ^^ The subnode is not allowed by bindings.
>
> The whole reasoning for this little hack is that the upstream
> recommended approach to solve the "unknown DPI" for framebuffer issue
> is to put width-mm, height-mm into real panel node and and reference it
> in simple-fb node - sonds very nice in theory, but also doesn't work
> well in practice, and explanation why will take a bit longer, please
> bear with me for a minute.
>
> If we do as recommended, device tree structure will look like this:
>
> framebuffer@9d400000 {
> ...
> panel = <&display_panel>;
> };
>
> soc@0 {
> ....
>
> mdss {
> ...
> dsi0 {
> ...
> display_panel: panel@0 {
> reg = <0>;
> compatible = "lg,sw49410";
> ...
> width-mm = <65>;
> height-mm = <140>;
> };
> ...
>
> Then, to my understanding, due to how fw-devlink works, the panel=<&..>
> link from simplefb node to display_panel node creates a probe-time
> dependency, so that the whole display stack probes first: MDSS, DSI
> controller, maybe even Adreno GPU, *AND* panel all probe first, thus
> making the mere existence of simple-framebuffer pointless.
>
> Additionally, simple-framebuffer probes succesfully after that,
> creating "second GPU" entry in as /dev/dri/card1 making it look like
> system has 2 GPUS, which confuses almost every window manager in
> userspace later. Normally, if simplefb probes first, it gets unloaded
> and replaced by MDSS and does not cause any chaos. In the end the whole
> situation looks even more silly than the fake panel subnode hack.
>
> Therefore for upstream I'd recommend to just drop any fb-panel hacks and
> to not use panel=<&...> with reference to real panel either.
>
> It would all be much much easier if we could just specify width-mm/
> height-mm directly in simplefb node, but DT maintainers rejected that idea.
Would adding post-init-providers = <&real_panel> help?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
2025-10-07 13:55 ` Konrad Dybcio
@ 2025-10-09 18:02 ` Alexey Minnekhanov
0 siblings, 0 replies; 41+ messages in thread
From: Alexey Minnekhanov @ 2025-10-09 18:02 UTC (permalink / raw)
To: Konrad Dybcio, Paul Sajna, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 07.10.2025 16:55, Konrad Dybcio wrote:
> Would adding post-init-providers = <&real_panel> help?
>
> Konrad
I suppose it should, as means to break devlink dependency, but I
personally haven't tried it yet.
It's easier to just have "msm" and "panel-*" modules in initramfs and
leave simpledrm node be with invalid scaling, because it doesn't live
long enough to display anything (maybe a fraction of a second) due to
being quickly replaced by msm drm framebuffer emulation.
Framebuffer-only display with proper scaling is only needed for devices
without display/panel drivers, perhaps temporarily during early porting
stage, so this all is minor issue.
Still would be nice to have a proper solution for this of course.
--
Regards,
Alexey Minnekhanov
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 10/13] arm64: dts: qcom: sdm845-lg-common: Add camera flash
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (8 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 09/13] arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:45 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs Paul Sajna
` (3 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
So it can be used as a flashlight
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 920a87e422518df980fd36a70b47f7b728536d23..1baec758c7d881026bf6001a0a305687d7a14b40 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -509,6 +509,19 @@ &pm8998_resin {
status = "okay";
};
+&pmi8998_flash {
+ status = "okay";
+
+ led-0 {
+ function = LED_FUNCTION_FLASH;
+ color = <LED_COLOR_ID_WHITE>;
+ led-sources = <1>;
+ led-max-microamp = <850000>;
+ flash-max-microamp = <850000>;
+ flash-max-timeout-us = <500000>;
+ };
+};
+
&pmi8998_lpg {
status = "okay";
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 10/13] arm64: dts: qcom: sdm845-lg-common: Add camera flash
2025-09-17 1:09 ` [PATCH v2 10/13] arm64: dts: qcom: sdm845-lg-common: Add camera flash Paul Sajna
@ 2025-09-17 13:45 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:45 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> So it can be used as a flashlight
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (9 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 10/13] arm64: dts: qcom: sdm845-lg-common: Add camera flash Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:55 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 12/13] arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem Paul Sajna
` (2 subsequent siblings)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
The original bootloader (fastboot) requires board and MSM IDs in order
to boot the kernel, so these have been added. When re-using the same
files to chainload U-Boot, these compatibles are also needed to ensure
proper booting.
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 2 ++
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 1 +
2 files changed, 3 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index 1baec758c7d881026bf6001a0a305687d7a14b40..a513cd931b3a984443183ee4e8df7b0e45732630 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -5,6 +5,7 @@
* Copyright (c) 2022, The Linux Foundation. All rights reserved.
*/
+#include <dt-bindings/arm/qcom,ids.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
@@ -29,6 +30,7 @@
/ {
chassis-type = "handset";
+ qcom,msm-id = <QCOM_ID_SDM845 0x20001>;
aliases {
serial0 = &uart9;
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index 8c1692f86e6ceea7b718361965e78f95d39373bb..beb1372dc6c17f5f06c2044412ee1c8165858cd1 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -12,6 +12,7 @@
/ {
model = "LG G7 ThinQ";
compatible = "lg,judyln", "qcom,sdm845";
+ qcom,board-id = <0x020C0008 0>;
chosen {
framebuffer@9d400000 {
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs
2025-09-17 1:09 ` [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs Paul Sajna
@ 2025-09-17 13:55 ` Konrad Dybcio
2025-09-17 14:02 ` Stephan Gerhold
0 siblings, 1 reply; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:55 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg,
Stephan Gerhold
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> The original bootloader (fastboot) requires board and MSM IDs in order
> to boot the kernel, so these have been added. When re-using the same
> files to chainload U-Boot, these compatibles are also needed to ensure
> proper booting.
>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
> arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 2 ++
> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 1 +
> 2 files changed, 3 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> index 1baec758c7d881026bf6001a0a305687d7a14b40..a513cd931b3a984443183ee4e8df7b0e45732630 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> @@ -5,6 +5,7 @@
> * Copyright (c) 2022, The Linux Foundation. All rights reserved.
> */
>
> +#include <dt-bindings/arm/qcom,ids.h>
> #include <dt-bindings/gpio/gpio.h>
> #include <dt-bindings/leds/common.h>
> #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> @@ -29,6 +30,7 @@
>
> / {
> chassis-type = "handset";
> + qcom,msm-id = <QCOM_ID_SDM845 0x20001>;
>
> aliases {
> serial0 = &uart9;
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> index 8c1692f86e6ceea7b718361965e78f95d39373bb..beb1372dc6c17f5f06c2044412ee1c8165858cd1 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> @@ -12,6 +12,7 @@
> / {
> model = "LG G7 ThinQ";
> compatible = "lg,judyln", "qcom,sdm845";
> + qcom,board-id = <0x020C0008 0>;
This is almost QCOM_BOARD_ID(MTP, 12, 0), except for the odd BIT(25)
which the dt-binding promises should be left unused..
+Stephan maybe you know more?
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread* Re: [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs
2025-09-17 13:55 ` Konrad Dybcio
@ 2025-09-17 14:02 ` Stephan Gerhold
0 siblings, 0 replies; 41+ messages in thread
From: Stephan Gerhold @ 2025-09-17 14:02 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg,
linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On Wed, Sep 17, 2025 at 03:55:47PM +0200, Konrad Dybcio wrote:
> On 9/17/25 3:09 AM, Paul Sajna wrote:
> > The original bootloader (fastboot) requires board and MSM IDs in order
> > to boot the kernel, so these have been added. When re-using the same
> > files to chainload U-Boot, these compatibles are also needed to ensure
> > proper booting.
> >
> > Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> > ---
> > arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 2 ++
> > arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 1 +
> > 2 files changed, 3 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> > index 1baec758c7d881026bf6001a0a305687d7a14b40..a513cd931b3a984443183ee4e8df7b0e45732630 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
> > @@ -5,6 +5,7 @@
> > * Copyright (c) 2022, The Linux Foundation. All rights reserved.
> > */
> >
> > +#include <dt-bindings/arm/qcom,ids.h>
> > #include <dt-bindings/gpio/gpio.h>
> > #include <dt-bindings/leds/common.h>
> > #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
> > @@ -29,6 +30,7 @@
> >
> > / {
> > chassis-type = "handset";
> > + qcom,msm-id = <QCOM_ID_SDM845 0x20001>;
> >
> > aliases {
> > serial0 = &uart9;
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > index 8c1692f86e6ceea7b718361965e78f95d39373bb..beb1372dc6c17f5f06c2044412ee1c8165858cd1 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
> > @@ -12,6 +12,7 @@
> > / {
> > model = "LG G7 ThinQ";
> > compatible = "lg,judyln", "qcom,sdm845";
> > + qcom,board-id = <0x020C0008 0>;
>
> This is almost QCOM_BOARD_ID(MTP, 12, 0), except for the odd BIT(25)
> which the dt-binding promises should be left unused..
>
> +Stephan maybe you know more?
>
I'm not sure what BIT(25) is exactly, but I think you can generally give
up any hope of trying to make sense of the board IDs of large vendors
like LG, Samsung, Motorola etc. It's a pity that Qualcomm has never
created a board ID scheme with enough room for customization for
vendors. The qcom,board-id scheme seems to be entirely focused just
around Qualcomm's own boards (MTP, QRD, SBC etc). That is why we ended
up with every vendor using their own incompatible approach. :-(
Sorry, I wish I had a better explanation. :-)
Stephan
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 12/13] arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (10 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 11/13] arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:58 ` Konrad Dybcio
2025-09-17 1:09 ` [PATCH v2 13/13] arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb Paul Sajna
2025-09-17 15:00 ` [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Rob Herring (Arm)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
It causes a conflict with simple-framebuffer
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 6 ------
1 file changed, 6 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
index a513cd931b3a984443183ee4e8df7b0e45732630..d8ff202a68da58a11392ffeb609390a677182715 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi
@@ -100,12 +100,6 @@ spss_mem: memory@99000000 {
no-map;
};
- /* Framebuffer region */
- memory@9d400000 {
- reg = <0x0 0x9d400000 0x0 0x2400000>;
- no-map;
- };
-
qseecom_mem: memory@b2000000 {
reg = <0 0xb2000000 0 0x1800000>;
no-map;
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 12/13] arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem
2025-09-17 1:09 ` [PATCH v2 12/13] arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem Paul Sajna
@ 2025-09-17 13:58 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:58 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> It causes a conflict with simple-framebuffer
Huh?
simple-framebuffer even takes a memory-region reference nowadays
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* [PATCH v2 13/13] arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (11 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 12/13] arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem Paul Sajna
@ 2025-09-17 1:09 ` Paul Sajna
2025-09-17 13:46 ` Konrad Dybcio
2025-09-17 15:00 ` [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Rob Herring (Arm)
13 siblings, 1 reply; 41+ messages in thread
From: Paul Sajna @ 2025-09-17 1:09 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown, Paul Sajna
`regulator-always-on;` in ibb improves display blanking issue
Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
---
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
index beb1372dc6c17f5f06c2044412ee1c8165858cd1..44ab98964ffe722144e01efc41e135dc7700fe95 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts
@@ -69,10 +69,28 @@ zap-shader {
};
};
+&ibb {
+ regulator-min-microvolt = <4600000>;
+ regulator-max-microvolt = <6000000>;
+ regulator-over-current-protection;
+ regulator-pull-down;
+ regulator-soft-start;
+ regulator-always-on;
+ qcom,discharge-resistor-kohms = <300>;
+};
+
&ipa {
firmware-name = "qcom/sdm845/LG/judyln/ipa_fws.mbn";
};
+&lab {
+ regulator-min-microvolt = <4600000>;
+ regulator-max-microvolt = <6000000>;
+ regulator-over-current-protection;
+ regulator-pull-down;
+ regulator-soft-start;
+};
+
&mdss {
status = "okay";
};
--
2.51.0
^ permalink raw reply related [flat|nested] 41+ messages in thread* Re: [PATCH v2 13/13] arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb
2025-09-17 1:09 ` [PATCH v2 13/13] arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb Paul Sajna
@ 2025-09-17 13:46 ` Konrad Dybcio
0 siblings, 0 replies; 41+ messages in thread
From: Konrad Dybcio @ 2025-09-17 13:46 UTC (permalink / raw)
To: Paul Sajna, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, David Heidelberg
Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel, Amir Dahan,
Christopher Brown
On 9/17/25 3:09 AM, Paul Sajna wrote:
> `regulator-always-on;` in ibb improves display blanking issue
..but doesn't let you save power when the display is not in use
That suggests your panel driver may not be sequencing the supplies
properly (or maybe the reset pin/commands may be misplaced)
Konrad
^ permalink raw reply [flat|nested] 41+ messages in thread
* Re: [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts
2025-09-17 1:09 [PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts Paul Sajna
` (12 preceding siblings ...)
2025-09-17 1:09 ` [PATCH v2 13/13] arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb Paul Sajna
@ 2025-09-17 15:00 ` Rob Herring (Arm)
13 siblings, 0 replies; 41+ messages in thread
From: Rob Herring (Arm) @ 2025-09-17 15:00 UTC (permalink / raw)
To: Paul Sajna
Cc: phone-devel, devicetree, linux-kernel, Amir Dahan, Conor Dooley,
Bjorn Andersson, David Heidelberg, Christopher Brown,
Krzysztof Kozlowski, Konrad Dybcio, linux-arm-msm
On Tue, 16 Sep 2025 18:09:46 -0700, Paul Sajna wrote:
> Rollup of improved hardware support via devicetree for LG G7 ThinQ
> (judyln) from sdm845-mainline kernel fork
>
> Notably, this patch-series enables full DRM acceleration and wifi,
> among other small improvements in individual commits
>
> after this patch-series the main things that remain to be worked
> on include touchscreen, audio, and modem.
>
> Depends upon panel driver patch-series https://lore.kernel.org/all/20250910-judyln-panel-v1-1-825c74403bbb@postmarketos.org/T/#r9a976ca01e309b6c03100e984a26a0ffc2fe2002
>
> Co-developed-by: Amir Dahan <system64fumo@protonmail.com>
> Co-developed-by: Christopher Brown <crispybrown@gmail.com>
> Signed-off-by: Amir Dahan <system64fumo@protonmail.com>
> Signed-off-by: Christopher Brown <crispybrown@gmail.com>
> Signed-off-by: Paul Sajna <sajattack@postmarketos.org>
> ---
> Changes in v2:
> - sort at the start
> - drop unnecessary labels
> - drop unnecessary gmu
> - multi-led
> - split fb-panel changes
> - expand upon firmware commit message
> - use qcom,calibration-variant instead of
> qcom,ath10k-calibration-variant
> - change firmware paths to include "LG"
> - remove framebuffer reservation
> - add lab/ibb
>
> - Link to v1: https://lore.kernel.org/r/20250913-judyln-dts-v1-0-23b4b7790dce@postmarketos.org
>
> ---
> Amir Dahan (1):
> arm64: dts: qcom: sdm845-lg-common: Add leds
>
> Christopher Brown (1):
> arm64: dts: qcom: sdm845-lg-judyln: Add battery and charger
>
> Paul Sajna (11):
> arm64: dts: qcom: sdm845-lg-common: Sort nodes and properties
> arm64: dts: qcom: sdm845-lg-common: Add uarts and Bluetooth
> arm64: dts: qcom: sdm845-lg-judyln: Add display panel
> arm64: dts: qcom: sdm845-lg-judyln: Add firmware nodes
> arm64: dts: qcom: sdm845-lg-{common, judyln}: Add wifi node
> arm64: dts: qcom: sdm845-lg-common: Add chassis-type
> arm64: dts: qcom: sdm845-lg-judyln: Add fb_panel dimensions
> arm64: dts: qcom: sdm845-lg-common: Add camera flash
> arm64: dts: qcom: sdm845-lg-common: Add bootloader-compatible board and MSM IDs
> arm64: dts: qcom: sdm845-judyln-common: Remove framebuffer reserved-mem
> arm64: dts: qcom: sdm845-lg-judyln: Add lab/ibb
>
> arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 222 ++++++++++++++++++-------
> arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dts | 136 ++++++++++++++-
> 2 files changed, 296 insertions(+), 62 deletions(-)
> ---
> base-commit: 8394712bc1340df993cb167199568f44013b45d3
> change-id: 20250911-judyln-dts-17c41e59dc0f
> prerequisite-message-id: <20250910-judyln-panel-v1-1-825c74403bbb@postmarketos.org>
> prerequisite-patch-id: e51151ea7f8fdad6ad7d90713febc5c6b6fc4f9c
> prerequisite-patch-id: b3dd44250da9cd12bc5b2d0d7e865dbe19ceed92
> prerequisite-patch-id: fd6c8077806cb03fcf37d0e0d730314c2760e334
>
> Best regards,
> --
> Paul Sajna <sajattack@postmarketos.org>
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: base-commit 8394712bc1340df993cb167199568f44013b45d3 not known, ignoring
Base: attempting to guess base-commit...
Base: tags/next-20250916 (exact match)
Deps: looking for dependencies matching 3 patch-ids
Deps: Applying prerequisite patch: [PATCH 1/3] drm/panel: Add LG SW49410 Panel
Deps: Applying prerequisite patch: [PATCH 2/3] dt-bindings: display: panel: Add devicetree documentation for lg,sw49410
Deps: Applying prerequisite patch: [PATCH 3/3] Update MAINTAINERS for lg,sw49410
If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20250916-judyln-dts-v2-0-5e16e60263af@postmarketos.org:
arch/arm64/boot/dts/qcom/sdm845-lg-judyp.dtb: displayport-controller@ae90000 (qcom,sdm845-dp): clocks: [[206, 0], [206, 28], [206, 32], [206, 34], [206, 37]] is too short
from schema $id: http://devicetree.org/schemas/display/msm/dp-controller.yaml#
arch/arm64/boot/dts/qcom/sdm845-lg-judyp.dtb: wifi@18800000 (qcom,wcn3990-wifi): 'qcom,snoc-host-cap-skip-quirk' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/net/wireless/qcom,ath10k.yaml#
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dtb: framebuffer@9d400000 (simple-framebuffer): 'fb-panel' does not match any of the regexes: '^[a-zA-Z0-9-]+-supply$', '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/display/simple-framebuffer.yaml#
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dtb: displayport-controller@ae90000 (qcom,sdm845-dp): clocks: [[209, 0], [209, 28], [209, 32], [209, 34], [209, 37]] is too short
from schema $id: http://devicetree.org/schemas/display/msm/dp-controller.yaml#
arch/arm64/boot/dts/qcom/sdm845-lg-judyln.dtb: wifi@18800000 (qcom,wcn3990-wifi): 'qcom,snoc-host-cap-skip-quirk' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/net/wireless/qcom,ath10k.yaml#
^ permalink raw reply [flat|nested] 41+ messages in thread