From patchwork Wed May 16 13:37:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 10404009 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 A8694601C8 for ; Wed, 16 May 2018 13:49:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 958BE2893E for ; Wed, 16 May 2018 13:49:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88E3C2894A; Wed, 16 May 2018 13:49:12 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 1910A2893E for ; Wed, 16 May 2018 13:49:12 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=uHLyoWgUYcdUFl8n3m3tZc7VEFJylWYq53e7XdWlD78=; b=ct61rnMHd92LT+a8x/K2WEgzUx s6iQGsqQIxI9Od4+31NFYUhm+MH0FXYWJ5zqgR+a7KkZ0l9Cp1zcF7SI/wH/sNdlWmJ0sVXdwhccP iLEYiks4EElYcgLarYd9D9mW/k9C6NbbEeIP6gKPlzzr4M+28+v31mNnT5zSSPufwNuQ23YsjeMIs UuuVzOT06S2vHgca688Uk/Zpgrwnbilp/dxPHxQkvuQu0yLftaV46p8PD5O/cKSvDWcIK0mbT0BLs WhufWsbWAzIpbeFuTy/zh6erBOEHyrtZf4hKmGH87A275YAYdrvGX49WIm7e00NaRxaEHar6uNh3d OPtb0LJg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIwnd-0007Fk-2T; Wed, 16 May 2018 13:49:01 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIwdm-00088b-Lf; Wed, 16 May 2018 13:38:52 +0000 Received: from localhost.localdomain ([37.4.249.136]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MANKs-1f8TIE2JOU-00BZ1Z; Wed, 16 May 2018 15:37:40 +0200 From: Stefan Wahren To: Rob Herring , Mark Rutland , Jean Delvare , Guenter Roeck , Eric Anholt Subject: [PATCH RFC 2/6] dt-bindings: hwmon: Add Raspberry Pi voltage sensor Date: Wed, 16 May 2018 15:37:03 +0200 Message-Id: <1526477827-10859-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526477827-10859-1-git-send-email-stefan.wahren@i2se.com> References: <1526477827-10859-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:hsykWWrWIRPNNWVIXS+cFExAq04vy31+iu5jPwfeimgh5swSsmJ BVRCvh+dHYDsF4iHULeTgfPx6aG1hL8QfVqMx9pt5+giIr5owubcKm9BBKphQ9GfNpBkG9f 3d8q1WrEYxuE1AHAfYlnD/K9I3usyirL/AoPxv+mOZXdkWBqJ8IANw62Y4bVnJxRJGJAGSZ 4dBLZi6wIwQ/cZXT+OKfw== X-UI-Out-Filterresults: notjunk:1; V01:K0:662I8MO+bMg=:o0LLyzXv7qTRUfbbyPcoAi oRsTuP9w0iljcsDPz+AM1S6OUzWa3tRGjC3XKHULiP5mtJbO5fDbcEFLD104WafQvYZ428OuY zw4z09FpkjZ2DMFJMwrjPErCpJjhz8J8Rgy/dvjR5HXFTFRcSAPsEt0lJfSf4nxsdwQUk1vhV gLTXYRa4U3D/JS5vvIpMCSZIsP9AsjSZbzpdnUh9T0s5eoqi2RMNSzKcn5yS0CZCrNcRZklfN qFJaLI59p+LovXOd+sYTFL8n7xWgF/xHb7UaeXgxPzXnI4w0kg6nGMjU1y8CE/Zh7PwCAt0zu tDfVtL+tCKSopRCCsgWtpocfNgTUXj0VPSl4OI5rdmqgAQ+tOSB7AjmDiiXiR4XqBrw2JhFkF RAYHAkqVmYohSpmQds7l8cYgUbUz6dDFMc7/xfSwqDL1wTgwjsSkMgtfx60B81/pPIof7jWBJ GQe82Eyf2S1ub3ZdCoagvg4WrdeRXu3j2wrLjBYJu/pu9jRRtORcXGHFSQWbDUWRtEM3U8PoA 3cEOOu4JU6JwuV8NOmtNpJCAT/BQ51ByVQGeViksIASLj5xYS5JFENxd6+JvfTbzJ+V9ScybF nppreYNu1p5PTkjVmx99dyJdN+UUUyDWB5iBc9OFr2k6z29HPp2CBSztORA7EK3KiMOI4F8pe c4H96s76Rva07U6C584YJO0W2aKv57tdTa8ytImjoi3Dopg3pQOCubegvjpVSKXUBFtA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180516_063851_045809_AE52CA9F X-CRM114-Status: GOOD ( 15.78 ) 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: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, Florian Fainelli , Scott Branden , Ray Jui , Stefan Wahren , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org 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 Recent VC4 firmware provides a hardware-independent way to retrieve the under-voltage sensor on the following Raspberry Pi boards: - Raspberry Pi B+ (via GPIO on SoC) - Raspberry Pi A+ (via GPIO on SoC) - Raspberry Pi 2 B (via GPIO on SoC) - Raspberry Pi 3 B (via GPIO on port expander) - Raspberry Pi 3 B+ (via PMIC) TODO: - try to make bcm2835 firmware a bus driver Signed-off-by: Stefan Wahren --- .../devicetree/bindings/hwmon/raspberrypi-hwmon.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/raspberrypi-hwmon.txt diff --git a/Documentation/devicetree/bindings/hwmon/raspberrypi-hwmon.txt b/Documentation/devicetree/bindings/hwmon/raspberrypi-hwmon.txt new file mode 100644 index 0000000..ec2523f --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/raspberrypi-hwmon.txt @@ -0,0 +1,19 @@ +Raspberry Pi voltage sensor +--------------------------- + +The VC4 firmware exposes a mailbox interface that allows the ARM core +to access the board's voltage sensor. + +Required properties : +- compatible : Should be "raspberrypi,bcm2835-hwmon" + +Example: + +firmware: firmware-rpi { + compatible = "raspberrypi,bcm2835-firmware"; + mboxes = <&mailbox>; + + voltage-sensor { + compatible = "raspberrypi,bcm2835-hwmon"; + }; +};