* [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-12 22:11 ` Dmitry Baryshkov
` (2 more replies)
2026-01-12 20:13 ` [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
` (4 subsequent siblings)
5 siblings, 3 replies; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
Correct msm-id what should contain the version 0x10000 and remove
board-id it is not necessary for the bootloader.
Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index 68a237215bd1..bf03226a6f85 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -18,9 +18,7 @@ / {
compatible = "xiaomi,ginkgo", "qcom,sm6125";
chassis-type = "handset";
- /* required for bootloader to select correct board */
- qcom,msm-id = <QCOM_ID_SM6125>;
- qcom,board-id = <22 0>;
+ qcom,msm-id = <QCOM_ID_SM6125 0x10000>;
chosen {
#address-cells = <2>;
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id
2026-01-12 20:13 ` [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id Barnabás Czémán
@ 2026-01-12 22:11 ` Dmitry Baryshkov
2026-01-13 8:52 ` Konrad Dybcio
2026-01-14 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 43+ messages in thread
From: Dmitry Baryshkov @ 2026-01-12 22:11 UTC (permalink / raw)
To: Barnabás Czémán
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Mon, Jan 12, 2026 at 09:13:24PM +0100, Barnabás Czémán wrote:
> Correct msm-id what should contain the version 0x10000 and remove
> board-id it is not necessary for the bootloader.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id
2026-01-12 20:13 ` [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id Barnabás Czémán
2026-01-12 22:11 ` Dmitry Baryshkov
@ 2026-01-13 8:52 ` Konrad Dybcio
2026-01-14 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 8:52 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> Correct msm-id what should contain the version 0x10000 and remove
> board-id it is not necessary for the bootloader.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id
2026-01-12 20:13 ` [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id Barnabás Czémán
2026-01-12 22:11 ` Dmitry Baryshkov
2026-01-13 8:52 ` Konrad Dybcio
@ 2026-01-14 9:10 ` Krzysztof Kozlowski
2 siblings, 0 replies; 43+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-14 9:10 UTC (permalink / raw)
To: Barnabás Czémán
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Mon, Jan 12, 2026 at 09:13:24PM +0100, Barnabás Czémán wrote:
> Correct msm-id what should contain the version 0x10000 and remove
> board-id it is not necessary for the bootloader.
Separate commits and just pull in my earlier patch adding on top removal
of msm-id:
https://lore.kernel.org/all/20251229142806.241088-2-krzysztof.kozlowski@oss.qualcomm.com/
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 43+ messages in thread
* [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
2026-01-12 20:13 ` [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-13 8:53 ` Konrad Dybcio
2026-01-14 10:15 ` David Heidelberg
2026-01-12 20:13 ` [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
` (3 subsequent siblings)
5 siblings, 2 replies; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
The device was crashing on high memory load because the reserved memory
ranges was wrongly defined. Correct the ranges for avoid the crashes.
Change the ramoops memory range to match with the values from the recovery
to be able to get the results from the device.
Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 44 ++++++++++++++++-------
1 file changed, 32 insertions(+), 12 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index bf03226a6f85..4c548cb5f253 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -13,6 +13,12 @@
#include "sm6125.dtsi"
#include "pm6125.dtsi"
+/delete-node/ &adsp_pil_mem;
+/delete-node/ &cont_splash_mem;
+/delete-node/ &gpu_mem;
+/delete-node/ &ipa_fw_mem;
+/delete-node/ &ipa_gsi_mem;
+
/ {
model = "Xiaomi Redmi Note 8";
compatible = "xiaomi,ginkgo", "qcom,sm6125";
@@ -36,28 +42,42 @@ framebuffer0: framebuffer@5c000000 {
};
reserved-memory {
- debug_mem: debug@ffb00000 {
- reg = <0x0 0xffb00000 0x0 0xc0000>;
+ adsp_pil_mem: adsp_pil_mem@55300000 {
+ reg = <0x0 0x55300000 0x0 0x2200000>;
no-map;
};
- last_log_mem: lastlog@ffbc0000 {
- reg = <0x0 0xffbc0000 0x0 0x80000>;
+ ipa_fw_mem: ipa_fw_mem@57500000 {
+ reg = <0x0 0x57500000 0x0 0x10000>;
no-map;
};
- pstore_mem: ramoops@ffc00000 {
- compatible = "ramoops";
- reg = <0x0 0xffc40000 0x0 0xc0000>;
- record-size = <0x1000>;
- console-size = <0x40000>;
- pmsg-size = <0x20000>;
+ ipa_gsi_mem: ipa_gsi_mem@57510000 {
+ reg = <0x0 0x57510000 0x0 0x5000>;
+ no-map;
};
- cmdline_mem: memory@ffd00000 {
- reg = <0x0 0xffd40000 0x0 0x1000>;
+ gpu_mem: gpu_mem@57515000 {
+ reg = <0x0 0x57515000 0x0 0x2000>;
no-map;
};
+
+ framebuffer@5c000000 {
+ reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
+ no-map;
+ };
+
+ /*
+ * Matching with recovery values
+ * to be able to get the results.
+ */
+ ramoops@61600000 {
+ compatible = "ramoops";
+ reg = <0x0 0x61600000 0x0 0x400000>;
+ record-size = <0x80000>;
+ pmsg-size = <0x200000>;
+ console-size = <0x100000>;
+ };
};
extcon_usb: extcon-usb {
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-12 20:13 ` [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
@ 2026-01-13 8:53 ` Konrad Dybcio
2026-01-13 9:14 ` barnabas.czeman
2026-01-14 10:15 ` David Heidelberg
1 sibling, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 8:53 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> The device was crashing on high memory load because the reserved memory
> ranges was wrongly defined. Correct the ranges for avoid the crashes.
> Change the ramoops memory range to match with the values from the recovery
> to be able to get the results from the device.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 44 ++++++++++++++++-------
> 1 file changed, 32 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index bf03226a6f85..4c548cb5f253 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -13,6 +13,12 @@
> #include "sm6125.dtsi"
> #include "pm6125.dtsi"
>
> +/delete-node/ &adsp_pil_mem;
> +/delete-node/ &cont_splash_mem;
> +/delete-node/ &gpu_mem;
> +/delete-node/ &ipa_fw_mem;
> +/delete-node/ &ipa_gsi_mem;
> +
> / {
> model = "Xiaomi Redmi Note 8";
> compatible = "xiaomi,ginkgo", "qcom,sm6125";
> @@ -36,28 +42,42 @@ framebuffer0: framebuffer@5c000000 {
> };
>
> reserved-memory {
> - debug_mem: debug@ffb00000 {
> - reg = <0x0 0xffb00000 0x0 0xc0000>;
> + adsp_pil_mem: adsp_pil_mem@55300000 {
> + reg = <0x0 0x55300000 0x0 0x2200000>;
> no-map;
> };
>
> - last_log_mem: lastlog@ffbc0000 {
> - reg = <0x0 0xffbc0000 0x0 0x80000>;
> + ipa_fw_mem: ipa_fw_mem@57500000 {
> + reg = <0x0 0x57500000 0x0 0x10000>;
> no-map;
> };
>
> - pstore_mem: ramoops@ffc00000 {
> - compatible = "ramoops";
> - reg = <0x0 0xffc40000 0x0 0xc0000>;
> - record-size = <0x1000>;
> - console-size = <0x40000>;
> - pmsg-size = <0x20000>;
> + ipa_gsi_mem: ipa_gsi_mem@57510000 {
> + reg = <0x0 0x57510000 0x0 0x5000>;
> + no-map;
> };
>
> - cmdline_mem: memory@ffd00000 {
> - reg = <0x0 0xffd40000 0x0 0x1000>;
> + gpu_mem: gpu_mem@57515000 {
> + reg = <0x0 0x57515000 0x0 0x2000>;
> no-map;
> };
> +
> + framebuffer@5c000000 {
> + reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
> + no-map;
> + };
> +
> + /*
> + * Matching with recovery values
> + * to be able to get the results.
> + */
/* This is an unnecessarily
* squashed comment that could
* easily go into a single line
*/
> + ramoops@61600000 {
> + compatible = "ramoops";
> + reg = <0x0 0x61600000 0x0 0x400000>;
> + record-size = <0x80000>;
> + pmsg-size = <0x200000>;
> + console-size = <0x100000>;
Does your recovery image not specify ecc-size?
In my past experience, that led to much better results wrt the data
being actually readable.. you might want to rebuild your recovery (or
at least the dt and repack the boot.img) for that
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-13 8:53 ` Konrad Dybcio
@ 2026-01-13 9:14 ` barnabas.czeman
2026-01-13 9:21 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 9:14 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 09:53, Konrad Dybcio wrote:
> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>> The device was crashing on high memory load because the reserved
>> memory
>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>> Change the ramoops memory range to match with the values from the
>> recovery
>> to be able to get the results from the device.
>>
>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for
>> xiaomi-ginkgo")
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 44
>> ++++++++++++++++-------
>> 1 file changed, 32 insertions(+), 12 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> index bf03226a6f85..4c548cb5f253 100644
>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> @@ -13,6 +13,12 @@
>> #include "sm6125.dtsi"
>> #include "pm6125.dtsi"
>>
>> +/delete-node/ &adsp_pil_mem;
>> +/delete-node/ &cont_splash_mem;
>> +/delete-node/ &gpu_mem;
>> +/delete-node/ &ipa_fw_mem;
>> +/delete-node/ &ipa_gsi_mem;
>> +
>> / {
>> model = "Xiaomi Redmi Note 8";
>> compatible = "xiaomi,ginkgo", "qcom,sm6125";
>> @@ -36,28 +42,42 @@ framebuffer0: framebuffer@5c000000 {
>> };
>>
>> reserved-memory {
>> - debug_mem: debug@ffb00000 {
>> - reg = <0x0 0xffb00000 0x0 0xc0000>;
>> + adsp_pil_mem: adsp_pil_mem@55300000 {
>> + reg = <0x0 0x55300000 0x0 0x2200000>;
>> no-map;
>> };
>>
>> - last_log_mem: lastlog@ffbc0000 {
>> - reg = <0x0 0xffbc0000 0x0 0x80000>;
>> + ipa_fw_mem: ipa_fw_mem@57500000 {
>> + reg = <0x0 0x57500000 0x0 0x10000>;
>> no-map;
>> };
>>
>> - pstore_mem: ramoops@ffc00000 {
>> - compatible = "ramoops";
>> - reg = <0x0 0xffc40000 0x0 0xc0000>;
>> - record-size = <0x1000>;
>> - console-size = <0x40000>;
>> - pmsg-size = <0x20000>;
>> + ipa_gsi_mem: ipa_gsi_mem@57510000 {
>> + reg = <0x0 0x57510000 0x0 0x5000>;
>> + no-map;
>> };
>>
>> - cmdline_mem: memory@ffd00000 {
>> - reg = <0x0 0xffd40000 0x0 0x1000>;
>> + gpu_mem: gpu_mem@57515000 {
>> + reg = <0x0 0x57515000 0x0 0x2000>;
>> no-map;
>> };
>> +
>> + framebuffer@5c000000 {
>> + reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
>> + no-map;
>> + };
>> +
>> + /*
>> + * Matching with recovery values
>> + * to be able to get the results.
>> + */
>
> /* This is an unnecessarily
> * squashed comment that could
> * easily go into a single line
> */
>
>
>> + ramoops@61600000 {
>> + compatible = "ramoops";
>> + reg = <0x0 0x61600000 0x0 0x400000>;
>> + record-size = <0x80000>;
>> + pmsg-size = <0x200000>;
>> + console-size = <0x100000>;
>
> Does your recovery image not specify ecc-size?
No.
>
> In my past experience, that led to much better results wrt the data
> being actually readable.. you might want to rebuild your recovery (or
> at least the dt and repack the boot.img) for that
I would not because i have got good results with this settings and
users could use already built recoveries to get the result.
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-13 9:14 ` barnabas.czeman
@ 2026-01-13 9:21 ` Konrad Dybcio
0 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:21 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/13/26 10:14 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 09:53, Konrad Dybcio wrote:
>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>> The device was crashing on high memory load because the reserved memory
>>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>>> Change the ramoops memory range to match with the values from the recovery
>>> to be able to get the results from the device.
>>>
>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>> ---
>>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 44 ++++++++++++++++-------
>>> 1 file changed, 32 insertions(+), 12 deletions(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> index bf03226a6f85..4c548cb5f253 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> @@ -13,6 +13,12 @@
>>> #include "sm6125.dtsi"
>>> #include "pm6125.dtsi"
>>>
>>> +/delete-node/ &adsp_pil_mem;
>>> +/delete-node/ &cont_splash_mem;
>>> +/delete-node/ &gpu_mem;
>>> +/delete-node/ &ipa_fw_mem;
>>> +/delete-node/ &ipa_gsi_mem;
>>> +
>>> / {
>>> model = "Xiaomi Redmi Note 8";
>>> compatible = "xiaomi,ginkgo", "qcom,sm6125";
>>> @@ -36,28 +42,42 @@ framebuffer0: framebuffer@5c000000 {
>>> };
>>>
>>> reserved-memory {
>>> - debug_mem: debug@ffb00000 {
>>> - reg = <0x0 0xffb00000 0x0 0xc0000>;
>>> + adsp_pil_mem: adsp_pil_mem@55300000 {
>>> + reg = <0x0 0x55300000 0x0 0x2200000>;
>>> no-map;
>>> };
>>>
>>> - last_log_mem: lastlog@ffbc0000 {
>>> - reg = <0x0 0xffbc0000 0x0 0x80000>;
>>> + ipa_fw_mem: ipa_fw_mem@57500000 {
>>> + reg = <0x0 0x57500000 0x0 0x10000>;
>>> no-map;
>>> };
>>>
>>> - pstore_mem: ramoops@ffc00000 {
>>> - compatible = "ramoops";
>>> - reg = <0x0 0xffc40000 0x0 0xc0000>;
>>> - record-size = <0x1000>;
>>> - console-size = <0x40000>;
>>> - pmsg-size = <0x20000>;
>>> + ipa_gsi_mem: ipa_gsi_mem@57510000 {
>>> + reg = <0x0 0x57510000 0x0 0x5000>;
>>> + no-map;
>>> };
>>>
>>> - cmdline_mem: memory@ffd00000 {
>>> - reg = <0x0 0xffd40000 0x0 0x1000>;
>>> + gpu_mem: gpu_mem@57515000 {
>>> + reg = <0x0 0x57515000 0x0 0x2000>;
>>> no-map;
>>> };
>>> +
>>> + framebuffer@5c000000 {
>>> + reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
>>> + no-map;
>>> + };
>>> +
>>> + /*
>>> + * Matching with recovery values
>>> + * to be able to get the results.
>>> + */
>>
>> /* This is an unnecessarily
>> * squashed comment that could
>> * easily go into a single line
>> */
>>
>>
>>> + ramoops@61600000 {
>>> + compatible = "ramoops";
>>> + reg = <0x0 0x61600000 0x0 0x400000>;
>>> + record-size = <0x80000>;
>>> + pmsg-size = <0x200000>;
>>> + console-size = <0x100000>;
>>
>> Does your recovery image not specify ecc-size?
> No.
>>
>> In my past experience, that led to much better results wrt the data
>> being actually readable.. you might want to rebuild your recovery (or
>> at least the dt and repack the boot.img) for that
> I would not because i have got good results with this settings and
> users could use already built recoveries to get the result.
Ok, no worries then
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-12 20:13 ` [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
2026-01-13 8:53 ` Konrad Dybcio
@ 2026-01-14 10:15 ` David Heidelberg
2026-01-14 10:28 ` Konrad Dybcio
1 sibling, 1 reply; 43+ messages in thread
From: David Heidelberg @ 2026-01-14 10:15 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 12/01/2026 21:13, Barnabás Czémán wrote:
> The device was crashing on high memory load because the reserved memory
> ranges was wrongly defined. Correct the ranges for avoid the crashes.
> Change the ramoops memory range to match with the values from the recovery
> to be able to get the results from the device.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 44 ++++++++++++++++-------
> 1 file changed, 32 insertions(+), 12 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index bf03226a6f85..4c548cb5f253 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -13,6 +13,12 @@
> #include "sm6125.dtsi"
> #include "pm6125.dtsi"
>
> +/delete-node/ &adsp_pil_mem;
> +/delete-node/ &cont_splash_mem;
> +/delete-node/ &gpu_mem;
> +/delete-node/ &ipa_fw_mem;
> +/delete-node/ &ipa_gsi_mem;
> +
> / {
> model = "Xiaomi Redmi Note 8";
> compatible = "xiaomi,ginkgo", "qcom,sm6125";
> @@ -36,28 +42,42 @@ framebuffer0: framebuffer@5c000000 {
> };
>
> reserved-memory {
> - debug_mem: debug@ffb00000 {
> - reg = <0x0 0xffb00000 0x0 0xc0000>;
> + adsp_pil_mem: adsp_pil_mem@55300000 {
> + reg = <0x0 0x55300000 0x0 0x2200000>;
> no-map;
> };
>
> - last_log_mem: lastlog@ffbc0000 {
> - reg = <0x0 0xffbc0000 0x0 0x80000>;
> + ipa_fw_mem: ipa_fw_mem@57500000 {
> + reg = <0x0 0x57500000 0x0 0x10000>;
> no-map;
> };
>
> - pstore_mem: ramoops@ffc00000 {
> - compatible = "ramoops";
> - reg = <0x0 0xffc40000 0x0 0xc0000>;
> - record-size = <0x1000>;
> - console-size = <0x40000>;
> - pmsg-size = <0x20000>;
> + ipa_gsi_mem: ipa_gsi_mem@57510000 {
> + reg = <0x0 0x57510000 0x0 0x5000>;
> + no-map;
> };
>
> - cmdline_mem: memory@ffd00000 {
> - reg = <0x0 0xffd40000 0x0 0x1000>;
> + gpu_mem: gpu_mem@57515000 {
> + reg = <0x0 0x57515000 0x0 0x2000>;
> no-map;
> };
> +
> + framebuffer@5c000000 {
> + reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
> + no-map;
> + };
Hello!
I suggest one more nice to have improvement:
you could label framebuffer cont_splash_mem since you already touching
the node and testing the series.
Then in additional commit, you can replace manually defined `reg` in
chosen > framebuffer node with
memory-region = <&cont_splash_mem>;
For example you can look at sdm845-oneplus-common.dtsi
Tell me what u think
David
> +
> + /*
> + * Matching with recovery values
> + * to be able to get the results.
> + */
> + ramoops@61600000 {
> + compatible = "ramoops";
> + reg = <0x0 0x61600000 0x0 0x400000>;
> + record-size = <0x80000>;
> + pmsg-size = <0x200000>;
> + console-size = <0x100000>;
> + };
> };
>
> extcon_usb: extcon-usb {
>
--
David Heidelberg
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-14 10:15 ` David Heidelberg
@ 2026-01-14 10:28 ` Konrad Dybcio
2026-01-14 21:55 ` David Heidelberg
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-14 10:28 UTC (permalink / raw)
To: David Heidelberg, Barnabás Czémán, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/14/26 11:15 AM, David Heidelberg wrote:
> On 12/01/2026 21:13, Barnabás Czémán wrote:
>> The device was crashing on high memory load because the reserved memory
>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>> Change the ramoops memory range to match with the values from the recovery
>> to be able to get the results from the device.
>>
>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
[...]
> Hello!
>
> I suggest one more nice to have improvement:
>
> you could label framebuffer cont_splash_mem since you already touching the node and testing the series.
>
> Then in additional commit, you can replace manually defined `reg` in chosen > framebuffer node with
>
> memory-region = <&cont_splash_mem>;
>
> For example you can look at sdm845-oneplus-common.dtsi
>
> Tell me what u think
If you wanna do that, please call it framebuffer_mem, "cont_splash" is a
Qualcomm-specific name for (roughly) flicker-free bootup
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-14 10:28 ` Konrad Dybcio
@ 2026-01-14 21:55 ` David Heidelberg
2026-01-16 9:52 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: David Heidelberg @ 2026-01-14 21:55 UTC (permalink / raw)
To: Konrad Dybcio, Barnabás Czémán, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 14/01/2026 11:28, Konrad Dybcio wrote:
> On 1/14/26 11:15 AM, David Heidelberg wrote:
>> On 12/01/2026 21:13, Barnabás Czémán wrote:
>>> The device was crashing on high memory load because the reserved memory
>>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>>> Change the ramoops memory range to match with the values from the recovery
>>> to be able to get the results from the device.
>>>
>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>> ---
>
> [...]
>
>> Hello!
>>
>> I suggest one more nice to have improvement:
>>
>> you could label framebuffer cont_splash_mem since you already touching the node and testing the series.
>>
>> Then in additional commit, you can replace manually defined `reg` in chosen > framebuffer node with
>>
>> memory-region = <&cont_splash_mem>;
>>
>> For example you can look at sdm845-oneplus-common.dtsi
>>
>> Tell me what u think
>
> If you wanna do that, please call it framebuffer_mem, "cont_splash" is a
> Qualcomm-specific name for (roughly) flicker-free bootup
I have feeling someone recommended me to stick with cont_splash_mem.
I think, since we'll be doing the mdss reset anyway in sdm845 (which I
used as an example), I can do the rename in our sdm845 too then without
any harm? (no it's not flicker-free takeover :D )
David
>
> Konrad
--
David Heidelberg
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-14 21:55 ` David Heidelberg
@ 2026-01-16 9:52 ` Konrad Dybcio
2026-01-16 11:21 ` David Heidelberg
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-16 9:52 UTC (permalink / raw)
To: David Heidelberg, Barnabás Czémán, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/14/26 10:55 PM, David Heidelberg wrote:
> On 14/01/2026 11:28, Konrad Dybcio wrote:
>> On 1/14/26 11:15 AM, David Heidelberg wrote:
>>> On 12/01/2026 21:13, Barnabás Czémán wrote:
>>>> The device was crashing on high memory load because the reserved memory
>>>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>>>> Change the ramoops memory range to match with the values from the recovery
>>>> to be able to get the results from the device.
>>>>
>>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>> ---
>>
>> [...]
>>
>>> Hello!
>>>
>>> I suggest one more nice to have improvement:
>>>
>>> you could label framebuffer cont_splash_mem since you already touching the node and testing the series.
>>>
>>> Then in additional commit, you can replace manually defined `reg` in chosen > framebuffer node with
>>>
>>> memory-region = <&cont_splash_mem>;
>>>
>>> For example you can look at sdm845-oneplus-common.dtsi
>>>
>>> Tell me what u think
>>
>> If you wanna do that, please call it framebuffer_mem, "cont_splash" is a
>> Qualcomm-specific name for (roughly) flicker-free bootup
>
> I have feeling someone recommended me to stick with cont_splash_mem.
>
> I think, since we'll be doing the mdss reset anyway in sdm845 (which I used as an example), I can do the rename in our sdm845 too then without any harm? (no it's not flicker-free takeover :D )
It's not flicker-free because the OS must cooperate in that process,
whereas we currently reset and re-initialize the entire display subsystem
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-16 9:52 ` Konrad Dybcio
@ 2026-01-16 11:21 ` David Heidelberg
2026-01-16 11:30 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: David Heidelberg @ 2026-01-16 11:21 UTC (permalink / raw)
To: Konrad Dybcio, Barnabás Czémán, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 16/01/2026 10:52, Konrad Dybcio wrote:
> On 1/14/26 10:55 PM, David Heidelberg wrote:
>> On 14/01/2026 11:28, Konrad Dybcio wrote:
>>> On 1/14/26 11:15 AM, David Heidelberg wrote:
>>>> On 12/01/2026 21:13, Barnabás Czémán wrote:
>>>>> The device was crashing on high memory load because the reserved memory
>>>>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>>>>> Change the ramoops memory range to match with the values from the recovery
>>>>> to be able to get the results from the device.
>>>>>
>>>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>>> ---
>>>
>>> [...]
>>>
>>>> Hello!
>>>>
>>>> I suggest one more nice to have improvement:
>>>>
>>>> you could label framebuffer cont_splash_mem since you already touching the node and testing the series.
>>>>
>>>> Then in additional commit, you can replace manually defined `reg` in chosen > framebuffer node with
>>>>
>>>> memory-region = <&cont_splash_mem>;
>>>>
>>>> For example you can look at sdm845-oneplus-common.dtsi
>>>>
>>>> Tell me what u think
>>>
>>> If you wanna do that, please call it framebuffer_mem, "cont_splash" is a
>>> Qualcomm-specific name for (roughly) flicker-free bootup
>>
>> I have feeling someone recommended me to stick with cont_splash_mem.
>>
>> I think, since we'll be doing the mdss reset anyway in sdm845 (which I used as an example), I can do the rename in our sdm845 too then without any harm? (no it's not flicker-free takeover :D )
>
> It's not flicker-free because the OS must cooperate in that process,
> whereas we currently reset and re-initialize the entire display subsystem
Sure.
Previously I was thinking, that after doing proper panel driver with
proper initialization sequences etc. etc., we could have device-tree
property such as "linux,takeover-from-bootloader", where we could skip
mdss reset, panel reset and just continue from the point what bootloader
set (for devices where bootloader does the right job).
David
>
> Konrad
--
David Heidelberg
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-16 11:21 ` David Heidelberg
@ 2026-01-16 11:30 ` Konrad Dybcio
0 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-16 11:30 UTC (permalink / raw)
To: David Heidelberg, Barnabás Czémán, Bjorn Andersson,
Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/16/26 12:21 PM, David Heidelberg wrote:
> On 16/01/2026 10:52, Konrad Dybcio wrote:
>> On 1/14/26 10:55 PM, David Heidelberg wrote:
>>> On 14/01/2026 11:28, Konrad Dybcio wrote:
>>>> On 1/14/26 11:15 AM, David Heidelberg wrote:
>>>>> On 12/01/2026 21:13, Barnabás Czémán wrote:
>>>>>> The device was crashing on high memory load because the reserved memory
>>>>>> ranges was wrongly defined. Correct the ranges for avoid the crashes.
>>>>>> Change the ramoops memory range to match with the values from the recovery
>>>>>> to be able to get the results from the device.
>>>>>>
>>>>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>>>> ---
>>>>
>>>> [...]
>>>>
>>>>> Hello!
>>>>>
>>>>> I suggest one more nice to have improvement:
>>>>>
>>>>> you could label framebuffer cont_splash_mem since you already touching the node and testing the series.
>>>>>
>>>>> Then in additional commit, you can replace manually defined `reg` in chosen > framebuffer node with
>>>>>
>>>>> memory-region = <&cont_splash_mem>;
>>>>>
>>>>> For example you can look at sdm845-oneplus-common.dtsi
>>>>>
>>>>> Tell me what u think
>>>>
>>>> If you wanna do that, please call it framebuffer_mem, "cont_splash" is a
>>>> Qualcomm-specific name for (roughly) flicker-free bootup
>>>
>>> I have feeling someone recommended me to stick with cont_splash_mem.
>>>
>>> I think, since we'll be doing the mdss reset anyway in sdm845 (which I used as an example), I can do the rename in our sdm845 too then without any harm? (no it's not flicker-free takeover :D )
>>
>> It's not flicker-free because the OS must cooperate in that process,
>> whereas we currently reset and re-initialize the entire display subsystem
>
> Sure.
>
> Previously I was thinking, that after doing proper panel driver with proper initialization sequences etc. etc., we could have device-tree property such as "linux,takeover-from-bootloader", where we could skip mdss reset, panel reset and just continue from the point what bootloader set (for devices where bootloader does the right job).
I don't think there's a need for a separate property. Once MDSS is
powered on, various registers could be read back and the state could be
largely inferred from there.
It just comes with an infinite amount of edge cases and it's not top
priority for now, I don't think
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
2026-01-12 20:13 ` [PATCH 1/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix msm-id and remove board-id Barnabás Czémán
2026-01-12 20:13 ` [PATCH 2/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-12 22:12 ` Dmitry Baryshkov
` (2 more replies)
2026-01-12 20:13 ` [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges Barnabás Czémán
` (2 subsequent siblings)
5 siblings, 3 replies; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
GPIO pin 102 is related to DisplayPort what is not supported
by this device and it is also disabled at downstream,
remove the unnecessary extcon-usb node.
Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index 4c548cb5f253..666daf4a9fdd 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -80,11 +80,6 @@ ramoops@61600000 {
};
};
- extcon_usb: extcon-usb {
- compatible = "linux,extcon-usb-gpio";
- id-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
- };
-
gpio-keys {
compatible = "gpio-keys";
@@ -307,7 +302,3 @@ &tlmm {
&usb3 {
status = "okay";
};
-
-&usb3_dwc3 {
- extcon = <&extcon_usb>;
-};
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-12 20:13 ` [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
@ 2026-01-12 22:12 ` Dmitry Baryshkov
2026-01-13 8:59 ` Konrad Dybcio
2026-01-13 9:00 ` Konrad Dybcio
2 siblings, 0 replies; 43+ messages in thread
From: Dmitry Baryshkov @ 2026-01-12 22:12 UTC (permalink / raw)
To: Barnabás Czémán
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Mon, Jan 12, 2026 at 09:13:26PM +0100, Barnabás Czémán wrote:
> GPIO pin 102 is related to DisplayPort what is not supported
> by this device and it is also disabled at downstream,
> remove the unnecessary extcon-usb node.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 9 ---------
> 1 file changed, 9 deletions(-)
Thanks!
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-12 20:13 ` [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
2026-01-12 22:12 ` Dmitry Baryshkov
@ 2026-01-13 8:59 ` Konrad Dybcio
2026-01-13 9:00 ` Konrad Dybcio
2 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 8:59 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> GPIO pin 102 is related to DisplayPort what is not supported
> by this device and it is also disabled at downstream,
> remove the unnecessary extcon-usb node.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index 4c548cb5f253..666daf4a9fdd 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -80,11 +80,6 @@ ramoops@61600000 {
> };
> };
>
> - extcon_usb: extcon-usb {
> - compatible = "linux,extcon-usb-gpio";
> - id-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
> - };
FWIW
trinket-sde.dtsi (downstream for this SoC):
qcom,usbplug-cc-gpio = <&tlmm 102 0>;
trinket-pinctrl.dtsi:
sde_dp_usbplug_cc_active: sde_dp_usbplug_cc_active {
mux {
pins = "gpio102";
function = "gpio"; <---
};
config {
pins = "gpio102";
bias-disable;
drive-strength = <16>;
};
};
reading the blurb in downstream's gpu/drm/msm/dp/dp_parser.c this
seems to be the select pin of a GPIO Type-C mux?
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-12 20:13 ` [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
2026-01-12 22:12 ` Dmitry Baryshkov
2026-01-13 8:59 ` Konrad Dybcio
@ 2026-01-13 9:00 ` Konrad Dybcio
2026-01-13 9:11 ` barnabas.czeman
2 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:00 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> GPIO pin 102 is related to DisplayPort what is not supported
> by this device and it is also disabled at downstream,
> remove the unnecessary extcon-usb node.
If you put the phone in fastboot, and connect a USB3-capable type-C
cable (making sure that it's not a fake one, usb3 ones are noticeably
thicker), does it show up as a SuperSpeed device?
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-13 9:00 ` Konrad Dybcio
@ 2026-01-13 9:11 ` barnabas.czeman
2026-01-13 9:13 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 9:11 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 10:00, Konrad Dybcio wrote:
> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>> GPIO pin 102 is related to DisplayPort what is not supported
>> by this device and it is also disabled at downstream,
>> remove the unnecessary extcon-usb node.
>
> If you put the phone in fastboot, and connect a USB3-capable type-C
> cable (making sure that it's not a fake one, usb3 ones are noticeably
> thicker), does it show up as a SuperSpeed device?
No, only high speed is supported, and qmp_phy was changed to nop_phy at
downstream.
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/arch/arm64/boot/dts/qcom/trinket-usb.dtsi#L99
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/arch/arm64/boot/dts/qcom/trinket-usb.dtsi#L89
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-13 9:11 ` barnabas.czeman
@ 2026-01-13 9:13 ` Konrad Dybcio
0 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:13 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/13/26 10:11 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 10:00, Konrad Dybcio wrote:
>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>> GPIO pin 102 is related to DisplayPort what is not supported
>>> by this device and it is also disabled at downstream,
>>> remove the unnecessary extcon-usb node.
>>
>> If you put the phone in fastboot, and connect a USB3-capable type-C
>> cable (making sure that it's not a fake one, usb3 ones are noticeably
>> thicker), does it show up as a SuperSpeed device?
> No, only high speed is supported, and qmp_phy was changed to nop_phy at downstream.
> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/arch/arm64/boot/dts/qcom/trinket-usb.dtsi#L99
> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/arch/arm64/boot/dts/qcom/trinket-usb.dtsi#L89
Alright, thanks
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
` (2 preceding siblings ...)
2026-01-12 20:13 ` [PATCH 3/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-13 9:01 ` Konrad Dybcio
2026-01-12 20:13 ` [PATCH 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T Barnabás Czémán
2026-01-12 20:13 ` [PATCH 6/6] arm64: dts: qcom: Add " Barnabás Czémán
5 siblings, 1 reply; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
The device was crashing on boot because the reserved gpio ranges
was wrongly defined. Correct the ranges for avoid pinctrl crashing.
Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index 666daf4a9fdd..163ecdc7fd6c 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -296,7 +296,7 @@ &sdhc_2 {
};
&tlmm {
- gpio-reserved-ranges = <22 2>, <28 6>;
+ gpio-reserved-ranges = <0 4>, <30 4>;
};
&usb3 {
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-12 20:13 ` [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges Barnabás Czémán
@ 2026-01-13 9:01 ` Konrad Dybcio
2026-01-13 9:08 ` barnabas.czeman
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:01 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> The device was crashing on boot because the reserved gpio ranges
> was wrongly defined. Correct the ranges for avoid pinctrl crashing.
>
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
That's odd.. were you able to confirm that these values are alright for
both the Note 8 and the 8T?
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index 666daf4a9fdd..163ecdc7fd6c 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -296,7 +296,7 @@ &sdhc_2 {
> };
>
> &tlmm {
> - gpio-reserved-ranges = <22 2>, <28 6>;
> + gpio-reserved-ranges = <0 4>, <30 4>;
Any chance you know/could deduce what they're connected to and describe
it, like in x1-crd.dtsi?
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-13 9:01 ` Konrad Dybcio
@ 2026-01-13 9:08 ` barnabas.czeman
2026-01-13 9:12 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 9:08 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 10:01, Konrad Dybcio wrote:
> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>> The device was crashing on boot because the reserved gpio ranges
>> was wrongly defined. Correct the ranges for avoid pinctrl crashing.
>>
>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for
>> xiaomi-ginkgo")
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>
> That's odd.. were you able to confirm that these values are alright for
> both the Note 8 and the 8T?
Yes, it was tested on both devices. The original devicetree was never
boot.
>
>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> index 666daf4a9fdd..163ecdc7fd6c 100644
>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> @@ -296,7 +296,7 @@ &sdhc_2 {
>> };
>>
>> &tlmm {
>> - gpio-reserved-ranges = <22 2>, <28 6>;
>> + gpio-reserved-ranges = <0 4>, <30 4>;
>
> Any chance you know/could deduce what they're connected to and describe
> it, like in x1-crd.dtsi?
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/willow-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L605
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L610
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-13 9:08 ` barnabas.czeman
@ 2026-01-13 9:12 ` Konrad Dybcio
2026-01-13 9:25 ` barnabas.czeman
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:12 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/13/26 10:08 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 10:01, Konrad Dybcio wrote:
>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>> The device was crashing on boot because the reserved gpio ranges
>>> was wrongly defined. Correct the ranges for avoid pinctrl crashing.
>>>
>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>> ---
>>
>> That's odd.. were you able to confirm that these values are alright for
>> both the Note 8 and the 8T?
> Yes, it was tested on both devices. The original devicetree was never boot.
Fun..
>>
>>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> index 666daf4a9fdd..163ecdc7fd6c 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> @@ -296,7 +296,7 @@ &sdhc_2 {
>>> };
>>>
>>> &tlmm {
>>> - gpio-reserved-ranges = <22 2>, <28 6>;
>>> + gpio-reserved-ranges = <0 4>, <30 4>;
>>
>> Any chance you know/could deduce what they're connected to and describe
>> it, like in x1-crd.dtsi?
> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/willow-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L605
> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L610
GPIO0-3 sounds like QUP0 and GPIO30-33 sounds like QUP6
My guess would be one goes to a fingerprint scanner and one goes to
NFC eSE (or N/C for the device without NFC)
Could you scan the downstream devicetree for signals of that?
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-13 9:12 ` Konrad Dybcio
@ 2026-01-13 9:25 ` barnabas.czeman
2026-01-13 9:45 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 9:25 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 10:12, Konrad Dybcio wrote:
> On 1/13/26 10:08 AM, barnabas.czeman@mainlining.org wrote:
>> On 2026-01-13 10:01, Konrad Dybcio wrote:
>>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>>> The device was crashing on boot because the reserved gpio ranges
>>>> was wrongly defined. Correct the ranges for avoid pinctrl crashing.
>>>>
>>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for
>>>> xiaomi-ginkgo")
>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>> ---
>>>
>>> That's odd.. were you able to confirm that these values are alright
>>> for
>>> both the Note 8 and the 8T?
>> Yes, it was tested on both devices. The original devicetree was never
>> boot.
>
> Fun..
>
>>>
>>>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> index 666daf4a9fdd..163ecdc7fd6c 100644
>>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> @@ -296,7 +296,7 @@ &sdhc_2 {
>>>> };
>>>>
>>>> &tlmm {
>>>> - gpio-reserved-ranges = <22 2>, <28 6>;
>>>> + gpio-reserved-ranges = <0 4>, <30 4>;
>>>
>>> Any chance you know/could deduce what they're connected to and
>>> describe
>>> it, like in x1-crd.dtsi?
>> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/willow-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L605
>> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L610
>
> GPIO0-3 sounds like QUP0 and GPIO30-33 sounds like QUP6
>
> My guess would be one goes to a fingerprint scanner and one goes to
> NFC eSE (or N/C for the device without NFC)
>
> Could you scan the downstream devicetree for signals of that?
NFC is using gpio83, gpio84, gpio85 and gpio95.
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-13 9:25 ` barnabas.czeman
@ 2026-01-13 9:45 ` Konrad Dybcio
2026-01-13 14:13 ` Biswapriyo Nath
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:45 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/13/26 10:25 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 10:12, Konrad Dybcio wrote:
>> On 1/13/26 10:08 AM, barnabas.czeman@mainlining.org wrote:
>>> On 2026-01-13 10:01, Konrad Dybcio wrote:
>>>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>>>> The device was crashing on boot because the reserved gpio ranges
>>>>> was wrongly defined. Correct the ranges for avoid pinctrl crashing.
>>>>>
>>>>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
>>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>>> ---
>>>>
>>>> That's odd.. were you able to confirm that these values are alright for
>>>> both the Note 8 and the 8T?
>>> Yes, it was tested on both devices. The original devicetree was never boot.
>>
>> Fun..
>>
>>>>
>>>>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 2 +-
>>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>>
>>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> index 666daf4a9fdd..163ecdc7fd6c 100644
>>>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> @@ -296,7 +296,7 @@ &sdhc_2 {
>>>>> };
>>>>>
>>>>> &tlmm {
>>>>> - gpio-reserved-ranges = <22 2>, <28 6>;
>>>>> + gpio-reserved-ranges = <0 4>, <30 4>;
>>>>
>>>> Any chance you know/could deduce what they're connected to and describe
>>>> it, like in x1-crd.dtsi?
>>> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/willow-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L605
>>> https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/ginkgo-p-oss/drivers/pinctrl/qcom/pinctrl-msm.c#L610
>>
>> GPIO0-3 sounds like QUP0 and GPIO30-33 sounds like QUP6
>>
>> My guess would be one goes to a fingerprint scanner and one goes to
>> NFC eSE (or N/C for the device without NFC)
>>
>> Could you scan the downstream devicetree for signals of that?
> NFC is using gpio83, gpio84, gpio85 and gpio95.
I was referring to the NFC eSE (embedded Secure Element) which usually
has a separate connection to the SoC
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-13 9:45 ` Konrad Dybcio
@ 2026-01-13 14:13 ` Biswapriyo Nath
0 siblings, 0 replies; 43+ messages in thread
From: Biswapriyo Nath @ 2026-01-13 14:13 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Biswapriyo Nath, barnabas.czeman, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, linux-arm-msm,
devicetree, linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Tue, 13 Jan 2026 10:45:02 +0100 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote:
> I was referring to the NFC eSE (embedded Secure Element) which usually
> has a separate connection to the SoC
Yes, gpio 0-4 are connected to NFC eSE and gpio 30-34 are for
fingerprint scanner. Here is the list of reserved gpio and their
functions according to the device's schematic.
0 - ESE_SPI_MISO
1 - ESE_SPI_MOSI
2 - ESE_SPI_SCLK
3 - ESE_SPI_CS_N
30 - FP_SPI_MISO
31 - FP_SPI_MOSI
32 - FP_SPI_SCLK
33 - FP_SPI_CS_N
Though Redmi Note 8 does not have NFC, kernel crashes if 0-4 gpios
are not reserved.
Tested-by: Biswapriyo Nath <nathbappai@gmail.com>
Thanks.
^ permalink raw reply [flat|nested] 43+ messages in thread
* [PATCH 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
` (3 preceding siblings ...)
2026-01-12 20:13 ` [PATCH 4/6] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-15 17:37 ` Rob Herring (Arm)
2026-01-12 20:13 ` [PATCH 6/6] arm64: dts: qcom: Add " Barnabás Czémán
5 siblings, 1 reply; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
Document the Xiaomi Redmi Note 8 (willow).
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml
index d48c625d3fc4..f76cc92d5530 100644
--- a/Documentation/devicetree/bindings/arm/qcom.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom.yaml
@@ -966,6 +966,7 @@ properties:
- sony,pdx201
- xiaomi,ginkgo
- xiaomi,laurel-sprout
+ - xiaomi,willow
- const: qcom,sm6125
- items:
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T
2026-01-12 20:13 ` [PATCH 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T Barnabás Czémán
@ 2026-01-15 17:37 ` Rob Herring (Arm)
0 siblings, 0 replies; 43+ messages in thread
From: Rob Herring (Arm) @ 2026-01-15 17:37 UTC (permalink / raw)
To: Barnabás Czémán
Cc: Guilherme G. Piccoli, phone-devel, Konrad Dybcio, Kees Cook,
devicetree, Bjorn Andersson, Krzysztof Kozlowski, Biswapriyo Nath,
linux-kernel, linux-hardening, linux, ~postmarketos/upstreaming,
Conor Dooley, linux-arm-msm, Tony Luck, Gabriel Gonzales
On Mon, 12 Jan 2026 21:13:28 +0100, Barnabás Czémán wrote:
> Document the Xiaomi Redmi Note 8 (willow).
>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 43+ messages in thread
* [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-12 20:13 [PATCH 0/6] Initial Redmi Note 8T support and more Barnabás Czémán
` (4 preceding siblings ...)
2026-01-12 20:13 ` [PATCH 5/6] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T Barnabás Czémán
@ 2026-01-12 20:13 ` Barnabás Czémán
2026-01-12 22:15 ` Dmitry Baryshkov
2026-01-13 9:04 ` Konrad Dybcio
5 siblings, 2 replies; 43+ messages in thread
From: Barnabás Czémán @ 2026-01-12 20:13 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux,
Barnabás Czémán
Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
the only difference is willow have NFC.
Make a common base from ginkgo devicetree for both device.
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/Makefile | 1 +
.../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302 +++++++++++++++++++++
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296 +-------------------
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
4 files changed, 318 insertions(+), 294 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 0ccd6ec16dfb..b28ad0e57276 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -281,6 +281,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm6115p-lenovo-j606f.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6125-sony-xperia-seine-pdx201.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-ginkgo.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-laurel-sprout.dtb
+dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-willow.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6350-sony-xperia-lena-pdx213.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6375-sony-xperia-murray-pdx225.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-curtana.dtb
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi
new file mode 100644
index 000000000000..efe292215f7d
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi
@@ -0,0 +1,302 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/arm/qcom,ids.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/input/gpio-keys.h>
+#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
+#include "sm6125.dtsi"
+#include "pm6125.dtsi"
+
+/delete-node/ &adsp_pil_mem;
+/delete-node/ &cont_splash_mem;
+/delete-node/ &gpu_mem;
+/delete-node/ &ipa_fw_mem;
+/delete-node/ &ipa_gsi_mem;
+
+/ {
+ chassis-type = "handset";
+
+ qcom,msm-id = <QCOM_ID_SM6125 0x10000>;
+
+ chosen {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ framebuffer0: framebuffer@5c000000 {
+ compatible = "simple-framebuffer";
+ reg = <0 0x5c000000 0 (2340 * 1080 * 4)>;
+ width = <1080>;
+ height = <2340>;
+ stride = <(1080 * 4)>;
+ format = "a8r8g8b8";
+ };
+ };
+
+ reserved-memory {
+ adsp_pil_mem: adsp_pil_mem@55300000 {
+ reg = <0x0 0x55300000 0x0 0x2200000>;
+ no-map;
+ };
+
+ ipa_fw_mem: ipa_fw_mem@57500000 {
+ reg = <0x0 0x57500000 0x0 0x10000>;
+ no-map;
+ };
+
+ ipa_gsi_mem: ipa_gsi_mem@57510000 {
+ reg = <0x0 0x57510000 0x0 0x5000>;
+ no-map;
+ };
+
+ gpu_mem: gpu_mem@57515000 {
+ reg = <0x0 0x57515000 0x0 0x2000>;
+ no-map;
+ };
+
+ framebuffer@5c000000 {
+ reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
+ no-map;
+ };
+
+ /*
+ * Matching with recovery values
+ * to be able to get the results.
+ */
+ ramoops@61600000 {
+ compatible = "ramoops";
+ reg = <0x0 0x61600000 0x0 0x400000>;
+ record-size = <0x80000>;
+ pmsg-size = <0x200000>;
+ console-size = <0x100000>;
+ };
+ };
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ pinctrl-0 = <&vol_up_n>;
+ pinctrl-names = "default";
+
+ key-volume-up {
+ label = "Volume Up";
+ gpios = <&pm6125_gpios 6 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_VOLUMEUP>;
+ debounce-interval = <15>;
+ linux,can-disable;
+ wakeup-source;
+ };
+ };
+};
+
+&pm6125_gpios {
+ vol_up_n: vol-up-n-state {
+ pins = "gpio6";
+ function = "normal";
+ power-source = <1>;
+ bias-pull-up;
+ input-enable;
+ };
+};
+
+&hsusb_phy1 {
+ vdd-supply = <&vreg_l7a>;
+ vdda-pll-supply = <&vreg_l10a>;
+ vdda-phy-dpdm-supply = <&vreg_l15a>;
+ status = "okay";
+};
+
+&pon_pwrkey {
+ status = "okay";
+};
+
+&pon_resin {
+ linux,code = <KEY_VOLUMEDOWN>;
+ status = "okay";
+};
+
+&rpm_requests {
+ regulators-0 {
+ compatible = "qcom,rpm-pm6125-regulators";
+
+ vreg_s6a: s6 {
+ regulator-min-microvolt = <936000>;
+ regulator-max-microvolt = <1422000>;
+ };
+
+ vreg_l1a: l1 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1256000>;
+ };
+
+ vreg_l2a: l2 {
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1056000>;
+ };
+
+ vreg_l3a: l3 {
+ regulator-min-microvolt = <1000000>;
+ regulator-max-microvolt = <1064000>;
+ };
+
+ vreg_l4a: l4 {
+ regulator-min-microvolt = <872000>;
+ regulator-max-microvolt = <976000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l5a: l5 {
+ regulator-min-microvolt = <1648000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l6a: l6 {
+ regulator-min-microvolt = <576000>;
+ regulator-max-microvolt = <656000>;
+ };
+
+ vreg_l7a: l7 {
+ regulator-min-microvolt = <872000>;
+ regulator-max-microvolt = <976000>;
+ };
+
+ vreg_l8a: l8 {
+ regulator-min-microvolt = <400000>;
+ regulator-max-microvolt = <728000>;
+ };
+
+ vreg_l9a: l9 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1896000>;
+ };
+
+ vreg_l10a: l10 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1896000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l11a: l11 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1952000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l12a: l12 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1996000>;
+ };
+
+ vreg_l13a: l13 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1832000>;
+ };
+
+ vreg_l14a: l14 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1904000>;
+ };
+
+ vreg_l15a: l15 {
+ regulator-min-microvolt = <3104000>;
+ regulator-max-microvolt = <3232000>;
+ };
+
+ vreg_l16a: l16 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1904000>;
+ };
+
+ vreg_l17a: l17 {
+ regulator-min-microvolt = <1248000>;
+ regulator-max-microvolt = <1304000>;
+ };
+
+ vreg_l18a: l18 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1264000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l19a: l19 {
+ regulator-min-microvolt = <1648000>;
+ regulator-max-microvolt = <2952000>;
+ };
+
+ vreg_l20a: l20 {
+ regulator-min-microvolt = <1648000>;
+ regulator-max-microvolt = <2952000>;
+ };
+
+ vreg_l21a: l21 {
+ regulator-min-microvolt = <2600000>;
+ regulator-max-microvolt = <2856000>;
+ };
+
+ vreg_l22a: l22 {
+ regulator-min-microvolt = <2944000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-allow-set-load;
+ };
+
+ vreg_l23a: l23 {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3400000>;
+ };
+
+ vreg_l24a: l24 {
+ regulator-min-microvolt = <2944000>;
+ regulator-max-microvolt = <2950000>;
+ regulator-allow-set-load;
+ };
+
+ };
+};
+
+&sdc2_off_state {
+ sd-cd-pins {
+ pins = "gpio98";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+};
+
+&sdc2_on_state {
+ sd-cd-pins {
+ pins = "gpio98";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+};
+
+&sdhc_1 {
+ vmmc-supply = <&vreg_l24a>;
+ vqmmc-supply = <&vreg_l11a>;
+ status = "okay";
+};
+
+&sdhc_2 {
+ cd-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
+ vmmc-supply = <&vreg_l22a>;
+ vqmmc-supply = <&vreg_l5a>;
+ no-sdio;
+ no-mmc;
+ status = "okay";
+};
+
+&tlmm {
+ gpio-reserved-ranges = <0 4>, <30 4>;
+};
+
+&usb3 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index 163ecdc7fd6c..70be19357d11 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -1,304 +1,12 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
- * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
+ * Copyright (c) 2026, Barnabas Czeman
*/
-
/dts-v1/;
-#include <dt-bindings/arm/qcom,ids.h>
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/input/input.h>
-#include <dt-bindings/input/gpio-keys.h>
-#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
-#include "sm6125.dtsi"
-#include "pm6125.dtsi"
-
-/delete-node/ &adsp_pil_mem;
-/delete-node/ &cont_splash_mem;
-/delete-node/ &gpu_mem;
-/delete-node/ &ipa_fw_mem;
-/delete-node/ &ipa_gsi_mem;
+#include "sm6125-xiaomi-ginkgo-common.dtsi"
/ {
model = "Xiaomi Redmi Note 8";
compatible = "xiaomi,ginkgo", "qcom,sm6125";
- chassis-type = "handset";
-
- qcom,msm-id = <QCOM_ID_SM6125 0x10000>;
-
- chosen {
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
-
- framebuffer0: framebuffer@5c000000 {
- compatible = "simple-framebuffer";
- reg = <0 0x5c000000 0 (2340 * 1080 * 4)>;
- width = <1080>;
- height = <2340>;
- stride = <(1080 * 4)>;
- format = "a8r8g8b8";
- };
- };
-
- reserved-memory {
- adsp_pil_mem: adsp_pil_mem@55300000 {
- reg = <0x0 0x55300000 0x0 0x2200000>;
- no-map;
- };
-
- ipa_fw_mem: ipa_fw_mem@57500000 {
- reg = <0x0 0x57500000 0x0 0x10000>;
- no-map;
- };
-
- ipa_gsi_mem: ipa_gsi_mem@57510000 {
- reg = <0x0 0x57510000 0x0 0x5000>;
- no-map;
- };
-
- gpu_mem: gpu_mem@57515000 {
- reg = <0x0 0x57515000 0x0 0x2000>;
- no-map;
- };
-
- framebuffer@5c000000 {
- reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
- no-map;
- };
-
- /*
- * Matching with recovery values
- * to be able to get the results.
- */
- ramoops@61600000 {
- compatible = "ramoops";
- reg = <0x0 0x61600000 0x0 0x400000>;
- record-size = <0x80000>;
- pmsg-size = <0x200000>;
- console-size = <0x100000>;
- };
- };
-
- gpio-keys {
- compatible = "gpio-keys";
-
- pinctrl-0 = <&vol_up_n>;
- pinctrl-names = "default";
-
- key-volume-up {
- label = "Volume Up";
- gpios = <&pm6125_gpios 6 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_VOLUMEUP>;
- debounce-interval = <15>;
- linux,can-disable;
- wakeup-source;
- };
- };
-};
-
-&pm6125_gpios {
- vol_up_n: vol-up-n-state {
- pins = "gpio6";
- function = "normal";
- power-source = <1>;
- bias-pull-up;
- input-enable;
- };
-};
-
-&hsusb_phy1 {
- vdd-supply = <&vreg_l7a>;
- vdda-pll-supply = <&vreg_l10a>;
- vdda-phy-dpdm-supply = <&vreg_l15a>;
- status = "okay";
-};
-
-&pon_pwrkey {
- status = "okay";
-};
-
-&pon_resin {
- linux,code = <KEY_VOLUMEDOWN>;
- status = "okay";
-};
-
-&rpm_requests {
- regulators-0 {
- compatible = "qcom,rpm-pm6125-regulators";
-
- vreg_s6a: s6 {
- regulator-min-microvolt = <936000>;
- regulator-max-microvolt = <1422000>;
- };
-
- vreg_l1a: l1 {
- regulator-min-microvolt = <1200000>;
- regulator-max-microvolt = <1256000>;
- };
-
- vreg_l2a: l2 {
- regulator-min-microvolt = <1000000>;
- regulator-max-microvolt = <1056000>;
- };
-
- vreg_l3a: l3 {
- regulator-min-microvolt = <1000000>;
- regulator-max-microvolt = <1064000>;
- };
-
- vreg_l4a: l4 {
- regulator-min-microvolt = <872000>;
- regulator-max-microvolt = <976000>;
- regulator-allow-set-load;
- };
-
- vreg_l5a: l5 {
- regulator-min-microvolt = <1648000>;
- regulator-max-microvolt = <2950000>;
- regulator-allow-set-load;
- };
-
- vreg_l6a: l6 {
- regulator-min-microvolt = <576000>;
- regulator-max-microvolt = <656000>;
- };
-
- vreg_l7a: l7 {
- regulator-min-microvolt = <872000>;
- regulator-max-microvolt = <976000>;
- };
-
- vreg_l8a: l8 {
- regulator-min-microvolt = <400000>;
- regulator-max-microvolt = <728000>;
- };
-
- vreg_l9a: l9 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1896000>;
- };
-
- vreg_l10a: l10 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1896000>;
- regulator-allow-set-load;
- };
-
- vreg_l11a: l11 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1952000>;
- regulator-allow-set-load;
- };
-
- vreg_l12a: l12 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1996000>;
- };
-
- vreg_l13a: l13 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1832000>;
- };
-
- vreg_l14a: l14 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1904000>;
- };
-
- vreg_l15a: l15 {
- regulator-min-microvolt = <3104000>;
- regulator-max-microvolt = <3232000>;
- };
-
- vreg_l16a: l16 {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1904000>;
- };
-
- vreg_l17a: l17 {
- regulator-min-microvolt = <1248000>;
- regulator-max-microvolt = <1304000>;
- };
-
- vreg_l18a: l18 {
- regulator-min-microvolt = <1200000>;
- regulator-max-microvolt = <1264000>;
- regulator-allow-set-load;
- };
-
- vreg_l19a: l19 {
- regulator-min-microvolt = <1648000>;
- regulator-max-microvolt = <2952000>;
- };
-
- vreg_l20a: l20 {
- regulator-min-microvolt = <1648000>;
- regulator-max-microvolt = <2952000>;
- };
-
- vreg_l21a: l21 {
- regulator-min-microvolt = <2600000>;
- regulator-max-microvolt = <2856000>;
- };
-
- vreg_l22a: l22 {
- regulator-min-microvolt = <2944000>;
- regulator-max-microvolt = <2950000>;
- regulator-allow-set-load;
- };
-
- vreg_l23a: l23 {
- regulator-min-microvolt = <3000000>;
- regulator-max-microvolt = <3400000>;
- };
-
- vreg_l24a: l24 {
- regulator-min-microvolt = <2944000>;
- regulator-max-microvolt = <2950000>;
- regulator-allow-set-load;
- };
-
- };
-};
-
-&sdc2_off_state {
- sd-cd-pins {
- pins = "gpio98";
- function = "gpio";
- drive-strength = <2>;
- bias-disable;
- };
-};
-
-&sdc2_on_state {
- sd-cd-pins {
- pins = "gpio98";
- function = "gpio";
- drive-strength = <2>;
- bias-pull-up;
- };
-};
-
-&sdhc_1 {
- vmmc-supply = <&vreg_l24a>;
- vqmmc-supply = <&vreg_l11a>;
- status = "okay";
-};
-
-&sdhc_2 {
- cd-gpios = <&tlmm 98 GPIO_ACTIVE_HIGH>;
- vmmc-supply = <&vreg_l22a>;
- vqmmc-supply = <&vreg_l5a>;
- no-sdio;
- no-mmc;
- status = "okay";
-};
-
-&tlmm {
- gpio-reserved-ranges = <0 4>, <30 4>;
-};
-
-&usb3 {
- status = "okay";
};
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
new file mode 100644
index 000000000000..9e3aeb5a9e74
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) 2026, Barnabas Czeman
+ */
+/dts-v1/;
+
+#include "sm6125-xiaomi-ginkgo-common.dtsi"
+
+/ {
+ model = "Xiaomi Redmi Note 8T";
+ compatible = "xiaomi,willow", "qcom,sm6125";
+
+};
--
2.52.0
^ permalink raw reply related [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-12 20:13 ` [PATCH 6/6] arm64: dts: qcom: Add " Barnabás Czémán
@ 2026-01-12 22:15 ` Dmitry Baryshkov
2026-01-12 23:41 ` barnabas.czeman
2026-01-13 9:04 ` Konrad Dybcio
1 sibling, 1 reply; 43+ messages in thread
From: Dmitry Baryshkov @ 2026-01-12 22:15 UTC (permalink / raw)
To: Barnabás Czémán
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
> the only difference is willow have NFC.
> Make a common base from ginkgo devicetree for both device.
>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/Makefile | 1 +
> .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302 +++++++++++++++++++++
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296 +-------------------
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
> 4 files changed, 318 insertions(+), 294 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index 163ecdc7fd6c..70be19357d11 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -1,304 +1,12 @@
> // SPDX-License-Identifier: BSD-3-Clause
> /*
> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
> + * Copyright (c) 2026, Barnabas Czeman
Hmm?
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
> new file mode 100644
> index 000000000000..9e3aeb5a9e74
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
> @@ -0,0 +1,13 @@
> +// SPDX-License-Identifier: BSD-3-Clause
> +/*
> + * Copyright (c) 2026, Barnabas Czeman
> + */
> +/dts-v1/;
> +
> +#include "sm6125-xiaomi-ginkgo-common.dtsi"
> +
> +/ {
> + model = "Xiaomi Redmi Note 8T";
> + compatible = "xiaomi,willow", "qcom,sm6125";
> +
> +};
Please consider adding the comment regarding NFC.
>
> --
> 2.52.0
>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-12 22:15 ` Dmitry Baryshkov
@ 2026-01-12 23:41 ` barnabas.czeman
2026-01-13 0:22 ` Dmitry Baryshkov
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-12 23:41 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-12 23:15, Dmitry Baryshkov wrote:
> On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
>> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>> the only difference is willow have NFC.
>> Make a common base from ginkgo devicetree for both device.
>>
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>> arch/arm64/boot/dts/qcom/Makefile | 1 +
>> .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
>> +++++++++++++++++++++
>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
>> +-------------------
>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
>> 4 files changed, 318 insertions(+), 294 deletions(-)
>>
>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> index 163ecdc7fd6c..70be19357d11 100644
>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> @@ -1,304 +1,12 @@
>> // SPDX-License-Identifier: BSD-3-Clause
>> /*
>> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>> + * Copyright (c) 2026, Barnabas Czeman
>
> Hmm?
Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this is a
new file just the file name is same.
>
>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> new file mode 100644
>> index 000000000000..9e3aeb5a9e74
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> @@ -0,0 +1,13 @@
>> +// SPDX-License-Identifier: BSD-3-Clause
>> +/*
>> + * Copyright (c) 2026, Barnabas Czeman
>> + */
>> +/dts-v1/;
>> +
>> +#include "sm6125-xiaomi-ginkgo-common.dtsi"
>> +
>> +/ {
>> + model = "Xiaomi Redmi Note 8T";
>> + compatible = "xiaomi,willow", "qcom,sm6125";
>> +
>> +};
>
> Please consider adding the comment regarding NFC.
>
>>
>> --
>> 2.52.0
>>
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-12 23:41 ` barnabas.czeman
@ 2026-01-13 0:22 ` Dmitry Baryshkov
2026-01-13 0:49 ` barnabas.czeman
0 siblings, 1 reply; 43+ messages in thread
From: Dmitry Baryshkov @ 2026-01-13 0:22 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Tue, Jan 13, 2026 at 12:41:43AM +0100, barnabas.czeman@mainlining.org wrote:
> On 2026-01-12 23:15, Dmitry Baryshkov wrote:
> > On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
> > > Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
> > > the only difference is willow have NFC.
> > > Make a common base from ginkgo devicetree for both device.
> > >
> > > Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> > > ---
> > > arch/arm64/boot/dts/qcom/Makefile | 1 +
> > > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
> > > +++++++++++++++++++++
> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
> > > +-------------------
> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
> > > 4 files changed, 318 insertions(+), 294 deletions(-)
> > >
> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > index 163ecdc7fd6c..70be19357d11 100644
> > > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > @@ -1,304 +1,12 @@
> > > // SPDX-License-Identifier: BSD-3-Clause
> > > /*
> > > - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
> > > + * Copyright (c) 2026, Barnabas Czeman
> >
> > Hmm?
> Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this is a new
> file just the file name is same.
Following Konrad's advice:
Would the following addition to .gitconfig help?
[diff]
renameLimit = 999999
algorithm = patience
> >
> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
> > > new file mode 100644
> > > index 000000000000..9e3aeb5a9e74
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
> > > @@ -0,0 +1,13 @@
> > > +// SPDX-License-Identifier: BSD-3-Clause
> > > +/*
> > > + * Copyright (c) 2026, Barnabas Czeman
> > > + */
> > > +/dts-v1/;
> > > +
> > > +#include "sm6125-xiaomi-ginkgo-common.dtsi"
> > > +
> > > +/ {
> > > + model = "Xiaomi Redmi Note 8T";
> > > + compatible = "xiaomi,willow", "qcom,sm6125";
> > > +
> > > +};
> >
> > Please consider adding the comment regarding NFC.
> >
> > >
> > > --
> > > 2.52.0
> > >
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-13 0:22 ` Dmitry Baryshkov
@ 2026-01-13 0:49 ` barnabas.czeman
2026-01-13 1:18 ` Dmitry Baryshkov
2026-01-13 8:52 ` Konrad Dybcio
0 siblings, 2 replies; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 0:49 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 01:22, Dmitry Baryshkov wrote:
> On Tue, Jan 13, 2026 at 12:41:43AM +0100,
> barnabas.czeman@mainlining.org wrote:
>> On 2026-01-12 23:15, Dmitry Baryshkov wrote:
>> > On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
>> > > Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>> > > the only difference is willow have NFC.
>> > > Make a common base from ginkgo devicetree for both device.
>> > >
>> > > Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> > > ---
>> > > arch/arm64/boot/dts/qcom/Makefile | 1 +
>> > > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
>> > > +++++++++++++++++++++
>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
>> > > +-------------------
>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
>> > > 4 files changed, 318 insertions(+), 294 deletions(-)
>> > >
>> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> > > index 163ecdc7fd6c..70be19357d11 100644
>> > > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> > > @@ -1,304 +1,12 @@
>> > > // SPDX-License-Identifier: BSD-3-Clause
>> > > /*
>> > > - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>> > > + * Copyright (c) 2026, Barnabas Czeman
>> >
>> > Hmm?
>> Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this is
>> a new
>> file just the file name is same.
>
> Following Konrad's advice:
>
> Would the following addition to .gitconfig help?
No, only until i am not creating the sm6125-xiaomi-ginkgo.dts and adding
it to the stage.
>
> [diff]
> renameLimit = 999999
> algorithm = patience
>
>> >
>> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> > > new file mode 100644
>> > > index 000000000000..9e3aeb5a9e74
>> > > --- /dev/null
>> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
>> > > @@ -0,0 +1,13 @@
>> > > +// SPDX-License-Identifier: BSD-3-Clause
>> > > +/*
>> > > + * Copyright (c) 2026, Barnabas Czeman
>> > > + */
>> > > +/dts-v1/;
>> > > +
>> > > +#include "sm6125-xiaomi-ginkgo-common.dtsi"
>> > > +
>> > > +/ {
>> > > + model = "Xiaomi Redmi Note 8T";
>> > > + compatible = "xiaomi,willow", "qcom,sm6125";
>> > > +
>> > > +};
>> >
>> > Please consider adding the comment regarding NFC.
>> >
>> > >
>> > > --
>> > > 2.52.0
>> > >
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-13 0:49 ` barnabas.czeman
@ 2026-01-13 1:18 ` Dmitry Baryshkov
2026-01-13 8:52 ` Konrad Dybcio
1 sibling, 0 replies; 43+ messages in thread
From: Dmitry Baryshkov @ 2026-01-13 1:18 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On Tue, Jan 13, 2026 at 01:49:58AM +0100, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 01:22, Dmitry Baryshkov wrote:
> > On Tue, Jan 13, 2026 at 12:41:43AM +0100, barnabas.czeman@mainlining.org
> > wrote:
> > > On 2026-01-12 23:15, Dmitry Baryshkov wrote:
> > > > On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
> > > > > Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
> > > > > the only difference is willow have NFC.
> > > > > Make a common base from ginkgo devicetree for both device.
> > > > >
> > > > > Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> > > > > ---
> > > > > arch/arm64/boot/dts/qcom/Makefile | 1 +
> > > > > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
> > > > > +++++++++++++++++++++
> > > > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
> > > > > +-------------------
> > > > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
> > > > > 4 files changed, 318 insertions(+), 294 deletions(-)
> > > > >
> > > > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > > > index 163ecdc7fd6c..70be19357d11 100644
> > > > > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> > > > > @@ -1,304 +1,12 @@
> > > > > // SPDX-License-Identifier: BSD-3-Clause
> > > > > /*
> > > > > - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
> > > > > + * Copyright (c) 2026, Barnabas Czeman
> > > >
> > > > Hmm?
> > > Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this
> > > is a new
> > > file just the file name is same.
> >
> > Following Konrad's advice:
> >
> > Would the following addition to .gitconfig help?
> No, only until i am not creating the sm6125-xiaomi-ginkgo.dts and adding it
> to the stage.
> >
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-13 0:49 ` barnabas.czeman
2026-01-13 1:18 ` Dmitry Baryshkov
@ 2026-01-13 8:52 ` Konrad Dybcio
2026-01-13 9:20 ` barnabas.czeman
1 sibling, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 8:52 UTC (permalink / raw)
To: barnabas.czeman, Dmitry Baryshkov
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/13/26 1:49 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 01:22, Dmitry Baryshkov wrote:
>> On Tue, Jan 13, 2026 at 12:41:43AM +0100, barnabas.czeman@mainlining.org wrote:
>>> On 2026-01-12 23:15, Dmitry Baryshkov wrote:
>>> > On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
>>> > > Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>>> > > the only difference is willow have NFC.
>>> > > Make a common base from ginkgo devicetree for both device.
>>> > >
>>> > > Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>> > > ---
>>> > > arch/arm64/boot/dts/qcom/Makefile | 1 +
>>> > > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
>>> > > +++++++++++++++++++++
>>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
>>> > > +-------------------
>>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
>>> > > 4 files changed, 318 insertions(+), 294 deletions(-)
>>> > >
>>> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> > > index 163ecdc7fd6c..70be19357d11 100644
>>> > > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> > > @@ -1,304 +1,12 @@
>>> > > // SPDX-License-Identifier: BSD-3-Clause
>>> > > /*
>>> > > - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>>> > > + * Copyright (c) 2026, Barnabas Czeman
>>> >
>>> > Hmm?
>>> Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this is a new
>>> file just the file name is same.
>>
>> Following Konrad's advice:
>>
>> Would the following addition to .gitconfig help?
> No, only until i am not creating the sm6125-xiaomi-ginkgo.dts and adding it to the stage.
JFYI it works on my machine (tm), the part with just additions is turned
into:
copy arch/arm64/boot/dts/qcom/{sm6125-xiaomi-ginkgo.dts =>
sm6125-xiaomi-ginkgo-common.dtsi} (98%)
I'm on git 2.52.0 if that helps
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-13 8:52 ` Konrad Dybcio
@ 2026-01-13 9:20 ` barnabas.czeman
0 siblings, 0 replies; 43+ messages in thread
From: barnabas.czeman @ 2026-01-13 9:20 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Dmitry Baryshkov, Bjorn Andersson, Konrad Dybcio, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales, Kees Cook,
Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm,
devicetree, linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 09:52, Konrad Dybcio wrote:
> On 1/13/26 1:49 AM, barnabas.czeman@mainlining.org wrote:
>> On 2026-01-13 01:22, Dmitry Baryshkov wrote:
>>> On Tue, Jan 13, 2026 at 12:41:43AM +0100,
>>> barnabas.czeman@mainlining.org wrote:
>>>> On 2026-01-12 23:15, Dmitry Baryshkov wrote:
>>>> > On Mon, Jan 12, 2026 at 09:13:29PM +0100, Barnabás Czémán wrote:
>>>> > > Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>>>> > > the only difference is willow have NFC.
>>>> > > Make a common base from ginkgo devicetree for both device.
>>>> > >
>>>> > > Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>> > > ---
>>>> > > arch/arm64/boot/dts/qcom/Makefile | 1 +
>>>> > > .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 302
>>>> > > +++++++++++++++++++++
>>>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 296
>>>> > > +-------------------
>>>> > > arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 13 +
>>>> > > 4 files changed, 318 insertions(+), 294 deletions(-)
>>>> > >
>>>> > > diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> > > b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> > > index 163ecdc7fd6c..70be19357d11 100644
>>>> > > --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> > > +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> > > @@ -1,304 +1,12 @@
>>>> > > // SPDX-License-Identifier: BSD-3-Clause
>>>> > > /*
>>>> > > - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>>>> > > + * Copyright (c) 2026, Barnabas Czeman
>>>> >
>>>> > Hmm?
>>>> Original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi this
>>>> is a new
>>>> file just the file name is same.
>>>
>>> Following Konrad's advice:
>>>
>>> Would the following addition to .gitconfig help?
>> No, only until i am not creating the sm6125-xiaomi-ginkgo.dts and
>> adding it to the stage.
>
> JFYI it works on my machine (tm), the part with just additions is
> turned
> into:
>
> copy arch/arm64/boot/dts/qcom/{sm6125-xiaomi-ginkgo.dts =>
> sm6125-xiaomi-ginkgo-common.dtsi} (98%)
>
> I'm on git 2.52.0 if that helps
I am on the same version, rename works until i have not added the
sm6125-xiaomi-ginkgo.dts to the stage.
If i make 2 commit 1 with renaming 1 with the additions it look likes
much better, after squashing them
i have got the same result what i have got originally.
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-12 20:13 ` [PATCH 6/6] arm64: dts: qcom: Add " Barnabás Czémán
2026-01-12 22:15 ` Dmitry Baryshkov
@ 2026-01-13 9:04 ` Konrad Dybcio
2026-01-16 6:53 ` barnabas.czeman
1 sibling, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-13 9:04 UTC (permalink / raw)
To: Barnabás Czémán, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gabriel Gonzales,
Kees Cook, Tony Luck, Guilherme G. Piccoli, Biswapriyo Nath
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux
On 1/12/26 9:13 PM, Barnabás Czémán wrote:
> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
> the only difference is willow have NFC.
> Make a common base from ginkgo devicetree for both device.
>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
[...]
> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> index 163ecdc7fd6c..70be19357d11 100644
> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
> @@ -1,304 +1,12 @@
> // SPDX-License-Identifier: BSD-3-Clause
> /*
> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
> + * Copyright (c) 2026, Barnabas Czeman
Is there a reason for you to remove Gabriel's copyright from the 5 LoC
that remain in this file?
Adding your own to an existing file in a commit that mostly moves code
around is also odd. It would look considerably better if you did so in
one of the previous commits that fixed things, as those contributions
are easier to perceive as non-trivial.
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-13 9:04 ` Konrad Dybcio
@ 2026-01-16 6:53 ` barnabas.czeman
2026-01-16 9:53 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-16 6:53 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-13 10:04, Konrad Dybcio wrote:
> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>> the only difference is willow have NFC.
>> Make a common base from ginkgo devicetree for both device.
>>
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>
> [...]
>
>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> index 163ecdc7fd6c..70be19357d11 100644
>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>> @@ -1,304 +1,12 @@
>> // SPDX-License-Identifier: BSD-3-Clause
>> /*
>> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>> + * Copyright (c) 2026, Barnabas Czeman
>
> Is there a reason for you to remove Gabriel's copyright from the 5 LoC
> that remain in this file?
The original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi.
I have not removed it, it is a new file with the old file name but
i can add Gabriel's copyright here also, would that be fine?
>
> Adding your own to an existing file in a commit that mostly moves code
> around is also odd. It would look considerably better if you did so in
> one of the previous commits that fixed things, as those contributions
> are easier to perceive as non-trivial.
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-16 6:53 ` barnabas.czeman
@ 2026-01-16 9:53 ` Konrad Dybcio
2026-01-16 10:51 ` barnabas.czeman
0 siblings, 1 reply; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-16 9:53 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/16/26 7:53 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-13 10:04, Konrad Dybcio wrote:
>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>>> the only difference is willow have NFC.
>>> Make a common base from ginkgo devicetree for both device.
>>>
>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>> ---
>>
>> [...]
>>
>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> index 163ecdc7fd6c..70be19357d11 100644
>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>> @@ -1,304 +1,12 @@
>>> // SPDX-License-Identifier: BSD-3-Clause
>>> /*
>>> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>>> + * Copyright (c) 2026, Barnabas Czeman
>>
>> Is there a reason for you to remove Gabriel's copyright from the 5 LoC
>> that remain in this file?
> The original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi.
> I have not removed it, it is a new file with the old file name but
> i can add Gabriel's copyright here also, would that be fine?
Well you certainly don't seem to have contributed anything additionally
in this specific patch, other than splitting a source file into two
source files, so the rule of the land is to generally keep the copyrights
as-is
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-16 9:53 ` Konrad Dybcio
@ 2026-01-16 10:51 ` barnabas.czeman
2026-01-16 11:03 ` Konrad Dybcio
0 siblings, 1 reply; 43+ messages in thread
From: barnabas.czeman @ 2026-01-16 10:51 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 2026-01-16 10:53, Konrad Dybcio wrote:
> On 1/16/26 7:53 AM, barnabas.czeman@mainlining.org wrote:
>> On 2026-01-13 10:04, Konrad Dybcio wrote:
>>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>>> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>>>> the only difference is willow have NFC.
>>>> Make a common base from ginkgo devicetree for both device.
>>>>
>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>> ---
>>>
>>> [...]
>>>
>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> index 163ecdc7fd6c..70be19357d11 100644
>>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>> @@ -1,304 +1,12 @@
>>>> // SPDX-License-Identifier: BSD-3-Clause
>>>> /*
>>>> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>>>> + * Copyright (c) 2026, Barnabas Czeman
>>>
>>> Is there a reason for you to remove Gabriel's copyright from the 5
>>> LoC
>>> that remain in this file?
>> The original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi.
>> I have not removed it, it is a new file with the old file name but
>> i can add Gabriel's copyright here also, would that be fine?
>
> Well you certainly don't seem to have contributed anything additionally
> in this specific patch, other than splitting a source file into two
> source files, so the rule of the land is to generally keep the
> copyrights
> as-is
I have kept the Copyright in the original file. The question is should I
add it here also?
>
> Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread
* Re: [PATCH 6/6] arm64: dts: qcom: Add Redmi Note 8T
2026-01-16 10:51 ` barnabas.czeman
@ 2026-01-16 11:03 ` Konrad Dybcio
0 siblings, 0 replies; 43+ messages in thread
From: Konrad Dybcio @ 2026-01-16 11:03 UTC (permalink / raw)
To: barnabas.czeman
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Gabriel Gonzales, Kees Cook, Tony Luck,
Guilherme G. Piccoli, Biswapriyo Nath, linux-arm-msm, devicetree,
linux-kernel, linux-hardening, phone-devel,
~postmarketos/upstreaming, linux
On 1/16/26 11:51 AM, barnabas.czeman@mainlining.org wrote:
> On 2026-01-16 10:53, Konrad Dybcio wrote:
>> On 1/16/26 7:53 AM, barnabas.czeman@mainlining.org wrote:
>>> On 2026-01-13 10:04, Konrad Dybcio wrote:
>>>> On 1/12/26 9:13 PM, Barnabás Czémán wrote:
>>>>> Redmi Note 8T (willow) is very similar to Redmi Note 8 (ginkgo)
>>>>> the only difference is willow have NFC.
>>>>> Make a common base from ginkgo devicetree for both device.
>>>>>
>>>>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>>>>> ---
>>>>
>>>> [...]
>>>>
>>>>> diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> index 163ecdc7fd6c..70be19357d11 100644
>>>>> --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
>>>>> @@ -1,304 +1,12 @@
>>>>> // SPDX-License-Identifier: BSD-3-Clause
>>>>> /*
>>>>> - * Copyright (c) 2025, Gabriel Gonzales <semfault@disroot.org>
>>>>> + * Copyright (c) 2026, Barnabas Czeman
>>>>
>>>> Is there a reason for you to remove Gabriel's copyright from the 5 LoC
>>>> that remain in this file?
>>> The original file was renamed to sm6125-xiaomi-ginkgo-common.dtsi.
>>> I have not removed it, it is a new file with the old file name but
>>> i can add Gabriel's copyright here also, would that be fine?
>>
>> Well you certainly don't seem to have contributed anything additionally
>> in this specific patch, other than splitting a source file into two
>> source files, so the rule of the land is to generally keep the copyrights
>> as-is
> I have kept the Copyright in the original file. The question is should I add it here also?
This new file that you created is nothing new (i.e. it's still *really* the
original author's work), so I would expect you keep the copyright of the
old file too (as your change isn't copyrightable).
Konrad
^ permalink raw reply [flat|nested] 43+ messages in thread