From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Julien Stephan <jstephan@baylibre.com>,
Mattijs Korpershoek <mkorpershoek@kernel.org>
Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>,
Tom Rini <trini@konsulko.com>, Ryder Lee <ryder.lee@mediatek.com>,
Weijie Gao <weijie.gao@mediatek.com>,
Chunfeng Yun <chunfeng.yun@mediatek.com>,
Igor Belwon <igor.belwon@mentallysanemainliners.org>,
David Lechner <dlechner@baylibre.com>,
Minkyu Kang <mk7.kang@samsung.com>,
Casey Connolly <casey.connolly@linaro.org>,
Tim Harvey <tharvey@gateworks.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
"Lucien.Jheng" <lucienzx159@gmail.com>,
Alice Guo <alice.guo@nxp.com>,
Sam Protsenko <semen.protsenko@linaro.org>,
Johan Jonker <jbx6244@gmail.com>,
Neil Armstrong <neil.armstrong@linaro.org>,
Pavlo Yadvychuk <pyadvychuk@baylibre.com>,
Macpaul Lin <macpaul.lin@mediatek.com>,
u-boot@lists.u-boot-project.org
Subject: Re: [PATCH] phy: phy-mtk-hdmi: add new driver
Date: Mon, 27 Jul 2026 14:35:15 +0200 [thread overview]
Message-ID: <87ldaw3918.fsf@kernel.org> (raw)
In-Reply-To: <CAEHHSvaU-jTdN5PJoTnyy4Qq7J34SLQMgtx0+uqTsbpn7vmyOw@mail.gmail.com>
Hi Julien,
On Mon, Jul 27, 2026 at 11:28, Julien Stephan <jstephan@baylibre.com> wrote:
> Hello Mattijs,
>
> (used the new u-boot ml address u-boot@lists.u-boot-project.org and
> dropped the old denx one)
>
> Le mar. 21 juil. 2026 à 11:22, Mattijs Korpershoek
> <mkorpershoek@kernel.org> a écrit :
>>
>> Hi Julien,
>>
>> Thank you for the patch.
>>
>> On Fri, Jul 17, 2026 at 10:26, Julien Stephan <jstephan@baylibre.com> wrote:
>>
>> > Add a new driver for the HDMI PHY. The driver supports MT8188 and MT8195
>> > based SoCs. The driver is based on the corresponding kernel driver.
>>
>> What kernel version (exact commit, including the sha) has this been
>> ported from ?
>>
>> Mentioning it in the commit message will help reviewers to compare this
>> with the linux codebase.
>>
>> I can do a more detailed review once I know the linux base this has been
>> ported from.
>>
>
> Technically it's not a direct port from the upstream kernel driver.
> The code comes from an old downstream MediaTek code base.
> I guess it was polished a bit during kernel upstream, hence some
> variables names and functions are not 100% identical..
Ah, that make sense.
>
> So what would you like me to do? Send a v2 with a proper backport from
> kernel? Or being more explicit on the commit message is enough?
> Something like: "The driver is loosely based on the corresponding
> kernel driver at 45810d486bb4 phy: mediatek: add support for
> phy-mtk-hdmi-mt8195)
Ideally, we would do a backport from the Linux driver. That will make
future maintenance easier since we can continue porting fixes (when
relevant) from Linux when they arrive. That's probably a bit more work
though :(
If you want to keep this implementation, then I'd be more precise in the
commit message. Stating that it's based on a vendor driver and has been
polished up for U-Boot.
So I have a preference for doing the port from Linux, but I won't block
this if we just reword the commit message. Up to you to decide what
you'd like to do.
>
>> >
>> > Signed-off-by: Pavlo Yadvychuk <pyadvychuk@baylibre.com>
>> > Signed-off-by: Julien Stephan <jstephan@baylibre.com>
>> > ---
>>
>> [...]
>>
>> > +
>> > + /* RG_HDMITXPLL_RESERVE[12:11] */
>> > + mtk_hdmi_phy_mask(hdmi_phy, HDMI_1_PLL_CFG_1,
>> > + 0x3 << RG_HDMITXPLL_RESERVE_BIT12_11_SHIFT,
>> > + RG_HDMITXPLL_RESERVE_BIT12_11);
>> > +
>> > + /* TCL_EN */
>> > + mtk_hdmi_phy_mask(hdmi_phy, HDMI_1_PLL_CFG_0,
>> > + 0x1 << RG_HDMITXPLL_TCL_EN_SHIFT,
>> > + RG_HDMITXPLL_TCL_EN);
>> > +
>> > + /* we should always read calibration impedance
>> > + * from efuse, unless for debugging purposes.
>> > + * This calibraion value is not board-dependent
>>
>> calibraion -> calibration
>>
>> > + * so no SW adjustment required.
>> > + */
>> > + if (hdmi_phy->conf->efuse_sw_mode) {
>> > + debug("efuse_sw_mode ENABLED!!!");
>> > + mtk_hdmi_phy_mask(hdmi_phy, HDMI_CTL_1,
>> > + 0x1f << RG_INTR_IMP_RG_MODE_SHIFT,
>> > + RG_INTR_IMP_RG_MODE);
>> > + }
>> > +
>> > + return 0;
>> > +}
>> > +
>>
>> [...]
next prev parent reply other threads:[~2026-07-27 12:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 8:26 [PATCH] phy: phy-mtk-hdmi: add new driver Julien Stephan
2026-07-21 9:22 ` Mattijs Korpershoek via U-Boot
2026-07-27 9:28 ` Julien Stephan
2026-07-27 12:35 ` Mattijs Korpershoek [this message]
2026-07-28 15:03 ` Julien Stephan
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=87ldaw3918.fsf@kernel.org \
--to=mkorpershoek@kernel.org \
--cc=GSS_MTK_Uboot_upstream@mediatek.com \
--cc=alice.guo@nxp.com \
--cc=casey.connolly@linaro.org \
--cc=chunfeng.yun@mediatek.com \
--cc=dlechner@baylibre.com \
--cc=igor.belwon@mentallysanemainliners.org \
--cc=jbx6244@gmail.com \
--cc=jstephan@baylibre.com \
--cc=lucienzx159@gmail.com \
--cc=macpaul.lin@mediatek.com \
--cc=mk7.kang@samsung.com \
--cc=neil.armstrong@linaro.org \
--cc=pyadvychuk@baylibre.com \
--cc=quentin.schulz@cherry.de \
--cc=ryder.lee@mediatek.com \
--cc=semen.protsenko@linaro.org \
--cc=tharvey@gateworks.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=weijie.gao@mediatek.com \
/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 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.