From patchwork Mon Apr 3 15:48:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9659885 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 41E1860353 for ; Mon, 3 Apr 2017 15:48:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33A2D28113 for ; Mon, 3 Apr 2017 15:48:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 281B928138; Mon, 3 Apr 2017 15:48:50 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham 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 D337828113 for ; Mon, 3 Apr 2017 15:48:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753964AbdDCPss (ORCPT ); Mon, 3 Apr 2017 11:48:48 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:35739 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753802AbdDCPsp (ORCPT ); Mon, 3 Apr 2017 11:48:45 -0400 Received: by mail-lf0-f68.google.com with SMTP id v2so13294261lfi.2; Mon, 03 Apr 2017 08:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lVZnvwcOuXePf2Rfg9RCqQC6zMvcOBxX8zhpaBlo94I=; b=ksE/nyspZj7YNlyg494LVDAmiL+EhYeWnYMDpU86ADYj/NiiYDTaAqtuczomQQdv/8 s7JwRfy10yw5j2KZYrkEZz4H+bTd3WqLmc1hShoTrmBpv1xkFOXrnlxpE1abmY5SPimd CC8OcvrAaSCCXhDHatzhxBTLG2QjR1H5FD+RjVQ/Ehol1XYrPhLk0L4nZtz2RdWvqlBB Og5M08xQIDbg6G+90q97MJAJu/FQ8dMUU6OufoWX/CU5AL1n5wSCWQJDnnZ1Ew23gEEk OUfh1HJUJuouCtPTtVLqYQSW2dUZDfK/2NryTr7M95attWRkz6kt8XE2n69Ry6pYwXRo 8+XA== 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:mime-version:content-transfer-encoding; bh=lVZnvwcOuXePf2Rfg9RCqQC6zMvcOBxX8zhpaBlo94I=; b=U/TebT8BIgyUrMG+m0f836NQ/cNQZJ5ATBX4waf8jP2+uiKgj1O6KxE1FajpvtseS7 yoeEtB2dYKxFySsxwXwok/t8fxZwjPYoSCL1uvfQE0sWELqSpzFDxNBg3eqo034NAMl8 i4Q/lUE50XkFco9SX0rDQxCXzFU9YZ7DjWs0sUlpANdWJSLprHK9GaxV63PXlaLI3t8S Nyq8i8Tgnkbmms/z4DfbOcEu+1ZHBwTKDv26TxAkHFPwejeS0k5yxdi5aY4/DxTAV2w2 s5ayyPz6SFesml8/uHGP4syUAG8NAX4t/a1igdfb2EZGW5bGJIlpuetMsaP7KZCkC6Ou whAw== X-Gm-Message-State: AFeK/H1PY2H8kkWAO8sx+seQnvU8ouA6kwDKGDjkK+7ypO+k2P+4TVkxnnDsxZ48luNKhw== X-Received: by 10.25.145.77 with SMTP id y13mr4923526lfj.49.1491234518309; Mon, 03 Apr 2017 08:48:38 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id 24sm2657263lfu.7.2017.04.03.08.48.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 08:48:37 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Zhang Rui , Eduardo Valentin Cc: Rob Herring , Mark Rutland , Stephen Warren , Lee Jones , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH V5 1/2] dt-bindings: thermal: add support for Broadcom's Northstar thermal Date: Mon, 3 Apr 2017 17:48:28 +0200 Message-Id: <20170403154829.29780-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170331201124.656-1-zajec5@gmail.com> References: <20170331201124.656-1-zajec5@gmail.com> MIME-Version: 1.0 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 From: Rafał Miłecki This commit documents binding for thermal used in Northstar family SoCs. There isn't any known Northstar device with active cooling system so DT example has empty cooling-maps node. There is also no support for CPU frequency throttling so I put only a critical trip in the example. Signed-off-by: Rafał Miłecki Acked-by: Rob Herring --- V3: Add thermal-zones to the example V5: Extend example by including trips and cooling-maps. Update commit message --- .../devicetree/bindings/thermal/brcm,ns-thermal | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,ns-thermal diff --git a/Documentation/devicetree/bindings/thermal/brcm,ns-thermal b/Documentation/devicetree/bindings/thermal/brcm,ns-thermal new file mode 100644 index 000000000000..68e047170039 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,ns-thermal @@ -0,0 +1,37 @@ +* Broadcom Northstar Thermal + +This binding describes thermal sensor that is part of Northstar's DMU (Device +Management Unit). + +Required properties: +- compatible : Must be "brcm,ns-thermal" +- reg : iomem address range of PVTMON registers +- #thermal-sensor-cells : Should be <0> + +Example: + +thermal: thermal@1800c2c0 { + compatible = "brcm,ns-thermal"; + reg = <0x1800c2c0 0x10>; + #thermal-sensor-cells = <0>; +}; + +thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + coefficients = <(-556) 418000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <125000>; + hysteresis = <0>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; +};