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 {