From patchwork Mon Feb 28 14:46:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12763441 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 906D5C4332F for ; Mon, 28 Feb 2022 14:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237314AbiB1OrW (ORCPT ); Mon, 28 Feb 2022 09:47:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237306AbiB1OrV (ORCPT ); Mon, 28 Feb 2022 09:47:21 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 814197F6F9 for ; Mon, 28 Feb 2022 06:46:42 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id z4so11560036pgh.12 for ; Mon, 28 Feb 2022 06:46:42 -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=fpvy3jbctqZ3DaV3M3Ck+o/s7hQ6Jvb06GHLLBI2uuM=; b=eUF6yIQhI7vVY2FFpMAxBEeuIuYzFBxyD0xw727eRJl/lmfV2nHlnwLa7GihnQiDU2 hmOziIEeft81BWXidU2iOelCPUoT2qsFDBV9vxoB+mv8dN+KRJwZPULag2o+4LrK7PQX GXm5FsLp8zxYf565CuRaPw3JwncNcrN6AEeNUp89yragBpOVP4a6qsoEkKQxWcxiLQdn iq60GAp3vZyZnImDWCEAYN3Fa2agc6n84zPZ7OuOUsPQ0ZWSO2UIxCZvPFsq6l9EVuuu 1Xv7Uwi3KruSqdVfsfRuTO3+XXOS1JM+QJ6YsQ48UwZWkB7EiIVphr8E356YXwXL/vKO awig== 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=fpvy3jbctqZ3DaV3M3Ck+o/s7hQ6Jvb06GHLLBI2uuM=; b=Im+UGJ44kvPNDF67wT2fhK9mnhH4Xs5en1r4O6xmST/tvJL01BAM+AUOHMNbt5y4TC zmNGe4TVflH/vfjAN/B/EUpUVuC417zFJRyh2DlkPnLgv5U1d2CmLVyrWZT+08j3IVPC YRVMwutnyD/HUy8ISewfE7Jai78EwA7FCm9BTvERT2Xf4rHJpzX1T0gPlpX+JtfEc+Vz 27QNnpkwI2LW9QY+TmMWzNBlzzStRYytLYobNA7H61gVIjZBUhvKbcAHpw5Yv4Ry/aCL L26NB1h6/Gnx2efNw6K5s8qg8i3sUxwMLqcyJS5lY7OadFKTFr+M4EmU6c7yB2FtlT8E xYZg== X-Gm-Message-State: AOAM532WVAdWERdi4HTZ84Qt+OXXBUh8mNIpMH6caaSgdfGS66gLeZ6O 214V8EpPz/Q9b7kbmBaaZWglxhw3FLihqQ== X-Google-Smtp-Source: ABdhPJyLl6Xpu53tARTjusRFoH+Njs/u+LrL60/cEW5HL+5i0K/lhYwZMLQWkEpcbo+wu5OsXPxF8w== X-Received: by 2002:a63:ce48:0:b0:373:ac94:f489 with SMTP id r8-20020a63ce48000000b00373ac94f489mr17816304pgi.622.1646059601757; Mon, 28 Feb 2022 06:46:41 -0800 (PST) Received: from localhost.localdomain ([223.179.136.225]) by smtp.gmail.com with ESMTPSA id lr2-20020a17090b4b8200b001bd6b5cce1dsm1736713pjb.36.2022.02.28.06.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 06:46:41 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, Bjorn Andersson , kernel test robot Subject: [PATCH v2 1/2] clk: qcom: gcc: Add UFS_CARD_GDSC and UFS_PHY_GDSC for SM8150 Date: Mon, 28 Feb 2022 20:16:06 +0530 Message-Id: <20220228144607.456194-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228144607.456194-1-bhupesh.sharma@linaro.org> References: <20220228144607.456194-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the UFS_CARD_GDSC and UFS_PHY_GDSC defines for SM8150, so that dts files can use the same. Cc: Stephen Boyd Cc: Bjorn Andersson Reported-by: kernel test robot Signed-off-by: Bhupesh Sharma --- include/dt-bindings/clock/qcom,gcc-sm8150.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sm8150.h b/include/dt-bindings/clock/qcom,gcc-sm8150.h index 3e1a91876610..1bd65cc581c3 100644 --- a/include/dt-bindings/clock/qcom,gcc-sm8150.h +++ b/include/dt-bindings/clock/qcom,gcc-sm8150.h @@ -241,6 +241,8 @@ #define GCC_USB_PHY_CFG_AHB2PHY_BCR 28 /* GCC GDSCRs */ +#define UFS_CARD_GDSC 2 +#define UFS_PHY_GDSC 3 #define USB30_PRIM_GDSC 4 #define USB30_SEC_GDSC 5 From patchwork Mon Feb 28 14:46:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12763442 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 BA352C433FE for ; Mon, 28 Feb 2022 14:46:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237332AbiB1Or3 (ORCPT ); Mon, 28 Feb 2022 09:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237325AbiB1Or1 (ORCPT ); Mon, 28 Feb 2022 09:47:27 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B9C780208 for ; Mon, 28 Feb 2022 06:46:47 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id m22so11382959pja.0 for ; Mon, 28 Feb 2022 06:46:47 -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=OvbikKoAKho7Bpj5HDlLF47y32hMSGJasX39JrNGXFI=; b=URmkyZsvYVruw8oMATM/SU6nj7nbkltFjJM1BBt12+QxuYj28G8pzr/DCx95mMbxil IsWRSETMV0B0ur/ZPTJbDPgtN+hzn9G7wg1Q5VU9ZbjgasHSGttuSuo3kzzXZJADZUaY gRTuNLWWiqLls8Dp0qjACh3WYIWLC8XWOj+q6e1e4nkK9G6EIfOyhQtMb0GwyaAJZo41 gwZvWMlA2pu1ZkGjaNbyBVHEfGf6vqobsT+suj6aFF8hH1va3f17S2nXgia7yea2dr1L rvq8/VyU8+dYLJKFDjiW9NEx5OOhnb3idVwuScQPAs3/hkOJ/zfl5DKJD9XZxAIKXGz7 cFDg== 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=OvbikKoAKho7Bpj5HDlLF47y32hMSGJasX39JrNGXFI=; b=t2oP7/ZYgIanvuc8X/ZQ7c7Uj+0d9u0wdVxyyXxQUZAKRf6zwV3V6z5tfw25DKAk/J ab+tWNMUnDyKQ0y4IP0CF3qiCV6HU+ARFNuV9W5iJ7cDxZpPN5YGtAznhCvF8B3iU0tg yFyd0pyE+wr8LSx3ncSIcUGqysbWCb5jDL25XSoP56A0QkmN8o8xvF8co6qKo2OAf+/v vrFWRyqwwP9zGXpvuGR5d7OAarzsoe2HgXCF+bXtMEmWAtS0ohoq1da7nIHnpPAPlqax KzGb7GRvx8FXnHyVVf70KIJdNDBvypCpvGeGfKYWLGassrLUqgWzBEKz21UF9e14zc7r avDQ== X-Gm-Message-State: AOAM531HxzbEcduHxDQPqdQVBg+rjvOPWPaofKPhfUQe5GzYeR2uFdHo tcGP3btyJwanS2bdkIJNAvsnsa2lhBIeyg== X-Google-Smtp-Source: ABdhPJw1ppE/mHpMlz5oM76uYs/NB7A7jUShPr/59O8tKUhyzttPd5wuf2RPmpSNKSQvOqiZZvEmgA== X-Received: by 2002:a17:902:f242:b0:14f:e2d3:e251 with SMTP id j2-20020a170902f24200b0014fe2d3e251mr20581720plc.19.1646059606688; Mon, 28 Feb 2022 06:46:46 -0800 (PST) Received: from localhost.localdomain ([223.179.136.225]) by smtp.gmail.com with ESMTPSA id lr2-20020a17090b4b8200b001bd6b5cce1dsm1736713pjb.36.2022.02.28.06.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 06:46:46 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org, Bjorn Andersson , Rob Herring Subject: [PATCH v2 2/2] arm64: dts: qcom: sm8150: Add ufs power-domain entries Date: Mon, 28 Feb 2022 20:16:07 +0530 Message-Id: <20220228144607.456194-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228144607.456194-1-bhupesh.sharma@linaro.org> References: <20220228144607.456194-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add power-domain entries for UFS controller & phy nodes in sm8150 dts. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 6012322a5984..7aa879eb24d7 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -1637,6 +1637,8 @@ ufs_mem_hc: ufshc@1d84000 { phy-names = "ufsphy"; lanes-per-direction = <2>; #reset-cells = <1>; + + power-domains = <&gcc UFS_PHY_GDSC>; resets = <&gcc GCC_UFS_PHY_BCR>; reset-names = "rst"; @@ -1687,6 +1689,9 @@ ufs_mem_phy: phy@1d87000 { clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + power-domains = <&gcc UFS_CARD_GDSC>, + <&gcc UFS_PHY_GDSC>; + power-domain-names = "ufs_card_gdsc", "ufs_phy_gdsc"; resets = <&ufs_mem_hc 0>; reset-names = "ufsphy"; status = "disabled";