From patchwork Tue May 3 19:56:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836128 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 06AF0C433EF for ; Tue, 3 May 2022 19:56:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbiECUAG (ORCPT ); Tue, 3 May 2022 16:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235376AbiECUAF (ORCPT ); Tue, 3 May 2022 16:00:05 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B87536E25; Tue, 3 May 2022 12:56:32 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id y21so21081267edo.2; Tue, 03 May 2022 12:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=noiLEGjS69TNqfsR+PPtmcT72BXbzXlEteGUOjRdti4=; b=S4q30YK8UtdzXlmER/cUQsmhgwwVII+w8iR7filfmKkbcqAmF7nwmMOzaGEQxi33QX XeoLcL/nkyeKnU+cEdMGePztwzXgHzgQUZ+O1cDm/UItbpWTqRAKM3SMgkgDpr8gtzsF WZ9j2tNhDzF3NAsc59l1NviXTPgNO9YGQAcjyld0lIGSOAQhrbYormdTVhrvsOm7sQl7 0iGuW5b9cDLMH3VwOBZhq8OYqIR9mmeojFhqNVf7bSyKz+cG4ggFXNeUYdkyM7ANhfg3 fSR4nNam307ymxFlxpXJY+PJ0SV3HeLs3cEKcWngxp1Y+AHtaCXgBnTiL+jKVHSryeez mGpQ== 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:mime-version :content-transfer-encoding; bh=noiLEGjS69TNqfsR+PPtmcT72BXbzXlEteGUOjRdti4=; b=5FhvEvYYEQBJaCV1nam+0Y4EDD9sEwejlDNj44U8xAfc7CgB7EyLthilCoW3LCFbvP 7ZyRMAmE2q3smG0fHZuwUr9JkxdXcKdq0Bot1QUCn7oExB09Nb3a9u6HAyMLmT3PTF69 XV87h8QUS1MaxOZjs4L0PI+KDrNdp5iHzWavZ/LYfOXPZe4XWIMP0Iu//JjxC1aZtwar DY6QD2yfbGldLREAfo1iiTGIHvn4LpjxIZcHwyKY42UP0VAOOVKJ9/ZhNKlPuq/8DdKz 41bmwxVA/05uC54UtKm4m/AapfuIHTjFRoeMn5azwNnCd5g+r5KMx3Tf77q3tO4SBTui 9nLQ== X-Gm-Message-State: AOAM532iEsZTT4Q94de9n9KgtojhCqeVsq9Ajpss96dtJgGrfFjdlJdx AgyLvRLCp4ROZaUKTg957DY= X-Google-Smtp-Source: ABdhPJxZ/B0MK8Y13b0DpBCDP15xVOTmh/CUqB1zTVSt7z/hk14hIaljiq4B5rbSry7M4b+w0LNQdw== X-Received: by 2002:a05:6402:278a:b0:427:d0e1:599e with SMTP id b10-20020a056402278a00b00427d0e1599emr8935785ede.58.1651607791072; Tue, 03 May 2022 12:56:31 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:30 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 1/6] clk: qcom: clk-alpha-pll: add support for APSS PLL Date: Tue, 3 May 2022 21:56:00 +0200 Message-Id: <20220503195605.4015616-1-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org APSS PLL type will be used by the IPQ8074 APSS driver for providing the CPU core clocks and enabling CPU Frequency scaling. This is ported from the downstream 5.4 kernel. Signed-off-by: Robert Marko --- drivers/clk/qcom/clk-alpha-pll.c | 12 ++++++++++++ drivers/clk/qcom/clk-alpha-pll.h | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 4406cf609aae..8270363ff98e 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -154,6 +154,18 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MAX_REGS] = { [PLL_OFF_TEST_CTL_U] = 0x30, [PLL_OFF_TEST_CTL_U1] = 0x34, }, + [CLK_ALPHA_PLL_TYPE_APSS] = { + [PLL_OFF_L_VAL] = 0x08, + [PLL_OFF_ALPHA_VAL] = 0x10, + [PLL_OFF_ALPHA_VAL_U] = 0xff, + [PLL_OFF_USER_CTL] = 0x18, + [PLL_OFF_USER_CTL_U] = 0xff, + [PLL_OFF_CONFIG_CTL] = 0x20, + [PLL_OFF_CONFIG_CTL_U] = 0x24, + [PLL_OFF_TEST_CTL] = 0x30, + [PLL_OFF_TEST_CTL_U] = 0x34, + [PLL_OFF_STATUS] = 0x28, + }, }; EXPORT_SYMBOL_GPL(clk_alpha_pll_regs); diff --git a/drivers/clk/qcom/clk-alpha-pll.h b/drivers/clk/qcom/clk-alpha-pll.h index 6e9907deaf30..626fdf80336d 100644 --- a/drivers/clk/qcom/clk-alpha-pll.h +++ b/drivers/clk/qcom/clk-alpha-pll.h @@ -18,6 +18,7 @@ enum { CLK_ALPHA_PLL_TYPE_AGERA, CLK_ALPHA_PLL_TYPE_ZONDA, CLK_ALPHA_PLL_TYPE_LUCID_EVO, + CLK_ALPHA_PLL_TYPE_APSS, CLK_ALPHA_PLL_TYPE_MAX, }; From patchwork Tue May 3 19:56:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836129 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 5EACAC433EF for ; Tue, 3 May 2022 19:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235746AbiECUAO (ORCPT ); Tue, 3 May 2022 16:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234264AbiECUAI (ORCPT ); Tue, 3 May 2022 16:00:08 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 953D13FBE1; Tue, 3 May 2022 12:56:34 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id gh6so35513254ejb.0; Tue, 03 May 2022 12:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WTfXR0xPMf1GwhzCgPtnYbCFhGYrMS55yt3GLmdVE6Y=; b=TqCJPmQv+Y9x8pClvLoNB5xM2gTnrsP3TME0h5TS3nFqB/PdYTG1/UciEAVcXqpWiS f01NtXOMx6A8/LJCN0IRQ7LjbBwcowo+2fZRVEjqF6KZYLvBa3o3yJHBXE8kzKbb2N4L Bgt6kg6Jk1wDS6f1YNTZjQmTc1+zEg8tUmtzyJHfiLoKqfln8Co98RZSi5PkeXKiSStd c1yWsqYlFxrZmBoT59Q+RAQOGBiGPJk49isDrQozCCx6WJ/eUvLZ9O3sQoKBGJuKHW5j JqhtgEc2AeYP1DwI3wk21OfQj4b1o4uA4j9jUbabX8m8WKPTiG6O8qSean34B+n7Ttfg k3dg== 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=WTfXR0xPMf1GwhzCgPtnYbCFhGYrMS55yt3GLmdVE6Y=; b=AQ6bZrffpRyUUm2gTKRPFP/Fl2g5aRSN9eRcRi5SN+MWHKosRQypuXMt7Pc0wsL2xe AvzQF/eOMNKdiSyEn7dFaKN7GE3XKiy2MW0Y3uNqnzimvlnz4XQdLoRrpwxRa7gGAMIL CfNkRiaHEuUJ+iLyhyy3cveUhkGXUAyaBXG207Slj68byxpTnGpXzhzGIYg4fGgKlEPZ UKCPHJFYKJbH16ZC/1gv+7Pkbd1TWlWYU08mG5x0k4GvkQACRKfHnvkDkzegWk5ACIkF owbz1T1H6rbaU3zyaTGtX3f5oSZzVlvhNJD4ONixyT9ggTSZKnZuDryyaIDdrC0F639W 76Xg== X-Gm-Message-State: AOAM533LdsdOrNRpVYkr7HCgmOgDpzutUHm/SgkjEiB8aQgCFsQPtPM6 cvdXRUng9ycwDp0U2QwkHr4= X-Google-Smtp-Source: ABdhPJwSgE730HjvEIp3jz9m3z46PaYLcSFPYfMDS9A6brHG8udSJOjYj8eNgfnirC6sRdhltCn4xg== X-Received: by 2002:a17:907:3da2:b0:6f4:78d8:7c23 with SMTP id he34-20020a1709073da200b006f478d87c23mr6358986ejc.233.1651607792997; Tue, 03 May 2022 12:56:32 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:32 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 2/6] dt-bindings: clock: Add support for IPQ8074 APSS clock controller Date: Tue, 3 May 2022 21:56:01 +0200 Message-Id: <20220503195605.4015616-2-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add dt-binding for the IPQ8074 APSS clock controller which provides clocks to the CPU cores. Signed-off-by: Robert Marko --- Changes in v2: * Correct subject --- include/dt-bindings/clock/qcom,apss-ipq8074.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/dt-bindings/clock/qcom,apss-ipq8074.h diff --git a/include/dt-bindings/clock/qcom,apss-ipq8074.h b/include/dt-bindings/clock/qcom,apss-ipq8074.h new file mode 100644 index 000000000000..df07766b0146 --- /dev/null +++ b/include/dt-bindings/clock/qcom,apss-ipq8074.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_CLOCK_QCA_APSS_IPQ8074_H +#define _DT_BINDINGS_CLOCK_QCA_APSS_IPQ8074_H + +#define APSS_PLL_EARLY 0 +#define APSS_PLL 1 +#define APCS_ALIAS0_CLK_SRC 2 +#define APCS_ALIAS0_CORE_CLK 3 + +#endif From patchwork Tue May 3 19:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836130 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 763E0C4332F for ; Tue, 3 May 2022 19:56:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235783AbiECUAP (ORCPT ); Tue, 3 May 2022 16:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235761AbiECUAN (ORCPT ); Tue, 3 May 2022 16:00:13 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3923A3FD81; Tue, 3 May 2022 12:56:36 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id g20so21039943edw.6; Tue, 03 May 2022 12:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GeJzJouHjwxGd+7HjG6x/CVVG6oMimqeolU34u9PMF4=; b=oVFFsX4eIkbkpLLZDdiEuix7ZPCNKzw0xMP147KkciEGVx+p7rYjm8gx07Cu+G7PQW lt21sgnIAb9IFIY6QMJp+xMFnPZZMVkBrEsvdR1KrH4njhfVmScdjxTZGurUQy9iUV8v AFFXZg1cpJX5CMBb0LlZodsbD2XQesrjGUEUfoiiQHQwwAefFyack4V1ms/2MP3X0rlE OPy3Jlw2AMp9aI/7eF+HrK1NxUls+kIq6Y6Fp+jm08aBXDhnW1jPwCcXmMZ4VnXVixI6 KR2nDXS1ZHgxz4NPxPNsnFzYRzntwrxMi7DdstLpCCZZRqFlMEqQzIipMYgIZuRoxebI NBuA== 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=GeJzJouHjwxGd+7HjG6x/CVVG6oMimqeolU34u9PMF4=; b=FSdvCuYGDxJHlZeKDJ+mgiF6h7/m2Byl/HFZ8WWrDvzChsIsxf0qZNsRUl4dEf/8lS rv6b1tgi0Uv4E2WyaVUMpinJfJRUXGbVpAEdvymQg9X5oxbDKupA5XumB7SdX/RpOA9B Bn/1yw8LF5ShTlePJQcckF0d9Z1Oh4fMkdOq9rgYJlonYQWdbO0Z+1qVVmk1m5XB8cRk enIRqtAdCuECMg8wkCYbGwcfgBtfDkszf7y4bzKOcFLFWCRCssKF/RjNvkZU4VGu8DkF YTouFcTFrpP+jNTsZUNLx+fW9hWIu98LJik78LJUQuy+NjGEoIsPYwEgM2aaB3kgprmC 6AZw== X-Gm-Message-State: AOAM532zvbptZ46XWinMOMPRlgqNpD77h7ATEUOb1AyJluHUIpGmCjwj bRvhTWSbUO2F9/WK2voQRQQ= X-Google-Smtp-Source: ABdhPJze10kDF5rw5Ppwwfcb11bwJIOsFIzIL8R5MoMikVQZagH19IxGDaipsQMjRpJzaJjQ+/Cg1Q== X-Received: by 2002:a05:6402:1907:b0:426:25ec:8ef4 with SMTP id e7-20020a056402190700b0042625ec8ef4mr19061171edz.253.1651607794818; Tue, 03 May 2022 12:56:34 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:34 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko , Ansuel Smith Subject: [PATCH v2 3/6] clk: qcom: Add IPQ8074 APSS clock controller Date: Tue, 3 May 2022 21:56:02 +0200 Message-Id: <20220503195605.4015616-3-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org IPQ8074 APSS clock controller provides the clock for the IPQ8074 CPU cores, thus also providing support for CPU frequency scaling. It looks like they are clocked by the XO and a custom APSS type PLL. Co-developed-by: Ansuel Smith Signed-off-by: Ansuel Smith Signed-off-by: Robert Marko --- Changes in v2: * Convert to using parent-data instead of parent-names --- drivers/clk/qcom/Kconfig | 11 +++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/apss-ipq8074.c | 170 ++++++++++++++++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 drivers/clk/qcom/apss-ipq8074.c diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig index d01436be6d7a..ea2ecb062563 100644 --- a/drivers/clk/qcom/Kconfig +++ b/drivers/clk/qcom/Kconfig @@ -134,6 +134,17 @@ config IPQ_APSS_6018 Say Y if you want to support CPU frequency scaling on ipq based devices. +config IPQ_APSS_8074 + tristate "IPQ8074 APSS Clock Controller" + select IPQ_GCC_8074 + depends on QCOM_APCS_IPC || COMPILE_TEST + help + Support for APSS clock controller on IPQ8074 platforms. The + APSS clock controller manages the Mux and enable block that feeds the + CPUs. + Say Y if you want to support CPU frequency scaling on + IPQ8074 based devices. + config IPQ_GCC_4019 tristate "IPQ4019 Global Clock Controller" help diff --git a/drivers/clk/qcom/Makefile b/drivers/clk/qcom/Makefile index 671cf5821af1..7b2da6dd570c 100644 --- a/drivers/clk/qcom/Makefile +++ b/drivers/clk/qcom/Makefile @@ -22,6 +22,7 @@ obj-$(CONFIG_APQ_MMCC_8084) += mmcc-apq8084.o obj-$(CONFIG_CLK_GFM_LPASS_SM8250) += lpass-gfm-sm8250.o obj-$(CONFIG_IPQ_APSS_PLL) += apss-ipq-pll.o obj-$(CONFIG_IPQ_APSS_6018) += apss-ipq6018.o +obj-$(CONFIG_IPQ_APSS_8074) += apss-ipq8074.o obj-$(CONFIG_IPQ_GCC_4019) += gcc-ipq4019.o obj-$(CONFIG_IPQ_GCC_6018) += gcc-ipq6018.o obj-$(CONFIG_IPQ_GCC_806X) += gcc-ipq806x.o diff --git a/drivers/clk/qcom/apss-ipq8074.c b/drivers/clk/qcom/apss-ipq8074.c new file mode 100644 index 000000000000..38d03cd0ff76 --- /dev/null +++ b/drivers/clk/qcom/apss-ipq8074.c @@ -0,0 +1,170 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2022, The Linux Foundation. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include + +#include + +#include "common.h" +#include "clk-regmap.h" +#include "clk-pll.h" +#include "clk-rcg.h" +#include "clk-branch.h" +#include "clk-alpha-pll.h" +#include "clk-regmap-divider.h" +#include "clk-regmap-mux.h" + +#define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } + +enum { + P_XO, + P_GPLL0, + P_GPLL2, + P_GPLL4, + P_APSS_PLL_EARLY, + P_APSS_PLL +}; + +static struct clk_alpha_pll apss_pll_early = { + .offset = 0x5000, + .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_APSS], + .clkr = { + .enable_reg = 0x5000, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "apss_pll_early", + .parent_data = &(const struct clk_parent_data) { + .fw_name = "xo", .name = "xo" + }, + .num_parents = 1, + .ops = &clk_alpha_pll_huayra_ops, + }, + }, +}; + +static struct clk_alpha_pll_postdiv apss_pll = { + .offset = 0x5000, + .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_APSS], + .width = 2, + .clkr.hw.init = &(struct clk_init_data){ + .name = "apss_pll", + .parent_hws = (const struct clk_hw *[]){ + &apss_pll_early.clkr.hw }, + .num_parents = 1, + .ops = &clk_alpha_pll_postdiv_ro_ops, + }, +}; + +static const struct clk_parent_data parents_apcs_alias0_clk_src[] = { + { .fw_name = "xo", .name = "xo" }, + { .fw_name = "gpll0", .name = "gpll0" }, + { .fw_name = "gpll2", .name = "gpll2" }, + { .fw_name = "gpll4", .name = "gpll4" }, + { .hw = &apss_pll.clkr.hw }, + { .hw = &apss_pll_early.clkr.hw }, +}; + +static const struct parent_map parents_apcs_alias0_clk_src_map[] = { + { P_XO, 0 }, + { P_GPLL0, 4 }, + { P_GPLL2, 2 }, + { P_GPLL4, 1 }, + { P_APSS_PLL, 3 }, + { P_APSS_PLL_EARLY, 5 }, +}; + +struct freq_tbl ftbl_apcs_alias0_clk_src[] = { + F(19200000, P_XO, 1, 0, 0), + F(403200000, P_APSS_PLL_EARLY, 1, 0, 0), + F(806400000, P_APSS_PLL_EARLY, 1, 0, 0), + F(1017600000, P_APSS_PLL_EARLY, 1, 0, 0), + F(1382400000, P_APSS_PLL_EARLY, 1, 0, 0), + F(1651200000, P_APSS_PLL_EARLY, 1, 0, 0), + F(1843200000, P_APSS_PLL_EARLY, 1, 0, 0), + F(1920000000, P_APSS_PLL_EARLY, 1, 0, 0), + F(2208000000UL, P_APSS_PLL_EARLY, 1, 0, 0), + { } +}; + +struct clk_rcg2 apcs_alias0_clk_src = { + .cmd_rcgr = 0x0050, + .freq_tbl = ftbl_apcs_alias0_clk_src, + .hid_width = 5, + .parent_map = parents_apcs_alias0_clk_src_map, + .clkr.hw.init = &(struct clk_init_data){ + .name = "apcs_alias0_clk_src", + .parent_data = parents_apcs_alias0_clk_src, + .num_parents = ARRAY_SIZE(parents_apcs_alias0_clk_src), + .ops = &clk_rcg2_ops, + .flags = CLK_SET_RATE_PARENT, + }, +}; + +static struct clk_branch apcs_alias0_core_clk = { + .halt_reg = 0x0058, + .halt_bit = 31, + .clkr = { + .enable_reg = 0x0058, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "apcs_alias0_core_clk", + .parent_hws = (const struct clk_hw *[]){ + &apcs_alias0_clk_src.clkr.hw }, + .num_parents = 1, + .flags = CLK_SET_RATE_PARENT | + CLK_IS_CRITICAL, + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_regmap *apss_ipq8074_clks[] = { + [APSS_PLL_EARLY] = &apss_pll_early.clkr, + [APSS_PLL] = &apss_pll.clkr, + [APCS_ALIAS0_CLK_SRC] = &apcs_alias0_clk_src.clkr, + [APCS_ALIAS0_CORE_CLK] = &apcs_alias0_core_clk.clkr, +}; + +static const struct regmap_config apss_ipq8074_regmap_config = { + .reg_bits = 32, + .reg_stride = 4, + .val_bits = 32, + .max_register = 0x5ffc, + .fast_io = true, +}; + +static const struct qcom_cc_desc apss_ipq8074_desc = { + .config = &apss_ipq8074_regmap_config, + .clks = apss_ipq8074_clks, + .num_clks = ARRAY_SIZE(apss_ipq8074_clks), +}; + +static int apss_ipq8074_probe(struct platform_device *pdev) +{ + struct regmap *regmap; + + regmap = dev_get_regmap(pdev->dev.parent, NULL); + if (!regmap) + return -ENODEV; + + return qcom_cc_really_probe(pdev, &apss_ipq8074_desc, regmap); +} + +static struct platform_driver apss_ipq8074_driver = { + .probe = apss_ipq8074_probe, + .driver = { + .name = "qcom,apss-ipq8074-clk", + }, +}; + +module_platform_driver(apss_ipq8074_driver); + +MODULE_DESCRIPTION("Qualcomm IPQ8074 APSS clock driver"); +MODULE_LICENSE("GPL"); From patchwork Tue May 3 19:56:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836131 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 0E886C433F5 for ; Tue, 3 May 2022 19:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbiECUAR (ORCPT ); Tue, 3 May 2022 16:00:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235802AbiECUAN (ORCPT ); Tue, 3 May 2022 16:00:13 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176533FBE9; Tue, 3 May 2022 12:56:38 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id p18so21045093edr.7; Tue, 03 May 2022 12:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FkZyMHsY41xT/CmWQtmq+DH5943q52c4v6gNy4xAhCo=; b=D5Gazh210ETF5k1PBU74odUvmQdwax0VgKOpz4kG/QibDk2LgKUrAthppDZaYJjy8b 5LB/tYBavIkgyYRs7kPZYdi1A7najaRXkv4YJH1VggLPMpcLV8z3W+DC8lm7WItUoONY +h3Qwx5Hdw6vyW/y51ayXom8bqLCKbIc4BdpiBBNg1qz2Qkqzf7K+Py8/Jsb+qXb34Kb ScUN4Uz23p2IZESaAqAjppGM1yCFhAc3GCHUhgYM23jK37tg4GEb7dY8QxCY/IbhoB6V ccad7EQ6j3OpmJz2fpnxc3iflZTlmgm9OzUdIANINwI0Mcr+hd95rrHerMfzweG3NZNu GPsQ== 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=FkZyMHsY41xT/CmWQtmq+DH5943q52c4v6gNy4xAhCo=; b=GjJyvZRGtFXFK/PfeS+A6aZoyMJAQqKngamyefIZVPaa0PYCgXdLj1EYckdvmf4UN1 pNtGF2V1LfeGL/B6yMBNFY/JqBH4R7ONffJtwTWjCRq0E9lm8HAVyYLTlcYS08bkB4w2 CF958XS1RhiwAngr3MwuwiI3JdG7zkLWOTNkxiG9UWC5O9OMje9/GyqtO47rA3oxBRL3 VK3N+zIemTRve3vGrqo7er3636NU1OB/eSpQHuGMLXV343QxSQRAVQ5XtHm0zRz1ew3Q KzWfYGmplkSbYLcCc9+Hq8HKBulk4rm9Yex9ZjMT0J+sdEUDngkTmwp4QGN3qjZYFUxB WLeA== X-Gm-Message-State: AOAM532EhR48lzWfyjCM2R9GVYogHcnt9W1p2FEPriTBDgWt/9ppXDa1 unRz6KTl18uuEWHA45u4I0N7AK9klRjilw== X-Google-Smtp-Source: ABdhPJyY+21hHm3KgCPbW0zVL1UOwYRsQQJ23ELqGNWvH7ynDxuixG6ZjCZmGoVNWZF/yu62SglWQQ== X-Received: by 2002:a05:6402:1cc1:b0:413:2b12:fc49 with SMTP id ds1-20020a0564021cc100b004132b12fc49mr19607705edb.118.1651607796624; Tue, 03 May 2022 12:56:36 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:36 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 4/6] mailbox: qcom-apcs-ipc: add IPQ8074 APSS clock controller support Date: Tue, 3 May 2022 21:56:03 +0200 Message-Id: <20220503195605.4015616-4-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org IPQ8074 has the APSS clock controller utilizing the same register space as the APCS, so provide access to the APSS utilizing a child device like IPQ6018 does as well, but just by utilizing the IPQ8074 specific APSS clock driver. Also, APCS register space in IPQ8074 is 0x6000 so max_register needs to be updated to 0x5FFC. Signed-off-by: Robert Marko --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 80a54d81412e..b3b9debf5673 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -33,6 +33,10 @@ static const struct qcom_apcs_ipc_data ipq6018_apcs_data = { .offset = 8, .clk_name = "qcom,apss-ipq6018-clk" }; +static const struct qcom_apcs_ipc_data ipq8074_apcs_data = { + .offset = 8, .clk_name = "qcom,apss-ipq8074-clk" +}; + static const struct qcom_apcs_ipc_data msm8916_apcs_data = { .offset = 8, .clk_name = "qcom-apcs-msm8916-clk" }; @@ -57,7 +61,7 @@ static const struct regmap_config apcs_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, - .max_register = 0x1008, + .max_register = 0x5FFC, .fast_io = true, }; @@ -142,7 +146,7 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) /* .data is the offset of the ipc register within the global block */ static const struct of_device_id qcom_apcs_ipc_of_match[] = { { .compatible = "qcom,ipq6018-apcs-apps-global", .data = &ipq6018_apcs_data }, - { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &msm8994_apcs_data }, + { .compatible = "qcom,ipq8074-apcs-apps-global", .data = &ipq8074_apcs_data }, { .compatible = "qcom,msm8916-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8939-apcs-kpss-global", .data = &msm8916_apcs_data }, { .compatible = "qcom,msm8953-apcs-kpss-global", .data = &msm8994_apcs_data }, From patchwork Tue May 3 19:56:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836132 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 6C295C4167E for ; Tue, 3 May 2022 19:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237063AbiECUAS (ORCPT ); Tue, 3 May 2022 16:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235843AbiECUAN (ORCPT ); Tue, 3 May 2022 16:00:13 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DADDB3FDBC; Tue, 3 May 2022 12:56:39 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id l18so35387383ejc.7; Tue, 03 May 2022 12:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WS2x6vv6JnON45ABgr8Q7FnMIDw6+iA8Ls1Rj6RQoYU=; b=LSkejewlqQFT8gb9JKB7TL3S1JFmeYCUHswXIYLiTKvro72gWS+sGYEafs1Kql5tF/ 1hqr+LxKrrenxMGT8Sil4npeW6ReD6OpttSKqI7byNIHGgUcVfQnyedeQIkveMLf9Fwy +5+UjIjIEUVA7m6fwsxxca2RF8OqdkyQOpFRwpVoCGoabeFGreuvfLUVUFMWKelPfrkx ybqIJcUEwhz+ZUYWzxH3pTPDPiHVy9CM4E19JLQp/dZdOjgRKv1YkOYZy48kKI1DMYiy ZCJ/31fGTBeq3euZ74godW7NVoZEFB7AzJo2PF/2YqdbbUkBd6g/cFRlXsM54u+GQ+ip 4yuQ== 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=WS2x6vv6JnON45ABgr8Q7FnMIDw6+iA8Ls1Rj6RQoYU=; b=DLhrq4s2C9u2y6jVrI+zrb2auEa3HRyRMbn6OJE1FFrSlU680Cs8Iza/J/bL1S4qmv GEDVoNwV5/0iY/Ew0qroWzQDunOzU6p+jk79LEXJplzIgKSS4u2MYdfhMEVPrrmPHJ1e ax02QGW73ZfKj9faIfLLHxpv3ET6yWAGcQXQWm3ZSVi04PPLMhtSwTn+p1HqXaHb1VFo 99Jjjj6vHtLB3kz7I5xM6ATrp/EVvI8pZqbTGkQeHQGS5HG4VOd/IINNagydXeodcjBJ pz3haFQaJlYLJGhvhTDwa4vB32GULv7ihStESrELkA9QjFFttLVtZvQBDwFqZy9FVt+c ufkg== X-Gm-Message-State: AOAM531g9apmGzqTdy9V/OSrj8UGLN9UzhI/ih2W+wNsmnattlq8VnNC 4IkmY7kW8vYWdU5fDwDfxDI= X-Google-Smtp-Source: ABdhPJxSulwPskI+0w5Vl/tR1QNiHfne6DWxJBJ/WeaZ+v3SFGPAkFGTyjpNMKKo0L42P4bHOW8A9w== X-Received: by 2002:a17:906:358a:b0:6f4:2903:417e with SMTP id o10-20020a170906358a00b006f42903417emr14821442ejb.592.1651607798403; Tue, 03 May 2022 12:56:38 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:38 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 5/6] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Tue, 3 May 2022 21:56:04 +0200 Message-Id: <20220503195605.4015616-5-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org IPQ6018 and IPQ8074 require #clock-cells to be set to 1 as their APSS clock driver provides multiple clock outputs. So allow setting 1 as #clock-cells and check that its set to 1 for IPQ6018 and IPQ8074, check others for 0 as its currently. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v2: * Correct subject name --- .../mailbox/qcom,apcs-kpss-global.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 3b5ba7ecc19d..1f803925867e 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -50,7 +50,7 @@ properties: const: 1 '#clock-cells': - const: 0 + enum: [0, 1] clock-names: minItems: 2 @@ -96,6 +96,22 @@ allOf: properties: clocks: maxItems: 3 + - if: + properties: + compatible: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + then: + properties: + '#clock-cells': + const: 1 + + else: + properties: + '#clock-cells': + const: 0 + examples: # Example apcs with msm8996 From patchwork Tue May 3 19:56:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 12836133 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 D3626C433FE for ; Tue, 3 May 2022 19:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236884AbiECUA0 (ORCPT ); Tue, 3 May 2022 16:00:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236291AbiECUAR (ORCPT ); Tue, 3 May 2022 16:00:17 -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 516EE3FBFD; Tue, 3 May 2022 12:56:42 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id i27so35425809ejd.9; Tue, 03 May 2022 12:56:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8D8Zb3AbrRdlYOjMRwAdaA0keCtGvT87VpUtEaSReTM=; b=jFHJ2gEr/0gyqoZwP1LOX662mQO3rjZbZ6ZrgsxMPuuKgLTTkGK6v7/a909RXlL35q yPp53lRlieYrNPEFTRwEACq9HvnUKoxcGt4o2YwicrZE/jsE0hbjI1Lo1G4ZqwAS4vBY pInWnBdczwb38m3V+mbFQ/mnC1fPexOqv4mFwEgtxakL0QgJdujpZN92r7/PN+7a78Nk xOFwh+0asgdiXwSpKudEryL0LkxeEOuAFdzMKbodLbVWnvUvoLcWwTvyT689U+towvvG qojJQLaCs6n2EfufJVJOSYNoTmejSErqrjYH6jXGnvlC57pAtGEtmcnzV6UT5EB9VjBl uWUA== 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=8D8Zb3AbrRdlYOjMRwAdaA0keCtGvT87VpUtEaSReTM=; b=IxjafrxuAa6UzfJZY7VSsxsyDqfSEkYUhlO7va/2uVuOqNxnIPyOwZ1JyfdGivEM4v 42F1vbCAKJVkPw1XRlGx6QFFWm5wdHr66x/h+wvwHLO+JRVm1+helpQc9FXbx9yLbWRR zCMtxWy67HD3c/x9TrnEDLwMMXTE4JArHIEjxM1pkv8HYk9F5h9nZpLCGpUKG3rHz/nu U085vnyB62NTZ8lsBGBhY05gt6zCEyjZngW6FVFXeupRLqaRSIPjYSaQdPncCd1wM0WZ bYxyVcqxZ04zGbva4FIExMCqBPjhW5tsQJ4IgxNufT3IOFm23t4Oi9c2FHWCkw8b1RGV DSAw== X-Gm-Message-State: AOAM530rIwcvUolihp+F9T9uq2f1sp1d7YrFw3hRIbP71TlFaUB5x+yU ddaEQKflmFhL2L2r9JneKi8= X-Google-Smtp-Source: ABdhPJxxLAJcm8pdy1HkCsFZO+90Lpf1sBnKst873AvjaTviI180lxgWX5kNsbKrq4Xr9iBzDqp6TA== X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr18044123ejc.554.1651607800847; Tue, 03 May 2022 12:56:40 -0700 (PDT) Received: from fedora.robimarko.hr (dh207-96-149.xnet.hr. [88.207.96.149]) by smtp.googlemail.com with ESMTPSA id i8-20020aa7c708000000b0042617ba63absm8229270edq.53.2022.05.03.12.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 12:56:40 -0700 (PDT) From: Robert Marko To: agross@kernel.org, bjorn.andersson@linaro.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dmitry.baryshkov@linaro.org Cc: Robert Marko Subject: [PATCH v2 6/6] arm64: dts: ipq8074: update APCS node due to clock support Date: Tue, 3 May 2022 21:56:05 +0200 Message-Id: <20220503195605.4015616-6-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220503195605.4015616-1-robimarko@gmail.com> References: <20220503195605.4015616-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org APCS now has support for providing the APSS clocks as the child device for IPQ8074, so update the DT node to reflect the expanded register space as well as add #clock-cells property as it now provides the APSS clock that will be used for CPU scaling. Signed-off-by: Robert Marko --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index dfba87f2b295..96de58fb7736 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -970,8 +970,9 @@ IRQ_TYPE_LEVEL_HIGH>, /* int_c */ apcs_glb: mailbox@b111000 { compatible = "qcom,ipq8074-apcs-apps-global"; - reg = <0x0b111000 0x1000>; + reg = <0x0b111000 0x6000>; + #clock-cells = <1>; #mbox-cells = <1>; };