From patchwork Mon Sep 2 10:55:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 11126365 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 705331813 for ; Mon, 2 Sep 2019 11:01:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39EFE2168B for ; Mon, 2 Sep 2019 11:01:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="Tp/DLSZy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731232AbfIBLB6 (ORCPT ); Mon, 2 Sep 2019 07:01:58 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:22095 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731133AbfIBLB6 (ORCPT ); Mon, 2 Sep 2019 07:01:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1567422116; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=gh/3sTibgDq3nRs3zSWyY8xHtE864u/e8eeLmwdgoBQ=; b=Tp/DLSZyOZCxJBj4+qWnzeNv91PCAHM4+pU3BUBuDQ3OW+71LQAR8Mse+X20owo7kS wVnf0NO8R3A0y2y7BpDHnIlY17oqhhmq9RfWeJ70qe2kifu6Zb8k1vou1RfnMmjErMRZ swovIYYtz9z7jAisEjkAdpEVlgqWK/8vOBXN9jXRT6aoDTKWFniaZeCKXNjhoxF0fFVk 7rQxlARpKNaeJvL6ZnDIN3nIfzpAbbUi+2oSNt6sUonuR8UkRdibGQQ00plhH3jpBLIi bV/xESl+m6IKH2Vp3ltXrIrHMv5mgN8XLtuYqegr8jzk3tv5+nCyDwPQ16es9Qkx1AQw e0KQ== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1mfYzBGHXL8GTnvuHRT" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id u036f9v82AtqPvg (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 2 Sep 2019 12:55:52 +0200 (CEST) From: "H. Nikolaus Schaller" To: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Adam Ford , =?utf-8?q?Andr=C3=A9_Roth?= , Mark Rutland , "Rafael J. Wysocki" , Viresh Kumar Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, "H. Nikolaus Schaller" Subject: [RFC 0/5] OMAP3: convert opp-v1 to opp-v2 and read speed binned / 720MHz grade bits Date: Mon, 2 Sep 2019 12:55:46 +0200 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This patch set converts the opp tables to opp-v2 format and extends the ti-cpufreq to support omap3. It adds 720 MHz (omap34xx) and 1 GHz (omap36xx) OPPs but tells the ti-cpufreq driver to disable them if the speed binned / 720MHz grade eFuse bits indicate that the chip is not rated for that speed. It has been tested (for chip variant detection, not reliability of high speed OPPs) on: * BeagleBoard C2 (omap3430 600MHz) * BeagleBoard XM B (dm3730 800MHz) * GTA04A4 (dm3730 800MHz) * GTA04A5 (dm3730 1GHz) H. Nikolaus Schaller (5): cpufreq: ti-cpufreq: add support for omap34xx and omap36xx ARM: dts: add support for opp-v2 for omap34xx and omap36xx ARM: dts: omap3-evm-37xx: fix compatible from omap3630 to omap36xx ARM: dts: omap3-n950-n9: remove opp-v1 table ARM: dts: omap3-beagle: make explicitly compatible to ti,omap34xx arch/arm/boot/dts/omap3-beagle.dts | 2 +- arch/arm/boot/dts/omap3-evm-37xx.dts | 2 +- arch/arm/boot/dts/omap3-n950-n9.dtsi | 7 --- arch/arm/boot/dts/omap34xx.dtsi | 59 ++++++++++++++++--- arch/arm/boot/dts/omap36xx.dtsi | 47 ++++++++++++--- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- drivers/cpufreq/ti-cpufreq.c | 86 +++++++++++++++++++++++++++- 7 files changed, 176 insertions(+), 29 deletions(-)