Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932188AbcLNH4I (ORCPT ); Wed, 14 Dec 2016 02:56:08 -0500 Received: from mail-pf0-f178.google.com ([209.85.192.178]:33470 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbcLNH4E (ORCPT ); Wed, 14 Dec 2016 02:56:04 -0500 From: Jaghathiswari Rankappagounder Natarajan To: openbmc@lists.ozlabs.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, arnd@arndb.de, gregkh@linuxfoundation.org Cc: Jaghathiswari Rankappagounder Natarajan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, joel@jms.id.au Subject: [PATCH linux v1 1/4] Documentation: dt-bindings: Document bindings for seven segment display support Date: Tue, 13 Dec 2016 23:55:01 -0800 Message-Id: <1481702104-8617-2-git-send-email-jaghu@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1481702104-8617-1-git-send-email-jaghu@google.com> References: <1481702104-8617-1-git-send-email-jaghu@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1576 Lines: 44 This binding provides interface for adding clock, data and clear signal GPIO lines to control seven segment display. Signed-off-by: Jaghathiswari Rankappagounder Natarajan --- .../devicetree/bindings/misc/seven-seg-gpio.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/seven-seg-gpio.txt diff --git a/Documentation/devicetree/bindings/misc/seven-seg-gpio.txt b/Documentation/devicetree/bindings/misc/seven-seg-gpio.txt new file mode 100644 index 0000000..9a4e255 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/seven-seg-gpio.txt @@ -0,0 +1,27 @@ +This binding defines interface to add clock, data and clear GPIO lines required +for seven segment display support. + +Required properties: +- compatible : should be "seven-seg-gpio-dev". +- clock-gpios : Should specify the GPIO pin connected to the Clock line on the + hardware. +- data-gpios : Should specify the GPIO pin connected to Data line on the + hardware. +- clear-gpios : Should specify the GPIO pin connected to Clear line on the + hardware. + +Optional properties: +- refresh-interval-ms : The interval at which to refresh the display. + If this property is not present, the default value is 1000. + +Examples: + +#include + +seven-seg-disp { + compatible = "seven-seg-gpio-dev"; + refresh-interval-ms = "1000"; + clock-gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + data-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; + clear-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; +}; -- 2.8.0.rc3.226.g39d4020