From: Val Packett <val@packett.cool>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Fabien Parent <fparent@baylibre.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH 0/5] MT8516/MT8167 dtsi fixes
Date: Sat, 07 Dec 2024 00:11:55 -0300 [thread overview]
Message-ID: <VVS3OS.MZCWW6ICFFUB3@packett.cool> (raw)
In-Reply-To: <7bf536a5-30c1-43d8-9ea3-3aaea65c6b0a@collabora.com>
On Thu, Dec 5 2024 at 01:27:01 PM +01:00:00, AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com> wrote:
>> I strongly suggest you to also send one that achieves basic boot
>> with UART console
> as a first step for upstreaming your board, and then go for
> incremental changes
> everytime you get a new feature working.
Wanted to get the PMIC in first but sure, could try splitting out the
initial version without the PMIC.
Oh! One dts/dtsi question: pretty much all MTK devices so far have all
pinctrl configurations defined per-device. But on this SoC, pin
assignments have their "canonical" function in the pin name e.g.:
MT8167_PIN_58_SDA0__FUNC_SDA0_0 and on this device they are used as-is.
Would it be fine to place these default pinctrl configs for SD/MMC, I2C
etc. in the SoC dtsi?
>> Generally, if the patches are only simple additions, you could send
>> the original
> patches without any author variation (and fixing that
> MT6392_IRQ_numbers enum
> in the original ones because lower case please!) and then your
> patches on top
> with your additions.
Right, I was mostly unsure if the email workflow supported just sending
someone else's patches, but I guess that was silly - of course
git-send-email should do the right thing!
> The upstream driver just gained support for configuring the display
> paths
> entirely in the devicetree as those are obviously device specific.
>
> You can make use of that for upstreaming your tablet after adding the
> display
> nodes (and bindings, if required) as if you go for the default
> configuration
> that's probably not going to work because it's for the pumpkin boards
> which
> will most probably have a different display pipeline compared to your
> board.
The pipeline seems to be the same.. The pumpkin board was brought up
with DSI as well, the main pipeline I can find in the Android source is
the same (+ PWM).
I am still struggling to get it to work though: DSI command mode
configuration gets acknowledged fine, but in burst mode, the vblank
never arrives. Tried fiddling with various things (CMDQ or not, mutex
as vblank source since there was an Android commit doing that, etc.),
nothing helped.
>> By the way, is anyone familiar with PSCI cpuidle/hot-unplug issues on
>> Mediatek Android devices from around this time? [..]
>
> I did have some issues with an older bootloader on the Xperia M5
> smartphone
> and would even lock up at boot, because on the old firmwares the power
> domains for the CPUs are not managed automatically by FW.
Interesting, thanks for the pointer!
In the Android kernel sources I could find though, there are no CPU
domains in the mtk-scpsys-mt8167 driver, and the only references I
could even find to the related register bits are from code that *reads*
the status of the CPU power domains to make decisions about sleep
states (only_one_cpu_online in mtk_idle). Trying to add those to the
driver anyway, did not succeed so far.
~val
next prev parent reply other threads:[~2024-12-07 3:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 19:05 [PATCH 0/5] MT8516/MT8167 dtsi fixes Val Packett
2024-12-04 19:05 ` [PATCH 1/5] arm64: dts: mediatek: mt8516: fix GICv2 range Val Packett
2024-12-05 12:26 ` AngeloGioacchino Del Regno
2024-12-04 19:05 ` [PATCH 2/5] arm64: dts: mediatek: mt8516: fix wdt irq type Val Packett
2024-12-05 12:26 ` AngeloGioacchino Del Regno
2024-12-04 19:05 ` [PATCH 3/5] arm64: dts: mediatek: mt8516: add i2c clock-div property Val Packett
2024-12-05 12:26 ` AngeloGioacchino Del Regno
2024-12-04 19:05 ` [PATCH 4/5] arm64: dts: mediatek: mt8516: reserve 192 KiB for TF-A Val Packett
2024-12-05 12:26 ` AngeloGioacchino Del Regno
2024-12-04 19:05 ` [PATCH 5/5] arm64: dts: mediatek: mt8516: add keypad node Val Packett
2024-12-05 12:26 ` AngeloGioacchino Del Regno
2024-12-05 12:27 ` [PATCH 0/5] MT8516/MT8167 dtsi fixes AngeloGioacchino Del Regno
2024-12-07 3:11 ` Val Packett [this message]
2024-12-09 10:03 ` AngeloGioacchino Del Regno
2024-12-10 8:28 ` (subset) " AngeloGioacchino Del Regno
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=VVS3OS.MZCWW6ICFFUB3@packett.cool \
--to=val@packett.cool \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fparent@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).