Re: [PATCH v2 3/5] phy: apple: atc: Add initial M3 series support
From: Sven Peter
Date: Tue Nov 24 2026 - 06:33:17 EST
On 22.11.26 13:27, Sasha Finkelstein wrote:
Adds initial support for the new t8122 phy. USB/TB only for now, DP
will fail to negotiate
Signed-off-by: Sasha Finkelstein <k@xxxxxxxxxxxxxx>
---
[...]
+
+static void atcphy_configure_post_tunable_t8122(struct apple_atcphy *atcphy, enum atcphy_mode mode)
+{
This function ...
+ if (atcphy_modes[mode].pipehandler_state != ATCPHY_PIPEHANDLER_STATE_USB3)
+ return;
+ core_set32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_SMALL);
+ udelay(10);
+ core_set32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_SMALL_OV);
+ udelay(10);
+ core_set32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_BIG);
+ udelay(10);
+ core_set32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_BIG_OV);
+ udelay(10);
+ core_clear32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_CLAMP);
+ udelay(10);
+ core_set32(atcphy, ACIOPHY_CFG0, ACIOPHY_CFG0_COMMON_CLAMP_OV);
+ udelay(10);
+ core_set32(atcphy, AUS_COMMON_SHIM_BLK_BIAS_REG, AUS_COMMON_SHIM_BLK_BIAS_REG_BGBIAS_OV);
+ udelay(10);
+}
+
+static void atcphy_configure_post_tunable_t8122(struct apple_atcphy *atcphy, enum atcphy_mode mode)
+{
... is defined again here and there's also a _t8103 variant so something is off here. I think you want the second one only which doesn't have atcphy_power_on_common_t8122 inline maybe?
+ if (atcphy_modes[mode].pipehandler_state == ATCPHY_PIPEHANDLER_STATE_USB3 ||
+ (atcphy->hw->dp && atcphy_modes[mode].enable_dp_aux))
+ atcphy_power_on_common_t8122(atcphy);
+}
+
Sven