From patchwork Mon Jul 31 11:11:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 708475 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 5F465C41513 for ; Mon, 31 Jul 2023 11:12:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232452AbjGaLMI (ORCPT ); Mon, 31 Jul 2023 07:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232383AbjGaLMG (ORCPT ); Mon, 31 Jul 2023 07:12:06 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10CF0E75 for ; Mon, 31 Jul 2023 04:12:00 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b9c0391749so66516851fa.0 for ; Mon, 31 Jul 2023 04:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690801919; x=1691406719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+YCsCz3Wm9ikQclH9DKyLq5gHwUQ9rpMhDltYcLX5mE=; b=AkuJsZ/07cDF1OkIXAYSpXb5+/pvHnsKfMYE/tHZ/TuG6TlSzUhdcEUOQ2gHe/mAQn 90+IDQFcs3DTrfb53zieUGCcxOBFFKbakULhhCSvgRT2jWAy0cT//BU6QnLv85sJ73uT nVa8Xw+iW2SC0itW9sQBUXeVLTCo804lqEzObS8n00nG3FjknFExdawFJVCWmgJ7/Kak 7KmEb9X4D99DWI+bb6Jqz31ujCyT+d8V6lNyHQXSWsEmz8Dxvc8R4UeAae3W5QeG9eqI 4iHjSyEIzSI2ILbq8SWV8WMKujFE23lidQ5LJql9NPZAP368+xyxzNX8xLOAE7JP+Kfa 7DzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690801919; x=1691406719; 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=+YCsCz3Wm9ikQclH9DKyLq5gHwUQ9rpMhDltYcLX5mE=; b=JW/6Lcis8vVTsGz6qXAuaZISxCaOdk4ceHLx2v5azNNnGGIbx1OHKuIEHm5ZY1fs9P AWm04IBmvJ/+2Ek1sfMIRrnY4ge20POp+0nUflu+FQvuPKzDWejZ6qLmn0JA6pOPTGtc VaEUKCmpb8vf0gANKTMqxhmtqDWuhDJWT5iblgbnTaF4piGm1gucJ0E64fBhwsYRbU2A 97bPz15wWeNMT8kvrKPpt9TbDphoODNur8xFwPOtO2JRvtK33nPaiFRHGzGb8r7ZP7Zo dB2qaU8Ko77a1111vurW6is3vvI8KsZO+cZRaGbG2qz10uFZih08U8uqNCnaHy0ZUUNM Ij7A== X-Gm-Message-State: ABy/qLahjngq+yGgEKlRQmVgm1x0oo5ZFp7L5HSzAJpo4RDAo1CuKO2S nteWSe8bXxOIC/SkpFOFqKLMvWciP8UtaW1vxdA= X-Google-Smtp-Source: APBJJlEKAUnzIRX8KL/8qoiB8PVXPZxy7Nxe+HVWXWWEkRhbjCMZjCT6KTMBAnC6eAX/t6cW1DFNZQ== X-Received: by 2002:a2e:9c91:0:b0:2b6:ccd6:3eae with SMTP id x17-20020a2e9c91000000b002b6ccd63eaemr6377932lji.17.1690801919153; Mon, 31 Jul 2023 04:11:59 -0700 (PDT) Received: from umbar.unikie.fi ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id f11-20020a2e380b000000b002b9de06f119sm1258864lja.67.2023.07.31.04.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 04:11:58 -0700 (PDT) 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] arm64: dts: qcom: sc8180x: switch UFS QMP PHY to new style of bindings Date: Mon, 31 Jul 2023 14:11:58 +0300 Message-Id: <20230731111158.3998107-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Change the UFS QMP PHY to use newer style of QMP PHY bindings (single resource region, no per-PHY subnodes). Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- As with the rest of UFS DTS conversion patches, this patch should wait for 6.6, so that the patch flow is bisectable. --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index fae149e33b98..3c79b82eac6e 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -2080,7 +2080,7 @@ ufs_mem_hc: ufshc@1d84000 { "jedec,ufs-2.0"; reg = <0 0x01d84000 0 0x2500>; interrupts = ; - phys = <&ufs_mem_phy_lanes>; + phys = <&ufs_mem_phy>; phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; @@ -2119,10 +2119,8 @@ ufs_mem_hc: ufshc@1d84000 { ufs_mem_phy: phy-wrapper@1d87000 { compatible = "qcom,sc8180x-qmp-ufs-phy"; - reg = <0 0x01d87000 0 0x1c0>; - #address-cells = <2>; - #size-cells = <2>; - ranges; + reg = <0 0x01d87000 0 0x1000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; clock-names = "ref", @@ -2130,16 +2128,10 @@ ufs_mem_phy: phy-wrapper@1d87000 { resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; - status = "disabled"; - ufs_mem_phy_lanes: phy@1d87400 { - reg = <0 0x01d87400 0 0x108>, - <0 0x01d87600 0 0x1e0>, - <0 0x01d87c00 0 0x1dc>, - <0 0x01d87800 0 0x108>, - <0 0x01d87a00 0 0x1e0>; - #phy-cells = <0>; - }; + #phy-cells = <0>; + + status = "disabled"; }; ipa_virt: interconnect@1e00000 {