From patchwork Mon Oct 7 13:20:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 11177475 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 99339112B for ; Mon, 7 Oct 2019 13:21:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7836E21871 for ; Mon, 7 Oct 2019 13:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570454516; bh=A15UlAF/QwLEIxry1wzujIMx/0CxUPVtmvfkp0deoYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=OuzDrWRn1ne91NCvmY2lDp5uhCuh0R6ouKS5sldz6BheLPP3WxvIPCyTZqcRmet4E Tsk5OSLpJHrhyhRM2yF4/jeI/aADEplZroQdoTZm/WnncJyFIQ2omziM6VPBP49Fs6 7MrVSCHWIBG8xEo43sgVR99zrfv0Eo1jp+x1/HMY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728207AbfJGNVK (ORCPT ); Mon, 7 Oct 2019 09:21:10 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:42996 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728146AbfJGNVK (ORCPT ); Mon, 7 Oct 2019 09:21:10 -0400 Received: by mail-lf1-f66.google.com with SMTP id c195so9252841lfg.9; Mon, 07 Oct 2019 06:21:07 -0700 (PDT) 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=pqYD4jTL26Lkbsq1KtcLnT62csNab9jmgl1QSZGOUz0=; b=N0L/q4RhwlTDYjQL3qyvAE/u8NXu9WXKRH75QjMnab8Vf39ZquOaIpz0K/YmdwopH8 f52ENi/wk/NASP0/D2FE34oCbp5wX5BqWFL23zbbbAy7+Rba4U5aTDrkcL2VKZAuzEPM IeAorZGmE/Tfe5IMsitVvTjm6lVRsDJvohoVmMG7MDbRQWlpkyRdjOXvYTtqDhjl9Cu7 jeJT06mdEFgHKR0McA3zXa+OH8tlKN/7Zl4pH/1gw4YU61EFFZ5wkZOo7S1JImPzR2oy l2wptcGmwq7K12Sbbpxtf/MEtctTi1OmoSic9H8NrULI0sldB83TpRuK5HVt+YIfuCf7 8SfA== X-Gm-Message-State: APjAAAWh4R/ZQ6KaCbnL91wxkEFvBc+GWRbmdM+Za8ttt7LupXxOQAPu 0Ni2upSMjS9cnXe03hSUy7Q= X-Google-Smtp-Source: APXvYqxIVbxcggiIaXX0a4HyTjY38j2zcYaCHKHhIx5HIBWlTeAvmyKaGK6vXDy0GRtbYosRkRKyWw== X-Received: by 2002:ac2:4a8f:: with SMTP id l15mr17100501lfp.21.1570454466311; Mon, 07 Oct 2019 06:21:06 -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 z14sm2687360lfh.30.2019.10.07.06.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 06:21:05 -0700 (PDT) From: Ricardo Ribalda Delgado To: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado , devicetree@vger.kernel.org, Laurent Pinchart , Rob Herring Subject: [PATCH v7 2/6] media: ad5820: DT new optional field enable-gpios Date: Mon, 7 Oct 2019 15:20:42 +0200 Message-Id: <20191007132050.27298-5-ribalda@kernel.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191007132050.27298-1-ribalda@kernel.org> References: <20191007132050.27298-1-ribalda@kernel.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/media/i2c/ad5820.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt b/Documentation/devicetree/bindings/media/i2c/ad5820.txt index 5940ca11c021..db596e8eb0ba 100644 --- a/Documentation/devicetree/bindings/media/i2c/ad5820.txt +++ b/Documentation/devicetree/bindings/media/i2c/ad5820.txt @@ -8,6 +8,11 @@ Required Properties: - VANA-supply: supply of voltage for VANA pin +Optional properties: + + - enable-gpios : GPIO spec for the XSHUTDOWN pin. The XSHUTDOWN signal is +active low, a high level on the pin enables the device. + Example: ad5820: coil@c { @@ -15,5 +20,6 @@ Example: reg = <0x0c>; VANA-supply = <&vaux4>; + enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>; };