From patchwork Mon Aug 26 17:31:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 172190 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4654299ily; Mon, 26 Aug 2019 10:32:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuDH0zI24SGP3t9hiu56HcVmgBLE90GnLc62+shaACxRXB8do2Ne2BVzd9JS38uHfQxZ2F X-Received: by 2002:a17:902:d202:: with SMTP id t2mr19702816ply.1.1566840772484; Mon, 26 Aug 2019 10:32:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566840772; cv=none; d=google.com; s=arc-20160816; b=IY2WotvQsEieFNi4b3IoutG2HAkC9DurLgF5IABZp7Z29bQfK5fBJPROcMh116lbg+ kCeF5dvuh+GdAzmhKpuPzzWIybOrj29RH5L1Xurknvj2rGw83K7TPqE745ZfRpw3cxdy ddNfQ7VmFRBNaLua7qRbis2Zw3D+sT90c3qAnZ2VePnkJgvuLam+MRCo8nJxdAivsl1y ZupUJ1lvL2d0haNeIKGRzcgjh2MUSqmRzcsf0a/V5DUIVd3W4endJ1d1m2jquTbrGZsr V4M3fn9QfzSlkm/p+p6PwgUlWqEYg7ghgVcyal/hCFb4RYttBDsfbaQXL9BlfeRSYrm2 2Reg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E8MDKjvn//cEOCrkFwxgPuSp1J2YSe393/8h4yTQcmk=; b=lO61po3plBCyqPcfc0BqIpvxyzZZXiUM7lOjKPMqy4XtlkYMfQqCy99xjxMEDIWsQN nG3M8TAzwkBpxJb2l9arprxPyd8EGrZ/btvL4rSw8m+nnBPJUqVpP1O/FnPI5vi2SbMq R14Y002YX7A48b35pspsXSK5HzUPsdIHUPT1k9hUOjE8ZFfKIPP4LkCSXq1miKknAgtR inrZHHnpGnon8j7RiXXttjI+Bqd3gwJm+brptFJppTVxgnMBSm/DBlqEeQDyBwJcwpSP zvfdGRoOCc2F8rT/WV3L0+596vMbFRXjt+n1ZE2KPLrW1EhKSCHyzGqm1Y2HSCjzP9yp cddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mykDUBPX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m15si10577462pfh.183.2019.08.26.10.32.52; Mon, 26 Aug 2019 10:32:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mykDUBPX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732970AbfHZRcv (ORCPT + 16 others); Mon, 26 Aug 2019 13:32:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:53372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbfHZRct (ORCPT ); Mon, 26 Aug 2019 13:32:49 -0400 Received: from localhost.localdomain (unknown [122.178.200.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8CDD02186A; Mon, 26 Aug 2019 17:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566840769; bh=Q7kiEkSXrf3gA7puG/o7zAZMeX+4Qx+gMA0f7vCks6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mykDUBPXgguP2eO0Ndl8jUSCIEDDFJ9ajPgG+BH+wkFh2YBIa8pJ+57JS7ns9aekE /DKuc1DgxcB+1iqXFt8vCfQoicvdGb9U4CkRQ+IQ4Yq/U8hhLvTxtNMij+/C5MO6eE iu4dQ6fJErdP9Am4ZPCYofpjARUD/n6K3HUED5/I= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Michael Turquette , Rob Herring , Mark Rutland , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/4] dt-bindings: clock: Document the parent clocks Date: Mon, 26 Aug 2019 23:01:17 +0530 Message-Id: <20190826173120.2971-2-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826173120.2971-1-vkoul@kernel.org> References: <20190826173120.2971-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org With clock parent data scheme we must specify the parent clocks for the rpmhcc nodes. So describe the parent clock for rpmhcc in the bindings. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 3 +++ 1 file changed, 3 insertions(+) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt index 3c007653da31..8b97968f9c88 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt @@ -9,6 +9,9 @@ Required properties : - compatible : shall contain "qcom,sdm845-rpmh-clk" - #clock-cells : must contain 1 +- clocks: a list of phandles and clock-specifier pairs, + one for each entry in clock-names. +- clock-names: Parent board clock: "xo". Example : From patchwork Mon Aug 26 17:31:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 172191 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4654406ily; Mon, 26 Aug 2019 10:32:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Uu25YPpua0Jmk6+xUaYkHfIlbvmJO1Rfk6oeX/A9dvxnywsD4vO5UJcRaL7QdxxgLa0z X-Received: by 2002:aa7:9799:: with SMTP id o25mr21364291pfp.74.1566840777358; Mon, 26 Aug 2019 10:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566840777; cv=none; d=google.com; s=arc-20160816; b=DBxWnFzJSoWYRr8mZGjPaG3l4Q8+76CZOJit427fS9vQG8D38uo46yEaHOlj+3aJ0z 5EN0uWpFHSoiOb3LSscMSsSfWWrfAgukeBQ72u+NEWpO8ttDlaXK2+cWCN1zMxwEppHS F++8yTOz5Ix3yk+oMQsRWWZk3bqn5PNtP43bOgSacSkd57xC9omlU0zTyXbHTyUBFB7u 1yeap1Mk12QYRar1aqJ0BzFx4UY3SaatGkB0hkg/WTtP1gQDQ2Tdlef7yws4/rErBipD SStJD8TxamvZ1fHcdwnxZ88mGEWmXEUSgJ7oc/joQiw44ythbdVVeuQ61bZq3Lfx3VhZ OtpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GRjYwaSgng0BJPESZ8xdlcF19E0Xu183t2IROXXcNas=; b=b7YN6B90TANbHJQoUwUNL0ZELOcHoo24+NB0S+C2dHKPZDdZkxFC4cJyx/oKf00hi9 V0NByiWfe9bhHneMbwiG4NtFh2wHyjqQr4BffhpGDQq6hq3m8i1u5VkWQHZsEPDCv++l bddJbOWsK7aiZtg61OXK9uygYAX2IAKazwZFGb7mK2F4qUfRLbPeGLXC+lmoqIXau4od LJBmIg5xmYVQ/87Kv7W16RH11ueLttxEFYpw1mjwRrJNxYWuGyTucpdDCxp6XtnYid63 W/6VM+JFlN66x3j810mlRPmAxym+p81ZoVJnG2LsxjWEg5lNOzgBujekZGr+Yh48kF2B ZO1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ku/zyUq/"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si10231727pld.137.2019.08.26.10.32.57; Mon, 26 Aug 2019 10:32:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ku/zyUq/"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727211AbfHZRcz (ORCPT + 16 others); Mon, 26 Aug 2019 13:32:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:53430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733008AbfHZRcy (ORCPT ); Mon, 26 Aug 2019 13:32:54 -0400 Received: from localhost.localdomain (unknown [122.178.200.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5AE021872; Mon, 26 Aug 2019 17:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566840773; bh=/bpf7xC2H//gRGlYPbogjUfpowEtufJcXobWye4Cnlk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ku/zyUq//J5sP5b/Jc4aUd/6Qs8Ci3Ac9uMLwlQI2K4DUTxDW1HXebjnTDhl1RB1S eUX9JmFeIGQjvCqit+C980G5SLh9DnmmZ8NjkBtNT86E7B9MMdTxTSZGTDA/HYJcWt cI+GHVXUB/KIWGVbVy72ZT4uZAtNFgagPaiU4Q0E= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Michael Turquette , Rob Herring , Mark Rutland , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Date: Mon, 26 Aug 2019 23:01:18 +0530 Message-Id: <20190826173120.2971-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826173120.2971-1-vkoul@kernel.org> References: <20190826173120.2971-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert the rpmh clock driver to use the new parent data scheme by specifying the parent data for board clock. Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-rpmh.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..35d55aee6a01 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -95,7 +95,10 @@ static DEFINE_MUTEX(rpmh_clk_lock); .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpmh_ops, \ .name = #_name, \ - .parent_names = (const char *[]){ "xo_board" }, \ + .parent_data = &(const struct clk_parent_data){ \ + .fw_name = "xo", \ + .name = "xo_board", \ + }, \ .num_parents = 1, \ }, \ }; \ @@ -110,7 +113,10 @@ static DEFINE_MUTEX(rpmh_clk_lock); .hw.init = &(struct clk_init_data){ \ .ops = &clk_rpmh_ops, \ .name = #_name_active, \ - .parent_names = (const char *[]){ "xo_board" }, \ + .parent_data = &(const struct clk_parent_data){ \ + .fw_name = "xo", \ + .name = "xo_board", \ + }, \ .num_parents = 1, \ }, \ } From patchwork Mon Aug 26 17:31:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 172193 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4654564ily; Mon, 26 Aug 2019 10:33:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwYR6mcnyDEx62EwnGNeUpVEHwiWSnM/2b2yfE1w47k7tU5Q+9Aojq4DSu0mDPfHXdHNG8 X-Received: by 2002:a62:5207:: with SMTP id g7mr21771948pfb.152.1566840784610; Mon, 26 Aug 2019 10:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566840784; cv=none; d=google.com; s=arc-20160816; b=C2gkIwUxnxtj7qApzNQlvXeM5vprMNoZwyFZOLAiMg/RugVzcy70hkwn7cVD2ZdcOh QbxbTAxwuLUeNXmZE1fERZ0KEDl9weCSlR63W6qSfDJXhJZ+r7iTgDpLhr/oRxPaPxa3 qSCk8z9E1zSo7oFJEszD7nQIvnw/72LVYkqNTYDSdTj4sR09EhpZV4THATjbIsSH24IL DnACBDdO9iIoMbd8ZSfZQbm8lCN7IJIo6Uniuw9Lre1y7i9LQ7Cc8/qr35tcgtdDPyxh xVUjsI3uELX2Lf7twLkxkqzJBkRJY1xuWlGIl6nuwNDfq6Cf6URA+FigNJXONZ6cdOIc XBiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VhsAlXwqmItrDS/ineGROdywVHv4ndZACLFnOyxiMy4=; b=YJZIFwAXhaIZue+0WkeoIjVdI7t3x7CLq56JoXZtXjC3rYMM+C2jIigx+5Of0EfSXV R8fMITVl/eGwUn0xu51MpI1QBuA4wXEk+fyvhj1n5rDU5ecrb4MRWLQzGMZJfZGCNDDa 1TflyK+g/rGSHFrT4U4H59RfWrvdBZUQ69cxD7I+97s/cC10T8wjwJpSsi4IBIgCeWLd ZGuiLZ90cJkPHFI9w6GwEzyPD1uf25FerJ19piMKTfcux8r7ACUv5r5JdaiN3nwR0qF6 T/XEqiFmjJg4zDEsUblnYy+Nr3s6+X7+8STIwKvSr//PpX3rhpAqnSpHQk6FN3cpQH7D T+8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Eg3Ijfi7; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10si4127127pfi.282.2019.08.26.10.33.04; Mon, 26 Aug 2019 10:33:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Eg3Ijfi7; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733134AbfHZRdD (ORCPT + 16 others); Mon, 26 Aug 2019 13:33:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:53580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733129AbfHZRdC (ORCPT ); Mon, 26 Aug 2019 13:33:02 -0400 Received: from localhost.localdomain (unknown [122.178.200.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 433F22186A; Mon, 26 Aug 2019 17:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566840781; bh=4wFu03Ac/Jjd2z/fTVgXD079XnLR7S29H7ylY2f171Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eg3Ijfi7eUHBdltdQHGVDDDVEn0JHoBDBxfZ8H3pIBPQaNqWJOXFsIZFUzJVp8Wkn 3tV/Hg6KcT6yEGLXEGuIimZtJBj6PRyg4bQmjFTaw4O9l87OmXKFWGse81UQhxkbjl t/dOTdGk0YpTlH1lN9aXBoe6o+1lSB/BnBhqUP3c= From: Vinod Koul To: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Andy Gross , Michael Turquette , Rob Herring , Mark Rutland , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 4/4] clk: qcom: clk-rpmh: Add support for SM8150 Date: Mon, 26 Aug 2019 23:01:20 +0530 Message-Id: <20190826173120.2971-5-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190826173120.2971-1-vkoul@kernel.org> References: <20190826173120.2971-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for rpmh clocks found in SM8150 Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/clk-rpmh.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.20.1 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 35d55aee6a01..49694082e9ec 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -374,6 +374,33 @@ static const struct clk_rpmh_desc clk_rpmh_sdm845 = { .num_clks = ARRAY_SIZE(sdm845_rpmh_clocks), }; +DEFINE_CLK_RPMH_ARC(sm8150, bi_tcxo, bi_tcxo_ao, "xo.lvl", 0x3, 2); +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk2, ln_bb_clk2_ao, "lnbclka2", 2); +DEFINE_CLK_RPMH_VRM(sm8150, ln_bb_clk3, ln_bb_clk3_ao, "lnbclka3", 2); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk1, rf_clk1_ao, "rfclka1", 1); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk2, rf_clk2_ao, "rfclka2", 1); +DEFINE_CLK_RPMH_VRM(sm8150, rf_clk3, rf_clk3_ao, "rfclka3", 1); + +static struct clk_hw *sm8150_rpmh_clocks[] = { + [RPMH_CXO_CLK] = &sm8150_bi_tcxo.hw, + [RPMH_CXO_CLK_A] = &sm8150_bi_tcxo_ao.hw, + [RPMH_LN_BB_CLK2] = &sm8150_ln_bb_clk2.hw, + [RPMH_LN_BB_CLK2_A] = &sm8150_ln_bb_clk2_ao.hw, + [RPMH_LN_BB_CLK3] = &sm8150_ln_bb_clk3.hw, + [RPMH_LN_BB_CLK3_A] = &sm8150_ln_bb_clk3_ao.hw, + [RPMH_RF_CLK1] = &sm8150_rf_clk1.hw, + [RPMH_RF_CLK1_A] = &sm8150_rf_clk1_ao.hw, + [RPMH_RF_CLK2] = &sm8150_rf_clk2.hw, + [RPMH_RF_CLK2_A] = &sm8150_rf_clk2_ao.hw, + [RPMH_RF_CLK3] = &sm8150_rf_clk3.hw, + [RPMH_RF_CLK3_A] = &sm8150_rf_clk3_ao.hw, +}; + +static const struct clk_rpmh_desc clk_rpmh_sm8150 = { + .clks = sm8150_rpmh_clocks, + .num_clks = ARRAY_SIZE(sm8150_rpmh_clocks), +}; + static struct clk_hw *of_clk_rpmh_hw_get(struct of_phandle_args *clkspec, void *data) { @@ -453,6 +480,7 @@ static int clk_rpmh_probe(struct platform_device *pdev) static const struct of_device_id clk_rpmh_match_table[] = { { .compatible = "qcom,sdm845-rpmh-clk", .data = &clk_rpmh_sdm845}, + { .compatible = "qcom,sm8150-rpmh-clk", .data = &clk_rpmh_sm8150}, { } }; MODULE_DEVICE_TABLE(of, clk_rpmh_match_table);