From patchwork Sun May 2 12:20:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Dudziak X-Patchwork-Id: 12235165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F7E0C43460 for ; Sun, 2 May 2021 12:20:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0B8B461358 for ; Sun, 2 May 2021 12:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232126AbhEBMVj (ORCPT ); Sun, 2 May 2021 08:21:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbhEBMVi (ORCPT ); Sun, 2 May 2021 08:21:38 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A22C06174A for ; Sun, 2 May 2021 05:20:45 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id w3so3826425ejc.4 for ; Sun, 02 May 2021 05:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snejp.pl; s=gmail; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qqcj0BqgNgc1kx4Ifq3fIk2WlqX2X6sfrX0+upPU08M=; b=JpKUjkb4rKj3rHgTE7xBziJ6MrZrt2O2FBGJEL1wUMLwt5Xu471qz3yd1HD3CaSV5E ySdRvgC+gKModoCBMnPS+4OCYmtakK/2MOlzR0AeTMWsyVC8ImXHFRZjHO9HXtihyve1 zJquBj4geX1T5Tsxc+w+ebBM/nUYn6qIOm26jqhXUKpcfx9WtDZwRyk1PoEnOX2hyJvA yyI2GVU8HUH5zEtb4XnQr4D2w48JaWKoaB7acUvBpdfIgYXBxBoTQ+3NHv1XLFNqgOMd sBfoj7Ni/Lo87KvYbn6mnLueKgd7dZxR3RSFFtT35/v2z0f/N7dspn3ep3vHr2Rrt9F/ cQJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qqcj0BqgNgc1kx4Ifq3fIk2WlqX2X6sfrX0+upPU08M=; b=o5dYwvW3R/yGjYhmGyV0wv1FjXbVggcxD3PivxCRMWx3uUDWDA2hlSQ673fBUYFgNJ Bf6aVcHkyVCfwqqQYdXIEgk79nIsJfO1Caco0WVvL9kn9fHb4UODHt6OEITyleOsH2GR XhI5cIpKz33AkG05sbdMzvY9X6s/mVW+acyPHMRgSVyYmiX+p0uq5u6DD9CXHIPsWVDq K/wDaFC/saPrncGWe9QUu5R+mtH/uGT6l/Ox6Cv/HdD39+/bXrwbzjhpXpYvh6xae/N3 1lDRF2q/ejracF5Gdk7Qz47EAiCGK4sXDZRVa3y6TYvlmTsChgmzQFM07KUEKUfheTJx oVMg== X-Gm-Message-State: AOAM532WcHVecidiehqS1lFR3uwKTlCQ4YEd8a0hwUDFnZYL57lOYHka xLsQYpk2EWOC7gqFHsKW61aMy2mjjdK14Fn1 X-Google-Smtp-Source: ABdhPJw2r3QVd9qc44rIT86Cb/Gz6aXvVaQaubc7oCSkq1yyExPbVDNfjHCjgz1jdCiXkX7ulg+lPg== X-Received: by 2002:a17:906:1e44:: with SMTP id i4mr12410533ejj.61.1619958044723; Sun, 02 May 2021 05:20:44 -0700 (PDT) Received: from PackardBell (192038133011.mbb.telenor.dk. [192.38.133.11]) by smtp.googlemail.com with ESMTPSA id b8sm9866238edu.41.2021.05.02.05.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 05:20:44 -0700 (PDT) Received: from localhost (PackardBell [local]) by PackardBell (OpenSMTPD) with ESMTPA id 74b6daf4; Sun, 2 May 2021 12:20:32 +0000 (UTC) From: Bartosz Dudziak To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Kathiravan T , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bartosz Dudziak Subject: [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add MSM8226 compatible Date: Sun, 2 May 2021 14:20:24 +0200 Message-Id: <20210502122027.9351-2-bartosz.dudziak@snejp.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> References: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the dt-binding for the rpm on the Qualcomm MSM8226 SoC platform. Signed-off-by: Bartosz Dudziak Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml index 2684f22a1d..e6e4cb3d0d 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml @@ -32,6 +32,7 @@ properties: enum: - qcom,rpm-apq8084 - qcom,rpm-ipq6018 + - qcom,rpm-msm8226 - qcom,rpm-msm8916 - qcom,rpm-msm8974 - qcom,rpm-msm8976 From patchwork Sun May 2 12:20:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Dudziak X-Patchwork-Id: 12235167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 588A4C43470 for ; Sun, 2 May 2021 12:20:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 480626128E for ; Sun, 2 May 2021 12:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232201AbhEBMVk (ORCPT ); Sun, 2 May 2021 08:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232187AbhEBMVj (ORCPT ); Sun, 2 May 2021 08:21:39 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17F2C06138D for ; Sun, 2 May 2021 05:20:47 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g14so3195689edy.6 for ; Sun, 02 May 2021 05:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snejp.pl; s=gmail; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DVP6tvcY63isDzrbgebsNJ+d5nHbeNK30t0HTq6Wq9o=; b=Og8MV0xvowL/XNFJbuLBiawFbDdqVUe3M5x6cFxDxOtAZ9uAWLJdG0el6oiCBtbjE3 Uy89+c9bsXRg316V3OblZgQITGvdaD1PUEa20SLG3gt7upEeAIA0yDlAW+ePzXt2qVi/ UE5qjhdKEofCBodirCKhTv2yP88/KhjYrMGeWlLie0BDsV8kjYzlnUGS1VnrL0O5UGxV gzV9fVS8qapyfiknVpVrU/uHJ23mXtcf/FikaVhs19EaMUVPikvGcpHzseztvw6rMkVo SmekMdwy3e/N4qJMCX0luGIXAj/DC2u6RpW7gmEpNN1e5NFbh6Ukcy555ZBBOxhMbnov zFRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DVP6tvcY63isDzrbgebsNJ+d5nHbeNK30t0HTq6Wq9o=; b=PbpcAz7KQrz1OkQgugsG2hsFA7H/akoPvbLUbU38XQpW6gd5WQb3yklh15wS0DTRGD roYqFFOPfTQ3jBodvqrqZ3D8GBzKfCXnhmXlMIbckWgdpMms6OEFNtPGrU9EJ9RiW7DP op0YaXBlmyRunrknGjEUGiEx9jHrfaR9c+BKwX/DWmFyEC5E/BW45Maxh+ZhIIJnGNtv omsxgCY/ITNt0at9HJxq2CsLprY3pm9idZVaNDnjv/GUUZa4VJOpEIGRar+V9Is0P8uE lVOD/kr1hfUXY1WKMdjT3hsHC1NskVXtn0ujbeK3DIDBgap0Xr8rFB2uIEXsjC9xPtHG Y3MQ== X-Gm-Message-State: AOAM532ndvuUFxHEPLdbQ4zleC/mk1rcgVcuFwq8FexqGTCw8+PEGb7L Rbh8eNNeaG35C35nxRztAcAV9A== X-Google-Smtp-Source: ABdhPJwGSU2RTKhUOnidg44VV7INqtY5vNHzHH8BZy+McrojNRPs1BvDK/zKbJFPPa1OjSEe7j1/3w== X-Received: by 2002:a05:6402:309c:: with SMTP id de28mr15088836edb.191.1619958046471; Sun, 02 May 2021 05:20:46 -0700 (PDT) Received: from PackardBell (192038133011.mbb.telenor.dk. [192.38.133.11]) by smtp.googlemail.com with ESMTPSA id p21sm10064085edw.18.2021.05.02.05.20.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 05:20:46 -0700 (PDT) Received: from localhost (PackardBell [local]) by PackardBell (OpenSMTPD) with ESMTPA id ab01b034; Sun, 2 May 2021 12:20:32 +0000 (UTC) From: Bartosz Dudziak To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Kathiravan T , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bartosz Dudziak Subject: [PATCH 2/4] soc: qcom: smd-rpm: Add MSM8226 compatible Date: Sun, 2 May 2021 14:20:25 +0200 Message-Id: <20210502122027.9351-3-bartosz.dudziak@snejp.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> References: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a compatible for the RPM on the Qualcomm MSM8226 platform. Signed-off-by: Bartosz Dudziak --- drivers/soc/qcom/smd-rpm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c index b93218cb50..abd4178ec1 100644 --- a/drivers/soc/qcom/smd-rpm.c +++ b/drivers/soc/qcom/smd-rpm.c @@ -233,6 +233,7 @@ static void qcom_smd_rpm_remove(struct rpmsg_device *rpdev) static const struct of_device_id qcom_smd_rpm_of_match[] = { { .compatible = "qcom,rpm-apq8084" }, { .compatible = "qcom,rpm-ipq6018" }, + { .compatible = "qcom,rpm-msm8226" }, { .compatible = "qcom,rpm-msm8916" }, { .compatible = "qcom,rpm-msm8936" }, { .compatible = "qcom,rpm-msm8974" }, From patchwork Sun May 2 12:20:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Dudziak X-Patchwork-Id: 12235169 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EBF78C43462 for ; Sun, 2 May 2021 12:20:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CADE961139 for ; Sun, 2 May 2021 12:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbhEBMVn (ORCPT ); Sun, 2 May 2021 08:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232174AbhEBMVn (ORCPT ); Sun, 2 May 2021 08:21:43 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1891C061342 for ; Sun, 2 May 2021 05:20:50 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a4so3841719ejk.1 for ; Sun, 02 May 2021 05:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snejp.pl; s=gmail; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fsvE6WtMIKMdgchel4AwZbyPodFOn787PJi5Em1/sIU=; b=b6uyzwIqE/5gAw4uTRy7Lk+AHHUw4it3l+zWdboAjKsDf6/3ROvE3AMBy3qVIgYy1y qEsqFM/zI1gK8dc279V4PERd8TskJy6cs2IsRoW1e1DE5gGlhVeEkHRTxd0s2Mg0OECt eoz9URkSDAuLOid4gJ2vSduTY4SQ0hFnboBHvKAnGoIlCf4Tv7eGeokv/2GWechIM2Gy VfQamtu9bc4RiT9LQ+0ztn6/GjBO2Qd/4PDYKsG5UpoWCMeJQeVpf6kbiZFW+DH8uPjE k5Ejf8o2+btvm3TS6KF2DuzDfHRYEu1QcPSnEYXN6+IYejEhzLDYx0sr8i1dnAN4YhiB EZ4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fsvE6WtMIKMdgchel4AwZbyPodFOn787PJi5Em1/sIU=; b=b5P3PQlTQZQHqGI3krj2hJJjnDIohN1Btkh0Abdc1GrPebpX/KNGYAlUbrwcxdpfZn LNpcPl/Ve8XoUxAvKQPWbrZ5VUUxqOwMJPJaU+ZjG+zV3/pllHEw7QxzF0Hjvbv+B3lQ 7rV3fdQ8iTh3b/fZQFjma55iUYOYBdThcGWX0NnTjtefoc2fNCm/bXyr7VLnPHG5ySVI PyfjzZcd6lfRBETsvCjE11/YmIdPUzKM350CbWl8fyVhJwpNPH+SItauL9j7e7QSWcVF AvV3czgqP8VmgK/fMYDG+oPYEKFaYkQzdq5uNTylljEExcQhNuUE7Hg+SME4OzN6xbTg gXfw== X-Gm-Message-State: AOAM533Pl+2tw7DIHZdyYQdwg7SK6xTWEadjUzohYN97AhNptNqvIjPe fuvVpPycFm8rqITEcjZpifus7A== X-Google-Smtp-Source: ABdhPJwI3BtPLCf/2LScXjOjr1q3ID5iBq8yyFRYna9IQEs33/TuZVWGiC+fYR6G9uJM6parQx0AeQ== X-Received: by 2002:a17:907:3e27:: with SMTP id hp39mr12611354ejc.373.1619958049372; Sun, 02 May 2021 05:20:49 -0700 (PDT) Received: from PackardBell (192038133011.mbb.telenor.dk. [192.38.133.11]) by smtp.googlemail.com with ESMTPSA id b8sm9866238edu.41.2021.05.02.05.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 05:20:49 -0700 (PDT) Received: from localhost (PackardBell [local]) by PackardBell (OpenSMTPD) with ESMTPA id acc05d90; Sun, 2 May 2021 12:20:32 +0000 (UTC) From: Bartosz Dudziak To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Kathiravan T , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bartosz Dudziak Subject: [PATCH 3/4] dt-bindings: clock: qcom: rpmcc: Document MSM8226 compatible Date: Sun, 2 May 2021 14:20:26 +0200 Message-Id: <20210502122027.9351-4-bartosz.dudziak@snejp.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> References: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add the dt-binding for the RPM Clock Controller on the MSM8226 SoC. Signed-off-by: Bartosz Dudziak Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/qcom,rpmcc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt index b44a0622fb..6cf5a7ec2b 100644 --- a/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt +++ b/Documentation/devicetree/bindings/clock/qcom,rpmcc.txt @@ -12,6 +12,7 @@ Required properties : "qcom,rpmcc-msm8660", "qcom,rpmcc" "qcom,rpmcc-apq8060", "qcom,rpmcc" + "qcom,rpmcc-msm8226", "qcom,rpmcc" "qcom,rpmcc-msm8916", "qcom,rpmcc" "qcom,rpmcc-msm8936", "qcom,rpmcc" "qcom,rpmcc-msm8974", "qcom,rpmcc" From patchwork Sun May 2 12:20:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Dudziak X-Patchwork-Id: 12235171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CF71C43461 for ; Sun, 2 May 2021 12:20:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01EA06128C for ; Sun, 2 May 2021 12:20:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232225AbhEBMVp (ORCPT ); Sun, 2 May 2021 08:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232224AbhEBMVo (ORCPT ); Sun, 2 May 2021 08:21:44 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 711D5C06174A for ; Sun, 2 May 2021 05:20:52 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id t4so3868842ejo.0 for ; Sun, 02 May 2021 05:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snejp.pl; s=gmail; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ya5wMfdEkx9QjeJilhrqhBrRqFB0sVhXi8RtY/gF6qQ=; b=jxWpdUwoiSrJ1AI4PDLcYPV6mjHb6JsrQNILNXt07NYoelSSnUxIBnfzQvymFnAhsf EOyX2TJxNLmAbo8Umukg12B9bMUd1pNaZnXIth6PmmAp/POUqPntZZaa6tbvuN8Qzfcu XCZdvmkZ/lB16iRTEFG2REQs5C9ngLvB2T94K6hJTyHaPtDpJpl48VSKGzQLaZj46wWl zviSEmHzgJgezVPkTZU33jBHOVgfabZWzK3KkVlTllB1UebHJdRTG6ACwseUR5JFiCPG n18k3FE/ICoNnozofmHEQTg4DlvupeG+2M+7++/45c7oMuVUjAq41jTqzZPZF/hdA6vJ kSag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ya5wMfdEkx9QjeJilhrqhBrRqFB0sVhXi8RtY/gF6qQ=; b=aricAwMAbAX5RyUfJLX6pXlDuxWQQ/WaB0BH7unHse3D4SDc0+G3IVcHna0tITOQdG RpB+ilrMzwdRcp8+uOO5Pzo4ydfGprsqheD/BRtuvqJLTbQZfoQ2tTuLSJlKR7QiU+3/ zaQId74mxSH9b9tzEQeWbmIfm/wkWd8wtjRwXpT5GC0cYkgOUwNW93ZEdYDxejiCXMKv 4Q8lQjVOqlbpz82Ki+91ATI4lXXfORLWmVwePdRVLipPbgZBJMFog7XzpEOid1ApBNdh TLYCx5JCnaZ7UPyXLkexUlFJY2LFEnkiNmteYzcZtBUB53tVTWkPzFWk4EToDEVHHb32 SMlw== X-Gm-Message-State: AOAM531kCDKIBh8j84kvTAlKro33T/0a83u/o5QO6NpAdtG4gGMLUT+h t2vIp64EkgrA4andEi+TGVrgLDcMUC0mgcAs X-Google-Smtp-Source: ABdhPJzUTQSM5bIfVnbb47T7ek9zbvta3E2+1hJuIqQJH78A5aee/BfJ2E8BLgt03+Q9LC2M89mQCA== X-Received: by 2002:a17:907:100e:: with SMTP id ox14mr12683839ejb.484.1619958051180; Sun, 02 May 2021 05:20:51 -0700 (PDT) Received: from PackardBell (192038133011.mbb.telenor.dk. [192.38.133.11]) by smtp.googlemail.com with ESMTPSA id p21sm10064085edw.18.2021.05.02.05.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 05:20:50 -0700 (PDT) Received: from localhost (PackardBell [local]) by PackardBell (OpenSMTPD) with ESMTPA id 7e88a667; Sun, 2 May 2021 12:20:32 +0000 (UTC) From: Bartosz Dudziak To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Kathiravan T , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bartosz Dudziak Subject: [PATCH 4/4] clk: qcom: smd-rpm: Add support for MSM8226 RPM clocks Date: Sun, 2 May 2021 14:20:27 +0200 Message-Id: <20210502122027.9351-5-bartosz.dudziak@snejp.pl> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> References: <20210502122027.9351-1-bartosz.dudziak@snejp.pl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add rmp smd clocks, PMIC and bus clocks which are required on MSM8226 for clients to vote on. Signed-off-by: Bartosz Dudziak --- drivers/clk/qcom/clk-smd-rpm.c | 74 ++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 0e1dfa8948..bf73942e86 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -406,6 +406,79 @@ static const struct clk_ops clk_smd_rpm_branch_ops = { .unprepare = clk_smd_rpm_unprepare, }; +/* msm8226 */ +DEFINE_CLK_SMD_RPM(msm8226, pnoc_clk, pnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0); +DEFINE_CLK_SMD_RPM(msm8226, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1); +DEFINE_CLK_SMD_RPM(msm8226, cnoc_clk, cnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 2); +DEFINE_CLK_SMD_RPM(msm8226, mmssnoc_ahb_clk, mmssnoc_ahb_a_clk, QCOM_SMD_RPM_BUS_CLK, 3); +DEFINE_CLK_SMD_RPM(msm8226, bimc_clk, bimc_a_clk, QCOM_SMD_RPM_MEM_CLK, 0); +DEFINE_CLK_SMD_RPM(msm8226, gfx3d_clk_src, gfx3d_a_clk_src, QCOM_SMD_RPM_MEM_CLK, 1); +DEFINE_CLK_SMD_RPM(msm8226, ocmemgx_clk, ocmemgx_a_clk, QCOM_SMD_RPM_MEM_CLK, 2); +DEFINE_CLK_SMD_RPM_QDSS(msm8226, qdss_clk, qdss_a_clk, QCOM_SMD_RPM_MISC_CLK, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, cxo_d0, cxo_d0_a, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, cxo_d1, cxo_d1_a, 2); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, cxo_a0, cxo_a0_a, 4); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, cxo_a1, cxo_a1_a, 5); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, cxo_a2, cxo_a2_a, 6); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, diff_clk, diff_a_clk, 7); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, div_clk1, div_a_clk1, 11); +DEFINE_CLK_SMD_RPM_XO_BUFFER(msm8226, div_clk2, div_a_clk2, 12); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8226, cxo_d0_pin, cxo_d0_a_pin, 1); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8226, cxo_d1_pin, cxo_d1_a_pin, 2); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8226, cxo_a0_pin, cxo_a0_a_pin, 4); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8226, cxo_a1_pin, cxo_a1_a_pin, 5); +DEFINE_CLK_SMD_RPM_XO_BUFFER_PINCTRL(msm8226, cxo_a2_pin, cxo_a2_a_pin, 6); + +static struct clk_smd_rpm *msm8226_clks[] = { + [RPM_SMD_PNOC_CLK] = &msm8226_pnoc_clk, + [RPM_SMD_PNOC_A_CLK] = &msm8226_pnoc_a_clk, + [RPM_SMD_SNOC_CLK] = &msm8226_snoc_clk, + [RPM_SMD_SNOC_A_CLK] = &msm8226_snoc_a_clk, + [RPM_SMD_CNOC_CLK] = &msm8226_cnoc_clk, + [RPM_SMD_CNOC_A_CLK] = &msm8226_cnoc_a_clk, + [RPM_SMD_MMSSNOC_AHB_CLK] = &msm8226_mmssnoc_ahb_clk, + [RPM_SMD_MMSSNOC_AHB_A_CLK] = &msm8226_mmssnoc_ahb_a_clk, + [RPM_SMD_BIMC_CLK] = &msm8226_bimc_clk, + [RPM_SMD_GFX3D_CLK_SRC] = &msm8226_gfx3d_clk_src, + [RPM_SMD_GFX3D_A_CLK_SRC] = &msm8226_gfx3d_a_clk_src, + [RPM_SMD_BIMC_A_CLK] = &msm8226_bimc_a_clk, + [RPM_SMD_OCMEMGX_CLK] = &msm8226_ocmemgx_clk, + [RPM_SMD_OCMEMGX_A_CLK] = &msm8226_ocmemgx_a_clk, + [RPM_SMD_QDSS_CLK] = &msm8226_qdss_clk, + [RPM_SMD_QDSS_A_CLK] = &msm8226_qdss_a_clk, + [RPM_SMD_CXO_D0] = &msm8226_cxo_d0, + [RPM_SMD_CXO_D0_A] = &msm8226_cxo_d0_a, + [RPM_SMD_CXO_D1] = &msm8226_cxo_d1, + [RPM_SMD_CXO_D1_A] = &msm8226_cxo_d1_a, + [RPM_SMD_CXO_A0] = &msm8226_cxo_a0, + [RPM_SMD_CXO_A0_A] = &msm8226_cxo_a0_a, + [RPM_SMD_CXO_A1] = &msm8226_cxo_a1, + [RPM_SMD_CXO_A1_A] = &msm8226_cxo_a1_a, + [RPM_SMD_CXO_A2] = &msm8226_cxo_a2, + [RPM_SMD_CXO_A2_A] = &msm8226_cxo_a2_a, + [RPM_SMD_DIFF_CLK] = &msm8226_diff_clk, + [RPM_SMD_DIFF_A_CLK] = &msm8226_diff_a_clk, + [RPM_SMD_DIV_CLK1] = &msm8226_div_clk1, + [RPM_SMD_DIV_A_CLK1] = &msm8226_div_a_clk1, + [RPM_SMD_DIV_CLK2] = &msm8226_div_clk2, + [RPM_SMD_DIV_A_CLK2] = &msm8226_div_a_clk2, + [RPM_SMD_CXO_D0_PIN] = &msm8226_cxo_d0_pin, + [RPM_SMD_CXO_D0_A_PIN] = &msm8226_cxo_d0_a_pin, + [RPM_SMD_CXO_D1_PIN] = &msm8226_cxo_d1_pin, + [RPM_SMD_CXO_D1_A_PIN] = &msm8226_cxo_d1_a_pin, + [RPM_SMD_CXO_A0_PIN] = &msm8226_cxo_a0_pin, + [RPM_SMD_CXO_A0_A_PIN] = &msm8226_cxo_a0_a_pin, + [RPM_SMD_CXO_A1_PIN] = &msm8226_cxo_a1_pin, + [RPM_SMD_CXO_A1_A_PIN] = &msm8226_cxo_a1_a_pin, + [RPM_SMD_CXO_A2_PIN] = &msm8226_cxo_a2_pin, + [RPM_SMD_CXO_A2_A_PIN] = &msm8226_cxo_a2_a_pin, +}; + +static const struct rpm_smd_clk_desc rpm_clk_msm8226 = { + .clks = msm8226_clks, + .num_clks = ARRAY_SIZE(msm8226_clks), +}; + /* msm8916 */ DEFINE_CLK_SMD_RPM(msm8916, pcnoc_clk, pcnoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 0); DEFINE_CLK_SMD_RPM(msm8916, snoc_clk, snoc_a_clk, QCOM_SMD_RPM_BUS_CLK, 1); @@ -1060,6 +1133,7 @@ static const struct rpm_smd_clk_desc rpm_clk_sdm660 = { }; static const struct of_device_id rpm_smd_clk_match_table[] = { + { .compatible = "qcom,rpmcc-msm8226", .data = &rpm_clk_msm8226 }, { .compatible = "qcom,rpmcc-msm8916", .data = &rpm_clk_msm8916 }, { .compatible = "qcom,rpmcc-msm8936", .data = &rpm_clk_msm8936 }, { .compatible = "qcom,rpmcc-msm8974", .data = &rpm_clk_msm8974 },