From patchwork Thu Dec 10 09:42:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 58196 Delivered-To: patch@linaro.org Received: by 10.112.147.194 with SMTP id tm2csp379891lbb; Thu, 10 Dec 2015 01:44:47 -0800 (PST) X-Received: by 10.66.139.234 with SMTP id rb10mr14996551pab.82.1449740687657; Thu, 10 Dec 2015 01:44:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ht11si19208500pac.98.2015.12.10.01.44.47; Thu, 10 Dec 2015 01:44:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754608AbbLJJop (ORCPT + 11 others); Thu, 10 Dec 2015 04:44:45 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37729 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbbLJJoZ (ORCPT ); Thu, 10 Dec 2015 04:44:25 -0500 Received: by wmww144 with SMTP id w144so16633358wmw.0 for ; Thu, 10 Dec 2015 01:44:24 -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=a8XKtmyIAzCIBqwYhRKpqoggEJrKXxCS9lT27fCY5C0=; b=uwplzO/1ub7rdBYKdrs72iPQtZiTI8zeK31/oe7tCpCYlDBTxYjE5AFwQofnOhLz8k WfhHAWHlN/wU8cZ4XP8dBd37RyFSHrWBGvWCnSmpebMZnosxxb/Z2qI8uDR8vjPENavU SY25LoMMPYnmSg1a/zWJoK/SggJdpo4+E15OHfFxZvuKW2x9r9ia+H+2w+G85fbiIBjj Ak3Q7QqCYlFwR3aisSWpWtIJ+6Q5qXr/LAczQfFhGuHszm/LgPHZ4riXSG3t2YRwTxlq BuD8vpY6F1oHhonA7wIfn45KwgmkTLQp6O7+bFgV1E/Lq58h/2c1+WN07o6ekw6YEXHa 83mw== 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=a8XKtmyIAzCIBqwYhRKpqoggEJrKXxCS9lT27fCY5C0=; b=DvzLkbrqXuSIwRf4hFZolBnEYTRBa2SH3HbXAPfco9wZl14nf804VVxVyXsEIW8E44 mRklln5DSKdhvGrDdFsRCC4VlCOpiwC2tXVv22em7SNMdPOkVfngLD/+qmxMp/mc2Oyr 9z6psrPMTCyF9Jg2qmrsLo76qtrc93QljxvgUrK5q+3bh1nHjtqasTg2gY/pbnmmbfpy 6y3cPOzNRn8/PGeD8jEeH7WnEf3E3lf5YP/5lqpH2lQoJ8IdBtFgdN4cg2i7+aK1hkAs 61RXGBgkmQOdewn7IU1CfWotlPrVRa/dngXGEUc+aye/yGRgmPJznpWlYJ2behmOu42E wvNg== X-Gm-Message-State: ALoCoQkXc6nMnqIh9QbwW0ZqDc0VdMul0TSwdcbBuJbBhn87ts7z8BwEb6sfZFOOVTHqZRnJq3G2ZyI/P6EscDFcMPfm0CLbqA== X-Received: by 10.194.173.233 with SMTP id bn9mr11456406wjc.1.1449740664478; Thu, 10 Dec 2015 01:44:24 -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 l7sm11580967wjx.14.2015.12.10.01.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Dec 2015 01:44:23 -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: [PICKME 2/2] dt: cpufreq: st: Provide bindings for ST's CPUFreq implementation Date: Thu, 10 Dec 2015 09:42:17 +0000 Message-Id: <1449740537-12619-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449740537-12619-1-git-send-email-lee.jones@linaro.org> References: <1449740537-12619-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 Cc: devicetree@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Lee Jones --- .../devicetree/bindings/cpufreq/cpufreq-st.txt | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-st.txt -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; +};