From patchwork Wed Aug 30 16:10:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 9930141 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 D39DB603B4 for ; Wed, 30 Aug 2017 16:10:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C62C628717 for ; Wed, 30 Aug 2017 16:10:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4A8F28714; Wed, 30 Aug 2017 16:10:53 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8981828726 for ; Wed, 30 Aug 2017 16:10:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A04C66E628; Wed, 30 Aug 2017 16:10:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb1-smtp-cloud8.xs4all.net (lb1-smtp-cloud8.xs4all.net [194.109.24.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5368A6E624 for ; Wed, 30 Aug 2017 16:10:48 +0000 (UTC) Received: from marune.fritz.box ([80.101.105.217]) by smtp-cloud8.xs4all.net with ESMTPA id n5ZkdmzWbcQyLn5Zmd5mQG; Wed, 30 Aug 2017 18:10:46 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCHv3 3/5] dt-bindings: document the CEC GPIO bindings Date: Wed, 30 Aug 2017 18:10:42 +0200 Message-Id: <20170830161044.26571-4-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170830161044.26571-1-hverkuil@xs4all.nl> References: <20170830161044.26571-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfHcgGDPsCrSx9VIYauK+E94RtEP1wQRDvjfApjtmQN7g4IcsknyAxQHvWPcTTnMAWuTC/QkLlFnLhkR6h4CcbbTGzC2hUNRqmLnTBOGpifivIb5rclqW 0cixhBlSPb6cUxNiZ/+3xNlhQT5HEmxTcZSbBQal4H55FB5+ugS0ybKUuSeoPQClP9CYh28aVuEj6Mrwe7JIJlyApC7i+c1VGMUu57D1mXjnc6q43FoNy2dD GlBxL+atZuVeTP7p5C2txOKuTbcs2trpxUZa+47D/5GMDxFvRkrXo61zaqTO0HXU Cc: devicetree@vger.kernel.org, Hans Verkuil , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Hans Verkuil Document the bindings for the cec-gpio module for hardware where the CEC pin and optionally the HPD pin are connected to GPIO pins. Signed-off-by: Hans Verkuil --- .../devicetree/bindings/media/cec-gpio.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/cec-gpio.txt diff --git a/Documentation/devicetree/bindings/media/cec-gpio.txt b/Documentation/devicetree/bindings/media/cec-gpio.txt new file mode 100644 index 000000000000..d1df742af0ac --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec-gpio.txt @@ -0,0 +1,22 @@ +* HDMI CEC GPIO driver + +The HDMI CEC GPIO module supports CEC implementations where the CEC pin +is hooked up to a pull-up GPIO pin and - optionally - the HPD pin is +hooked up to a pull-down GPIO pin. + +Required properties: + - compatible: value must be "cec-gpio" + - cec-gpio: gpio that the CEC line is connected to + +Optional property: + - hpd-gpio: gpio that the HPD line is connected to + +Example for the Raspberry Pi 3 where the CEC line is connected to +pin 26 aka BCM7 aka CE1 on the GPIO pin header and the HPD line is +connected to pin 11 aka BCM17: + +cec-gpio@7 { + compatible = "cec-gpio"; + cec-gpio = <&gpio 7 GPIO_ACTIVE_HIGH>; + hpd-gpio = <&gpio 17 GPIO_ACTIVE_HIGH>; +};