From patchwork Tue Dec 8 14:32:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7798151 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3C1AEBEEE1 for ; Tue, 8 Dec 2015 14:35:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49E69202FE for ; Tue, 8 Dec 2015 14:35:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4CC98204FB for ; Tue, 8 Dec 2015 14:35:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965192AbbLHOew (ORCPT ); Tue, 8 Dec 2015 09:34:52 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:33482 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965152AbbLHOe0 (ORCPT ); Tue, 8 Dec 2015 09:34:26 -0500 Received: by wmec201 with SMTP id c201so215135869wme.0 for ; Tue, 08 Dec 2015 06:34:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GgtodnjRqNDSu7uXrTAX0Y5d4ROOfiwbHjkbG6swZHI=; b=DGnd+cDpv3RiP2OmAXgDvOSFTBJ8s5AzhHq5ezgVCtO4dk4qDXkDfP0NEPaeNS5yN8 x3iaD/u9mSX3p/ED9WJsm18R3rGfnNB4J/eSTUOMfhbdAAhFLNCi4BHiRXU6ofArd9aI V7ry6jed+BDtlI91rxcJnAERVD72BrRMS01fCII7NFC2DeYN3WnzvEwXGhjsYAE/5BnO cKBqBnu1uFhseI9bvNWtpaIYzWEb4jhkNGGIQzpAQ+yEjt7R1k3lIcGuDXIQ595LPlGG gLQRTi1Pwphrj0tjHlxKb492O6xLaQGWtBT7t5yiCZF4OzglAvwUlCH31Jef2ytuAHXL wAyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GgtodnjRqNDSu7uXrTAX0Y5d4ROOfiwbHjkbG6swZHI=; b=akgFn+VsVaYrgb8yorYY9/uznEwRpViGZh1AsyJsGL0sl4zn8l1fTqKFbi7RKnR74/ m/AGFkXia1RUzTdvPrM3Yu6gHCTaXY+gbEl1hUERDY/ts/JbynhK5gwIWpx6nFsfKKko tYS+7+1BGYVUTdpj7rsoaQkSPQvz/i7wGSl+Veb2agkyqdJKw9MJuj8zDLH5YT5WPeBh +lZEOsYj41mD6wYKPHe5loY/gpIL07YFLK5iB9TAUUCF0N/h0ifre+HFT0a8/nOpT82U gIhqKIsIBCsi1LuDxSFnvq5Wg08arAMFB5VQPsBLDSO8f1r71+d63uS7MZdfWpdzw6kU xaWw== X-Gm-Message-State: ALoCoQluthardB/ZVN2a+4Y/HJ2Ug3Yc0A0QHXq812Tqr6gnBxKDiQsh76UC3q3LffZ80P8+seCbNK0JMZDDciLBBhDbocGRpA== X-Received: by 10.28.187.69 with SMTP id l66mr4744496wmf.21.1449585265369; Tue, 08 Dec 2015 06:34:25 -0800 (PST) Received: from localhost.localdomain (host81-129-169-67.range81-129.btcentralplus.com. [81.129.169.67]) by smtp.gmail.com with ESMTPSA id q6sm21710438wmd.8.2015.12.08.06.34.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Dec 2015 06:34:24 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, viresh.kumar@linaro.org, linux-pm@vger.kernel.org, rjw@rjwysocki.net, devicetree@vger.kernel.org, ajitpal.singh@st.com, Lee Jones Subject: [PATCH v5 10/11] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation Date: Tue, 8 Dec 2015 14:32:03 +0000 Message-Id: <1449585124-15596-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449585124-15596-1-git-send-email-lee.jones@linaro.org> References: <1449585124-15596-1-git-send-email-lee.jones@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: devicetree@vger.kernel.org Signed-off-by: Lee Jones Acked-by: Rob Herring --- .../devicetree/bindings/cpufreq/cpufreq-st.txt | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt new file mode 100644 index 0000000..d91a02a --- /dev/null +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt @@ -0,0 +1,91 @@ +Binding for ST's CPUFreq driver +=============================== + +ST's CPUFreq driver attempts to read 'process' and 'version' attributes +from the SoC, then supplies the OPP framework with 'prop' and 'supported +hardware' information respectively. The framework is then able to read +the DT and operate in the usual way. + +For more information about the expected DT format [See: ../opp/opp.txt]. + +Frequency Scaling only +---------------------- + +No vendor specific driver required for this. + +Located in CPU's node: + +- operating-points : [See: ../power/opp.txt] + +Example [safe] +-------------- + +cpus { + cpu@0 { + /* kHz uV */ + operating-points = <1500000 0 + 1200000 0 + 800000 0 + 500000 0>; + }; +}; + +Dynamic Voltage and Frequency Scaling (DVFS) +-------------------------------------------- + +This requires the ST CPUFreq driver to supply 'process' and 'version' info. + +Located in CPU's node: + +- operating-points-v2 : [See ../power/opp.txt] + +Example [unsafe] +---------------- + +cpus { + cpu@0 { + operating-points-v2 = <&cpu0_opp_table>; + }; +}; + +cpu0_opp_table: opp_table { + compatible = "operating-points-v2"; + + /* ############################################################### */ + /* # WARNING: Do not attempt to copy/replicate these nodes, # */ + /* # they are only to be supplied by the bootloader !!! # */ + /* ############################################################### */ + opp0 { + /* Major Minor Substrate */ + /* 2 all all */ + opp-supported-hw = <0x00000004 0xffffffff 0xffffffff>; + opp-hz = /bits/ 64 <1500000000>; + clock-latency-ns = <10000000>; + + opp-microvolt-pcode0 = <1200000>; + opp-microvolt-pcode1 = <1200000>; + opp-microvolt-pcode2 = <1200000>; + opp-microvolt-pcode3 = <1200000>; + opp-microvolt-pcode4 = <1170000>; + opp-microvolt-pcode5 = <1140000>; + opp-microvolt-pcode6 = <1100000>; + opp-microvolt-pcode7 = <1070000>; + }; + + opp1 { + /* Major Minor Substrate */ + /* all all all */ + opp-supported-hw = <0xffffffff 0xffffffff 0xffffffff>; + opp-hz = /bits/ 64 <1200000000>; + clock-latency-ns = <10000000>; + + opp-microvolt-pcode0 = <1110000>; + opp-microvolt-pcode1 = <1150000>; + opp-microvolt-pcode2 = <1100000>; + opp-microvolt-pcode3 = <1080000>; + opp-microvolt-pcode4 = <1040000>; + opp-microvolt-pcode5 = <1020000>; + opp-microvolt-pcode6 = <980000>; + opp-microvolt-pcode7 = <930000>; + }; +};