Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756884AbbLATNN (ORCPT ); Tue, 1 Dec 2015 14:13:13 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53839 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756180AbbLATNI (ORCPT ); Tue, 1 Dec 2015 14:13:08 -0500 From: Martyn Welch To: Olof Johansson Cc: linux-kernel@vger.kernel.org, Martyn Welch , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: [PATCH 1/3] Device tree binding documentation for chromeos-firmware Date: Tue, 1 Dec 2015 19:12:49 +0000 Message-Id: <1448997171-7064-2-git-send-email-martyn.welch@collabora.co.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1448997171-7064-1-git-send-email-martyn.welch@collabora.co.uk> References: <1448997171-7064-1-git-send-email-martyn.welch@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1631 Lines: 55 This patch adds documentation for the chromeos-firmware binding. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: devicetree@vger.kernel.org Signed-off-by: Martyn Welch --- .../devicetree/bindings/misc/chromeos-firmware.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/chromeos-firmware.txt diff --git a/Documentation/devicetree/bindings/misc/chromeos-firmware.txt b/Documentation/devicetree/bindings/misc/chromeos-firmware.txt new file mode 100644 index 0000000..8240611 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/chromeos-firmware.txt @@ -0,0 +1,27 @@ +Device-Tree bindings for chromeos-firmware.c. + +Required properties: + - compatible = "google,gpio-firmware"; + +Each signal is represented as a sub-node of "chromeos_firmware": +Subnode properties: + + - gpios: OF device-tree gpio specification. + +Example nodes: + + chromeos_firmware { + compatible = "google,gpio-firmware"; + + write-protect { + gpios = <&gpx3 0 GPIO_ACTIVE_LOW>; + }; + + developer-switch { + gpios = <&gpx1 3 GPIO_ACTIVE_HIGH>; + }; + + recovery-switch { + gpios = <&gpx0 7 GPIO_ACTIVE_LOW>; + }; + }; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/