From patchwork Tue May 16 15:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 9405 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp502705vqo; Tue, 16 May 2023 08:13:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JigwVPlNaYmk0p/WTwC6H4xr+XspQqk0UtzH3m43Ye98UJrh8EsqJKfLwicZ1/SFKUJmV X-Received: by 2002:a05:6a00:1a46:b0:641:d9b:a444 with SMTP id h6-20020a056a001a4600b006410d9ba444mr47768698pfv.31.1684249984081; Tue, 16 May 2023 08:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684249984; cv=none; d=google.com; s=arc-20160816; b=miCLTLC3XGKLq1Atvfga790TOabL1zk+iBUkiSrAlEhGRfLMRgt4cx5v53qw4Ub4HI d/DvMnGrEjyuB3AAWv4utxuPjTOa3r+N0gc97d9t6nlDQTJDo0oZml5HiP5FksPl64dv W9XMaKheA5EJd3fH8SRsLV6Psr2bDw8sOm3TSJrpmtQWkQsJLTWbhqNSn71JsAGF4F5C O0k8lFOrZHDio386H1W2gmQofW6uJixupzRH/8Q28pyvTy12NgWw2YdpSifu3R80oVgF 5C8CdhgT8F6L4gJNRYw7AJuMe1EYY9Sot0vhOQZ9Vpz51pKP9J+ziDIXyMEB/p0XURUf +7nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7txPToyylLXj/XeurHwXRxqGzvOp+rd7gJyEEX+n+mc=; b=SZCrLS0jYRPxRh43t5cSgziKmOjG6OHHoJt12g3FuYNPQfsdip/vQi0jbyGs6ioPdr USImtWPxTeXArpvCpcFHXjkviq/GLQPSFF+6WaVNbBQRCdCnWezNiCV3nI4Cz8V2jrH8 MEw/x+On+29xMr85hniZhKfCWUSisPy6Voc9lGoP03Gak+sTrHLmpPRvqoCPrAYxQmL/ ZqMDSnyn5GoAvbxiw+jCs1bKE/+6qf1yWfWU3ufSklHVJORzR3q6gc6A6279dm87EYV6 fSw7gJwUvQsCRZVgAHNS+OE+hhi7eFK6ZvvN0Wf/lho21ZER4MpGyhz3VyHGOeO7Hhbg kuBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PvT7igHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 142-20020a630094000000b0053063a32dacsi15219833pga.826.2023.05.16.08.12.49; Tue, 16 May 2023 08:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PvT7igHM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233321AbjEPPFY (ORCPT + 99 others); Tue, 16 May 2023 11:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233119AbjEPPFW (ORCPT ); Tue, 16 May 2023 11:05:22 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 812AB5B91 for ; Tue, 16 May 2023 08:05:21 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 41be03b00d2f7-52caed90d17so9295326a12.0 for ; Tue, 16 May 2023 08:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684249521; x=1686841521; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7txPToyylLXj/XeurHwXRxqGzvOp+rd7gJyEEX+n+mc=; b=PvT7igHMLEj8zD6P4R7JabDlBcl9puACGqWkd8D8L68rJbLbFTpSBEMtOs0zB59ssb cwjEa6KM18yUWqFIYkxkUO61wBCI8ZTekcW8mvyjgjaKeoJ+XU5mE7hndRPUGjyVbXRZ R0B1qiyVjs69DTDnP+z0TUxs6neB2P7iGxhFn41NVpfS6qPLX9eewNgjvDduIhiMv/vx MlO27RMkw12+Ff8Lg+HGQWMtVF8LkP6+//0JEpYkhiQr/Z0FVnlPRrBPPwk7HszsfFsl HSo0eKqsvH32V7tdH0JrFgJ6U97ERr2FiSm4vU6MGx5YK8A3TM/MAHrZNB28/T9RoBQC BcNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684249521; x=1686841521; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7txPToyylLXj/XeurHwXRxqGzvOp+rd7gJyEEX+n+mc=; b=fujOYJFXUfHeBW+O1AFnoUi2aP8bss5qNUtdSlnglz2GJBccFrUN2jp8YTwVUjrQ9D +8Mv4PWKoP/OxMFTqe9xmfI05x8sMO0KpUacciT/InJCuuUtntc+LjGffiq9WCFT9wBy Rz6o3CILN72j9YJj1Mp9ruvmLh8oO6dlR51IFfIvDQebH7sTNbw1SlvioW5yiO0Grvun MHNoyoftqTMKdMtbSO3/RrHOql2dhRbkDKXJ1RzR5MafA04LsJnbN+IWlAfm9h0e4hGM pZIPNHvOG2bomYHtF/mJjgmbIT/1Ee2ZGK/Swq1TwDsR2fsxHU/HzH+zp4CGADMyXC7m 0/qg== X-Gm-Message-State: AC+VfDxjKoaNk8cKmpmPzUe3OOE3LFJGIhAQpMEsI8pNlfIFA4z1TUcO PHly45oUyMrHBKQDgM37F/37uw== X-Received: by 2002:a05:6a20:7d82:b0:103:4c5d:667a with SMTP id v2-20020a056a207d8200b001034c5d667amr27948776pzj.4.1684249520825; Tue, 16 May 2023 08:05:20 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6bed:72cf:f5c9:ba94:6b85]) by smtp.gmail.com with ESMTPSA id h1-20020a654801000000b005302682a668sm12817164pgs.17.2023.05.16.08.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 08:05:20 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, kishon@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.baryshkov@linaro.org Subject: [PATCH v11 0/4] Enable USB SS qmp phy for Qualcomm SM6115 SoC Date: Tue, 16 May 2023 20:35:07 +0530 Message-Id: <20230516150511.2346357-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764722030245348504?= X-GMAIL-MSGID: =?utf-8?q?1766064111626325295?= Changes since v10: ----------------- - v10 can be seen here: https://lore.kernel.org/lkml/20230502053534.1240553-4-bhupesh.sharma@linaro.org/ - Rebased on phy/next, as Vinod was seeing rebasing issues with v9 while applying. Changes since v9: ----------------- - v9 can be seen here: https://lore.kernel.org/linux-arm-msm/20230501192432.1220727-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Dmitry on v9, regarding register size and pcs_misc offset handling. Also collected his R-Bs. Changes since v8: ----------------- - v8 can be seen here: https://lore.kernel.org/linux-arm-msm/20230410171010.2561393-1-bhupesh.sharma@linaro.org/ - Added driver change for new bindings used for sm6115 / qcm2290 devices. Changes since v7: ----------------- - v7 can be seen here: https://lore.kernel.org/linux-arm-msm/20230409200934.2329297-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Dmitry and added "pipe clk". Changes since v6: ----------------- - v6 can be seen here: https://lore.kernel.org/linux-arm-msm/20230407061122.2036838-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Bjorn and Dmitry and dropped old bindings in this version. Changes since v5: ----------------- - v5 can be seen here: https://lore.kernel.org/linux-arm-msm/20230405191633.1864671-1-bhupesh.sharma@linaro.org/ - Addressed review comments from Dmitry and made [PATCH 1/2] compatible with his 'split away legacy USB+DP code' series: Changes since v4: ----------------- - v4 can be seen here: https://lore.kernel.org/linux-arm-msm/20230401154725.1059563-1-bhupesh.sharma@linaro.org/ - Collected Krzysztof's Ack for [PATCH 1/2]. - Added more descriptive commit logs as per Dmitry's comments on v4. Changes since v3: ----------------- - v3 can be seen here: https://lore.kernel.org/linux-arm-msm/20221215094532.589291-4-bhupesh.sharma@linaro.org/ - Fixed v4 as per the downstream driver code: https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/heads/android-msm-bramble-4.19-android11-qpr1/qcom/bengal-usb.dtsi#296 This patchset adds the support for USB SS qmp phy for Qualcomm SM6115 SoC. For the previous versions of this patch there were conversations on irc as to whether this was a 'qcom,usb-ssphy-qmp-usb3-or-dp' or a 'qcom,usb-ssphy-qmp-dp-combo' as per downstream code and hardware documentation. But after a careful look at downstream dtsi (see [1]) it appears that this indeed is a 'qcom,usb-ssphy-qmp-usb3-or-dp' phy and not a 'dp-combo' phy. [1]. https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/heads/android-msm-bramble-4.19-android11-qpr1/qcom/bengal-usb.dtsi#296 Bhupesh Sharma (4): dt-bindings: phy: qcom,qmp-usb: Drop legacy bindings and move to newer one (SM6115 & QCM2290) phy: qcom-qmp-usb: add support for updated qcm2290 / sm6115 binding arm64: dts: qcom: sm6115: Add USB SS qmp phy node arm64: dts: qcom: qrb4210-rb2: Enable USB node .../phy/qcom,msm8996-qmp-usb3-phy.yaml | 27 ------------- .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 38 +++++++++++++++++++ arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 24 ++++++++++++ .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 3 ++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 29 +++++++++++++- .../boot/dts/qcom/sm6115p-lenovo-j606f.dts | 3 ++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 22 +++++++++++ 7 files changed, 117 insertions(+), 29 deletions(-)