From patchwork Mon Jul 27 15:20:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 51543 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id C5C85214B7 for ; Mon, 27 Jul 2015 15:20:46 +0000 (UTC) Received: by wicmv11 with SMTP id mv11sf28996281wic.1 for ; Mon, 27 Jul 2015 08:20:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2miBD4t6mFk2n7IYWS1iJv+0t5/SqZWKE+374lYo1I0=; b=IKl1I4TEcNkODgqpniO01xdb6JrDVW1JtTrahOYEIgzM57lEC85X051OW1pqynv2l6 KcJChzWfoshU49+1NTKS+YEBmaS6ogMPzdb9oNmBhIDyo5qOur65HCAdMOxEXElp2zFv 2yhR+yibjabGx9sZ9DSiRMeupksgQXEMcpHe3lFI3U6TzTsFk/JmkCZsOvBfmXZYxSat s8fu4nvkN1ThVNZasYjRwP7Zvq4HnLW5cdQArDs11s7GvVD7SWa/7d2MFUmQ8uyeEf5D +y6H2mT3OToMpjUR11nWwSbCtmAUmothVp8YJs0wdXWM1LdN8F8po5t4MNv70ZHTvo5I R5DQ== X-Gm-Message-State: ALoCoQmJ8PN/nXYjgbtbNeWZtKkyWAMfv8qpaz4domSEnuyPlUfhPXyosJEhU+g2ZBXm/dbd7koT X-Received: by 10.180.216.12 with SMTP id om12mr5495055wic.1.1438010445913; Mon, 27 Jul 2015 08:20:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls674727lam.21.gmail; Mon, 27 Jul 2015 08:20:45 -0700 (PDT) X-Received: by 10.152.21.5 with SMTP id r5mr26905860lae.107.1438010445700; Mon, 27 Jul 2015 08:20:45 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id lv6si8648809lac.57.2015.07.27.08.20.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 08:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lblf12 with SMTP id f12so55826495lbl.2 for ; Mon, 27 Jul 2015 08:20:45 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr27347998lbp.88.1438010445557; Mon, 27 Jul 2015 08:20:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1591175lba; Mon, 27 Jul 2015 08:20:44 -0700 (PDT) X-Received: by 10.50.72.6 with SMTP id z6mr19664958igu.65.1438010443978; Mon, 27 Jul 2015 08:20:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mf10si6344674igb.12.2015.07.27.08.20.43; Mon, 27 Jul 2015 08:20:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754194AbbG0PUm (ORCPT + 28 others); Mon, 27 Jul 2015 11:20:42 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:35998 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754105AbbG0PUj (ORCPT ); Mon, 27 Jul 2015 11:20:39 -0400 Received: by wicgb10 with SMTP id gb10so117272131wic.1 for ; Mon, 27 Jul 2015 08:20:38 -0700 (PDT) X-Received: by 10.194.205.101 with SMTP id lf5mr61301490wjc.37.1438010438265; Mon, 27 Jul 2015 08:20:38 -0700 (PDT) Received: from localhost.localdomain (host81-129-173-55.range81-129.btcentralplus.com. [81.129.173.55]) by smtp.gmail.com with ESMTPSA id ul1sm28408275wjc.30.2015.07.27.08.20.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Jul 2015 08:20:37 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, ajitpal.singh@st.com, sre@kernel.org, dbaryshkov@gmail.com, Lee Jones Subject: [PATCH v4 2/2] dt: power: st: Provide bindings for ST's OPPs Date: Mon, 27 Jul 2015 16:20:30 +0100 Message-Id: <1438010430-5802-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438010430-5802-1-git-send-email-lee.jones@linaro.org> References: <1438010430-5802-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , These OPPs are used in ST's CPUFreq implementation. Signed-off-by: Lee Jones --- Changelog: - None, new patch Documentation/devicetree/bindings/power/opp-st.txt | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/opp-st.txt diff --git a/Documentation/devicetree/bindings/power/opp-st.txt b/Documentation/devicetree/bindings/power/opp-st.txt new file mode 100644 index 0000000..6eb2a91 --- /dev/null +++ b/Documentation/devicetree/bindings/power/opp-st.txt @@ -0,0 +1,76 @@ +STMicroelectronics OPP (Operating Performance Points) Bindings +-------------------------------------------------------------- + +Frequency Scaling only +---------------------- + +Located in CPU's node: + +- operating-points : [See: ./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) +-------------------------------------------- + +Located in 'cpu0-opp-list' node [to be provided ONLY by the bootloader]: + +- compatible : Should be "operating-points-v2-sti" +- opp{1..N} : Each 'oppX' subnode will contain the following properties: + - opp-hz : CPU frequency [Hz] for this OPP [See: ./opp.txt] + - st,avs : List of available voltages [uV] indexed by process code + - st,cuts : Cut version this OPP is suitable for [0xFF means ALL] + - st,substrate : Substrate version this OPP is suitable for [0xFF means ALL] +- st,syscfg : Phandle to Major number register + First cell: offset to major number +- st,syscfg-eng : Phandle to Minor number and Pcode registers + First cell: offset to process code + Second cell: offset to minor number + +WARNING: The opp{1..N} nodes will be provided by the bootloader. Do not attempt to + artificially synthesise the opp{1..N} nodes or any of their descendants. + They are very platform specific and may damage the hardware if created + incorrectly. + +Example [unsafe] +---------------- + +cpus { + cpu@0 { + operating-points-v2 = <&cpu0_opp_list>; + }; +}; + +/* ############################################################ */ +/* # WARNING: Do not attempt to copy/replicate this node, # */ +/* # it is only to be supplied by the bootloader !!! # */ +/* ############################################################ */ +cpu0-opp-list { + compatible = "operating-points-v2-sti"; + st,syscfg = <&syscfg [major_offset]>; + st,syscfg-eng = <&syscfg_eng [pcode_offset] [minor_offset]>; + + opp0 { + opp-hz = <1200000000>; + st,avs = <1110 1150 1100 1080 1040 1020 980 930>; + st,substrate = <0xff>; + st,cuts = <0xff>; + }; + opp1 { + opp-hz = <1500000000>; + st,avs = <1200 1200 1200 1200 1170 1140 1100 1070>; + st,substrate = <0xff>; + st,cuts = <0x2>; + }; +};