From patchwork Fri Feb 25 03:51:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12759630 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA21DC4332F for ; Fri, 25 Feb 2022 03:49:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tu3BzW016nZJKYGKKzMy0zKitVgXz1a5jAvdYU3bRAw=; b=hpotver4hGIKL7 d3lJebFnnQ1GFLDlvghBTPe8AwlOZX0WlGJIFrqDO0jvOf+pSdowUyRXTvVYxafITkIhnGw1fVip5 Jw/XS2QuC49ZVPKUh3VqeItNVMuYFNfd8/2xL57c8+ieTOHto95ETs7qbaM1iRxj1IpR4qOUi5iai dC3d0l+ytSGbYf5XXNTNrFl/+DfbD/wu8LzeOxf9+WOXdazgJHTPx6g+1nsUqdFp65Fh8jIhtwOWV +2PiJS8i0Unr+2cHRdKYbVaKXqkFuHqGXcvET+54Pv/Rpk/7iewXVsAf7MvXivub2qRrDt+mePwOU NOKqeMBV1Dd5L76Dcq7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNRbT-003AXu-QA; Fri, 25 Feb 2022 03:49:11 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNRbQ-003AVK-BT for linux-phy@lists.infradead.org; Fri, 25 Feb 2022 03:49:10 +0000 Received: by mail-oo1-xc31.google.com with SMTP id w10-20020a4ae08a000000b0031bdf7a6d76so4656886oos.10 for ; Thu, 24 Feb 2022 19:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iWhQoexzMJ4YVq6mliMw6qRbb7ug6Rs0Kh0Av2DrVHY=; b=ClafonPf8HIXuz2w1Ts+14JW+qjZzdQPIpJVXJbY65wEbjP56oQVustgTZlrh4EjNt Bq4b0cHnS+z/i7waQ/a3TedWx8W1Gi2ERBuaoPIQG6yAOIvAlOpcDI4keYI4Rf2ElQXg 6ItH0NdOhGuQ3+VSO6WejJtF+ZXZsIOZ+azBgFOhE08FTE2+CLHlwqQrzStB0+oFYaao b8EBwCmdeaDzUqP8rGBfX9WTRG4Ya5JKYNPlpgPLU1OmgtUoyCDGQfFtXPvaP9biSL1k ml/tGPKK25ATmtyljNBDBFHj2VdM3/vsOFaeE+eFS1nMF/DaKegEAkXscMlsZZ5VgKMo A5zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iWhQoexzMJ4YVq6mliMw6qRbb7ug6Rs0Kh0Av2DrVHY=; b=g0sX1ajImcCZnIfinzbFUmUFFc07NnNg+r4jHCprkUcJ9oO/Jnfp6SDuxe+nqjJSRM TGYQdeEebT797dpVCxonpx030XLnRjPnaqbqKFSEfhB62G9xyJshJGNr+8W3tTxHKabB wppt/r6Eh6y+/EQki2Zlv3kbInMHoDvUo1d73GpsenNjO9cjoIdXQXxezzCyfOPowdhF H0qLyWA+it1ahVsADQCKKUUWOy2cwg48WSl0cPBW0zvH1vYgngxllFUZZ6N+iiCJH7Xe gA6jijT1eBxY3FAkvN8NqydubFLGiPDm429FNsAMY88dWz/vGUGrIbwJWmvmoeAzYW81 +XBg== X-Gm-Message-State: AOAM532PplRS/KlX5WaX+hHHLrnrLxTmXmjIWFIEaKX21SYXnsqfy1UO 4NOnbxV/HU17YJk9om77Emb3lg== X-Google-Smtp-Source: ABdhPJx6Aal5qcCZhdiDZiVPcmRXuc/9MkCtFBvvqaqJlQvMI9MjfC49G+hBO7uxjQUysO8MZkuW+w== X-Received: by 2002:a05:6870:c888:b0:d4:43c3:ed64 with SMTP id er8-20020a056870c88800b000d443c3ed64mr585528oab.110.1645760947119; Thu, 24 Feb 2022 19:49:07 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id a10-20020a056808120a00b002d404a71444sm664088oil.35.2022.02.24.19.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 19:49:06 -0800 (PST) From: Bjorn Andersson To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: phy: qcom, qmp: add sc8180x and sc8280xp ufs compatibles Date: Thu, 24 Feb 2022 19:51:04 -0800 Message-Id: <20220225035105.2294599-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_194908_470964_A5875640 X-CRM114-Status: UNSURE ( 6.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add compatible for the UFS PHY found in the Qualcomm SC8280XP platform and document the required clocks for this and the SC8180X UFS PHY. Signed-off-by: Bjorn Andersson Acked-by: Krzysztof Kozlowski --- Changes since v1: - Fixed indentation Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml index e417cd667997..e20d9b087bb8 100644 --- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml @@ -32,6 +32,7 @@ properties: - qcom,sc8180x-qmp-pcie-phy - qcom,sc8180x-qmp-ufs-phy - qcom,sc8180x-qmp-usb3-phy + - qcom,sc8280xp-qmp-ufs-phy - qcom,sdm845-qhp-pcie-phy - qcom,sdm845-qmp-pcie-phy - qcom,sdm845-qmp-ufs-phy @@ -280,6 +281,8 @@ allOf: - qcom,sdm845-qmp-ufs-phy - qcom,sm8150-qmp-ufs-phy - qcom,sm8250-qmp-ufs-phy + - qcom,sc8180x-qmp-ufs-phy + - qcom,sc8280xp-qmp-ufs-phy then: properties: clocks: From patchwork Fri Feb 25 03:51:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 12759631 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE45FC433EF for ; Fri, 25 Feb 2022 03:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2mgmO53rSkeNgWnKPu40jlS67oGhURcqXrMZP0sj+jc=; b=jnvh1Q1GVhfLPc 5lIdSJbghM8if71t0iMSbuNMVkbGkfjHtnxyBIH5UuPcxy6GNK3OE7TWLJPrMPoZ2s8ZoHq9NUfoc lR1FCeNKIDqVbgG/3/828ZkOKgYs7pECHIlYpYXxDuDrRvwNIsBLHXX6o2m6+GaD19b6SaAUdmLVe dQBeuxisto0bb5LEZH1FVQJHQVzu+l4q1A04NSjnywZpOCFIkspEK2GZi21FC3oHEhBn+HvPGQyaj cLbLaMrUJk8KSmm2cG4bMZjWMC3N1AMqSLbQrfQQ0QhSXoyn9TRafYIeOSJccrRSf/c3C3adJQxzv hJS7Rv9VhK9P+JKbjq5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNRba-003AbL-7M; Fri, 25 Feb 2022 03:49:18 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNRbR-003AWA-A1 for linux-phy@lists.infradead.org; Fri, 25 Feb 2022 03:49:11 +0000 Received: by mail-oi1-x233.google.com with SMTP id i5so6109159oih.1 for ; Thu, 24 Feb 2022 19:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UDK1kz5Fr0UKhxFUazSV4lfvWljmN762R0UmyDLBbzw=; b=DiAwxygHlg2cunADRHhaLRH/oj/hg887zxesH6wxMvEbnn2WM1kTGcjd3b76js74Ex NFv2iIrjxYfyS6GoFxahnN6CvoXjD8vdR+QAkzRsIWFdREtCZdykdi9UwLaZ6t+UFtxu DVQ+C6oZtLJwgY3/gToIATa2kHQ2I3OrhIF+6PBaj8Cr01A6UFq0oBhFvGkTivzrGgpR fYuoo7Zico/l+lnF7zjeWhV7Xu7rHTbhAPCFEaIQdIhKE0VbGflbF76+lBQPsfeeQD+4 e+fYH7ETmElVqP7IlRdOkGQN2b7ymK5JQJ5XfikwHU0jwdW9/a0Z1UHD0n+5zF2hEZiZ PiOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UDK1kz5Fr0UKhxFUazSV4lfvWljmN762R0UmyDLBbzw=; b=xzrv5PEGQvaOMXftvb+iXmo/Ufyqylr28X5GOBOB12DiclxM+xoaflZGvN/xu7QEgv aVcARQcV4WUxArzQ1F/mwu72T4OXNCUBTisO8JDmt9NYRDmrvYb3lNl8pfc7xJpHw50F yTnnhysdrcO9kEwHZ+cZmlQP9skSsug2RSw+ZWL76w29Sha5XDwpYuQnrmJhRWcEHF1D IUAndKKi+D3qMBn+eWVU9J5kfrcth6z2ElemHp/8iitdf0MhLAcWmQpk8000jrUxa4Wz IsFAab/9LgCdBhj1wS8xECPwUqz+8JdP/LdUJgN/T8/PiB5QIFTaQRVxDTQCiDxEXOKU v79g== X-Gm-Message-State: AOAM531vlb2dlSYsYfRcE3i+kz2CyNFbQo2lTj2ZZlrCdzutToBpGJ4b IiRyYR0hTQCyECuS3gLI2qxVCQ== X-Google-Smtp-Source: ABdhPJxL6kvHspWE/hrl9ic6VRR2xRWso6pVw0L7xjQUzQBX5YVNv21tx0NumUdaPwA1VlEks9B5Hw== X-Received: by 2002:a05:6808:1281:b0:2d4:6e64:1c6 with SMTP id a1-20020a056808128100b002d46e6401c6mr639967oiw.293.1645760948192; Thu, 24 Feb 2022 19:49:08 -0800 (PST) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id a10-20020a056808120a00b002d404a71444sm664088oil.35.2022.02.24.19.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 19:49:07 -0800 (PST) From: Bjorn Andersson To: Kishon Vijay Abraham I , Vinod Koul Cc: Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] phy: qcom-qmp: add sc8280xp UFS PHY Date: Thu, 24 Feb 2022 19:51:05 -0800 Message-Id: <20220225035105.2294599-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220225035105.2294599-1-bjorn.andersson@linaro.org> References: <20220225035105.2294599-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220224_194909_389257_426DC8C9 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Reuse the SM8350 UFS PHY initialization sequence to add support for the same found in the Qualcomm SC8280XP platform. Signed-off-by: Bjorn Andersson --- Changes since v1: - None drivers/phy/qualcomm/phy-qcom-qmp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index 8ea87c69f463..b144ae1f729a 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -5977,6 +5977,9 @@ static const struct of_device_id qcom_qmp_phy_of_match_table[] = { }, { .compatible = "qcom,sc8180x-qmp-ufs-phy", .data = &sm8150_ufsphy_cfg, + }, { + .compatible = "qcom,sc8280xp-qmp-ufs-phy", + .data = &sm8350_ufsphy_cfg, }, { .compatible = "qcom,sc8180x-qmp-usb3-phy", .data = &sm8150_usb3phy_cfg,