From nobody Tue Feb 10 17:30:40 2026 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BDDA29E0EC for ; Wed, 25 Jun 2025 09:14:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750842888; cv=none; b=PDuKhjy8wfaM0NEpKUg5+fGrNZ0ajozrcJEnlzDCegfbIxHy7slGs6mzQePYVTAHaQ61XA3le7DXQkt/tmwJE/cX+7tCf69lyXJhfIkwbrv57806uGLpXLFOVETxDiVRNMsBIeQg+dZgFIesGZO3pA8yG0O2+2czGCOZhrDy2TA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750842888; c=relaxed/simple; bh=+GSUprlWx6WJefoJvkEn+TwLdVvC5fox0gg5Y+LwfHw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ItNRItqbDr3jNL1xfpX4amUWFK44lepsWVW69lEv+wdtj4bCg/v6ME5ufssHearEDOGz9DDfbjNIfybT60VLkGdUjiqnONbEV4xMJB8Mg64vB6zKmGYkfRhBvRISSINFQSaD1Ge2G5iptU3SieLND5wbsktJKx4zWRmyy01iaMU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=YnwXMN7d; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="YnwXMN7d" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-606b58241c9so10031334a12.3 for ; Wed, 25 Jun 2025 02:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1750842883; x=1751447683; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ezrrvemh3BSb8JW/T0pKm8QnZFPlbno9UW9Wh0XmVYM=; b=YnwXMN7d5HK1HMLjK4Z5acbA1qZ8PKRrwaLBPco/GAg+h/LmH59RUwm3ZBGOHJxC3I 1txu43uesvpQUNlzv/AFqEMvMs3ttyV+Zc02K4OH9MeCecIkMz37yS521mciS+bXdZma OkmbOYyJFBHuZbeYlIIe9PDap5V6QDDKY7pHieVg4z9Phn2hRFVfW9QRz7UZrJu2kCuj o2a+a/sodsoknLG3jD0oaJb9y2VSwWH3NmrmPNS2Yr4SV4T9WkMOqkKSuHCr/S/VBdWQ YOq1649euFmhX/ia1MIFs5o/7Ss614HxwNeFeFieRgKogcOrGpkXBK/PdsvJ/aJYw+cg SIrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750842883; x=1751447683; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ezrrvemh3BSb8JW/T0pKm8QnZFPlbno9UW9Wh0XmVYM=; b=w1FNP9AvVUr04Oc7yRKwvQjSQRdN1ryMGMn48wzRG7Uf15zjuIw5GfKsOxg8Swml2w IrTzzAjmu0vB9ZNCS3O6HOkuZ1UprmFwliYnNsbINZKCf28q76neKylSWrSIO39Zkw+d 8Wc4waQ3XCn5aysWnqiP4L1oJUpGfKsrf1hp2KGMZzX1j8d4jkW0vEhZaLFLC+gsBxFT Dy2QuJuTPyQgbGiYCE+//JT+p4iqoQ7npkEVgt6tMP3RXQFKXCW6De0X3Dy5nUwTFkl4 GP5fjDiMb5w/h8OGj2AyMrGGT8crmj+5whZwJocq3WktL5xSTxxB8ZEJbjei89rSjs/1 YLYA== X-Forwarded-Encrypted: i=1; AJvYcCX90tP6+HNXjlUCkFVCh3/ipY07SXZKmMgnomQl5GDvd35VlCkoILFGAEvKltFWFSlf/+3gX6DNdsGq3LE=@vger.kernel.org X-Gm-Message-State: AOJu0YyNKPEcMbp9MeJ5UBKLgwCPpYtlz8IUwrIVD3BH7JvkKybvxqZn U+xE205g1RQXxaQxOV/2pmKZR9REoR/w9xVKWNTQw3sICOSnE3ATdUuhhY0Db5qriWs= X-Gm-Gg: ASbGnctAjWNKUd/ZGGnhk00oUhmLXIFfmszF78xJOpPddL97nhj8bKM8gDvv7nG5wiO JfqSILs3NdpZ4kT4ZyMT4aRdN2+ZDi7c5UtFn7Im3YzgcBp1L5AynUOUg/9uxQqWMwzz762oGpv +9tddzVoehBf/hifxq8CZ7LinAX3zWrU6jpxHUH2CwXCUl2CaxeYBIqkMh09KRcLbmnIi6SdCpu +jHNS1qS2zOOTiQEmt7xSUp5STKI5gAG5iwOIwCZaoYhYjCNBgU5qhwLVfLanUe8ksiNgeqIMg5 EBMiyXPGJ2VhVfD+LGfzS1jsWHOxTefsWNDpo24SkXBswoRfF46zBCJoYk7kXi9oWa6pkQ9tGkB aOEhu1Wln/9/qtinIgutFiaSX9g1G9dO5 X-Google-Smtp-Source: AGHT+IGIywmz9c5XNOpnohiRqMmd+RNf51s0QULoylL6obp0kqvk2eHNYG2CNGxRWX+GPIx78Dn6iw== X-Received: by 2002:a17:907:3e0e:b0:ae0:c7b4:b797 with SMTP id a640c23a62f3a-ae0c7b4b8e3mr100658766b.45.1750842882736; Wed, 25 Jun 2025 02:14:42 -0700 (PDT) Received: from otso.local (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae054083c95sm1021480166b.91.2025.06.25.02.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jun 2025 02:14:42 -0700 (PDT) From: Luca Weiss Date: Wed, 25 Jun 2025 11:14:32 +0200 Subject: [PATCH 4/4] phy: qcom: phy-qcom-snps-eusb2: Add extra register write for SM7635 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250625-sm7635-eusb-phy-v1-4-94d76e0667c1@fairphone.com> References: <20250625-sm7635-eusb-phy-v1-0-94d76e0667c1@fairphone.com> In-Reply-To: <20250625-sm7635-eusb-phy-v1-0-94d76e0667c1@fairphone.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Vinod Koul , Kishon Vijay Abraham I , Abel Vesa Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1750842877; l=1373; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=+GSUprlWx6WJefoJvkEn+TwLdVvC5fox0gg5Y+LwfHw=; b=8aIZ42DeUTJeCukpZfv88iXrxjGwzYcqNfO5sNCK9ORjM8K3L17YRcY5g2wj29GmvQjrgUBYa BV2F3Lnv+80BG6IJxhPKu4aj13he04SrDoqxPjnggGeb9t40K8Jf55v X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= As per the downstream devicetree for SM7635, add a register write for QCOM_USB_PHY_CFG_CTRL_1 as per the "eUSB2 HPG version 1.0.2 update". Signed-off-by: Luca Weiss Reviewed-by: Neil Armstrong --- The downstream driver supports an arbitrary extra init sequence via qcom,param-override-seq. volcano-usb.dtsi has the following which is implemented in this patch: /* eUSB2 HPG version 1.0.2 update */ qcom,param-override-seq =3D <0x00 0x58>; --- drivers/phy/phy-snps-eusb2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/phy/phy-snps-eusb2.c b/drivers/phy/phy-snps-eusb2.c index e232b8b4d29100b8fee9e913e2124788af09f2aa..6122fc797c7fd3011936edc3ff4= dafe6a58e6583 100644 --- a/drivers/phy/phy-snps-eusb2.c +++ b/drivers/phy/phy-snps-eusb2.c @@ -420,6 +420,12 @@ static int qcom_snps_eusb2_hsphy_init(struct phy *p) /* set default parameters */ qcom_eusb2_default_parameters(phy); =20 + if (of_device_is_compatible(p->dev.of_node, "qcom,sm7635-snps-eusb2-phy")= ) { + /* eUSB2 HPG version 1.0.2 update */ + writel_relaxed(0x0, phy->base + QCOM_USB_PHY_CFG_CTRL_1); + readl_relaxed(phy->base + QCOM_USB_PHY_CFG_CTRL_1); + } + snps_eusb2_hsphy_write_mask(phy->base, QCOM_USB_PHY_HS_PHY_CTRL2, USB2_SUSPEND_N_SEL | USB2_SUSPEND_N, USB2_SUSPEND_N_SEL | USB2_SUSPEND_N); --=20 2.50.0