From patchwork Wed Sep 13 09:53:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 722178 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55E66CA5534 for ; Wed, 13 Sep 2023 09:54:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239590AbjIMJyK (ORCPT ); Wed, 13 Sep 2023 05:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236466AbjIMJyE (ORCPT ); Wed, 13 Sep 2023 05:54:04 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CC31BCE for ; Wed, 13 Sep 2023 02:53:59 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9a58dbd5daeso868143366b.2 for ; Wed, 13 Sep 2023 02:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694598838; x=1695203638; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=fad1rR7O92f8MbM+uIDjcw5AGbZOnibqZ09Elwwq4ek=; b=bJxNXu9RU7h4EQyXiLfDZFmMM5eSl0q/orWum/zxLJnnpc/FTdYbP4YYhkFTGT/1pO OTBnQSnGL5aqkYzZhePH5cOpH/k0sEzchGOpBWFkuYAaAS/ozOzYlPh4J2NMLCRhfstW R9+6I2LOStzy8MB7LfXgo5KZDx1KwASzlQrQhdxaSOhMAbnQkWB5bXY/HoziOGvFP4mx Mfa27u0/2/7dEeMRL3G76VHIOluxejomJS2Ua0iNvybzW59LzlR/AeBJUF3XDZxa+PFo 0iWM+tES4NFy1p63W7Y6eexcrVdiFGJMs3h1fmVyps+HikHDj7APArmrtiAlhsEM+OTy OV1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694598838; x=1695203638; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fad1rR7O92f8MbM+uIDjcw5AGbZOnibqZ09Elwwq4ek=; b=GnAIugu4/4yyx7/XMekK/YrEznx+NZA0b8coNDKEza214/zYX7AhJiLDCAAsFMDM1R jyyOIyGSA1Bu2lD8TyQrSohwy5WaDboncGDHK0EDRYbfUlIgK5Dj/hNR14M4cCV2/Rzm OU9GaJPqlkcGlXCqFTIMrPT0YO4TBP7OIS/P1dGP5JosIPxYTV9ld8tAjN997erSjsoY nPD3NfJUSKHp8R9GuGlULzlQuPdvjnogVNTlURJVC2lpTf1GQ++i7T0uGZRv78Fh6lzi xzumRWyTF64dlJONZ1YzQJE0ByBdFNd/Jsiomd/6Ik/K/LYHgexgTUDhHNfNtMGHUeMq ZUog== X-Gm-Message-State: AOJu0YyxtxRcvjTGMPDa/6OShNNcBRXfPvtCbk1IINK9JSB8uzLzz79L VTRAV9ij3FdIJx95NFfC//ouMA== X-Google-Smtp-Source: AGHT+IGnGtXQchEs2Ii+OMSkJplLM+jTdktXjIslZBx2soTdmdINHLx0PipggsOaf3dRDQU6Re+rfg== X-Received: by 2002:a17:906:315a:b0:99b:e5c3:2e45 with SMTP id e26-20020a170906315a00b0099be5c32e45mr1481772eje.28.1694598838102; Wed, 13 Sep 2023 02:53:58 -0700 (PDT) Received: from [10.167.154.1] (178235177106.dynamic-4-waw-k-1-1-0.vectranet.pl. [178.235.177.106]) by smtp.gmail.com with ESMTPSA id l21-20020a170906939500b00985ed2f1584sm8092669ejx.187.2023.09.13.02.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 02:53:57 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v2 0/4] EUSB2 repeater init sequence override Date: Wed, 13 Sep 2023 11:53:22 +0200 Message-Id: <20230830-topic-eusb2_override-v2-0-7d8c893d93f6@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJOGAWUC/4WNQQqDMBAAv1JybkpMqqQ99R9FyiauuiCJbDS0i H9v6gd6nIFhNpGQCZO4nzbBmClRDAX0+ST8CGFASV1hoZU2yhollziTl7gmp18xIzN1KAGaput vHpprJUrqIKF0DMGPJQ7rNBU5M/b0Pl7PtvBIaYn8Oda5+tk/l1xJJcFpY3VtbA32MVEAjpfIg 2j3ff8C0hIX/M4AAAA= To: Andy Gross , Bjorn Andersson , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694598835; l=1192; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=QZkLavErYAckHPtysRiIt6y82qlIstwn9hPWxIXGKnk=; b=H7+WiwYdLnKaEO7l/O93t4KHu1fBwQsdrs/2pnS29hKZFdQNJp5Rh7y9E99j1+dFPXAR9Itkq 99FGy8WHI22AEhxFhXSenjlO7+mivRXWZ1G6vU7ghafVhKptQEZRRxW X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The EUSB2 repeater goes through a tuning sequence as part of its initialization. This series ensures the tuning is "clean" and can be overridden for devices that need it. Signed-off-by: Konrad Dybcio Acked-by: Rob Herring --- Changes in v2: - Change register names to something more human readable in bindings (RobH) - Make "Zero out untouched tuning regs" actually do what it says - Link to v1: https://lore.kernel.org/r/20230830-topic-eusb2_override-v1-0-ab23825385a8@linaro.org --- Konrad Dybcio (4): dt-bindings: phy: qcom,snps-eusb2-repeater: Add magic tuning overrides phy: qualcomm: phy-qcom-eusb2-repeater: Use regmap_fields phy: qualcomm: phy-qcom-eusb2-repeater: Zero out untouched tuning regs phy: qualcomm: phy-qcom-eusb2-repeater: Add tuning overrides .../bindings/phy/qcom,snps-eusb2-repeater.yaml | 21 +++ drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 146 ++++++++++++++++----- 2 files changed, 132 insertions(+), 35 deletions(-) --- base-commit: 3c13c772fc233a10342c8e1605ff0855dfdf0c89 change-id: 20230830-topic-eusb2_override-aa66df9ca641 Best regards,