Skip to content

Commit ce872bc

Browse files
lweiss-fairphonevinodkoul
authored andcommitted
phy: qualcomm: phy-qcom-eusb2-repeater: Add support for PMIV0104
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. Reviewed-by: Abel Vesa <abel.vesa@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Link: https://lore.kernel.org/r/20250709-sm7635-eusb-repeater-v2-4-b6eff075c097@fairphone.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 5edc405 commit ce872bc

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg = {
8282
.num_vregs = ARRAY_SIZE(pm8550b_vreg_l),
8383
};
8484

85+
static const struct eusb2_repeater_cfg pmiv0104_eusb2_cfg = {
86+
/* No PMIC-specific init sequence, only board level tuning via DT */
87+
.init_tbl = (struct eusb2_repeater_init_tbl_reg[]) {},
88+
.init_tbl_num = 0,
89+
.vreg_list = pm8550b_vreg_l,
90+
.num_vregs = ARRAY_SIZE(pm8550b_vreg_l),
91+
};
92+
8593
static const struct eusb2_repeater_cfg smb2360_eusb2_cfg = {
8694
.init_tbl = smb2360_init_tbl,
8795
.init_tbl_num = ARRAY_SIZE(smb2360_init_tbl),
@@ -262,6 +270,10 @@ static const struct of_device_id eusb2_repeater_of_match_table[] = {
262270
.compatible = "qcom,pm8550b-eusb2-repeater",
263271
.data = &pm8550b_eusb2_cfg,
264272
},
273+
{
274+
.compatible = "qcom,pmiv0104-eusb2-repeater",
275+
.data = &pmiv0104_eusb2_cfg,
276+
},
265277
{
266278
.compatible = "qcom,smb2360-eusb2-repeater",
267279
.data = &smb2360_eusb2_cfg,

0 commit comments

Comments
 (0)