From patchwork Mon May 1 19:24:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 678133 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 5DAAEC7EE24 for ; Mon, 1 May 2023 19:25:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233034AbjEATZB (ORCPT ); Mon, 1 May 2023 15:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbjEATYr (ORCPT ); Mon, 1 May 2023 15:24:47 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7FD1FDC for ; Mon, 1 May 2023 12:24:44 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-63b60365f53so3412207b3a.0 for ; Mon, 01 May 2023 12:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682969083; x=1685561083; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zKHzO/Hrbfl8nlBv+K49ojgRoBGcaLETpzBjfih2Yvg=; b=awtZMcboczzRmO3k/WSOtdFLkLw9ZCqipy/kj2LXYAAMC1JZaRS6Ip3gC8v06l/qhg UwqM0M1FuhLUgHyVxQCdRcKFnfI+WayRvCFymL5DAHZooTfZAzaLd2jjnMasqUlEuUC2 LGJw/JSN+xq6UwI5BiiQTsdFBWqhByWOBLTP1La42194h3tacWJA3pxlOqQtEdNlSJgs jnVBHDHMTzVaIap55BSazUpKs7QSI9J68JFU0uEdgMUeS75Xm7aClxG1lPbb9+MdEN2z DiExM/H32yKb4yE1zceXoDw9Q5yovSdZXgZ2aUEB3Le4ZQaIZxcUHzEihEytRjnzaZGX CHCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969083; x=1685561083; 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=zKHzO/Hrbfl8nlBv+K49ojgRoBGcaLETpzBjfih2Yvg=; b=hGws5HV5L4VlXouCCfVvh7mAeT8tQM6qB5XKhVcIhcr/dZRDo67dhnJUnSdlaI6WJ/ 1FGR2JNYCysaE7T6I3v12orC/pwY6fhyxuVugTJPBGaf3w5U1TTVOsniUXKP82ZanZA0 WKAb9lAbZxGNa/rZm7RuMkRznuCFh6X37OMnBYbgDtjmLZLFvBIOSKq8xeZbCzpiktsB 3KupGyrOtOxi91+aqgI2KfgkEheU5113YDuZg9NpBbfmV5eJpgGsTbJNVv70sOl2MEw3 dL1rMb//76IYs1k82wQfQLs3bocYYgyWgpRucyRSyCvwnGqgdnru9BEDgsKTOdXGmOaw fcNw== X-Gm-Message-State: AC+VfDzyxh6/IEsuU+2GE6ZcIu1aY/1Akwo8S7qcb0pNJlTx8csLgoyn U3oJWASeG+ff5dBVp44ck2nxfE/NA80tXuzA0qk= X-Google-Smtp-Source: ACHHUZ7N3WIvP6+tHaTNd0enhURzMFBWQ3KuY9zg8E5vcGdwuA4Shp9ovocQHS+38FvwLQypJIrGBg== X-Received: by 2002:a05:6a20:1616:b0:ee:f5a4:c064 with SMTP id l22-20020a056a20161600b000eef5a4c064mr18108068pzj.62.1682969083200; Mon, 01 May 2023 12:24:43 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id 189-20020a6304c6000000b00513cc8c9597sm17459144pge.10.2023.05.01.12.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:24:42 -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 Subject: [PATCH v9 0/4] Enable USB SS qmp phy for Qualcomm SM6115 SoC Date: Tue, 2 May 2023 00:54:28 +0530 Message-Id: <20230501192432.1220727-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 | 44 ++++++++++++++++--- 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, 118 insertions(+), 34 deletions(-)