From patchwork Mon Feb 27 19:40:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9593825 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 C0C1C601D7 for ; Mon, 27 Feb 2017 19:42:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABD681FF3D for ; Mon, 27 Feb 2017 19:42:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A06C2279E0; Mon, 27 Feb 2017 19:42:29 +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_SIGNED, DKIM_VALID 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 3AAB01FF3D for ; Mon, 27 Feb 2017 19:42:26 +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: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:In-Reply-To:References: List-Owner; bh=2zPJmHb52EflmnWjVRFYfFN8VNsu7DXdZ7YPU1YwyNs=; b=QH6xRssh0fiqv9 IVy6JUN0Y6xsT6cxrIpKQ/1ZTZJQrDoiSUDeAzNn/5gP8rW9j6UknjACNEq+BndMzdtzAPb3Dwqwa MR/36vQR0RSEBuWpvfxPvsQvDWngDJnuI7PI3xspPvvI7dStPmx3fbJshxIt/srmRqQ4ssSAFV+ul +TtOvVMZrIPicT29zfMr4PTw89X44kpOIpbrACr2luJbsHy0gZ7jGFFrVJMxz6FewcvzxNQ3bUItL WT2Kmj/t2rsSm46t2Eq3vRbv0o+sWC/QeNUOaxOONc5cgL8UbiUCM2el/YcYbeUXLo9eFzfIl0s4P RRz33lAhwInIT5HJ9mtQ==; 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 1ciRBV-0000Qj-MJ; Mon, 27 Feb 2017 19:42:13 +0000 Received: from forward19h.cmail.yandex.net ([2a02:6b8:0:f35::a4]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ciRB6-0000PW-DK for linux-arm-kernel@lists.infradead.org; Mon, 27 Feb 2017 19:41:50 +0000 Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [77.88.61.129]) by forward19h.cmail.yandex.net (Yandex) with ESMTP id 645D521F7E; Mon, 27 Feb 2017 22:41:22 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id E20062300CDA; Mon, 27 Feb 2017 22:41:14 +0300 (MSK) Received: by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id piDuGCaA4y-f8Aq852E; Mon, 27 Feb 2017 22:41:13 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1488224474; bh=YhPeMlw/0uzOcV73vvbj5XGeiS80DwNV7VOgJczLbrA=; h=From:To:Cc:Subject:Date:Message-Id; b=mY6pYW5v8YvEz3dS4dLPONaxKsdIKtUcXTp0FjQ5jK+KBWf8RXUaPSPFGliDrQKtG E1tYb3UR4HLEj3rM44FwB/GSq4uJ1OSMrzD1I2cZQgnyLhhNysBfBlWRpFo+oi4ilL wOtBOZm9wi+X4V3Y2SfUSaYAfrzjGUrG6N7ncjao= Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Zhang Rui , Eduardo Valentin , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Ondrej Jirman Subject: [PATCH 1/3] dt-bindings: document the thermal sensor of Allwinner H3 SoC Date: Tue, 28 Feb 2017 03:40:52 +0800 Message-Id: <20170227194054.51951-1-icenowy@aosc.xyz> X-Mailer: git-send-email 2.11.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170227_114148_823884_880B4E2B X-CRM114-Status: GOOD ( 12.84 ) 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: devicetree@vger.kernel.org, Icenowy Zheng , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.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: Ondrej Jirman This patch adds the binding documentation for the thermal sensor found in Allwinner H3 SoC. Signed-off-by: Ondřej Jirman [Icenowy: some adjustments to documentation and the commit message] Signed-off-by: Icenowy Zheng --- .../devicetree/bindings/thermal/sun8i-ths.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt diff --git a/Documentation/devicetree/bindings/thermal/sun8i-ths.txt b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt new file mode 100644 index 000000000000..eec094c459b8 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/sun8i-ths.txt @@ -0,0 +1,35 @@ +* Thermal sensor for new Allwinner SoCs + +Required properties: +- compatible : Should be one of the following: + - "allwinner,sun8i-h3-ths" +- reg : Address range of the thermal sensor registers +- resets : Must contain phandles to reset controls matching the entries + of the names +- reset-names : Must include the name "ahb" +- clocks : Must contain phandles to clock controls matching the entries + of the names +- clock-names : Must contain "ahb" for the bus gate and "ths" for the THS + clock +- #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description. + +Optional properties: +- nvmem-cells: A phandle to the calibration data provided by a nvmem device. If + unspecified default values shall be used. Refer to + Documentation/devicetree/bindings/nvmem/nvmem.txt to know how to + specify nvmem cells. +- nvmem-cell-names: Should be "cal" + +Example: +ths: ths@01c25000 { + compatible = "allwinner,sun8i-h3-ths"; + reg = <0x01c25000 0x400>; + interrupts = ; + resets = <&ccu RST_BUS_THS>; + reset-names = "ahb"; + clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; + clock-names = "ahb", "ths"; + nvmem-cells = <&ths_cal>; + nvmem-cell-names = "cal"; + #thermal-sensor-cells = <1>; +};