From patchwork Wed May 1 23:38:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10925899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19BC3912 for ; Wed, 1 May 2019 23:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B7C328C9D for ; Wed, 1 May 2019 23:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F388828DF3; Wed, 1 May 2019 23:42:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A31CC28C9D for ; Wed, 1 May 2019 23:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbfEAXmO (ORCPT ); Wed, 1 May 2019 19:42:14 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:40194 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726407AbfEAXmN (ORCPT ); Wed, 1 May 2019 19:42:13 -0400 Received: by mail-it1-f196.google.com with SMTP id k64so339370itb.5; Wed, 01 May 2019 16:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c/LJqNqccNSr34Z2GOKtQr7/VI/W6wdUURuTwqlUb9Y=; b=vD3YaRW2AQTqnynJjlisC0Ju3qPbd1+ohMflouQrgjGDz42qbsb4++ZCuLEJbKy1RK 3y9FIWcK0UMjeXhCZi63F3lsLKQQjRtvpWNb5Bx2qaG3aS7Py8uZmJM//CeuTXVndTZ8 wfzE/nBphC31gbguUuOUHIIIfq86TLuhmDmGJ+l42bkzB0iqJOMd7dxoroga/Ws5LgSJ 0BOBuQfOBgzVlKI96WwEB0Hvgu3v46HNJbMUN5ABX4POzRRZb7K5RtyX8gwOUZWZxYqG ySwfulNmo3Qy6sBN4efTGNb0J2TkwT0VZ3AnnyMj404ZaX0n3pyMglBQ7OMscZwwBRtI zvcA== 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=c/LJqNqccNSr34Z2GOKtQr7/VI/W6wdUURuTwqlUb9Y=; b=salmjk0gcF5SREqYbZw0+AYezLetHSZkBkaZYRYnTnnyeeqyjgD5Rjb+rCNTTtv9Ml LrGbMmuMYK+f2WG8FAO/SIUkD0h2ZlNi4M1rvI1hY7bbYgHWy/k5EzrT9tX1vWj3VDTY 9lo1+Wh7+DEiRL+4dslSYZngOXvznwrcxzMF27RjLqe9smfpKHons8rqbtr4xOpMbZQK aWgiDnftYzGGDtd/2G2sCMflASJoF/fgWNqg5Flj9PLaRMvWEhfDHHZTtxzQSylyyhYt IEZwxqPSgyDoLDLSVuFmrNGGFwEQoKUjUwz9ZUyupnv8QPQ35b6zgnfPehMALWBYejpj hZEg== X-Gm-Message-State: APjAAAWmlGrEfbFQoD2IABQH1/F4fvy8WJhB1BGiX/m54JHnpe6//sn2 1xj524VgOTshNFnP/hesfos= X-Google-Smtp-Source: APXvYqxjmVGeDLJ+wSi7y4E2SRHC9/emyw7kMiz9WTmAmNeSA/Dhff+R6gSJqzVL+6IzICLrEVqrwQ== X-Received: by 2002:a24:9b8b:: with SMTP id o133mr237170itd.74.1556754132684; Wed, 01 May 2019 16:42:12 -0700 (PDT) Received: from localhost.localdomain (ppp94-29-35-107.pppoe.spdop.ru. [94.29.35.107]) by smtp.gmail.com with ESMTPSA id m3sm2392507ion.69.2019.05.01.16.42.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 16:42:12 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Tomeu Vizoso Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 13/16] PM / devfreq: tegra: Support Tegra30 Date: Thu, 2 May 2019 02:38:12 +0300 Message-Id: <20190501233815.32643-14-digetx@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190501233815.32643-1-digetx@gmail.com> References: <20190501233815.32643-1-digetx@gmail.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The devfreq driver can be used on Tegra30 without any code change and it works perfectly fine, the default Tegra124 parameters are good enough for Tegra30. Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko Acked-by: Thierry Reding --- drivers/devfreq/Kconfig | 4 ++-- drivers/devfreq/tegra-devfreq.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/Kconfig b/drivers/devfreq/Kconfig index a78dffe603c1..56db9dc05edb 100644 --- a/drivers/devfreq/Kconfig +++ b/drivers/devfreq/Kconfig @@ -92,8 +92,8 @@ config ARM_EXYNOS_BUS_DEVFREQ This does not yet operate with optimal voltages. config ARM_TEGRA_DEVFREQ - tristate "Tegra DEVFREQ Driver" - depends on ARCH_TEGRA_124_SOC + tristate "NVIDIA Tegra30/114/124/210 DEVFREQ Driver" + depends on ARCH_TEGRA select PM_OPP help This adds the DEVFREQ driver for the Tegra family of SoCs. diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index 2d9d53daedd8..dd0fbd2c8e04 100644 --- a/drivers/devfreq/tegra-devfreq.c +++ b/drivers/devfreq/tegra-devfreq.c @@ -738,6 +738,7 @@ static int tegra_devfreq_remove(struct platform_device *pdev) } static const struct of_device_id tegra_devfreq_of_match[] = { + { .compatible = "nvidia,tegra30-actmon" }, { .compatible = "nvidia,tegra124-actmon" }, { }, };