From patchwork Sat Sep 16 14:28:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 9954345 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 5BBA960352 for ; Sat, 16 Sep 2017 14:28:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EF9F28E1A for ; Sat, 16 Sep 2017 14:28:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44262290DE; Sat, 16 Sep 2017 14:28:38 +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 E291628E1A for ; Sat, 16 Sep 2017 14:28:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 145D06E0DE; Sat, 16 Sep 2017 14:28:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb2-smtp-cloud9.xs4all.net (lb2-smtp-cloud9.xs4all.net [194.109.24.26]) by gabe.freedesktop.org (Postfix) with ESMTPS id 07A9E6E0DE for ; Sat, 16 Sep 2017 14:28:33 +0000 (UTC) Received: from tschai.fritz.box ([212.251.195.8]) by smtp-cloud9.xs4all.net with ESMTPA id tE55dMPPmmRxPtE5AdiKfb; Sat, 16 Sep 2017 16:28:32 +0200 From: Hans Verkuil To: linux-media@vger.kernel.org Subject: [PATCHv5 3/5] dt-bindings: document the CEC GPIO bindings Date: Sat, 16 Sep 2017 16:28:25 +0200 Message-Id: <20170916142827.5878-4-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170916142827.5878-1-hverkuil@xs4all.nl> References: <20170916142827.5878-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfFLU0745tQzlAGD70G26DizTzn9hkP3j5WiK+ZWwaneHxLnoqRtwJluw+xaItzcAqEPNrIihWqnGMplqHwDbIK4TYqiOI5bYXNwvvfCGlrAlSIehpwlS xhPOKRWMdnDbOTyUiXYA/woCjmHNoEuEydcn5aqrJPBIEqTqkHS0mu+FuErCILfmyB6yMdMfqQlo+PB2I7J8yYw43+Q3a+dAbFWcye5X9XLWJ2MhXu1k6fLE hjX10xIdg6M94qyugGApRhclhrhQ7r+hY/MeSKSTx65jKI70pX3k2rlVGih1pPX7ApGuGPuRsTZjl6q1Wr3ekcbHt589tQweso2A0C97v0gjuFjjQ+rCPjBq eCmk8ytg 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 | 29 ++++++++++++++++++++++ 1 file changed, 29 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..1b7e13f36b08 --- /dev/null +++ b/Documentation/devicetree/bindings/media/cec-gpio.txt @@ -0,0 +1,29 @@ +* 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-gpios: gpio that the CEC line is connected to. + +If the CEC line is associated with an HDMI receiver/transmitter, then the +following property is also required: + + - hdmi-phandle - phandle to the HDMI controller, see also cec.txt. + +If the CEC line is not associated with an HDMI receiver/transmitter, then +the following property is optional: + + - hpd-gpios: 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 { + compatible = "cec-gpio"; + cec-gpio = <&gpio 7 GPIO_OPEN_DRAIN>; + hpd-gpio = <&gpio 17 GPIO_ACTIVE_HIGH>; +};