From patchwork Tue Oct 2 07:32:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 10623145 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 247CD15A7 for ; Tue, 2 Oct 2018 07:33:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2725E20950 for ; Tue, 2 Oct 2018 07:33:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B5BA209CC; Tue, 2 Oct 2018 07:33:14 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEC4020950 for ; Tue, 2 Oct 2018 07:33:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727183AbeJBOOV (ORCPT ); Tue, 2 Oct 2018 10:14:21 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37875 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbeJBOOU (ORCPT ); Tue, 2 Oct 2018 10:14:20 -0400 Received: by mail-lf1-f66.google.com with SMTP id a82-v6so672441lfa.4; Tue, 02 Oct 2018 00:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1KVNU/m5av04sKKnX9txI783M6jxzvuy+56bxkZ9iJY=; b=nw05BhBwAvIB9lcsnufHpO4W3tpitx0zta6GVyrhDsVRV/UDC036iWhxHRwyFL/t5V TwdTixR0hjG/bZsva42Ct1yvmW1hqQTBSZPaSEki4tLHYSf2BjU3SdyX6JlOq42/iAzC cE2nwighP335jOyEKc/YlRi9lhiAphhcY2oOnjG7lmZ023zhR4uJtkSiGvoGV8od5mWb vM4FAbfD9RfMr78T64/dnYkQIw0H08ytQ15YPVOfaN0ORyGL5f4wdukS+OLsXvDQXAQx dyWhxLrJ/idg8eU03s9DsshdJSNPNfqhHOJ2k5T3HT7QWhgj9q/NQef/putFPhoHDgRA EwEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1KVNU/m5av04sKKnX9txI783M6jxzvuy+56bxkZ9iJY=; b=JI2UBgtlBztzZcP+i+knOftk+KCA+BN0WsZaYthSDVvpeloroqKp5mmnMNjplLJAXY JbGK/D/+F2OVY6whQUuXnQAYX47y6rkvbivftgXSo5FiCWtiRkat0jTGqr2H3MIEZ1jZ Y9zvfVCNmsCw2AnB112O39ryKkjACyYDpZXEGb2nfm809wuPmH/ZahxFvHZPe8TR4Y4C Nriiy3r12R8utA3fGCA8xhrJylnGCfuQ5z07+ak1Mydu5a4rVXwOxDZz2yJM6BKaWMX3 YgF8E8JFiBWKF4R4pYxGUEcUcvEGvCtCwNK8/cQX6edHYngReDr4rptCOllh2efBIn5p zDOw== X-Gm-Message-State: ABuFfojhi9/sIdyZXWyJlDMpGP5ug2vg/acJhBSex33jlc14cLnjqLWx qZaXYCg1zy5QsZkYBrncvfI= X-Google-Smtp-Source: ACcGV61L+2Pwuwj+h3gnyUfQ+dSznS52WxJuUcUKxirkyyqvi7KZ0aDWj+h0IyKxQrrEc/AH0zwGlw== X-Received: by 2002:a19:5311:: with SMTP id h17-v6mr7365392lfb.24.1538465546756; Tue, 02 Oct 2018 00:32:26 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id d17-v6sm1242246lfj.9.2018.10.02.00.32.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 00:32:25 -0700 (PDT) From: Ricardo Ribalda Delgado To: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , Laurent Pinchart Cc: Ricardo Ribalda Delgado , devicetree@vger.kernel.org Subject: [PATCH v5 2/6] [media] ad5820: DT new optional field enable-gpios Date: Tue, 2 Oct 2018 09:32:18 +0200 Message-Id: <20181002073222.11368-2-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002073222.11368-1-ricardo.ribalda@gmail.com> References: <20181002073222.11368-1-ricardo.ribalda@gmail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document new enable-gpio field. It can be used to disable the part without turning down its regulator. Cc: devicetree@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Pavel Machek --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt b/Documentation/devicetree/bindings/media/i2c/ad5820.txt index 5940ca11c021..9ccd96d3d5f0 100644 --- a/Documentation/devicetree/bindings/media/i2c/ad5820.txt +++ b/Documentation/devicetree/bindings/media/i2c/ad5820.txt @@ -8,6 +8,12 @@ Required Properties: - VANA-supply: supply of voltage for VANA pin +Optional properties: + + - enable-gpios : GPIO spec for the XSHUTDOWN pin. Note that the polarity of +the enable GPIO is the opposite of the XSHUTDOWN pin (asserting the enable +GPIO deasserts the XSHUTDOWN signal and vice versa). + Example: ad5820: coil@c { @@ -15,5 +21,6 @@ Example: reg = <0x0c>; VANA-supply = <&vaux4>; + enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>; };