* [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region
@ 2023-01-24 18:32 Amit Pundir
2023-01-26 6:15 ` Joel Selvaraj
0 siblings, 1 reply; 3+ messages in thread
From: Amit Pundir @ 2023-01-24 18:32 UTC (permalink / raw)
To: Bjorn Andersson, Andy Gross, Dmitry Baryshkov, Rob Herring,
Konrad Dybcio, Krzysztof Kozlowski, Caleb Connolly,
Joel Selvaraj
Cc: linux-arm-msm, dt, lkml, phone-devel
Put cont splash memory region under the reserved-memory as
confirmed by the downstream code for Tianma variant as well.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
This change should probably go in sdm845-xiaomi-beryllium-common but
I don't have EBBG variant's downstream code nor the device to test.
.../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
index 8e176111e599..47cbf725b0e3 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
+++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
@@ -7,6 +7,14 @@
/ {
model = "Xiaomi Pocophone F1 (Tianma)";
compatible = "xiaomi,beryllium", "qcom,sdm845";
+
+ reserved-memory {
+ /* Cont splash region set up by the bootloader */
+ cont_splash_mem: framebuffer@9d400000 {
+ reg = <0x0 0x9d400000 0x0 0x2400000>;
+ no-map;
+ };
+ };
};
&display_panel {
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region
2023-01-24 18:32 [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region Amit Pundir
@ 2023-01-26 6:15 ` Joel Selvaraj
2023-01-27 6:26 ` Amit Pundir
0 siblings, 1 reply; 3+ messages in thread
From: Joel Selvaraj @ 2023-01-26 6:15 UTC (permalink / raw)
To: Amit Pundir, Bjorn Andersson, Andy Gross, Dmitry Baryshkov,
Rob Herring, Konrad Dybcio, Krzysztof Kozlowski, Caleb Connolly
Cc: linux-arm-msm, dt, lkml, phone-devel
Hi Amit Pundir,
I have a Poco F1 (EBBG) variant and I can confirm that the framebuffer
address is same for the EBBG variant too.
I did a quick check by running the following command based on this link[1]:
xiber:~$ strings /dev/disk/by-partlabel/xbl_a | grep "Display Reserved"
0x9D400000, 0x02400000, "Display Reserved", AddMem, MEM_RES,
SYS_MEM_CAP, Reserv, WRITE_BACK_XN
So I think it's safe to move this to sdm845-xiaomi-beryllium-common.dtsi
Regards,
Joel Selvaraj
[1]
https://wiki.postmarketos.org/wiki/SDM845_Mainlining#Find_the_framebuffer_address
On 24/01/23 12:32, Amit Pundir wrote:
> Put cont splash memory region under the reserved-memory as
> confirmed by the downstream code for Tianma variant as well.
>
> Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
> ---
> This change should probably go in sdm845-xiaomi-beryllium-common but
> I don't have EBBG variant's downstream code nor the device to test.
>
> .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> index 8e176111e599..47cbf725b0e3 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> @@ -7,6 +7,14 @@
> / {
> model = "Xiaomi Pocophone F1 (Tianma)";
> compatible = "xiaomi,beryllium", "qcom,sdm845";
> +
> + reserved-memory {
> + /* Cont splash region set up by the bootloader */
> + cont_splash_mem: framebuffer@9d400000 {
> + reg = <0x0 0x9d400000 0x0 0x2400000>;
> + no-map;
> + };
> + };
> };
>
> &display_panel {
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region
2023-01-26 6:15 ` Joel Selvaraj
@ 2023-01-27 6:26 ` Amit Pundir
0 siblings, 0 replies; 3+ messages in thread
From: Amit Pundir @ 2023-01-27 6:26 UTC (permalink / raw)
To: Joel Selvaraj
Cc: Bjorn Andersson, Andy Gross, Dmitry Baryshkov, Rob Herring,
Konrad Dybcio, Krzysztof Kozlowski, Caleb Connolly,
linux-arm-msm, dt, lkml, phone-devel
On Thu, 26 Jan 2023 at 11:45, Joel Selvaraj <joelselvaraj.oss@gmail.com> wrote:
>
> Hi Amit Pundir,
>
> I have a Poco F1 (EBBG) variant and I can confirm that the framebuffer
> address is same for the EBBG variant too.
>
> I did a quick check by running the following command based on this link[1]:
>
> xiber:~$ strings /dev/disk/by-partlabel/xbl_a | grep "Display Reserved"
>
> 0x9D400000, 0x02400000, "Display Reserved", AddMem, MEM_RES,
> SYS_MEM_CAP, Reserv, WRITE_BACK_XN
>
> So I think it's safe to move this to sdm845-xiaomi-beryllium-common.dtsi
ACK. Sending v2 shortly.
>
> Regards,
> Joel Selvaraj
>
> [1]
> https://wiki.postmarketos.org/wiki/SDM845_Mainlining#Find_the_framebuffer_address
>
>
>
>
> On 24/01/23 12:32, Amit Pundir wrote:
> > Put cont splash memory region under the reserved-memory as
> > confirmed by the downstream code for Tianma variant as well.
> >
> > Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
> > ---
> > This change should probably go in sdm845-xiaomi-beryllium-common but
> > I don't have EBBG variant's downstream code nor the device to test.
> >
> > .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> > index 8e176111e599..47cbf725b0e3 100644
> > --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> > +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts
> > @@ -7,6 +7,14 @@
> > / {
> > model = "Xiaomi Pocophone F1 (Tianma)";
> > compatible = "xiaomi,beryllium", "qcom,sdm845";
> > +
> > + reserved-memory {
> > + /* Cont splash region set up by the bootloader */
> > + cont_splash_mem: framebuffer@9d400000 {
> > + reg = <0x0 0x9d400000 0x0 0x2400000>;
> > + no-map;
> > + };
> > + };
> > };
> >
> > &display_panel {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-27 6:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 18:32 [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region Amit Pundir
2023-01-26 6:15 ` Joel Selvaraj
2023-01-27 6:26 ` Amit Pundir
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.