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: 9659887 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 A036860353 for ; Mon, 3 Apr 2017 15:49:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9024B28111 for ; Mon, 3 Apr 2017 15:49:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 843622811C; Mon, 3 Apr 2017 15:49:10 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D5FD28111 for ; Mon, 3 Apr 2017 15:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pMXSKy3bPzEYe5r2B/Brj+5VS1nsVit9/wf4Gh0LRys=; b=LhPKe7o7qzYbN5 wH5Ri0+zfWzLoyav+ADuEK4w9iXIZ9lpbrEzPeTL82ouJkTd/G+jcgk/HYXa8DjaHNp3m04p3vejv hgA6rW+Hnfu7nCFNoXdmwh/pZSriNbcI4WLbV3T46o7ktM+jxDgCUQl82LAL+hEE6WJS+Qs5WSZx0 olU2wjDpiyimVfNEiLkVqcHa9ToS1Q2HF5w+JGVv3GoFiW150gibr0ggycWUwW3BonRqOzOf07rQN Ul79k05LG/JtInkb7lXIwiI/K7YWK7USYMK/XqgspwSjAnuztlw1Y+WfisaXfcY6U1S3ciTUxU6vl DqY2DmySU2wiMDw8tUuw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cv4E4-00032t-6A; Mon, 03 Apr 2017 15:49:04 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cv4E0-0002jZ-Gd; Mon, 03 Apr 2017 15:49:02 +0000 Received: by mail-lf0-x244.google.com with SMTP id v2so13294259lfi.2; Mon, 03 Apr 2017 08:48:39 -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=JWFAAFsCkmxw3Cvyd5UaBZOrTgKXk66pXYe18RUp5wzw8pJZqwrDCQIeXsY5Juh+Px /X29M9XznFnFKwySnv4M+ii8BTluVQGqSk2wL881mqsSE+W8X+aUdvwY4HlZlLJSc6Bb w8e4nssAzyE9/vnJRuclCH8ABoJZ1Pw/AtukjZsTmfqFYcErxmGFUehK94VG13x3HSWf hINuXmAFzaotQxKu7UTv0H6ocLAIjuKM4tHYR62CycAL39M17eMaW5tk43RW0t6QJcmD hQOfox77EAnIn5wZ756abk1rv1doGyD8RNr8kAKsnyNrrqEIr+GTba/qYkKzT7ulkv0P sA4w== X-Gm-Message-State: AFeK/H2rOGu6MC+NrMlO6Kueb2FjSkZkFeb0o40LprSeoo7TmlgNNBLwJcbRmJ9BBiPpDA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170403_084900_779502_67AF55C5 X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Scott Branden , Stephen Warren , Ray Jui , linux-pm@vger.kernel.org, Lee Jones , Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 { + }; + }; +};