From patchwork Tue Nov 29 00:00:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 26980 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp18718wrr; Mon, 28 Nov 2022 16:06:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/6QBYVgPs+HxySRoWSm6IwBNATSrfc/RycLqoD0ydGdzxSLPwB7BgM2/u3zEy3HDDuRJ+ X-Received: by 2002:a63:4649:0:b0:477:f449:1e88 with SMTP id v9-20020a634649000000b00477f4491e88mr13830301pgk.2.1669680363039; Mon, 28 Nov 2022 16:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669680363; cv=none; d=google.com; s=arc-20160816; b=HwqPCHUyBa0TNwRrXcJw3517wjulcxJXHN7lzD+YKHpVeTJscnz591hesWbWB5F7am ERHUD3DIwVqN9hNOXOmwZF/d5xgq8kl/lZiwiK9f1zI/rjAGWeS+UPuhjDilnkbIdaxQ rLwiq/BCLi3BCwxjO40JoP13qis3R16ycC7ZT8UsXtm20C9DpM9BpCKYajhFXCmqxb0O Ph81eac2No0ZWB5SbiEdMIpeCibkSiZfizTQN+LZ7BnwcP6DGGa62diK1hmCr/v1JHr6 51fKc0neC3jJY/2IoYNcvQAGSLbPwP34+fxgWeEY31Nr+w9/kiPNlf1MPpRXrSBOV18L bLbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hhfYdg/3GZik1IMOmAbhjnBOvfz8Tbl2fRiogYFz6Ec=; b=Js3WatzRsUMbdLrepVgMQ1afvjmETbx94BP4dnNQc/lyp/UukJFUELHHDbyqpByse8 k5hbqNd0ThoeJfl2ounwfNPJfOAXN889+aGUMszgZBa3m2L92myw5Ee1S+V9SDyG5isu sJwowWL1/RC8KnJfUwJE4ny4Lb27TSTYr7r+Q41R5BX2lceUV8YDi6ExGDuKxwx1wnbj BkKyqaTUbgjS9FosQAxTtxhevTN0iQ4UNxFYg49kN6Oe0jjMVPpOzQuDjZoLsvOxnH3V alWjUd5fgoE59X2rlFNB/kZQm82XTb8xcOXuYhRzWydTySJJY2xhgTTfb/onzJ30HyPL 0/9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B1K8iVpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 145-20020a621797000000b005639db953adsi11019198pfx.68.2022.11.28.16.05.39; Mon, 28 Nov 2022 16:06:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B1K8iVpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234790AbiK2AAz (ORCPT + 99 others); Mon, 28 Nov 2022 19:00:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234801AbiK2AAy (ORCPT ); Mon, 28 Nov 2022 19:00:54 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916542AC77 for ; Mon, 28 Nov 2022 16:00:52 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id e189so8926826iof.1 for ; Mon, 28 Nov 2022 16:00:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hhfYdg/3GZik1IMOmAbhjnBOvfz8Tbl2fRiogYFz6Ec=; b=B1K8iVpwgNKycprzKMVupGt5aU3/YPZoE3ne8dVcDjdWV49CsomNWXyocSa3LSVOzY y0VeWqruxwa2dFxPn9Le4BKYckcCT1piWPp07YLttD/d00iAOE4WkHWi3XfanR9acWby VwLnp5rNVcqdnzWJQeJGjyDoYMvfJBkmcwersQBSR3XeiEifLEHf8xI27/pcmia/kqvS QYf7Hz8qm2XmCojHgwCpUnUrxD0tEny0eT0eT1BpskOwwf+oNrAJ40EdRzv5G5UJu50M hryVptODwnMZ7I8mXHW+rWy/xD6w7NqFe/uRShkE0fMftpJKSiVEeqluQ9y83p39vphL u7Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=hhfYdg/3GZik1IMOmAbhjnBOvfz8Tbl2fRiogYFz6Ec=; b=wxVlsL22KAeet2co15rxp5Ie4qu2tbqzn9KJM4qRwlveTbCL4pZd9NfHiLWqzRVTwV Pdb9COAmnv9xrf9dw0CkI3Ss1iTbkeBFzTDfoagHuzZJp9MHoPDc9xxMZLGFpXtaQ2s/ qZalmC+bfi03az9bVk78acz1J4uyUCb7H9R7MaoczH22lk13/cbKv0O+TuZtrr3m+LbC EqgpjOhnB3Q2/f6PlCBnIfb8Mo684H0NQPydgiikJzcwpHkiWbIB7KA9TJHS7Hl7yhir oXgVJdgPGyaktB5Ki5OfG83vjH1Y8YJzDJWCCZUpwcLnjilixvA0huiZUk1lYR8uwvBP CVXg== X-Gm-Message-State: ANoB5pn6gKXfMSIW3kRfbVjz5998ilWwwQMpRcji4YGQK3MyRDnsYgHc 2hF6yKmCTagsLMMbQ2e//yamVA== X-Received: by 2002:a05:6602:887:b0:6bc:1103:f36b with SMTP id f7-20020a056602088700b006bc1103f36bmr15104317ioz.205.1669680051850; Mon, 28 Nov 2022 16:00:51 -0800 (PST) Received: from localhost.localdomain ([98.61.227.136]) by smtp.gmail.com with ESMTPSA id ay10-20020a5d9d8a000000b006de38ee994esm4969314iob.47.2022.11.28.16.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 16:00:51 -0800 (PST) From: Alex Elder To: sboyd@kernel.org, mturquette@baylibre.com, andersson@kernel.org, konrad.dybcio@linaro.org, agross@kernel.org Cc: Luca Weiss , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: qcom: rpmh: add support for SM6350 rpmh IPA clock Date: Mon, 28 Nov 2022 18:00:47 -0600 Message-Id: <20221129000047.697089-1-elder@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750786756340980397?= X-GMAIL-MSGID: =?utf-8?q?1750786756340980397?= From: Luca Weiss The IPA core clock is required for SM6350. Define it. Signed-off-by: Luca Weiss --- drivers/clk/qcom/clk-rpmh.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 0471bab824642..6a5887aae21a4 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -603,6 +603,7 @@ static const struct clk_rpmh_desc clk_rpmh_sc7280 = { DEFINE_CLK_RPMH_VRM(sm6350, ln_bb_clk2, ln_bb_clk2_ao, "lnbclkg2", 4); DEFINE_CLK_RPMH_VRM(sm6350, ln_bb_clk3, ln_bb_clk3_ao, "lnbclkg3", 4); DEFINE_CLK_RPMH_ARC(sm6350, qlink, qlink_ao, "qphy.lvl", 0x1, 4); +DEFINE_CLK_RPMH_BCM(sm6350, ipa, "IP0"); static struct clk_hw *sm6350_rpmh_clocks[] = { [RPMH_CXO_CLK] = &sc7280_bi_tcxo.hw, @@ -613,6 +614,7 @@ static struct clk_hw *sm6350_rpmh_clocks[] = { [RPMH_LN_BB_CLK3_A] = &sm6350_ln_bb_clk3_ao.hw, [RPMH_QLINK_CLK] = &sm6350_qlink.hw, [RPMH_QLINK_CLK_A] = &sm6350_qlink_ao.hw, + [RPMH_IPA_CLK] = &sm6350_ipa.hw, }; static const struct clk_rpmh_desc clk_rpmh_sm6350 = {