From patchwork Wed Jun 10 12:46:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 11597851 X-Patchwork-Delegate: kieran@bingham.xyz 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 9F6D214E3 for ; Wed, 10 Jun 2020 12:46:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 872F92072E for ; Wed, 10 Jun 2020 12:46:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729016AbgFJMqj (ORCPT ); Wed, 10 Jun 2020 08:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728540AbgFJMqi (ORCPT ); Wed, 10 Jun 2020 08:46:38 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85741C03E96F for ; Wed, 10 Jun 2020 05:46:38 -0700 (PDT) Received: from Q.local (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 745FBFE0; Wed, 10 Jun 2020 14:46:30 +0200 (CEST) From: Kieran Bingham To: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Cc: Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Kieran Bingham Subject: [PATCH v9.2 6/9] fixes! [max9286-dt]: Add GPIO controller support Date: Wed, 10 Jun 2020 13:46:20 +0100 Message-Id: <20200610124623.51085-7-kieran@bingham.xyz> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200610124623.51085-1-kieran@bingham.xyz> References: <20200610124623.51085-1-kieran@bingham.xyz> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Kieran Bingham The MAX9286 exposes a GPIO controller to control the two GPIO out pins of the chip. These can in some configurations be used to control the power of the cameras, and in the case of the V3M, it is used to enable power up of the GMSL PoC regulator. The regulator can not (currently) be moddelled as a regulator due to probe time issues, and instead are controlled through the use of a gpio-hog. Signed-off-by: Kieran Bingham --- .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index f9d3e5712c59..7d75c3b63c0b 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml @@ -46,6 +46,11 @@ properties: description: GPIO connected to the \#PWDN pin with inverted polarity maxItems: 1 + gpio-controller: true + + '#gpio-cells': + const: 2 + ports: type: object description: |