From patchwork Thu Dec 19 22:19:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 182191 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp1083432iln; Thu, 19 Dec 2019 14:19:51 -0800 (PST) X-Google-Smtp-Source: APXvYqxEhystdqOgtQx8aGxoMlPA7sMeDf7wFKvOKeFeYncyUnBfGHyst8xK1oPZNQVpfVgOswze X-Received: by 2002:a9d:7757:: with SMTP id t23mr11616847otl.315.1576793991156; Thu, 19 Dec 2019 14:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576793991; cv=none; d=google.com; s=arc-20160816; b=mxi65ixT+2M3d5te/c4s5w10+3c4ZMA2VBnWnfB2vbcy6dsh010Bn1SXzynTOqHpNx 4yubWpFqtLlyaZRLFbQAl9ncGss2GwEVvsBc7EJTgWTAyKARVpTXlukAjVrAKsFkAZL5 W56J+vbTkEMedctC9PyMieB9ooDypLAI+WU3JaAPJXhl/8I7ql7nsjniqf7t74wI5zvi PpFRErYehW2S63zlOuphGe7BY5WSlxSNEwoI0FgFm/JR/dHbbNBhM0cEd8RXKBdC20Pu ar5epxkVp1RPpqruX5tWelB++AO81DpzDCzoXT2XkVmr6nruaNpbOu5C6STDIvPUmH1Z zpKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=nhWrXjSnpH2QceyFXbqxKw6inPm9TBJwp6NEX3eK/pk=; b=Cor6W1bFuCyIdVd43eHkP1layZjERLpvmGphS2biPt0mwUq5DZgNN8xdPlZvWiTLkz KDnND+giSrSoc1pmBWi+W3wCu/zukCb1sD/lg8BVLpwZVOl09r1U01xOjbebPZvOoyyJ UMFQ2UYpHKp+N6Nyy2ooHGUjc+/dc4rXt+Z6yO4MNG/TqsH860QatG8gvOIciA572NcC TWXfGDYLJ2ASiqMmp+Yi9JtT1BFx4tkfQhCcrLMgVwmF/0cFDm6CWo6/VB2hRzX9r39P OppSgx/6cI9UR0QzmrxDPtkYZmY1UIvz5P4HXKoegcplfRnWRLMrc46thegGVC6HNw3o z4iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7YNRON1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si4329723oto.36.2019.12.19.14.19.50; Thu, 19 Dec 2019 14:19:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7YNRON1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbfLSWTu (ORCPT + 8 others); 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-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(+) -- 2.17.1 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 ===========================================