* [PATCH v3 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove board-id
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
` (7 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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, Konrad Dybcio, Dmitry Baryshkov
Remove board-id it is not necessary for the bootloader.
Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
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, 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
index 6b68e391cf3e..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 0x10000>;
- qcom,board-id = <22 0>;
chosen {
#address-cells = <2>;
--
2.52.0
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove board-id Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-03-04 18:51 ` Bjorn Andersson
2026-01-26 16:34 ` [PATCH v3 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer Barnabás Czémán
` (6 subsequent siblings)
8 siblings, 1 reply; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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, Konrad Dybcio
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")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 41 ++++++++++++++++-------
1 file changed, 29 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..d5e5abdb3b2f 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,39 @@ 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] 14+ messages in thread* Re: [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-01-26 16:34 ` [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
@ 2026-03-04 18:51 ` Bjorn Andersson
2026-03-04 21:26 ` barnabas.czeman
0 siblings, 1 reply; 14+ messages in thread
From: Bjorn Andersson @ 2026-03-04 18:51 UTC (permalink / raw)
To: Barnabás Czémán
Cc: 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,
Konrad Dybcio
On Mon, Jan 26, 2026 at 05:34:52PM +0100, 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.
>
FYI. If you add "memtest=1" to your kernel command line the kernel will
sweep all memory at boot, which tends to flush out most such issues.
Then you don't need to rely on "high memory load" for testing for such
issues.
Regards,
Bjorn
> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo")
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 41 ++++++++++++++++-------
> 1 file changed, 29 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..d5e5abdb3b2f 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,39 @@ 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 [flat|nested] 14+ messages in thread* Re: [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
2026-03-04 18:51 ` Bjorn Andersson
@ 2026-03-04 21:26 ` barnabas.czeman
0 siblings, 0 replies; 14+ messages in thread
From: barnabas.czeman @ 2026-03-04 21:26 UTC (permalink / raw)
To: Bjorn Andersson
Cc: 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,
Konrad Dybcio
On 2026-03-04 19:51, Bjorn Andersson wrote:
> On Mon, Jan 26, 2026 at 05:34:52PM +0100, 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.
>>
>
> FYI. If you add "memtest=1" to your kernel command line the kernel will
I have tested with memtest=1 also, it is working fine.
> sweep all memory at boot, which tends to flush out most such issues.
> Then you don't need to rely on "high memory load" for testing for such
> issues.
>
> Regards,
> Bjorn
>
>> Fixes: 9b1a6c925c88 ("arm64: dts: qcom: sm6125: Initial support for
>> xiaomi-ginkgo")
>> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
>> ---
>> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 41
>> ++++++++++++++++-------
>> 1 file changed, 29 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..d5e5abdb3b2f 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,39 @@ 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 [flat|nested] 14+ messages in thread
* [PATCH v3 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove board-id Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-27 11:54 ` Konrad Dybcio
2026-01-26 16:34 ` [PATCH v3 4/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
` (5 subsequent siblings)
8 siblings, 1 reply; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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
Use memory-region property for framebuffer instead of reg.
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 6 +++---
1 file changed, 3 insertions(+), 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 d5e5abdb3b2f..8497f0cbf819 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -31,9 +31,9 @@ chosen {
#size-cells = <2>;
ranges;
- framebuffer0: framebuffer@5c000000 {
+ framebuffer {
compatible = "simple-framebuffer";
- reg = <0 0x5c000000 0 (2340 * 1080 * 4)>;
+ memory-region = <&framebuffer_mem>;
width = <1080>;
height = <2340>;
stride = <(1080 * 4)>;
@@ -62,7 +62,7 @@ gpu_mem: gpu_mem@57515000 {
no-map;
};
- framebuffer@5c000000 {
+ framebuffer_mem: framebuffer@5c000000 {
reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
no-map;
};
--
2.52.0
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v3 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer
2026-01-26 16:34 ` [PATCH v3 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer Barnabás Czémán
@ 2026-01-27 11:54 ` Konrad Dybcio
0 siblings, 0 replies; 14+ messages in thread
From: Konrad Dybcio @ 2026-01-27 11:54 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/26/26 5:34 PM, Barnabás Czémán wrote:
> Use memory-region property for framebuffer instead of reg.
>
> 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] 14+ messages in thread
* [PATCH v3 4/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (2 preceding siblings ...)
2026-01-26 16:34 ` [PATCH v3 3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges Barnabás Czémán
` (4 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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, Konrad Dybcio, Dmitry Baryshkov
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")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
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 8497f0cbf819..caeb7c74873d 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -77,11 +77,6 @@ ramoops@61600000 {
};
};
- extcon_usb: extcon-usb {
- compatible = "linux,extcon-usb-gpio";
- id-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>;
- };
-
gpio-keys {
compatible = "gpio-keys";
@@ -304,7 +299,3 @@ &tlmm {
&usb3 {
status = "okay";
};
-
-&usb3_dwc3 {
- extcon = <&extcon_usb>;
-};
--
2.52.0
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH v3 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (3 preceding siblings ...)
2026-01-26 16:34 ` [PATCH v3 4/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 6/7] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T Barnabás Czémán
` (3 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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, Konrad Dybcio
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")
Tested-by: Biswapriyo Nath <nathbappai@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
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 caeb7c74873d..c5616a083f71 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -293,7 +293,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] 14+ messages in thread* [PATCH v3 6/7] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (4 preceding siblings ...)
2026-01-26 16:34 ` [PATCH v3 5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-26 16:34 ` [PATCH v3 7/7] arm64: dts: qcom: Add " Barnabás Czémán
` (2 subsequent siblings)
8 siblings, 0 replies; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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).
Acked-by: Rob Herring (Arm) <robh@kernel.org>
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] 14+ messages in thread* [PATCH v3 7/7] arm64: dts: qcom: Add Redmi Note 8T
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (5 preceding siblings ...)
2026-01-26 16:34 ` [PATCH v3 6/7] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T Barnabás Czémán
@ 2026-01-26 16:34 ` Barnabás Czémán
2026-01-27 11:55 ` Konrad Dybcio
2026-01-27 15:56 ` [PATCH v3 0/7] Initial Redmi Note 8T support and more Rob Herring
2026-03-10 2:45 ` Bjorn Andersson
8 siblings, 1 reply; 14+ messages in thread
From: Barnabás Czémán @ 2026-01-26 16:34 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, Dmitry Baryshkov
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.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
---
arch/arm64/boot/dts/qcom/Makefile | 3 +-
.../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 301 +++++++++++++++++++++
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 291 +-------------------
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 15 +
4 files changed, 319 insertions(+), 291 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 0ccd6ec16dfb..9290e74651a8 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -279,8 +279,9 @@ dtb-$(CONFIG_ARCH_QCOM) += sm4450-qrd.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6115-fxtec-pro1x.dtb
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-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..c5616a083f71
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi
@@ -0,0 +1,301 @@
+// 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;
+
+/ {
+ 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;
+
+ framebuffer {
+ compatible = "simple-framebuffer";
+ memory-region = <&framebuffer_mem>;
+ 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_mem: 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 c5616a083f71..496f33e9d73c 100644
--- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts
@@ -2,300 +2,11 @@
/*
* 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;
+#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;
-
- framebuffer {
- compatible = "simple-framebuffer";
- memory-region = <&framebuffer_mem>;
- 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_mem: 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..1231e440ba2c
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts
@@ -0,0 +1,15 @@
+// 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";
+
+};
+
+/* Difference from Redmi Note 8 it have NFC */
--
2.52.0
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v3 7/7] arm64: dts: qcom: Add Redmi Note 8T
2026-01-26 16:34 ` [PATCH v3 7/7] arm64: dts: qcom: Add " Barnabás Czémán
@ 2026-01-27 11:55 ` Konrad Dybcio
0 siblings, 0 replies; 14+ messages in thread
From: Konrad Dybcio @ 2026-01-27 11:55 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, Dmitry Baryshkov
On 1/26/26 5:34 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.
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> 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] 14+ messages in thread
* Re: [PATCH v3 0/7] Initial Redmi Note 8T support and more
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (6 preceding siblings ...)
2026-01-26 16:34 ` [PATCH v3 7/7] arm64: dts: qcom: Add " Barnabás Czémán
@ 2026-01-27 15:56 ` Rob Herring
2026-03-10 2:45 ` Bjorn Andersson
8 siblings, 0 replies; 14+ messages in thread
From: Rob Herring @ 2026-01-27 15:56 UTC (permalink / raw)
To: Barnabás Czémán
Cc: linux-kernel, Konrad Dybcio, Dmitry Baryshkov, Kees Cook,
linux-arm-msm, Conor Dooley, devicetree, Guilherme G. Piccoli,
~postmarketos/upstreaming, linux, Bjorn Andersson, Tony Luck,
Krzysztof Kozlowski, Biswapriyo Nath, phone-devel,
linux-hardening, Gabriel Gonzales, Konrad Dybcio
On Mon, 26 Jan 2026 17:34:50 +0100, Barnabás Czémán wrote:
> Redmi Note 8 and 8T are sibling devices the only difference
> is Redmi Note 8T have NFC.
> This patch series is commonizing Redmi Note 8 devicetree
> for a base for both devices.
>
> The patch series also contains some fixes for Redmi Note 8:
> - Fix reserved memory ranges, they were wrongly defined.
> - Remove board-id, board-id is not neccessary for the bootloader.
> - Fix reserved-gpio-ranges the reserved ranges was wrongly
> defined what caused the device crash on the boot.
> - Remove unnecessary usb-extcon, gpio102 is related to DisplayPort
> what is not supported by these devices.
> - Use memory-region property for framebuffer.
>
> Depends on:
> [1] https://lore.kernel.org/all/20251229142806.241088-2-krzysztof.kozlowski@oss.qualcomm.com/
>
> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
> ---
> Changes in v3:
> - Remove unit address and label from frambuffer node.
> - Link to v2: https://lore.kernel.org/r/20260116-xiaomi-willow-v2-0-4694feb70cdb@mainlining.org
>
> Changes in v2:
> - Fix copyright in sm6125-xiaomi-ginkgo.dts as requested.
> - Use memory-region property for the framebuffer.
> - Add comment about the NFC.
> - Remove msm-id change in favor of [1].
> - Link to v1: https://lore.kernel.org/r/20260112-xiaomi-willow-v1-0-8e4476897638@mainlining.org
>
> ---
> Barnabás Czémán (7):
> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove board-id
> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer
> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
> arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
> dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T
> arm64: dts: qcom: Add Redmi Note 8T
>
> Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
> arch/arm64/boot/dts/qcom/Makefile | 3 +-
> .../boot/dts/qcom/sm6125-xiaomi-ginkgo-common.dtsi | 301 +++++++++++++++++++++
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts | 285 +------------------
> arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dts | 15 +
> 5 files changed, 320 insertions(+), 285 deletions(-)
> ---
> base-commit: f417b7ffcbef7d76b0d8860518f50dae0e7e5eda
> change-id: 20260111-xiaomi-willow-448552f02762
> prerequisite-message-id: <20251229142806.241088-2-krzysztof.kozlowski@oss.qualcomm.com>
> prerequisite-patch-id: 1bc49c0e2bec1a47667df776e1ab265b0699ea35
>
> Best regards,
> --
> Barnabás Czémán <barnabas.czeman@mainlining.org>
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Deps: looking for dependencies matching 1 patch-ids
Deps: Applying prerequisite patch: [PATCH RFT] arm64: dts: qcom: sm6125-ginkgo: Fix missing msm-id subtype
Base: f417b7ffcbef7d76b0d8860518f50dae0e7e5eda (use --merge-base to override)
If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20260126-xiaomi-willow-v3-0-aad7b106c311@mainlining.org:
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dtb: geniqup@4ac0000 (qcom,geni-se-qup): #address-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dtb: geniqup@4ac0000 (qcom,geni-se-qup): #size-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dtb: geniqup@4ac0000 (qcom,geni-se-qup): #address-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dtb: geniqup@4ac0000 (qcom,geni-se-qup): #size-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dtb: geniqup@4cc0000 (qcom,geni-se-qup): #address-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dtb: geniqup@4cc0000 (qcom,geni-se-qup): #size-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dtb: geniqup@4cc0000 (qcom,geni-se-qup): #address-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
arch/arm64/boot/dts/qcom/sm6125-xiaomi-willow.dtb: geniqup@4cc0000 (qcom,geni-se-qup): #size-cells: 2 was expected
from schema $id: http://devicetree.org/schemas/soc/qcom/qcom,geni-se.yaml
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v3 0/7] Initial Redmi Note 8T support and more
2026-01-26 16:34 [PATCH v3 0/7] Initial Redmi Note 8T support and more Barnabás Czémán
` (7 preceding siblings ...)
2026-01-27 15:56 ` [PATCH v3 0/7] Initial Redmi Note 8T support and more Rob Herring
@ 2026-03-10 2:45 ` Bjorn Andersson
8 siblings, 0 replies; 14+ messages in thread
From: Bjorn Andersson @ 2026-03-10 2:45 UTC (permalink / raw)
To: Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Gabriel Gonzales, Kees Cook, Tony Luck, Guilherme G. Piccoli,
Biswapriyo Nath, Barnabás Czémán
Cc: linux-arm-msm, devicetree, linux-kernel, linux-hardening,
phone-devel, ~postmarketos/upstreaming, linux, Konrad Dybcio,
Dmitry Baryshkov
On Mon, 26 Jan 2026 17:34:50 +0100, Barnabás Czémán wrote:
> Redmi Note 8 and 8T are sibling devices the only difference
> is Redmi Note 8T have NFC.
> This patch series is commonizing Redmi Note 8 devicetree
> for a base for both devices.
>
> The patch series also contains some fixes for Redmi Note 8:
> - Fix reserved memory ranges, they were wrongly defined.
> - Remove board-id, board-id is not neccessary for the bootloader.
> - Fix reserved-gpio-ranges the reserved ranges was wrongly
> defined what caused the device crash on the boot.
> - Remove unnecessary usb-extcon, gpio102 is related to DisplayPort
> what is not supported by these devices.
> - Use memory-region property for framebuffer.
>
> [...]
Applied, thanks!
[1/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove board-id
commit: 535e5741bc9acef5ea2561aa300f28370599e7e2
[2/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
commit: 242801cc24e865cb525ef7d826ce6ebeffcad606
[3/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Set memory-region for framebuffer
commit: f3d3a5924812eae3aedb431632c8a3b4c3f6bae1
[4/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Remove extcon
commit: 79664600fd3ed3972ad9321e13d1f80267730447
[5/7] arm64: dts: qcom: sm6125-xiaomi-ginkgo: Fix reserved gpio ranges
commit: e8669e010991154bedadd1cd67700544e0362e99
[6/7] dt-bindings: arm: qcom: Add Xiaomi Redmi Note 8T
commit: 32ace20ca1b65fcc2680b94cc8f00a80758eb76d
[7/7] arm64: dts: qcom: Add Redmi Note 8T
commit: 7bb7c90e0ac18565a45c02072356bf3dffb81bcb
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 14+ messages in thread