From nobody Mon Feb 9 04:21:32 2026 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.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 61EFE2E62C2 for ; Wed, 9 Jul 2025 14:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072928; cv=none; b=Z/yB2lFeaYanDmWWbCQ4l1CkcxbZF+5RonQbdofhZDZBQB4L1xHfaSfIaUKnYUzQ04XDJ2UgE0T/juPg8nlzBvZ4euV5Gj7PWQhCTfXdgBRcp8ou7y8/EbHI0P/qfJXF7PxzcrjamSeupKclAPZsRe5yP27sLCgrpda7WKXNt/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072928; c=relaxed/simple; bh=NXnGscA8zt8gzxiNiTYIUpV9OfGd5HRPGvlVvXT/iJo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RNu+f9kT0wuWwLWHq8i3fxxT0tb9FoBsjD5F7mkD911lAudFZnn0ZW2KrLFZYxS3E8v1DspEh5JZUMZdqwP1lJM2bWkQD59O2iZvG9nI7sUMM4QXyK+HgTtvBxdNSrJHX4XxE7E0FiMH+acVLixlufxtB2yak3uGjHQ5ul7fjVs= 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=S2X+5WHk; arc=none smtp.client-ip=209.85.218.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="S2X+5WHk" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-ae0de1c378fso867069766b.3 for ; Wed, 09 Jul 2025 07:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1752072925; x=1752677725; 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=Q3A3hRQjja7NMerwUSuHLGaJ14/ejKpqQyPzO1AUrp8=; b=S2X+5WHkxvCTkI8GCnIhZ6XJc4CH/JVvODRxquvXfi8ySc1qbffB5YvWv5Ax8Htb6V 80cNmZKswnQWtSkv05BGtBrc5iWe6L4jpssglTblkmQcntpFnN9eSUaVRZui/YfPkor4 JNElNPQoTjYCJjyezgc6q++paIgQnsObA7Erol1sNQ252y7OOk8x7eTN7PR8guccyFIw i3+Bz3RgJk5humniUz2MIpbUDOqwEaTHRZoRG//587PFmRA/8oBDruHURm2RQ4E6mfeo 1NmtOMJmn+5ZaoaTmM2SL3h/0tb347K/73r5fkR6XhMXj3OeCNy0lxNd8Tq9+nxife7S P9ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752072925; x=1752677725; 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=Q3A3hRQjja7NMerwUSuHLGaJ14/ejKpqQyPzO1AUrp8=; b=Wu6t95Zq6pvcdrNIeTcjlGXWOidXOTRD8X8Ex8DzninLKttTJCkEMiQu5BI89bpa9a JuJP/Tr9NVJiRvnE2GURrmzasTk7/qjiKdLDtUzUPGboRq66c9b/G90pyVoLURDTuEyX jgyQu1plU1AZT3Oyy+x8sfr8JrgaayT6LBSUVGJEFZz7LRvZKTdZ1aFW9IIy5xt85TVn WTOvelqj1fd3yeOfPVCjUuu9n/UXqZ/Xu1TkeIDVrwJGSBc5hMdb3XSpfsu9tKgo+/e3 11LUm3qW6Lm7xd8eJtLCjfISPuM7Sl9llpsN+XlmxOqU4roU8nO/Gr2Y4936K2JZXeGU jdmQ== X-Forwarded-Encrypted: i=1; AJvYcCUBjr/ySOHPEg61Y18SblAgZ5SLdsPjXu66aOpHg0xtXorbdkdO6JvsCkoC4Hx63hSpX/ecldtUMXWENXQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyXhz6l+XjnU9O+pAA6q87OV4IJj+5nbtE6TvNEHPHYLWjehbsA 5zMV3LpxciHYgjPCjhsNQ/yph8WHn5u+OgFmKP/qm0GViwaDQ9eLSbEpQ4WID2DJxus= X-Gm-Gg: ASbGnctgl05R0Brl25U3m75BCn/R0/CC77bRNrx0Y0ToRkGB7B8bOr2qbDyMO8bdsh/ nKbfzHnw3qtxd/NPDjeWYbRt6hyqGG4xoeb0vps/AGjc7rgQgecZvZbwjEiXC/UJbnf6x4CAtxw AjnogqBchfK0tJv/VjknYo2CO/Vt5RXXrEcPXlPFr5mPfQWUfpRl+yia4GioFUF2RG+aXLq2Jy6 rXKCn2Drd0ii0XbstvQjcX29HnQUwVVrp/RC85D/oD5Cl9EhlIwii72XRawxaaTtq+a32uIVWXl u1sJ56yQ+xuoYDuDZd/B6yi1rCRaytGR7JRgkPY1hX+HmtdI14NKHKv44NzawwV2O9cTUhH4RAs Cnmxfx30EFn9yJOKZbShDgYxXAsLlJRTZjuiy+KVqJ0E= X-Google-Smtp-Source: AGHT+IE1CWKVdaIzESsJv98mg9o7AX3rvILsP4/LmkQKyHBEdouOQ04zPbRMcVC/GnkZe9exm7j4sg== X-Received: by 2002:a17:907:3c90:b0:ae3:6cc8:e426 with SMTP id a640c23a62f3a-ae6e1049e58mr9441866b.9.1752072924666; Wed, 09 Jul 2025 07:55:24 -0700 (PDT) Received: from otso.local (144-178-202-139.static.ef-service.nl. [144.178.202.139]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f6b600ddsm1116795766b.158.2025.07.09.07.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 07:55:24 -0700 (PDT) From: Luca Weiss Date: Wed, 09 Jul 2025 16:55:14 +0200 Subject: [PATCH v2 1/4] dt-bindings: phy: qcom,snps-eusb2-repeater: Document qcom,tune-res-fsdif 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: <20250709-sm7635-eusb-repeater-v2-1-b6eff075c097@fairphone.com> References: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> In-Reply-To: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752072923; l=1262; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=NXnGscA8zt8gzxiNiTYIUpV9OfGd5HRPGvlVvXT/iJo=; b=H+Maa8FQfQMc4eZK+lVTkgEgw5axIHwWJiezVuUHjjiMKqtPvImloJEAECKGkVNX2B4QbuKj/ VbyHsa6K3PHDkywR6SF4gjvn6DReQ+U5+SEDTmfS3zD9EEvXZb76HsM X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= Document the FS Differential TX Output Resistance Tuning value found on the eUSB2 repeater on Qualcomm PMICs. The tuning values have special meanings, being different offsets of the resistance to the default value in Ohms but the exact meaning is not relevant here, as the correct tuning is determined by hardware engineers to make sure the electrical properties are as expected. Signed-off-by: Luca Weiss Reviewed-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml | 6 ++= ++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater= .yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml index 27f064a71c9fb8cb60e8333fb285f0510a4af94f..6bfd11657e2992735998063b3ca= 390e04a03930d 100644 --- a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml @@ -52,6 +52,12 @@ properties: minimum: 0 maximum: 7 =20 + qcom,tune-res-fsdif: + $ref: /schemas/types.yaml#/definitions/uint8 + description: FS Differential TX Output Resistance Tuning + minimum: 0 + maximum: 7 + required: - compatible - reg --=20 2.50.0 From nobody Mon Feb 9 04:21:32 2026 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 B111F2E6D13 for ; Wed, 9 Jul 2025 14:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072929; cv=none; b=mMOXcmH0OGpPdnB4RAso7WUZ3KLU50Z4MoPwyE8kJcyskt/ES7R8VFgu4AqfzTSyr23F0N2MeJVdqYeZknxVNnGlYJgNk5ezdLN+Oo8TUYM9/xd2yrqxq9lE2LgV3oF4OxClA0tGWadX3Qzr7IX54oPklC/1HQ2lmADBkxcaQ6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072929; c=relaxed/simple; bh=JjK37/7ou8Ub4yuQzbdrYu/+a8HXwLFQlJ7GCGIoSKo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uf/7mP0Lmqj4YK1mcht5MEpCt9LIrItREpU/gxpNGI0QtBx/5nIkM6OKJfAQ2jwVLY0a/WgY/8nvREwvOg9PazRX61nRDRccOfuoyL4jWMOKaboIl9Lr9eFWJdS7bVcV6bU2G/BTA4IbGOJ+Ut/KOoUHR309Pe2VfALFD//z144= 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=G2/wTAhW; arc=none smtp.client-ip=209.85.208.49 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="G2/wTAhW" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-60c4f796446so8471417a12.1 for ; Wed, 09 Jul 2025 07:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1752072925; x=1752677725; 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=FqUnckrV2DHR0JIRkRD40uIY/f6Qb0J4rvTjJoaYqS8=; b=G2/wTAhWzSamOvQZZmw1tZalAIExmzLA92jJ4s96G2FxsX9D6IDLry+yOxzIPIiFkL cpbEwPnisAa89f0FULNEFxVtHK04GId/bjyb5Ith3GQFCmxLbYDXc95xl+RCwGM88146 teocst8VOAlfrJPyLY1nI4IRSLz4MnYIHUJ3sU3/WN3qrXAgb/WVEkY0ppQsjAcoQnx/ wMoVGaAhUVOV8Mc8+CeO0SKGSZrtll7RWwZrjUniH5mlioCtIKj0AukzKMcY9hIZOqvZ ZC8ub/Epl9gA5wnH1dp9L3ggx0a8lM0VzhxyxW80sSRC4269Wrp+YXAe8PbmeQJg2mic Gb7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752072925; x=1752677725; 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=FqUnckrV2DHR0JIRkRD40uIY/f6Qb0J4rvTjJoaYqS8=; b=uhDoQMoWhUOntMcD8jpsRnjW/x3zCv4HdSydTe0mKCc0VMitvFGDg5ufnveZ03BYL+ /8udLMmQiMGJpkQLwY0FnpC8UOHKXBcOFqyNYWmxd4JhItPbWpaO8OaDGZ+CrX+2nkcO AGkzzW+yfO2INd5mBjQ0nQsHMMbysdmcDPoKBclfVkV4OFIc5qxt5QF3NURJlT4Oiybl cQf7L6BlW8YjbNYLQMfsfcE7B77ivxIsHMOcDUWDoxDYm7QmJ0zo8gmPmxBViXuCSdDd 8xpV53+X7nw8wE/HFPQMpte72vw3nPDqDxy2W3yKFVr8mQEPQrvxkMGt9iJclNgbXAOJ kV8g== X-Forwarded-Encrypted: i=1; AJvYcCX4uJSPP6UlqaUKhn3gg+W27pGsYaS9ft2liiG+yphFDIKf4MPrkk9G+SJUcQHBHiZ4yfOvS6ggcM6Ppf4=@vger.kernel.org X-Gm-Message-State: AOJu0Yz/6lBN3MxKwft+Jw9D/SXcBhN7SfxaA6vW/MKGq8Ix+8ku0r/D q2KrdGKHOeEP8bw/mZfSEVN0K5TIj8JBpfy8QNsuh0tvs0arQEv5Zmx1LmtoffHNU5I= X-Gm-Gg: ASbGncu9HKu5zTLK+Zp39QA8xLhJQSiaEF1mYOyMgPS0yLPKkFPUpr+yRQ+ub2kCdLJ kcw2DwBoHH0rFsQVZglGykE+jdy5g08b/gqPrxv1+0Cn7msqh6yB32chpyhpw9lvABaYJHJmgnc R1oi09vATe8kwVyihRlVRjZ8wIKTYoCJuCdOSLTyDU07BrFGPQnkOqwvDuNs2ZHsSALJ4WYPFdW KPk2GKPuB4RwIwUXVGwqDuvDFtdn6aQ6VVL2oZMGKOPzRmM8GXuzsQEP3M2S3ZZLFimZ+Xox4ms bQYiXG4CB8waQvdRclnb2vK50wX78rzqEHXPrqXxuefq2OJILPV/P9QFCO7bBzF+Xs1LrsykzO4 jb9MVfDPXnSlT//Fiz1/52dWKRi76FRE5/FD3+E5Ly/U= X-Google-Smtp-Source: AGHT+IHYj4k/qDDYaJjD9Pvlt5hW+aGvDzyWD8yDesgLcfq/4kuKmOi8Z6ujnsY58oHIu98v8zVcqQ== X-Received: by 2002:a17:907:ea6:b0:ae0:c976:cc84 with SMTP id a640c23a62f3a-ae6cf6128f6mr309110666b.24.1752072925389; Wed, 09 Jul 2025 07:55:25 -0700 (PDT) Received: from otso.local (144-178-202-139.static.ef-service.nl. [144.178.202.139]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f6b600ddsm1116795766b.158.2025.07.09.07.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 07:55:24 -0700 (PDT) From: Luca Weiss Date: Wed, 09 Jul 2025 16:55:15 +0200 Subject: [PATCH v2 2/4] phy: qualcomm: phy-qcom-eusb2-repeater: Support tune-res-fsdif prop 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: <20250709-sm7635-eusb-repeater-v2-2-b6eff075c097@fairphone.com> References: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> In-Reply-To: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752072923; l=1187; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=JjK37/7ou8Ub4yuQzbdrYu/+a8HXwLFQlJ7GCGIoSKo=; b=a4O39biLPv1ckqefPreNqneOFtzOmXRAtTy90P3R2Po9bjTLgvaXw8O0srrHGpicIbkBCZwtq GMA3OKt/wNkAXcOlHdD0WJfhA5Q0vh5eGp6Mfjp75rWf3jKut3x0cbF X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= Support reading the FS Differential TX Output Resistance Tuning from devicetree and writing the register, as required on some boards. Reviewed-by: Abel Vesa Reviewed-by: Neil Armstrong Signed-off-by: Luca Weiss --- drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/q= ualcomm/phy-qcom-eusb2-repeater.c index d7493c2294ef23e37e484019a49ddf7b3d6a6a46..61594739e5b12706775622e1f76= af6ad5d2d29bf 100644 --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c @@ -136,6 +136,9 @@ static int eusb2_repeater_init(struct phy *phy) if (!of_property_read_u8(np, "qcom,tune-usb2-preem", &val)) regmap_write(regmap, base + EUSB2_TUNE_IUSB2, val); =20 + if (!of_property_read_u8(np, "qcom,tune-res-fsdif", &val)) + regmap_write(regmap, base + EUSB2_TUNE_RES_FSDIF, val); + /* Wait for status OK */ ret =3D regmap_read_poll_timeout(regmap, base + EUSB2_RPTR_STATUS, poll_v= al, poll_val & RPTR_OK, 10, 5); --=20 2.50.0 From nobody Mon Feb 9 04:21:32 2026 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 D4BD02E6D24 for ; Wed, 9 Jul 2025 14:55:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072931; cv=none; b=SKz741rYa3S8Qnd8iUUU/xthfry+0UnDsxH/oVPl8fLL2rPlMaq7bwQ+jc94wVHO3EsPKPXFs0tYjrN329b2EIygsEVpHsb4LceQK9UI/W0pDp3tmSS1Kv3LQZF6Ag9wISzlMqUy/XuFmBrbS6O8liZJ6emXRUAKqmksPZ1IrTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072931; c=relaxed/simple; bh=RBqmm6y91+jO6MdXINPCWCg3viAFwnMdKUq3SgXL3z0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Fw5mVSzFZjNmyQ8MG0eSfJuqH4d0ptkDXfpD/QHyCVKtLMKr3H1PCWa8VdHjSefZHP7bU6mscC/XCNVy3DYa0nL5wMaX6jLdNR8zK1MFAjvxUUWvP0rdKPSZJRmGOA/9gsWF0ywQHU4nQ7F7breG0jc4cZ5enj0SSTT8foPT7bM= 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=o4+qvPsY; arc=none smtp.client-ip=209.85.218.52 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="o4+qvPsY" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-ae3be3eabd8so3677166b.1 for ; Wed, 09 Jul 2025 07:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1752072926; x=1752677726; 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=NN/6WRtWv+PbFm6J3y+B0W74bkmxsW5QkrIaTbqFnB0=; b=o4+qvPsYfRKiUoqwQMhbRKBKXtpc9sslGmFMAlEvjAjAtQ1Qh7EJZ35fx2bKlvcQs9 EXNhYt/6RsDTy/gzMHzUnLgexHGGWTM8Uc10u0S8Eyhq26b6y5eisZa4t8n+gN1GcOvM eJwrSD2n4uC062WtV1v7vsK9fontsS0nlc0WIjc4ibUwq1gwzSMfthuHxybceq4GKB95 3HP4bsC5lIkaxQ4RTwuM/pkyCU0kvwQf7rw1Q3ARl2uruQgHb4do/vPTkxrq13/aDiiY iI1bmPsIbZ7JWs2XXNBV2ESSgiGVOHq9wxpQAlliwCRH3s7Y5u1YjNaGgAV5QDXCx20M fUMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752072926; x=1752677726; 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=NN/6WRtWv+PbFm6J3y+B0W74bkmxsW5QkrIaTbqFnB0=; b=mvGD/xdVsMINc+fTlaePoNYPgVkp094edAYRYKzw0NnpjoNeC1khnTB73dcRYv8xMz MS7FYac5GBJqlStwf8evg06rW95Y6s4o7I8jrX4htgmugMO/ZldqOpfnElTi4A6vKC+t K3fhX5hktxDcoi2dd9L7jsSTSoDtTW7lo+R5sTL94vK/NwplYX/VOE5IzE+3P3MPHDgf 3L5+NRg3OjaIYjPgH1lDedXIYWm+jAGs3DcZqpMmWa2G1o3Ywlu6dtRy2gBSYEtZI2li z3X5X9PdIeAUl+/vmR18vZntDskoBQ6B5TkcmeopLjNls2bBFjKMZ0t45Zj3C2VLypyT Oxjw== X-Forwarded-Encrypted: i=1; AJvYcCWzPd+we+1Y8Kc7PatcpfkRTdHVo9kk8QJKAYzpAsQn9SbFzF+N3frFg2oouijk7taQLFHxjw2ayPlt57Q=@vger.kernel.org X-Gm-Message-State: AOJu0YxOhfOXC5zZplFmIXP2g+gOL06YJACQskQXx3nv9CSVIonTGV1S 86uBowePs/HBbE3FAlG4kcdXyLxoEA3V8/M8Iq0BaXnNWaIb5bKHtgoXMHS4kJfH8Wc= X-Gm-Gg: ASbGncu7XtSrDci2aMkwJBcSLK1EjnU27P7JbeSx1q2eL/yfNLaIYE0mzJUYDB+OGTz YkUp5emlBIsjZN7Ay89hOjqqLtEWLGy2oUpnAsnsVOaPvISBscD2jEfmSKNRNLd76ocFUwT4bHh 9VH2stns0ayoBZvUjAKTk60AQR5+8Td0an5bhbGFknWXpkGDFI9yF1dkt3bgc65kBR3MLghb9gT bJNFlKCT5076fNyZ1YYCLX3Oz+j1ul4xwxBJ76xMk6MpwejwgUS+auqAIAd3j1mPpKXlWjhojeJ PbkmRg/eos9aKghY+4EWjaq0xYiv+7ZFx6IlqS+SLz/Coisxy2NL7ELC9g/oORkVSWsVnq9ayuX HuKoC/DhzhgR/M/wkk1zWVA7rlouytFXU X-Google-Smtp-Source: AGHT+IF2i3QqxTWjuz5P1YW6xQ4cfF5i5ZqOygwIXICALdfEZ1j4uTvDCh18CLGk4T33wWsNXDP94Q== X-Received: by 2002:a17:907:bd96:b0:aca:95eb:12e with SMTP id a640c23a62f3a-ae6d146ee2fmr277785366b.24.1752072926007; Wed, 09 Jul 2025 07:55:26 -0700 (PDT) Received: from otso.local (144-178-202-139.static.ef-service.nl. [144.178.202.139]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f6b600ddsm1116795766b.158.2025.07.09.07.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 07:55:25 -0700 (PDT) From: Luca Weiss Date: Wed, 09 Jul 2025 16:55:16 +0200 Subject: [PATCH v2 3/4] dt-bindings: phy: qcom,snps-eusb2-repeater: Add compatible for PMIV0104 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: <20250709-sm7635-eusb-repeater-v2-3-b6eff075c097@fairphone.com> References: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> In-Reply-To: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752072923; l=956; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=RBqmm6y91+jO6MdXINPCWCg3viAFwnMdKUq3SgXL3z0=; b=hwGOCiTQWIof7HrmAiBGw2P9RUOR2R7YKLzD2dtTwUYTAmNlWb35hTXpZMFEfFaYmjFiUHBqy d2B4j4RXkNvDSM+jA2uL6VWuTxh1n7b9WZPphpHedP0CWDus6dVYyYm X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= Add a dt-bindings compatible string for the Qualcomm's PMIV0104 PMIC. Acked-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater= .yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml index 6bfd11657e2992735998063b3ca390e04a03930d..5bf0d6c9c0256300d00f84307b7= f6ccf669f17c4 100644 --- a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-repeater.yaml @@ -22,6 +22,7 @@ properties: - const: qcom,pm8550b-eusb2-repeater - enum: - qcom,pm8550b-eusb2-repeater + - qcom,pmiv0104-eusb2-repeater - qcom,smb2360-eusb2-repeater =20 reg: --=20 2.50.0 From nobody Mon Feb 9 04:21:32 2026 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 A5E582E7653 for ; Wed, 9 Jul 2025 14:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072930; cv=none; b=HuESrkMt1/fi52vINIlcX8IbLad2Wd1go6rWGU2UATksz3WP1tHckI2ak3J2gVxAbFMflmscsNsCywdYK6uSYdeBJwKd088RjwJTlLsVRmlPMcntBwnVpTg2Xv4aJ0BFJYCfaR82xk37oCDEZftDZ5dKQgsqFPDDa1UYDcemccg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752072930; c=relaxed/simple; bh=dqwE+mgZFmDVF9ARQ35sDJJ/X46qouKrH+a/CF0hG4w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=a0VH31sByUKmUxJavJF7Q3SeNn9mR0IiLqDf7lOUTe8KeXJC9NZ078ZT5BB6Awtr862Lh3q8BpT4uksgYqMKXceX6x+qfG2AAs6IGMOhdVP3OsY92n4v8lz9WYV3bON/vkzs3XH6JQbI+zb81HYrFqdBD7PTYoplSEeAD+/9oK4= 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=K6hq+9Qe; arc=none smtp.client-ip=209.85.218.47 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="K6hq+9Qe" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-ae0de1c378fso867077166b.3 for ; Wed, 09 Jul 2025 07:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1752072927; x=1752677727; 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=5MGHNaliWz7mYnqQYod2IP0rY/CEmdQgMImzv7dtE1Q=; b=K6hq+9Qew1kDjCw7OO/rcesSqRTVQiTuwJYlCc/wtP8JjuUl/3LUuyokf0O+0b6SF7 Cm48TyWF8D8Nrt/90fZKn4eHiXSMeeefWDW818nTQHurB6fWZSt19XnZ4gbWWMsyY47a uPlYahwqYwfZo6eZrTfRdVkEuddyrUN/5MW5lvZZ4/xAXU2/1b6EdKDZ6K6YRpxsQ7kw toTIZFz3I84ZwczdH4XLJgKgg8hnsOVU2zH2f4hwez8vNsQxajLL9FDZduv+NR+OEp9f GjduxYhcFdEjs20vuWg2nEZz9xIT0XpdhZGlXO99YGdD6RCLNZhdGOSDI399j71lnUsO xxrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752072927; x=1752677727; 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=5MGHNaliWz7mYnqQYod2IP0rY/CEmdQgMImzv7dtE1Q=; b=rY88VocMPDVQIysz3m6ClPe+nZN/TW62eV5F5J1lIm68WHs9VeyfNkKOJrriqQBjhw +dyI8WmCtnJUiEx9TRdd64TNlY+EvOx8molBd9+IFhXRYW/JKPOcgqOtXghhxWory8rQ OKM8QY5c5kIvyyDhV7xxilygjYDMZBB3/dqm8wkY56V4A8frV/yGq2FNVCUJdPsqTrzd cEckq2N12Umg3pD55hkHLlBMhr86BpWqThxsAfHmLe/vkG29epKfO3ioveVx2q2GXeVE 7PjjpldiKZhvAdBK8/t2vg3bxUVgRBkwWBGU4+zGc84L9sE58IC5F5L8sVOtq5yUh48y +mZg== X-Forwarded-Encrypted: i=1; AJvYcCUxjhSfEzKahgXTNm1Nd3u+mih9KC6iQMnpzMIxwnyMcf1T0eR2wJ+5qz/bcfnLwdZWUV3omXJtuaFlY48=@vger.kernel.org X-Gm-Message-State: AOJu0YxcX17U+2cjvJHMxtrdm3z+OBa5pd4ZCix33fq4nLmRajNf+RPk PnyDXc40HLkblCfDmv+S1IqT0Hx/9jXBY/bGN7lXeFEuYFv/sM8qUa3usbr28ieyhOg= X-Gm-Gg: ASbGnctvd5g15vHdG4zlIP+v9Lu7L6J3tYMgCUsAtteDsriiIyz51fegJ7jnkvvoXcS /Zcdr/DVahIm/P5aOXCXeoxQrQVd6/Q0C+oo61tstfub+Gpun6hzTYkkqu2pJwK7t9kAbcSwQ9Q 86z6SC2+fwgS3BnnchY740dQS1PGd3oUDehXGJTBCa1RFitQdr5Vz5XmEQ77/O6b8fQ3u+AMkLk zwv0gIY2BIW9i/iQ0hUri+s/CUOT/8r4hIVWfmwOqpl8MDx7RG8ACbmcOgNpJoytoNbtfLj3TKc q3RXHFMYjy1mQSC5orSaQti8yJoy0qI2tuIKgrULPlCXZqsQCBidAulmGu4QbCXSVUraAaeMrNW QQ7pjp2EYDZIGF4S/dWXh7/UX9PUmYoaX X-Google-Smtp-Source: AGHT+IHPOGWQN7CQo5uvqH3maITnR7iEOg+MpVOumRq8qlMhfQS1/sDkbsRXe/C9cg/75eQhqbeYCQ== X-Received: by 2002:a17:907:3f89:b0:ae6:df9e:736c with SMTP id a640c23a62f3a-ae6e10bbee5mr9312366b.21.1752072926801; Wed, 09 Jul 2025 07:55:26 -0700 (PDT) Received: from otso.local (144-178-202-139.static.ef-service.nl. [144.178.202.139]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f6b600ddsm1116795766b.158.2025.07.09.07.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jul 2025 07:55:26 -0700 (PDT) From: Luca Weiss Date: Wed, 09 Jul 2025 16:55:17 +0200 Subject: [PATCH v2 4/4] phy: qualcomm: phy-qcom-eusb2-repeater: Add support for PMIV0104 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: <20250709-sm7635-eusb-repeater-v2-4-b6eff075c097@fairphone.com> References: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> In-Reply-To: <20250709-sm7635-eusb-repeater-v2-0-b6eff075c097@fairphone.com> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss , Neil Armstrong X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752072923; l=1730; i=luca.weiss@fairphone.com; s=20250611; h=from:subject:message-id; bh=dqwE+mgZFmDVF9ARQ35sDJJ/X46qouKrH+a/CF0hG4w=; b=lyt8D0KlGNc8UG/Ba5c6MpLOjIKEHZ2kTOawV2liOjxfTKc8u9Nw5YChPEsmez45eub/Or6uK TMYz3TmgQPZBVmIdMkPKcrbNwsoHX6fNfz3hrG8kiWbd2JZYNOLOxEc X-Developer-Key: i=luca.weiss@fairphone.com; a=ed25519; pk=O1aw+AAust5lEmgrNJ1Bs7PTY0fEsJm+mdkjExA69q8= 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 Reviewed-by: Neil Armstrong Signed-off-by: Luca Weiss --- 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/q= ualcomm/phy-qcom-eusb2-repeater.c index 61594739e5b12706775622e1f76af6ad5d2d29bf..3d4cdc4c18becd8efd5015e698b= 836ad4d7cf18c 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= =3D { .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), }; =20 +static const struct eusb2_repeater_cfg pmiv0104_eusb2_cfg =3D { + /* No PMIC-specific init sequence, only board level tuning via DT */ + .init_tbl =3D (struct eusb2_repeater_init_tbl_reg[]) {}, + .init_tbl_num =3D 0, + .vreg_list =3D pm8550b_vreg_l, + .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), +}; + static const struct eusb2_repeater_cfg smb2360_eusb2_cfg =3D { .init_tbl =3D smb2360_init_tbl, .init_tbl_num =3D ARRAY_SIZE(smb2360_init_tbl), @@ -264,6 +272,10 @@ static const struct of_device_id eusb2_repeater_of_mat= ch_table[] =3D { .compatible =3D "qcom,pm8550b-eusb2-repeater", .data =3D &pm8550b_eusb2_cfg, }, + { + .compatible =3D "qcom,pmiv0104-eusb2-repeater", + .data =3D &pmiv0104_eusb2_cfg, + }, { .compatible =3D "qcom,smb2360-eusb2-repeater", .data =3D &smb2360_eusb2_cfg, --=20 2.50.0