From patchwork Sun Oct 11 19:48:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lubomir Rintel X-Patchwork-Id: 528796 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 18EDF1402B0 for ; Mon, 12 Oct 2015 06:49:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbbJKTtG (ORCPT ); Sun, 11 Oct 2015 15:49:06 -0400 Received: from shell.v3.sk ([92.60.52.57]:40752 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751094AbbJKTtG (ORCPT ); Sun, 11 Oct 2015 15:49:06 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id D160144790; Sun, 11 Oct 2015 21:49:03 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id xT8Lk2dWT0L1; Sun, 11 Oct 2015 21:49:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id CD97F44793; Sun, 11 Oct 2015 21:49:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3PhNUYWqcbxS; Sun, 11 Oct 2015 21:49:00 +0200 (CEST) Received: from odvarok.lan (ip-89-176-114-212.net.upcbroadband.cz [89.176.114.212]) by zimbra.v3.sk (Postfix) with ESMTPSA id DFDAB44790; Sun, 11 Oct 2015 21:48:59 +0200 (CEST) From: Lubomir Rintel To: linux-rpi-kernel@lists.infradead.org Cc: Lubomir Rintel , Stephen Warren , Lee Jones , Eric Anholt , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] bcm2835: Add Raspberry Pi thermal sensor to the device tree Date: Sun, 11 Oct 2015 21:48:57 +0200 Message-Id: <1444592937-16320-1-git-send-email-lkundrak@v3.sk> X-Mailer: git-send-email 2.4.3 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Driven via the Raspberry Pi VideoCore 4 firmware interface. Signed-off-by: Lubomir Rintel Cc: Stephen Warren Cc: Lee Jones Cc: Eric Anholt Cc: devicetree@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org --- Needs the RPi firmware patchset from branch 'rpi-firmware' of https://github.com/anholt/linux .../bindings/thermal/raspberrypi,bcm2835-thermal.txt | 13 +++++++++++++ arch/arm/boot/dts/bcm2835-rpi.dtsi | 5 +++++ 2 files changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal.txt diff --git a/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal.txt b/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal.txt new file mode 100644 index 0000000..f323f35 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/raspberrypi,bcm2835-thermal.txt @@ -0,0 +1,13 @@ +Raspberry Pi Broadcom BCM2835 thermal control + +Required properties: + +- compatible : should be "raspberrypi,bcm2835-thermal" +- firmware : the Raspberry Pi firmware node + +Example: + +thermal { + compatible = "raspberrypi,bcm2835-thermal"; + firmware = <&firmware>; +}; diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index ab5474e..727bbf8 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -20,6 +20,11 @@ compatible = "raspberrypi,bcm2835-firmware"; mboxes = <&mailbox>; }; + + thermal { + compatible = "raspberrypi,bcm2835-thermal"; + firmware = <&firmware>; + }; }; };