From patchwork Thu Jun 14 21:49:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10465305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D8AA2600D0 for ; Thu, 14 Jun 2018 21:49:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCC9D28BAA for ; Thu, 14 Jun 2018 21:49:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD6C628931; Thu, 14 Jun 2018 21:49:30 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 2E3DC28931 for ; Thu, 14 Jun 2018 21:49:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755429AbeFNVt2 (ORCPT ); Thu, 14 Jun 2018 17:49:28 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:39879 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755348AbeFNVt1 (ORCPT ); Thu, 14 Jun 2018 17:49:27 -0400 Received: by mail-it0-f68.google.com with SMTP id p185-v6so326599itp.4; Thu, 14 Jun 2018 14:49:27 -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; bh=BYUovMcgj192GZqJFTcmLH0zFJI9hc3dBFlYnoQmxig=; b=n7mAaumFrGEWxoGgiRQUBWBQeJIWuolMOi0uO0AUEwO10hKSGxMEmRvMlzlipVLox2 5kCj6rGo8d3Ki2r1cr0JpOnGI+jHIYDTW48LQPoh7AtqRGc0qh90sNuWd0WvL3mNNkQd xdmc0cqh6Rpu46fJNV2TsIC4iUAlNPv6kwg+/AFTUaLPNH27k74PrTwK7h4a5oXexmT5 eQZdgtPPAPR5aZN7+n7KVA3JdD4nMQag24HF9Mxb4wYLwB3vRNqtzscfTLNrec2EASXc gFhfeicXm0JFuyJJ2NM7KvZubqCJHz2+Ow28NBMZBjfueYeeAwBCbIISg9UO7y0yFDsr Xz8g== 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; bh=BYUovMcgj192GZqJFTcmLH0zFJI9hc3dBFlYnoQmxig=; b=qS8JKnMVkpG6DqIimENysg9HRc/8UMOS3NIVbwlNzZGxI84bv6ONKkzvcRUnina6mF /laeE1MoXM64Bx/AQCnozcKHXamaWUxDRvI+Ouf7d/CH9gQ5bp5Tseq0PEU4Uz61rbYy a0F4CxiRmk0wc4bbmPIHzpdcafV7qAuD9Iq4xDmPvaaGtEu8VuSBxcsZLvIKgFgPTAYR sahJGDA1YJxGzDPR20SW12JRtsFUWHjyqOBCVFG6FMwjr3RwXS87DvCukw6lHVhhXFVx 03KY1hVrEnRMbfoRGPH+6eFA1Zj0sjIG7E/x5GTEzPbPMZzCc73gQrexUQAF7qjbEE2L iN0Q== X-Gm-Message-State: APt69E1xn8oJda/F0hANazfrG2i2JdWpcM66/AeTz9b4IK1LiySRKnBE ngeRYQbl5ciLp/yrPxT4ehwYNw== X-Google-Smtp-Source: ADUXVKLiVMVMbOF2c5DbsrTlN4shPsvtJYcjLBdyxrg6RMGGZbKmHbdi/AYLeV74ycFOAVAgxf/YVQ== X-Received: by 2002:a24:cac7:: with SMTP id k190-v6mr3732785itg.62.1529012966388; Thu, 14 Jun 2018 14:49:26 -0700 (PDT) Received: from localhost.localdomain (c-73-65-120-235.hsd1.mn.comcast.net. [73.65.120.235]) by smtp.gmail.com with ESMTPSA id a200-v6sm2604982ioa.56.2018.06.14.14.49.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jun 2018 14:49:25 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: bcousson@baylibre.com, devicetree@vger.kernel.org, Adam Ford Subject: [RFC] ARM: dts: OMAP36xx: Convert OPP table to v2 Date: Thu, 14 Jun 2018 16:49:14 -0500 Message-Id: <20180614214914.11748-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replace the OPP table with a version compatible with operating-points-v2-ti-cpu. A future patch will hopefully enable the OPP1G table. Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/omap36xx.dtsi b/arch/arm/boot/dts/omap36xx.dtsi index 6fb23ada1f64..9c5ab5e06902 100644 --- a/arch/arm/boot/dts/omap36xx.dtsi +++ b/arch/arm/boot/dts/omap36xx.dtsi @@ -19,18 +19,33 @@ }; cpus { - /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ cpu: cpu@0 { - operating-points = < - /* kHz uV */ - 300000 1012500 - 600000 1200000 - 800000 1325000 - >; + operating-points-v2 = <&cpu0_opp_table>; clock-latency = <300000>; /* From legacy driver */ }; }; + /* OMAP3630/OMAP37xx 'standard device' variants OPP50 to OPP130 */ + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2-ti-cpu"; + syscon = <&scm_conf>; + + opp50-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <1012500>; + }; + opp100-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1200000>; + opp-microamp = <0>; + }; + opp130-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1325000>; + opp-microamp = <0>; + }; + }; + ocp@68000000 { uart4: serial@49042000 { compatible = "ti,omap3-uart";