From patchwork Thu Aug 10 08:33:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 9893019 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 5884A60236 for ; Thu, 10 Aug 2017 08:34:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D5C4289B8 for ; Thu, 10 Aug 2017 08:34:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41A9228ACB; Thu, 10 Aug 2017 08:34:05 +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 D9D90289B8 for ; Thu, 10 Aug 2017 08:34:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A23989363; Thu, 10 Aug 2017 08:34:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb1-smtp-cloud7.xs4all.net (lb1-smtp-cloud7.xs4all.net [194.109.24.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id E34F989363 for ; Thu, 10 Aug 2017 08:34:01 +0000 (UTC) Received: from marune.fritz.box ([80.101.105.217]) by smtp-cloud7.xs4all.net with ESMTPA id fiuldgfjMAr7rfiumdptUA; Thu, 10 Aug 2017 10:34:00 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCHv2 1/3] dt-bindings: document the CEC GPIO bindings Date: Thu, 10 Aug 2017 10:33:57 +0200 Message-Id: <20170810083359.36800-2-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170810083359.36800-1-hverkuil@xs4all.nl> References: <20170810083359.36800-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfDW2gNdVYGUxZbiNQZtW1RAcEFGswPFDLy2xc0+PTawvAzRD+Ka3lDOMViBdi+quWaJciU6PjqczkIzDrXyvZ4Mn5uQI52XJ61kRXQ1xJ0CNUqNiYsgj DxDyRl8BZc6Gq7Mn383sNpT/uM0b2kgePM0ATL/X9q47UhRjLzlDqX788U51QYul8FEgBxsU9oBG9qDihJMEx9idNZu43CdeOXU2zz8lJI/8B6/KbTpPuu1h hgOSbEOYQUFGl3IM3OR8IQdavDavQ5v6Q1SB00l09jSNLpF9/yYj+Q49UdEk1CnA 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 is connected to a GPIO pin. Signed-off-by: Hans Verkuil --- Documentation/devicetree/bindings/media/cec-gpio.txt | 16 ++++++++++++++++ 1 file changed, 16 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..e34a175468e2 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec-gpio.txt @@ -0,0 +1,16 @@ +* HDMI CEC GPIO-based hardware + +Use these bindings for HDMI CEC hardware where the CEC pin is hooked up +to a pull-up GPIO pin. + +Required properties: + - compatible: value must be "cec-gpio" + - gpio: gpio that the CEC line is connected to + +Example for the Raspberry Pi 3 where the CEC line is connected to +pin 7 aka BCM4 aka GPCLK0 on the GPIO pin header: + +cec-gpio { + compatible = "cec-gpio"; + gpio = <&gpio 4 GPIO_ACTIVE_HIGH>; +};