From patchwork Mon Aug 19 07:39:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171590 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2621634ily; Mon, 19 Aug 2019 00:41:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKzbw5BZe2nYDQlqNOP+P3uyFUR1yv/qvk5ycichkAlXOGfZp++tBqvEkZQ8Yjsa42AszS X-Received: by 2002:a62:7996:: with SMTP id u144mr22889439pfc.228.1566200516555; Mon, 19 Aug 2019 00:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566200516; cv=none; d=google.com; s=arc-20160816; b=mSV1xa1s0wRwaCePV4iYNFoJYR8/SCFdPmMmodUYgeKGHxochienweqDWF+nwlf5Re huD8KrHxdOD4qf97Y0jmD765VKDLHrW1FjpExg7+R/SRDQ4IL+HDztFIBwaGjKsIMjbW 91U6sjgiiJYgYOrz5erYcC3I9EuvZuCuzJ8+lrHb5TyrImx7oii6zdXLXtlhGLdbefvB eYzG2y4OA8G+h1PujQhPDbbmyTd0cWKgPHIua5P/Sk9xmXlvpGJeeCi5M9CpB06sE/+I RNuIdWgJREEZCbXbdbj5T/fyrHkPgzt4oYlaK6xCivgowuy3IIlYWamLX2065FVs+QQl dxSw== 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=4HUg3CFJGenrg3YATpJPkGNlt+AbCg9jBmgRsBAJFW4=; b=SZdeNWPpfj1r/jTNAFOyqrHkGD5mbVrEJeSQzB2P08rderomc2ZjkMAUiiPmyS/gHQ 6iwjSNtN5EB0s9ZTEhpTYt/65+zIUsFP7Drb8nvN+Jhr4ljkjTu+JogA643Q2N2filIL V5UOwPNtvUFdz0QdqQ+SQTVMit9Iy9JCoWKMWep8YxEK7nPkpSTDkuqng+1/zlhJ6ZY+ AIcDyaPfrkgh7xafMOviHBGf5NxAVjKJVcOtTqSYW5LIU6gq/mpzmzIPiO76DnDErguG wlnfRmd/LwhF6ItfitpNotgUljg313NCnUd6D/7QvLRKWXmDTP1zqowXGDf0UrEdLHfK zMqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=om0PAXLo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 6si9194896pgb.201.2019.08.19.00.41.56; Mon, 19 Aug 2019 00:41:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=om0PAXLo; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727151AbfHSHlz (ORCPT + 8 others); Mon, 19 Aug 2019 03:41:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:60814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfHSHlz (ORCPT ); Mon, 19 Aug 2019 03:41:55 -0400 Received: from localhost.localdomain (unknown [122.182.221.154]) (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 5A65520989; Mon, 19 Aug 2019 07:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566200514; bh=Qz8PhyWf0+VgB0haEtXhkGUqS2uIp+Tg4BMmWfb6Lc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=om0PAXLo9bcOZ51YHgZYNxMkClVhQWeXEUXBj/3cVgJOgZonFGdFqbo3ch5uByCXj mdLwzOjNCuJvP43JyOygL1cIveofL2/DNI160KLTCwPoH3SOWi7LQ/UdV+k3MqjyG+ nFB/U9mqEV7XCJIrDqDjd+Irgc87TGvKTRKUcgS0= 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 v2 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme Date: Mon, 19 Aug 2019 13:09:45 +0530 Message-Id: <20190819073947.17258-3-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190819073947.17258-1-vkoul@kernel.org> References: <20190819073947.17258-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index c3fd632af119..16d689e5bb3c 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", \ + }, \ .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", \ + }, \ .num_parents = 1, \ }, \ } From patchwork Mon Aug 19 07:39:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171591 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2621818ily; Mon, 19 Aug 2019 00:42:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRRffkDOYZBCSKSrRD5cHI/mm5wSUcMa5YZwTdqfKjJYuXMIVwj6N071/swzz8M5hFY5yJ X-Received: by 2002:aa7:9516:: with SMTP id b22mr22666248pfp.106.1566200529157; Mon, 19 Aug 2019 00:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566200529; cv=none; d=google.com; s=arc-20160816; b=eYnZlAd2huuM5l/qB6zck+pBIL3NJessZPpsTAxeMsgn9IRVgIh7rC+WqcvcSU9DH5 7mLC0czlRYmk8wWPe8tUFoVbB7s6NmEfCZ97OI77yEKXbMy60hcJAHT6m87he9mCDyKw sygy/JDYcIESUyViIRs2y0+d2VvWYhfm0cfXwylVSG7Avh7yeQETrbmh/PJxAg8NpGXv 1ofKM9VK1cq7p8ERE7gG37JZ+cEPsMFRX7NVuc7wxSqd8DscUW4b/15Xb4HeMDJQluh9 f0yPKk1CS8/XuhXMfvvHW5O7vmOB0dpenwLRP2+bYhWjkN4LN7zZnYxUEKzLONLDIEjU Ph+A== 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=22g5Gx5cgV5YTUdks+43B0ISlxOlx9NthamjjyiJoa0=; b=w8irpmqR397VN8YEGkxNfQ13qjP7zAVCs6iiTqfShLQk5RdcOKk+ElmHE5+hVGGAbH bJ+2eq/P4fmzXCO0+FgNmYY2fh3eewubg1c4ucB56oQKq9RkuhxyE14kmqtOQ7T6gXdf C0RiYeYKNV+rjAG1uFOAOF+sfxIO7NYWtKEAtltbDEaukJf5yryls+jeHY2L6Y+rR4Oi nb0Cb0BVHAcHq7Z/JGIz0csKRrl3dl8U2K+RT/cIpLvBQ5YSKtuza/PoarCleiYLCyJV Vd5UNh46FOYSCyyvbxOh3lSGxpPrCcrYKvRqENY3GeFTAO9EGMEt6c77NBWJEc51go7r 9HXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jq61l6DX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 j62si9331109pgd.170.2019.08.19.00.42.08; Mon, 19 Aug 2019 00:42:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=Jq61l6DX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727091AbfHSHmI (ORCPT + 8 others); Mon, 19 Aug 2019 03:42:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:32858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726863AbfHSHmI (ORCPT ); Mon, 19 Aug 2019 03:42:08 -0400 Received: from localhost.localdomain (unknown [122.182.221.154]) (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 AAF5B21852; Mon, 19 Aug 2019 07:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566200527; bh=CRQSHqFBMc6sLh9k3bOqJZWm1U3UdoXRaWCDRv5aItI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jq61l6DX+AdoLCvAiylNqIWRctgpHClySu9uOrQJnUM2NI+hhCSeyLTOiEQIMLZ7Y Jk+ln5Rgth111ZVx7iYY/sAqgJUOHt6PZAkshRshCngOd8am/A3hT3r6uPfM0NRG4s u0qHpJb/7wIbATbZ/1CEMSmGIEB2Hih+5JcF6Cjg= 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 v2 3/4] dt-bindings: clock: Document SM8150 rpmh-clock compatible Date: Mon, 19 Aug 2019 13:09:46 +0530 Message-Id: <20190819073947.17258-4-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190819073947.17258-1-vkoul@kernel.org> References: <20190819073947.17258-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the SM8150 rpmh-clock compatible for rpmh clock controller found on SM8150 platforms. Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt index 8b97968f9c88..365bbde599b1 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmh-clk.txt @@ -6,7 +6,9 @@ some Qualcomm Technologies Inc. SoCs. It accepts clock requests from other hardware subsystems via RSC to control clocks. Required properties : -- compatible : shall contain "qcom,sdm845-rpmh-clk" +- compatible : must be one of: + "qcom,sdm845-rpmh-clk" + "qcom,sm8150-rpmh-clk" - #clock-cells : must contain 1 - clocks: a list of phandles and clock-specifier pairs, From patchwork Mon Aug 19 07:39:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171592 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2622048ily; Mon, 19 Aug 2019 00:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpJtHiDAVm9RiBRgnOhELSAcHBmRlrOfhJbujfEAsf82AJ2z3WwXMxU+1jwSsx9NQY7l+s X-Received: by 2002:a17:902:9b8f:: with SMTP id y15mr20066587plp.194.1566200544124; Mon, 19 Aug 2019 00:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566200544; cv=none; d=google.com; s=arc-20160816; b=D1tgCipjmSD+6VHTg7Z2ONFXdVc1aHa+wedWBq+99T2Lm63XrhZ+SSYRTfJ2Yp6iVS Dxj2tgV059no+6Iyo5rJ4eyrEgRxMXrB9hopyqDDYOJwpNporeOwa1AU0IN0BKPzNhJw 8ZFlKyscBRcEnxOQr4ysZYToZjnKmy9h5RFHp2ghc53ftAUhO8z6mBJMtIXOMdwC0pGv XTSvvRNhGvaHDtaQDJceTPTWv0Ba0FkWk+rfPH0kguAboPgjIPR2RMrN42cNLSHV3KQ+ 7H2i926hoBPLq+RPRVlfqGoTx9M1SLeBBs8USWY7nEzLygBQ8Y2Ckn+30kFPp4q7xzgi OojQ== 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=EkQawDrzfbozQjeONbDiU9Nhcezvi3AV+UcBCTIBUoc=; b=x2RI+cQ5h3PuVHMapjGMs/9AEcQbBw7e4nI/V9E+Mk/kp0s1wZOj+m1Wdlp8yuEUM3 xOdOM+efSgqUrtLaSdSsla5AcvoxEC51sPKPGfGxne3R5U0Clv4wE8bqRWBSyvUDRjnD AAoePioKcRudW/Autchzpz6cGkqPvbzVnv2f4LBXUD/WGcWdXadVO4+qO6CF0xa+54AG pmbImvF40obkzZub2h0sdGlOps0LZVKV5RoQFy88Prrmj2AFMPf/bixtEIA8vopkNGi1 pseZ79+zqWelPPWXZKdp1aAx5jFb9BtzCE0S2aH+gIFPTMix0FZ6gn7rczE86B5xEuTr KqXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pt2kNxka; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 r23si9993512pfg.124.2019.08.19.00.42.23; Mon, 19 Aug 2019 00:42:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=pt2kNxka; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727216AbfHSHmX (ORCPT + 8 others); Mon, 19 Aug 2019 03:42:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:33092 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727086AbfHSHmX (ORCPT ); Mon, 19 Aug 2019 03:42:23 -0400 Received: from localhost.localdomain (unknown [122.182.221.154]) (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 021B8204EC; Mon, 19 Aug 2019 07:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566200542; bh=BnpTDjTXkIRhKur+oqKtSpkGbgUriCQN7WXMH8kAEXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pt2kNxkanpdLze9W5t6oOepISNEZcYnv+P+kevZRF3Hwjck/nPG630K0sVTtK8kZL +r7lGZoCNYxeOVIk56DeRBw1qFtE8EVDKLivCeN2gNUDhiUdSJXOf3eyPyrl9KvhA1 1WSgUYbqwjNCT+yhWTQPKpggDVy5YzdMKKy+Ad8Y= 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 v2 4/4] clk: qcom: clk-rpmh: Add support for SM8150 Date: Mon, 19 Aug 2019 13:09:47 +0530 Message-Id: <20190819073947.17258-5-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190819073947.17258-1-vkoul@kernel.org> References: <20190819073947.17258-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for rpmh clocks found in SM8150 Signed-off-by: Vinod Koul --- drivers/clk/qcom/clk-rpmh.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 16d689e5bb3c..3b304a3fb5c9 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -374,6 +374,32 @@ 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 +479,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);