[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <052364dd-743f-471b-b420-c9cd6bbc207c@linaro.org>
Date: Wed, 25 Jun 2025 12:09:07 +0200
From: neil.armstrong@...aro.org
To: Luca Weiss <luca.weiss@...rphone.com>, Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Abel Vesa <abel.vesa@...aro.org>
Cc: ~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-phy@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/4] phy: qualcomm: phy-qcom-eusb2-repeater: Add support
for PMIV0104
On 25/06/2025 11:14, Luca Weiss wrote:
> Add support for the eUSB2 repeater found on the PMIV0104. There is no
> default init table for this PMIC, just the board-specific tuning
> parameters are used on top of the default tuning values.
>
> Signed-off-by: Luca Weiss <luca.weiss@...rphone.com>
> ---
> drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
> index 61594739e5b12706775622e1f76af6ad5d2d29bf..3d4cdc4c18becd8efd5015e698b836ad4d7cf18c 100644
> --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
> +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c
> @@ -82,6 +82,14 @@ static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg = {
> .num_vregs = ARRAY_SIZE(pm8550b_vreg_l),
> };
>
> +static const struct eusb2_repeater_cfg pmiv0104_eusb2_cfg = {
> + /* No PMIC-specific init sequence, only board level tuning via DT */
> + .init_tbl = (struct eusb2_repeater_init_tbl_reg[]) {},
> + .init_tbl_num = 0,
> + .vreg_list = pm8550b_vreg_l,
> + .num_vregs = ARRAY_SIZE(pm8550b_vreg_l),
> +};
> +
> static const struct eusb2_repeater_cfg smb2360_eusb2_cfg = {
> .init_tbl = smb2360_init_tbl,
> .init_tbl_num = ARRAY_SIZE(smb2360_init_tbl),
> @@ -264,6 +272,10 @@ static const struct of_device_id eusb2_repeater_of_match_table[] = {
> .compatible = "qcom,pm8550b-eusb2-repeater",
> .data = &pm8550b_eusb2_cfg,
> },
> + {
> + .compatible = "qcom,pmiv0104-eusb2-repeater",
> + .data = &pmiv0104_eusb2_cfg,
> + },
> {
> .compatible = "qcom,smb2360-eusb2-repeater",
> .data = &smb2360_eusb2_cfg,
>
Reviewed-by: Neil Armstrong <neil.armstrong@...aro.org>
Powered by blists - more mailing lists