From patchwork Tue Dec 5 03:25:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 750469 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vfj11L+w" Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35DC1FF for ; Mon, 4 Dec 2023 19:25:57 -0800 (PST) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ca03103155so21571871fa.0 for ; Mon, 04 Dec 2023 19:25:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701746755; x=1702351555; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LyzRfzID8N4Kx/HRmPavTsXUJw62DczP8Df9UN78MIY=; b=vfj11L+w0V/tKwBXVYSOF+jLdIfT95kH1v3QGtO9K5qG0V+8VC0CzZcLJsP71tRwYn XRB/GvKjEg7rbJrhVNxjaA0TgFBhoH2teSEyNSDyX0bjRTL/wdE8dHL8rfjhldMjFxgv bwe5O9ALPiA+AbJFeQSQLEtOPsiGY3LtFkM1s2KCf3O7VvJbso6WM2uGfLSEjiZ/bS5N 2wf9EK3GSIPR7zJ6mKpPSeuyDhZPyWALZ76dyHmULsrCa+p8FxEPHYdpxWFs1vBrOq0j 6GSSTvOwTL/hi0jZf2H7TNakxWEm5i3h23Kl0lV1xyIfDkCZW7ZxxF09Cru+MTEuM0bg 48cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701746755; x=1702351555; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LyzRfzID8N4Kx/HRmPavTsXUJw62DczP8Df9UN78MIY=; b=gqp+iyxp1jFMXbey4L3VfHvZNZ6goFkVzRQGy4f93Xp73VvUCrzRPf8Eeb12Rnb8YD j0799t2qsVaui/vtE8I5/miVQWW7HJYL6jLDBvnW2RoprKogfUA61+WHr4cIv2P6Aa6i lj3Fs3t4rLbntogIrD7CGkcxKLAVU5wlpWspFDHstQvoKTvg2saxWhrpT9YekwF5U/Gi p74bhMlUsZjozMQtm/3/uCDozy0Zeh7XOvKRNKCtMucFlcI+OukOObNrxVrRHgc4O3dS ifnHHPHmqF2Ujh8l9QDtx3o66klITD8lBeCLqyLEEYXN8AZYVc3ykIt6br9ghUsndxch KHXg== X-Gm-Message-State: AOJu0YwI24UmcxrGU1kUNvaDxkZ+FQyL/WzaK/StNlE0Bfv85ZfcApIv Y+PYrLAtF3WGk4RCFIMDIV57Aw== X-Google-Smtp-Source: AGHT+IE/2esE5N1LUQzjBr74vQuWEQpM9UBdf4yWk85bD4Uy2JSunarZllPwrSw99ub/T6AAV+KDjA== X-Received: by 2002:a05:651c:217:b0:2c9:ee88:8ff1 with SMTP id y23-20020a05651c021700b002c9ee888ff1mr1625005ljn.47.1701746755465; Mon, 04 Dec 2023 19:25:55 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e16-20020a05651c04d000b002ca12be2b63sm127277lji.18.2023.12.04.19.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:25:54 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 1/9] arm64: dts: qcom: msm8996: switch UFS QMP PHY to new style of bindings Date: Tue, 5 Dec 2023 06:25:44 +0300 Message-Id: <20231205032552.1583336-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> References: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes). Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 35a0d2a69711..d3d01c1e1fbc 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -780,9 +780,9 @@ gcc: clock-controller@300000 { <&pciephy_1>, <&pciephy_2>, <&usb3phy>, - <&ufsphy_lane 0>, - <&ufsphy_lane 1>, - <&ufsphy_lane 2>; + <&ufsphy 0>, + <&ufsphy 1>, + <&ufsphy 2>; clock-names = "cxo", "cxo2", "sleep_clk", @@ -2047,7 +2047,7 @@ ufshc: ufshc@624000 { reg = <0x00624000 0x2500>; interrupts = ; - phys = <&ufsphy_lane>; + phys = <&ufsphy>; phy-names = "ufsphy"; power-domains = <&gcc UFS_GDSC>; @@ -2100,25 +2100,18 @@ ufshc: ufshc@624000 { ufsphy: phy@627000 { compatible = "qcom,msm8996-qmp-ufs-phy"; - reg = <0x00627000 0x1c4>; - #address-cells = <1>; - #size-cells = <1>; - ranges; + reg = <0x00627000 0x1000>; clocks = <&gcc GCC_UFS_CLKREF_CLK>; clock-names = "ref"; resets = <&ufshc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufsphy_lane: phy@627400 { - reg = <0x627400 0x12c>, - <0x627600 0x200>, - <0x627c00 0x1b4>; - #clock-cells = <1>; - #phy-cells = <0>; - }; + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; }; camss: camss@a34000 { From patchwork Tue Dec 5 03:25:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 750468 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="I4jpCQaq" Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41D8116 for ; Mon, 4 Dec 2023 19:25:59 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2c9f72176cfso28532711fa.2 for ; Mon, 04 Dec 2023 19:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701746758; x=1702351558; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cJaItxWd66KVB+vImAZ2Ym6WIhUCfCFsDOPpLld4kxo=; b=I4jpCQaqls6GYFnQZsRrVNsVWnH1ssGYndVMb+Z3K7KGpDiWN9hjRhlj+20dK4RJ94 u7Mo6c8C6avNcL3VK+r4K2xZc3eXk+S7Lr17NbFdR46tekxWNCG9ikZFSN8tCynNY0db Ed4e/3lvTAG41XhWwgy3X78BcKVr7QrDfGgEKBC8QRtpUhrqerW+lFWvlOseum3eJtuD pfrgy4+Dt8dydKhPwpL5XlFGjOP9FfovHaedyJ7i6+0/zgEBOva4T/UENkK51Y4ANiC9 VhYGh8GWRkoKDXnvpuKW1FJKwfwRJeEbdAxhm5q5kmKiByvrxqkz3HKUEQVJc/SCke3e bW9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701746758; x=1702351558; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cJaItxWd66KVB+vImAZ2Ym6WIhUCfCFsDOPpLld4kxo=; b=ufCIcwqP/6FcZSBqgLmCupP4ZEytmXpGWrYKB5ppjIHUDt2C0RKd4sBw8XBig8RdG3 ify1jvuT3SuUtyY6pxpt3aadqkj0x9f+ek6jgAK+JZSEjJWED5aADoXBl70oTw4o4ryZ OIZQwc54BLnEMPzstUx3vVXWL62oLGqc/oDeROOHzoHD6HVxVx3aNazuUBMK5Wsl6t96 tRhQ1DQpzroRejmzrETbo3mK8gGb9yhuSSqMUC0Sj2QKKWnvc5HNUhccwVPe4vu5qR6R toFNAlWhwzPkotPziRsB3iC5WOyf80mHhvA7jDJyyVY/paT2GutiI2HM2cJxP4qv5sWL Eo5g== X-Gm-Message-State: AOJu0Yx1pMS1iAf0wpu2AooBipemHFno+jURBY96kl/M4RclPrz7ANwj vjcHukQwlg4isVAtsilA179etg== X-Google-Smtp-Source: AGHT+IGcxvPJYhw6aXWVJAsjc3BOdfqeyIs5UojOIvoC2fFKu96nkNXe3iXI7yN55QIJwnESsWURow== X-Received: by 2002:a2e:b0d6:0:b0:2c9:f6c5:bd9f with SMTP id g22-20020a2eb0d6000000b002c9f6c5bd9fmr723989ljl.107.1701746758121; Mon, 04 Dec 2023 19:25:58 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e16-20020a05651c04d000b002ca12be2b63sm127277lji.18.2023.12.04.19.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:25:57 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 4/9] arm64: dts: qcom: sm6115: switch UFS QMP PHY to new style of bindings Date: Tue, 5 Dec 2023 06:25:47 +0300 Message-Id: <20231205032552.1583336-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> References: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes). Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 0d13d7bf6bd1..11771931ee8a 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1006,7 +1006,7 @@ ufs_mem_hc: ufs@4804000 { reg = <0x0 0x04804000 0x0 0x3000>, <0x0 0x04810000 0x0 0x8000>; reg-names = "std", "ice"; interrupts = ; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <1>; #reset-cells = <1>; @@ -1047,24 +1047,17 @@ ufs_mem_hc: ufs@4804000 { ufs_mem_phy: phy@4807000 { compatible = "qcom,sm6115-qmp-ufs-phy"; - reg = <0x0 0x04807000 0x0 0x1c4>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0x0 0x04807000 0x0 0x1000>; clocks = <&gcc GCC_UFS_CLKREF_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; clock-names = "ref", "ref_aux"; resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@4807400 { - reg = <0x0 0x04807400 0x0 0x098>, - <0x0 0x04807600 0x0 0x130>, - <0x0 0x04807c00 0x0 0x16c>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; gpi_dma0: dma-controller@4a00000 { From patchwork Tue Dec 5 03:25:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 750467 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lpf5POMR" Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8798FD7 for ; Mon, 4 Dec 2023 19:26:01 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2c9fe0b5b28so25122971fa.1 for ; Mon, 04 Dec 2023 19:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701746760; x=1702351560; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/gLNbVUHB7cPdqtxMfhbnY3JXxQQRp3sAXhZ64PXK5M=; b=lpf5POMRhRaqCb2IWpxho0BIZ+Y+B0Im0JNCImqQzmW59JrbXAeK2m0cvAFga+2rRx 0vUAGfbDZW26eySRN0TP6IksLhkT6wwc2QQNFbysaVr6nkCXh4abqq1xFsPz/9cCZwhj QncSVD2kjvgFBftStoZnmoGDUbw6ddJH3BRVxYbjJd9TI+hup15WwNr2JCqL+GA1M5hF zZCoC/UnOvtw6Q3LXhRq78CX9qHmX6FUVo7pbE7dyYLv2gCRUcxMj21rjQALasifJard Ph7uZSgLIr3XIT8l8v7zBKoZwMnZpAy3khoE7UMqokbXE5WPtcsmvTxLc9ZaYujH96lA 3PjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701746760; x=1702351560; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/gLNbVUHB7cPdqtxMfhbnY3JXxQQRp3sAXhZ64PXK5M=; b=HfeFEhCY2e3u1FrWehyBqGm5aPLs9SM3kACGSCI9rH4WlqfmnpNhBaCov5UtKlyPo5 bLvp5AfXQEWCb3Hg5ThWfAivaH4BqstgQCr+2wNRRE16nNB8AiAKmy2T1UbIePCiO5uK jznMfUzTdf9QCjSCfkJC0aVLsmEVB/lM5KUWbx289wguD/pUi8avgrCvh2Vg/2YrXSFY 9hpq65eVwDxS4olgJ6ZyAp0XQVsAYkKxf0+yt+VxM3yLSqbwjpIT64XA/ZcRjLa19344 CoZ5wHRLYfee2a/ygonCLzfZ6HqDNnCqHCmO+gSrupzn9h8b2JmUWr8bd4U9qNksW+eP 2KyA== X-Gm-Message-State: AOJu0YxaIpGZcPImrIeNgP8S2Tm/tqO803I9KI9QjfmMXrbb6ALbf0Gd 02+Pc/VHgezxWoxUbF3q3TomdA== X-Google-Smtp-Source: AGHT+IE/5jwYqAq61RbgNxG5fIePBNQCv2qOYfv+8reInrH+ynt2dg1wY4EOD/GgylTwoF6DbxXo4w== X-Received: by 2002:a2e:9d03:0:b0:2c9:f5b9:69ba with SMTP id t3-20020a2e9d03000000b002c9f5b969bamr1985524lji.51.1701746759940; Mon, 04 Dec 2023 19:25:59 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e16-20020a05651c04d000b002ca12be2b63sm127277lji.18.2023.12.04.19.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:25:59 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 6/9] arm64: dts: qcom: sm8150: switch UFS QMP PHY to new style of bindings Date: Tue, 5 Dec 2023 06:25:49 +0300 Message-Id: <20231205032552.1583336-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> References: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes). Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 3cba87e00123..85d494cc78ae 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2016,7 +2016,7 @@ ufs_mem_hc: ufshc@1d84000 { <0 0x01d90000 0 0x8000>; reg-names = "std", "ice"; interrupts = ; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; @@ -2061,10 +2061,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8150-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c0>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, @@ -2074,16 +2072,10 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x16c>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x16c>, - <0 0x01d87a00 0 0x200>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; cryptobam: dma-controller@1dc4000 { From patchwork Tue Dec 5 03:25:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 750466 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sH+EBadC" Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A43FB10F for ; Mon, 4 Dec 2023 19:26:03 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2ca00dffc23so24217021fa.2 for ; Mon, 04 Dec 2023 19:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701746761; x=1702351561; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ggwZrtNXyxyKyBcj4l9hV0APAvFRDHSWdqdlKVYcv/U=; b=sH+EBadCrOQmHqSjoqCbvLGZDa4+wfdBbPWUEGvlKtLgiADU2CKQ8/hq0TlwhqRioJ ZxsAHgRvtmqI6wc7UXhMG6NRnk9RU4GQOHCJbeMYqZRXdXe9nWw/LhCSNzv66xdaXBJ2 ziLSJsnikkF6OXx4xES1Hc2mKomJGYZzuAD2nieYVLf/2DE0NRJbgPXbJmi49XkI84o/ Nq//uCv6HkUmprQPL3ud807qICW98lGuDz3QgWqHm9MmQuTHmQa6Oqj9n2pn6BCylsCf pfg6oWwR9rZMeXHeI2KP3/YHMLxg77ry48R+9HAEKV2C9nqdJYchOaLtdUPe5REYY9cj /2Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701746761; x=1702351561; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ggwZrtNXyxyKyBcj4l9hV0APAvFRDHSWdqdlKVYcv/U=; b=wutP2902y7VqvEquCc5B/j4xwbCy/ZA5y6A6jwB1mF+fooCqx0GtBdpnBJnuCN0CHR mMPYv0DhlLIGyzXwVfdIS4HJuJ6IYFBlvm7g/dBsmAFjhG24WwFpPqThbGg0bxZUcrkp cvo5AbrfP0OCmeq+ieoUON38tQkl2puqbV/ciaFxKCcle8D/57QhnNP9IqqTe+nbCoOp lZejpVtOKJfeCEn8ehEyYftvk3tq5eAgsZd/ry5LuSBxNytX1Wf0OnuHhYOiiFxTy7E9 ysMAJepdkF3R7Hn1FyohC8OYjljpEZY8W3ejuIlajsNhNnTbyhs237olPbPWz8yp2JOl UZfQ== X-Gm-Message-State: AOJu0Yy39kkutfZ9IEolbcfYRxRVtHly67S1Nd9G1Vw8wuuTZVV3wd0M h5J2u7bBbqwBQGIrrUHVbP/aCA== X-Google-Smtp-Source: AGHT+IGWXQ04EbcvAm5PLneTSKyf3t6CXMqurNj+NWq2ooO3GFAx235cCgESp9LuZjbaTBfj9NLxSw== X-Received: by 2002:a05:651c:1025:b0:2c9:ecec:5914 with SMTP id w5-20020a05651c102500b002c9ecec5914mr2138455ljm.36.1701746761550; Mon, 04 Dec 2023 19:26:01 -0800 (PST) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id e16-20020a05651c04d000b002ca12be2b63sm127277lji.18.2023.12.04.19.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 19:26:01 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 8/9] arm64: dts: qcom: sm8350: switch UFS QMP PHY to new style of bindings Date: Tue, 5 Dec 2023 06:25:51 +0300 Message-Id: <20231205032552.1583336-9-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> References: <20231205032552.1583336-1-dmitry.baryshkov@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes). Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 4978f691e3c5..6424a3ebdf5b 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -677,9 +677,9 @@ gcc: clock-controller@100000 { <0>, <0>, <0>, - <&ufs_mem_phy_lanes 0>, - <&ufs_mem_phy_lanes 1>, - <&ufs_mem_phy_lanes 2>, + <&ufs_mem_phy 0>, + <&ufs_mem_phy 1>, + <&ufs_mem_phy 2>, <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>, <0>; }; @@ -1679,7 +1679,7 @@ ufs_mem_hc: ufshc@1d84000 { "jedec,ufs-2.0"; reg = <0 0x01d84000 0 0x3000>; interrupts = ; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; @@ -1723,10 +1723,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy@1d87000 { compatible = "qcom,sm8350-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c4>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clock-names = "ref", "ref_aux"; clocks = <&rpmhcc RPMH_CXO_CLK>, @@ -1734,17 +1732,11 @@ ufs_mem_phy: phy@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x188>, - <0 0x01d87600 0 0x200>, - <0 0x01d87c00 0 0x200>, - <0 0x01d87800 0 0x188>, - <0 0x01d87a00 0 0x200>; - #clock-cells = <1>; - #phy-cells = <0>; - }; + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; }; cryptobam: dma-controller@1dc4000 {