From patchwork Fri Dec 26 12:34:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 5542911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B0BB9F2E2 for ; Fri, 26 Dec 2014 12:38:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF16F20166 for ; Fri, 26 Dec 2014 12:38:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B5635200E6 for ; Fri, 26 Dec 2014 12:38:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4U7R-0002iZ-D0; Fri, 26 Dec 2014 12:35:49 +0000 Received: from ring0.de ([5.45.105.125]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y4U7N-0002fg-5n for linux-arm-kernel@lists.infradead.org; Fri, 26 Dec 2014 12:35:45 +0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 From: Sebastian Reichel To: Sebastian Reichel , Pavel Machek , Pali Rohar , Jean Delvare , Guenter Roeck , Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= Subject: [PATCH 1/3] DT Binding for omap3 temperature sensor Date: Fri, 26 Dec 2014 13:34:52 +0100 Message-Id: <1419597294-21487-2-git-send-email-sre@kernel.org> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1419597294-21487-1-git-send-email-sre@kernel.org> References: <20141226102933.GA28778@amd> <1419597294-21487-1-git-send-email-sre@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141226_043545_400365_D8C1F711 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org, Rob Herring , Kumar Gala , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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 OMAP34xx and OMAP36xx processors contain a register in the syscon area, which can be used to determine the SoCs temperature. This provides a DT binding specification for the temperature monitor. Signed-off-by: Sebastian Reichel Acked-by: Pavel Machek --- .../bindings/hwmon/omap3-temperature.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/omap3-temperature.txt diff --git a/Documentation/devicetree/bindings/hwmon/omap3-temperature.txt b/Documentation/devicetree/bindings/hwmon/omap3-temperature.txt new file mode 100644 index 0000000..99631ad --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/omap3-temperature.txt @@ -0,0 +1,25 @@ +* OMAP3 temperature sensor + +The OMAP34xx and OMAP36xx processors contain a register in the syscon area, +which can be used to determine the SoCs temperature. + +Requires node properties: +- compatible : should contain one of + - "ti,omap34xx-temperature-sensor" for OMAP34xx + - "ti,omap36xx-temperature-sensor" for OMAP36xx +- syscon : Should be a phandle to system configuration node which + encompases the temperature register +- clocks : Should contain 32KHz fclk clock specifier +- clock-names : Should contain clock names + - "fck" for the 32KHz fclk clock specifier + +Example for omap34xx: + +/ { + temperature-sensor { + compatible = "ti,omap34xx-temperature-sensor"; + syscon = <&omap3_scm_general>; + clocks = <&ts_fck>; + clock-names = "fck"; + }; +};