mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengyu Luo <mitltlatltl@gmail.com>
To: neil.armstrong@linaro.org
Cc: andersson@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, konrad.dybcio@oss.qualcomm.com,
	konradybcio@kernel.org, krzk+dt@kernel.org,
	linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
	mitltlatltl@gmail.com, robh@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: sm8650: Add support for Oneplus Pad Pro (caihong)
Date: Thu, 22 May 2025 18:05:24 +0800	[thread overview]
Message-ID: <20250522100526.914341-1-mitltlatltl@gmail.com> (raw)
In-Reply-To: <d455a8d0-0a43-4bb5-8592-f22f1835a3c6@linaro.org>

On Wed, May 21, 2025 at 8:43 PM <neil.armstrong@linaro.org> wrote:
> On 21/05/2025 10:37, Pengyu Luo wrote:
> > On Wed, May 21, 2025 at 5:54 AM Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> wrote:
> >> On 5/20/25 6:42 PM, Pengyu Luo wrote:
> >>> The OnePlus Pad Pro is an Android tablet based on the Qualcomm SM8650
> >>> platform. Its device codename is "caihong". This patch adds an initial
> >>> devicetree for basic functionality.
> >>>
> >>> Currently working components include:
> >>> - Backlight
> >>> - Bluetooth
> >>> - Battery charging (up to 5v 0.5a) & reporting via pmic-glink (There
> >>> are many unknown notifications)
> >>> - Display panel ([1])
> >>> - Keyboard (via BT)
> >>> - Power key & volume keys
> >>> - Touchscreen & stylus ([2])
> >>> - USB Type-c port
> >>> - UFS storage
> >>> - Wi-Fi
> >>>
> >>> The following components are currently non-functional:
> >>> - Audio
> >>> - Cameras
> >>> - Charging pump (dual sc8547)
> >>> - Keyboard (via pogo pin)
> >>> - Stylus wireless charger (cps8601)
> >>> - UCSI over GLINK (PPM init fails)
> >>>
> >>> [1]: The panel is a dual-DSI, dual-DSC display that requires setting
> >>>       'slice_per_pkt = 2' in the DPU configuration. The panel driver
> >>>       will be submitted separately later.
> >>> [2]: Touchscreen/stylus driver available at:
> >>>       https://github.com/OnePlusOSS/android_kernel_modules_and_devicetree_oneplus_sm8650/blob/oneplus/sm8650_v_15.0.0_pad_pro/vendor/oplus/kernel/touchpanel/oplus_touchscreen_v2/Novatek/NT36532_noflash/nvt_drivers_nt36532_noflash.c
> >>>       The downstream driver has been ported and tested locally, but
> >>>       requires cleanup, it may be submitted separately later.
> >>
> >> I have a Lenovo Tab P11 with a nt36523w (-23, not -32) for which I have once
> >> poked at the driver for.. I see the driver you posted mentions -23 as well,
> >> please keep me in the loop if you're going to upstream it
> >>
> >
> > I see. Actually, they share the most part of nt36xxx, but with
> > different memory maps. See
> > https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/elish-r-oss/drivers/input/touchscreen/nt36xxx/nt36xxx_mem_map.h
> >
> >> [...]
> >>
> >>> +             /*
> >>> +              * This memory region is required to initialize the backlight
> >>> +              * and display for bootloader. Normally, this region is not
> >>> +              * needed. However, due to limitations in the current mainline
> >>> +              * KTZ8866 driver, dual backlight ICs cannot be properly
> >>> +              * initialized.
> >>> +              *
> >>> +              * A workaround involving secondary registration was proposed,
> >>> +              * but rejected by reviewers. This reserved region is kept as
> >>> +              * a temporary solution until a proper initialization method
> >>> +              * that satisfies upstream requirements is found.
> >>> +              */
> >>> +             splash_region {
> >>> +                     reg = <0 0xd5100000 0 0x2b00000>;
> >>> +                     no-map;
> >>> +             };
> >>
> >> I assume this means "if the bootloader sees /reserved-memory/splash_region,
> >> it keeps the display online" - let's not do that, as underscores are not
> >> allowed in node names (kernel coding style, not dt syntax)
> >>
> >
> > Right, without it, BL won't initialize backlight and display. We need
> > it to initialize backlight here since mainline ktz8866 won't program
> > partial registers properly. If there is no other workaround, I will
> > remove it to keep kernel coding style.
>
> Can't you add a simple-framebuffer for v1 and drop all the DSI stuff until
> you figured out the backlight and upstreamed the panel driver ?
>

I am thinking about it. But still, if backlight can't be properly
programmed, simple-framebuffer won't help.

Best wishes,
Pengyu

  reply	other threads:[~2025-05-22 10:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-20 16:42 [PATCH 0/2] arm64: dts: qcom: Introduce Oneplus Pad Pro Pengyu Luo
2025-05-20 16:42 ` [PATCH 1/2] dt-bindings: arm: qcom: Add Oneplus Pad Pro (caihong) Pengyu Luo
2025-05-21  9:58   ` Krzysztof Kozlowski
2025-05-20 16:42 ` [PATCH 2/2] arm64: dts: qcom: sm8650: Add support for " Pengyu Luo
2025-05-20 21:54   ` Konrad Dybcio
2025-05-21  8:37     ` Pengyu Luo
2025-05-21 12:43       ` neil.armstrong
2025-05-22 10:05         ` Pengyu Luo [this message]
2025-05-26  7:53           ` neil.armstrong
2025-05-22 15:05       ` Konrad Dybcio
2025-05-25 10:51         ` Pengyu Luo
2025-05-27 11:11           ` Konrad Dybcio
2025-06-02 13:44             ` Pengyu Luo
2025-05-21 12:49   ` neil.armstrong
2025-05-22 10:05     ` Pengyu Luo
2025-05-26  7:56       ` neil.armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250522100526.914341-1-mitltlatltl@gmail.com \
    --to=mitltlatltl@gmail.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®