From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2774DC43603 for ; Thu, 19 Dec 2019 22:19:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F20E82465E for ; Thu, 19 Dec 2019 22:19:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="i7YNRON1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfLSWTu (ORCPT ); Thu, 19 Dec 2019 17:19:50 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34156 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726866AbfLSWTu (ORCPT ); Thu, 19 Dec 2019 17:19:50 -0500 Received: by mail-wr1-f66.google.com with SMTP id t2so7565550wrr.1 for ; Thu, 19 Dec 2019 14:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=nhWrXjSnpH2QceyFXbqxKw6inPm9TBJwp6NEX3eK/pk=; b=i7YNRON1eodJqUDGgzXOLcxj/XOD0Fm3HQMs184nXWzFyqZmze5CODV+Z1u01qW/sE Dg2qV0PKf/QHa/MWfYwD8F1IZM8pXMeji1F7fFTVPrGr29AtZQA0gtVyZ9pWNMchVwWZ MzsNyZSHZ3+Zu5W5mNRhcvx1aBiq2qdcMpkEKtKPkIPAlXSp8lATixMTLA4XnRCRGO7S 5viSYN9wefIHUcuvzev+IvnlAZUyINSZgJNzJ67ZclB4aq4surzlN9wc1r6Rfv2v/EOC wOmCmSVEHPb5GZnzr6qeenntLKqpThVus6cglY+oO8ux5fNIp7U4cMNk+d8wZc34uEE3 swZA== 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=nhWrXjSnpH2QceyFXbqxKw6inPm9TBJwp6NEX3eK/pk=; b=nB5d27MYw9w8tLCUY0QcCc1XZ6l1Rct6sbHj52uoPgT70kv/8sXIHnZe5ExmONN0dB 1jLZaA2OutpdNGwWRlBNvFfq9Id6RNw8Bm+9aVlIsNdfUGgEIqcRKxrddUMEfd9AutRz aVP28hrsWUmxLU26KG1yKQuA5o7iRlJ+mxUfAHFOKdftRixgUHin0DfVY5TA4q+z4oqw zGKkpB91iyMBo+pJWArkjDax2WZwcBejlcuePJFha6u9ZJ4sW5mEF+hH/ShNWXxSpnWw M/Fw3jjgwCChVFtqpSonWCCu5re/iT31Htti8t7NG/wzDYwIMa8I4ZqcTQ3Ucn5MEsVx GiZA== X-Gm-Message-State: APjAAAX4LG+NhHDiXEKbeG1PaFZLsHMaC7RglQ0MAE4qJuyyGdGS0nBw bgHlmdOl+fQ/zH/sLE+XRgq0TA== X-Google-Smtp-Source: APXvYqxAb0pty85TOlb1yjs5LSkPrQ8phzG73IvcNBYbXZvy01PcgA7P+YBIhkxagWYrDWMbZWg9Sg== X-Received: by 2002:a5d:438c:: with SMTP id i12mr12005486wrq.196.1576793987998; Thu, 19 Dec 2019 14:19:47 -0800 (PST) Received: from localhost.localdomain ([2a01:e34:ed2f:f020:58d:4e9b:2833:86c3]) by smtp.gmail.com with ESMTPSA id n189sm8161765wme.33.2019.12.19.14.19.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 14:19:47 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: Rob Herring , Mark Rutland , Amit Kucheria , Geert Uytterhoeven , Mauro Carvalho Chehab , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] DT: bindings: Add cooling cells for idle states Date: Thu, 19 Dec 2019 23:19:27 +0100 Message-Id: <20191219221932.15930-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT documentation to add an idle state as a cooling device. The CPU is actually the cooling device but the definition is already used by frequency capping. As we need to make cpufreq capping and idle injection to co-exist together on the system in order to mitigate at different trip points, the CPU can not be used as the cooling device for idle injection. The idle state can be seen as an hardware feature and therefore as a component for the passive mitigation. Signed-off-by: Daniel Lezcano --- Documentation/devicetree/bindings/arm/idle-states.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/idle-states.txt b/Documentation/devicetree/bindings/arm/idle-states.txt index 771f5d20ae18..702a19b6b0b2 100644 --- a/Documentation/devicetree/bindings/arm/idle-states.txt +++ b/Documentation/devicetree/bindings/arm/idle-states.txt @@ -346,6 +346,17 @@ follows: idle-states node. Please refer to the entry-method bindings documentation for properties definitions. + When the idle state is used as a cooling device, the #cooling-cells + must be added in order to allow registering it. + + - #cooling-cells: + Usage: Optional + Type: unsigned + Size: one cell + Definition: A cooling device specific information. At least + must be two. Refer to the thermal DT bindings for + more details. + =========================================== 4 - Examples =========================================== -- 2.17.1