From patchwork Thu Aug 31 11:01:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 9931879 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 B29F16022E for ; Thu, 31 Aug 2017 11:02:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACA0E28904 for ; Thu, 31 Aug 2017 11:02:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A164628906; Thu, 31 Aug 2017 11:02:07 +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 6ACF628904 for ; Thu, 31 Aug 2017 11:02:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AA1026E6C1; Thu, 31 Aug 2017 11:02:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 69BE86E6B0 for ; Thu, 31 Aug 2017 11:01:59 +0000 (UTC) Received: from marune.fritz.box ([80.101.105.217]) by smtp-cloud9.xs4all.net with ESMTPA id nNESdVlAodRLjnNETdHD95; Thu, 31 Aug 2017 13:01:57 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCHv4 3/5] dt-bindings: document the CEC GPIO bindings Date: Thu, 31 Aug 2017 13:01:54 +0200 Message-Id: <20170831110156.11018-4-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170831110156.11018-1-hverkuil@xs4all.nl> References: <20170831110156.11018-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfLijzvd3NG35aeusPLHioTsdhHkTTOJhMikT3oKf1K0ORsJGGez/ppXVNYTZGFBy02VU59vVbPl1Spwy0M4q6p1+YHT9TEXYuj8tLdGevaWj0Zdhr3/h Kb6XZp4L1Z7I/2OOaPrmFCktyHNDKZvVWUr5QnOkTxk0M2YKdTnGKXsZGJQ9lsifW6UY19UOfXsu6YucxSgD+7/lIDcYcpIdIa2edm4IjLbV3YzpkvEclDwa anBQyEsqiwLI7cv0diP/cfb5MKSB6OyQ2YfF8rLCGi4GKKgy6BJ44I33IWu2D3s7CG+oMFZk3D8onPEPqRa07A== 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 line and optionally the HPD line are connected to GPIO lines. Signed-off-by: Hans Verkuil Reviewed-by: Linus Walleij --- .../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..db20a7452dbd --- /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 line +is hooked up to a pull-up GPIO line and - optionally - the HPD line is +hooked up to another GPIO line. + +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_OPEN_DRAIN>; + hpd-gpio = <&gpio 17 GPIO_ACTIVE_HIGH>; +};