From patchwork Sun Jun 21 21:34:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Gupta X-Patchwork-Id: 11617795 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D9F113A0 for ; Mon, 22 Jun 2020 13:49:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 565232070E for ; Mon, 22 Jun 2020 13:49:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aycrfLNw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="p4yuUIcj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="EE/5PLa1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 565232070E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=SYcnphUBqX+VlWtxyMtF4KUEQSDdyTz6hOxwotKeBS4=; b=aycrfLNwNiWCi8jGtLzMx7dzWe MKK29P/0yJJfR4Sp8aCn/qRA8hNv9O86xfC/bEoazv+19Pyl2Sj1ElhMSYIbMoRjkonesSu69FPLw MDezs4Cb3NkVoVJLB9IGKUl4Cc2xgTvk+XbV1nGIW/X5Mi8PUretlWiI56/dCxUK1w2z9BY2r7n7G PmXHjVinIEQb83UTZ/ouJGxj0Ak9RZHceJ8FNLGQ4LMY6XBKR8a7CKcPKRErAlKXvFYP6dkXb6ubm dpSlte2hyBATqUZ+ZUCZ9vAMOcEtmSeXG9czhgveFVTwyDsvm6nugLQQhB6nynv1lCJuh4sqfePOD Tb0Cpq6Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnMmZ-000152-QM; Mon, 22 Jun 2020 13:46:44 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jnLxq-00053d-Tp for linux-arm-kernel@merlin.infradead.org; Mon, 22 Jun 2020 12:54:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=rc/M36yeXh5NhddSoYlnubmqDFsAahtXAPVUVnc5BfI=; b=p4yuUIcjOmZyKe6tFNoVg4Bscb om9ebS+30i9+OP8Qp3G8uaxuqSUaxYofosgNOVBdnWqy8QeJ+3jL1Urr9g7jJTnPbo8G6gQs8fVxc DHSzu335zlGZCH5S0st9f9ia2eGP9ZIhQkhLb7RrQDDSx52VJs/7Hran8MKUuRblWY29aMbIdRJjl Gc//fOzjamaClILe3jOG+47ohTlFYpXnAsIexE9ceOQFyUi1ypXm3zavAZkHJHgyOO6Thf3Mzfqaf lyHZNPdcFiksa9jxqWf+wM+EVeoKFX005fJafFiHiqWo0xOoqt9dZbQBk2wCauKXI5Fu8bQ6OQifi hEVv3D0g==; Received: from hqnvemgate24.nvidia.com ([216.228.121.143]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jn7cO-0004No-TL for linux-arm-kernel@lists.infradead.org; Sun, 21 Jun 2020 21:35:15 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 21 Jun 2020 14:33:13 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Sun, 21 Jun 2020 14:34:43 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Sun, 21 Jun 2020 14:34:43 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 21 Jun 2020 21:34:41 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 21 Jun 2020 21:34:41 +0000 Received: from sumitg-l4t.nvidia.com (Not Verified[10.24.37.103]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Sun, 21 Jun 2020 14:34:40 -0700 From: Sumit Gupta To: , , , , , , , , , , , , Subject: [TEGRA194_CPUFREQ Patch v3 0/4] Add cpufreq driver for Tegra194 Date: Mon, 22 Jun 2020 03:04:30 +0530 Message-ID: <1592775274-27513-1-git-send-email-sumitg@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1592775193; bh=rc/M36yeXh5NhddSoYlnubmqDFsAahtXAPVUVnc5BfI=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=EE/5PLa1eoCEU8hDS3f8it1qikL9dJNkNDmVA2+UtpKGoqYaLI6/eiA/1yirUFs/f 6YowgOUZ452MVE7uvoduxmMfbx4nkJ4k6RLZNshhvcUVY9RhrYXi9xIIBb1lC6IBtZ Wji70eIWEg89zeRCImIHo945ND9uVfcYl72gejBEUJv8NxuSg3xrr9l97W1OuNkEWr k096lLYeB0+3A//9vS6zpdYskx+xhAEvH/be7OXhe2K0MvwBPGoISskxR4YHTMEUhS aUO5Q1gjctxBBiB/cAXd3r1PZgn3+5s6k2Yup/mtKiMLzcWrmjHBT1r74a50uzrLIm oUZ6t51qqQ/qQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200621_223513_240581_377A5F09 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-7.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [216.228.121.143 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sumitg@nvidia.com, bbasu@nvidia.com, mperttunen@nvidia.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The patch series adds cpufreq driver for Tegra194 SOC. v2[2] -> v3 - Set same policy for all cpus in a cluster[Viresh]. - Add compatible string for CPU Complex under cpus node[Thierry]. - Add reference to bpmp node under cpus node[Thierry]. - Bind cpufreq driver to CPU Complex compatible string[Thierry]. - Remove patch to get bpmp data as now using cpus node to get that[Thierry]. v1[1] -> v2: - Remove cpufreq_lock mutex from tegra194_cpufreq_set_target [Viresh]. - Remove CPUFREQ_ASYNC_NOTIFICATION flag [Viresh]. - Remove redundant _begin|end() call from tegra194_cpufreq_set_target. - Rename opp_table to freq_table [Viresh]. Sumit Gupta (4): dt-bindings: arm: Add t194 ccplex compatible and bpmp property arm64: tegra: Add t194 ccplex compatible and bpmp property cpufreq: Add Tegra194 cpufreq driver arm64: defconfig: Enable CONFIG_ARM_TEGRA194_CPUFREQ Documentation/devicetree/bindings/arm/cpus.yaml | 9 + arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 + arch/arm64/configs/defconfig | 1 + drivers/cpufreq/Kconfig.arm | 6 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/tegra194-cpufreq.c | 403 ++++++++++++++++++++++++ 6 files changed, 422 insertions(+) create mode 100644 drivers/cpufreq/tegra194-cpufreq.c [1] https://marc.info/?t=157539452300001&r=1&w=2 [2] https://marc.info/?l=linux-tegra&m=158602857106213&w=2