From patchwork Fri May 25 20:30:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10428461 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 34986601D5 for ; Fri, 25 May 2018 20:32:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 281B529779 for ; Fri, 25 May 2018 20:32:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C9C5297A9; Fri, 25 May 2018 20:32:16 +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.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 BBF8729779 for ; Fri, 25 May 2018 20:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968299AbeEYUcD (ORCPT ); Fri, 25 May 2018 16:32:03 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42318 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030296AbeEYUba (ORCPT ); Fri, 25 May 2018 16:31:30 -0400 Received: by mail-pf0-f195.google.com with SMTP id p14-v6so3083904pfh.9 for ; Fri, 25 May 2018 13:31:30 -0700 (PDT) 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:in-reply-to :references; bh=dwNKF/O/EtyI2Dyb4YixW3LAyXIQJY2q52tRq5XnyLg=; b=PXNFtpQmx2xS6sXeueHgECyHjXAvJwPaUIQAYgDsKwszsudardNG3l78kyRNg0Lm1F tvx6j+xZXGZj0V3KmZslubX70K/UniwC4r69z8jr8G4CCNLob9JEMt31NMoy2w8IKvL6 JnzYBsix2p2XVqwYh8ABAaldm75IsP2MQp/xQpn9lhpPwoZONLW1Qrpy8lwu+ijXsDaZ zdKPOeNyGtuZrPUkyYcQek72zd0yhBMRyX7iwiv7LdIrs2L8czafnulmSyvErBpVzQ8o VEZIno6uL2enA5Zw553dRxIP5Zl+JAyAxv3GzITW3Vw3XHIdD1eNnZfbJu4FOP2MIJ3e /Khw== X-Gm-Message-State: ALKqPwfLL+fQ6V8U1LWWFwqKlHNVVTvjZgzkzhehxrWCaeYOhi/zD/gK d+ieAORst5+ORpj3Ww/7NYiZvg== X-Google-Smtp-Source: AB8JxZrtSRumhmbPhL2+OFQN55ZaoeDRXlRMpbplDZODDINIQ6jRj7N47ZHI1swPorYtJHjsgaCTCQ== X-Received: by 2002:a65:4b49:: with SMTP id k9-v6mr3067329pgt.369.1527280289607; Fri, 25 May 2018 13:31:29 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id p1-v6sm42912360pfp.137.2018.05.25.13.31.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 13:31:28 -0700 (PDT) From: Matthias Kaehlcke To: MyungJoo Ham Cc: Kyungmin Park , Chanwoo Choi , Arnd Bergmann , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Douglas Anderson , Matthias Kaehlcke Subject: [PATCH 10/11] dt-bindings: misc: add bindings for throttler Date: Fri, 25 May 2018 13:30:42 -0700 Message-Id: <20180525203043.249193-11-mka@chromium.org> X-Mailer: git-send-email 2.17.0.921.gf22659ad46-goog In-Reply-To: <20180525203043.249193-1-mka@chromium.org> References: <20180525203043.249193-1-mka@chromium.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Matthias Kaehlcke --- .../devicetree/bindings/misc/throttler.txt | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/throttler.txt diff --git a/Documentation/devicetree/bindings/misc/throttler.txt b/Documentation/devicetree/bindings/misc/throttler.txt new file mode 100644 index 000000000000..92f13e94451a --- /dev/null +++ b/Documentation/devicetree/bindings/misc/throttler.txt @@ -0,0 +1,41 @@ +Throttler driver + +The Throttler is used for non-thermal throttling of system components like +CPUs or devfreq devices. + + +Optional properties: +-------------------- +- cpufreq: A sub-node which is container of only cpufreq + Type: sub-mode nodes, used to describe the throttling settings + for a CPU (or CPU group sharing the same policy). + +- devfreq: A sub-node which is container of only devfreq + Type: sub-mode nodes, used to describe the throttling settings + for a devfreq device. + +cpufreq node: +============= + +Required properties: +-------------------- +- cpu: The id of the CPU to be throttled. + Type: unsigned + Size: one cell + +- throttling-frequencies: Frequencies used for throttling, corresponding + Type: unsigned to throttling level 1, 2, ... + Size: array + + +devfreq node: +============= + +Required properties: +-------------------- +- devfreq: A phandle of the devfreq device to be throttled. + Type: phandle + +- throttling-frequencies: Frequencies used for throttling, corresponding + Type: unsigned to throttling level 1, 2, ... + Size: array