From patchwork Wed Sep 9 04:42:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 11764859 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 BDEC11709 for ; Wed, 9 Sep 2020 04:44:47 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80CEB21D47 for ; Wed, 9 Sep 2020 04:44:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="B/B9NhcW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80CEB21D47 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=csie.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5422+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id dgcfYY4521763xZnfo7lI8ph; Tue, 08 Sep 2020 21:44:47 -0700 X-Received: from wens.tw (wens.tw [140.112.194.72]) by mx.groups.io with SMTP id smtpd.web10.6631.1599626681622422639 for ; Tue, 08 Sep 2020 21:44:42 -0700 X-Received: by wens.tw (Postfix, from userid 1000) id AB9175FCF0; Wed, 9 Sep 2020 12:44:32 +0800 (CST) From: "Chen-Yu Tsai (Moxa)" To: nobuhiro1.iwamatsu@toshiba.co.jp, pavel@denx.de Cc: cip-dev@lists.cip-project.org, JohnsonCH.Chen@moxa.com, victor.yu@moxa.com, wens@csie.org Subject: [cip-dev] [PATCH 4.4.y-cip 00/11] ti-cpufreq backport Date: Wed, 9 Sep 2020 12:42:22 +0800 Message-Id: <20200909044233.4115-1-wens@csie.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: qyxYjDx8numEuXrzXDZLCuFex4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1599626687; bh=g9/4HxqrT8NCci2Sv4uO4CyoM1CCpPGK3C99cOOU1DM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=B/B9NhcWbIZk1A541DGBqUOc56aC1epkpMj7HGqoxpNYLxiy9FrVT1r61bxoKUuCfRn JSynDJac3dLbYYJ3FXhTDTP6+ttaIY7A/u1nFCqY8AMe+AtoufjmRWrFxF0zIB3/ZBHMo +a+8smRAM2Uudvgl/P01xgw0a4/zL0Z2qBg= Hi everyone, This is the final part of MOXA's PM / OPP / ti-cpufreq backport series. Part 2, which consisted of OPP / cpufreq-dt cleanups, is abandoned in favor of directly backporting the ti-cpufreq driver. This part includes a couple of patches to the PM / OPP subsystem to expose required APIs, and deal with the v1/v2 mixed OPP table used by am33xx. The rest are the backport of the ti-cpufreq driver, and fixes for this driver. The fixes were requested by CIP kernel maintainers as part of MOXA's previous attempt to backport ti-cpufreq. They are included as separate patches, as there are quite a few of them spread over multiple kernel releases. The result is that my BeagleBone Black can run at higher speeds than without the ti-cpufreq driver due to having a better silicon revision. Please have a look. Regards ChenYu Christophe Jaillet (1): cpufreq: ti: Fix 'of_node_put' being called twice in error handling path Dave Gerlach (6): PM / OPP: Expose _of_get_opp_desc_node as dev_pm_opp API Documentation: dt: add bindings for ti-cpufreq cpufreq: ti: Add cpufreq driver to determine available OPPs at runtime cpufreq: dt: Don't use generic platdev driver for ti-cpufreq platforms ARM: omap2plus_defconfig: Enable support for ti-cpufreq ARM: dts: am33xx: Add updated operating-points-v2 table for cpu Suman Anna (1): cpufreq: ti-cpufreq: Fix an incorrect error return value Viresh Kumar (1): PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings Zumeng Chen (2): cpufreq: ti-cpufreq: kfree opp_data when failure cpufreq: ti-cpufreq: add missing of_node_put() .../bindings/cpufreq/ti-cpufreq.txt | 128 ++++++++ arch/arm/boot/dts/am33xx.dtsi | 87 +++++- arch/arm/configs/omap2plus_defconfig | 1 + arch/arm/mach-omap2/pm.c | 3 + drivers/base/power/opp/core.c | 25 +- drivers/base/power/opp/cpu.c | 4 +- drivers/base/power/opp/opp.h | 6 + drivers/cpufreq/Kconfig.arm | 11 + drivers/cpufreq/Makefile | 1 + drivers/cpufreq/ti-cpufreq.c | 276 ++++++++++++++++++ include/linux/pm_opp.h | 6 + 11 files changed, 531 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/cpufreq/ti-cpufreq.txt create mode 100644 drivers/cpufreq/ti-cpufreq.c