Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3660879pxf; Mon, 15 Mar 2021 15:19:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzxf4rt2ruRW1qp/M39vAgg/eUnYRRFId0u2Mj1d+TK0nD3bfSEGrJK7VKB5LXYDIIRqvQ X-Received: by 2002:a05:6402:38f:: with SMTP id o15mr31996397edv.361.1615846786394; Mon, 15 Mar 2021 15:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615846786; cv=none; d=google.com; s=arc-20160816; b=jHVoHuHjyk/ttvLm35Vua53hhEfhKHOBkG9xOYsNazd24mecxiFqU5mpibd1hDxqBp elJLkbOwN48qEiT12JmwSs15e1+NyUfNIGMuIJhenqOAMNsSHc5R76F2da17M5iY8hFi bpPAZYZDJH+0vG5aHuJqpiDZeNqMoCJXvUbO8luLw2myd0hGKwD0X0ACe/sRPrbaGfRa /oA/Ey9Knb6zqnImEh6UFDPvQglc0E508RW01f/R+fg3nrV0egIycs9oOMg7s1STRT4z NYTRpFKRxwIzidsm2sqiA02mNig6yPhOZxB2ZduRo9nh04kB6ED1HuB2rqNQ+bMi7AnI zF3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IGXRSYDSulmImfawyajDIsJYmZHAPadyEGwj9hDlaLY=; b=QHkpdFxut4Dv4o0zk705PZKh0uomjnB3i9JY5jyZKEOYlpE4Y1r3LjsNKOmaDY2i/o GRRxAEq6ISo2CY/u3C6KU+bhdu6qHeJ4+7rXMbH+vwj+hQufCFfNU+COPKPRi6i1oIN3 CsztE2iY5gVZKHPnF7u9iuMs84C/GH8eWybmSENdQZG/kofZL/6FyetCNS9+SxeUO1T8 fQHCdAuTKkKTNH6fWGwUXGUQEEOZHCVukwc3XazbtI+McnWdHTYQXJxVjEbi0oxiPDAv lDXaglMO3J2xsE3UqMXFldIXcZA/BNA7eOh9gKnMEJKpZB4bUKglSp8P6NSLnju3be4H E1jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ho9gh3tn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si11192503ejx.623.2021.03.15.15.19.23; Mon, 15 Mar 2021 15:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ho9gh3tn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232222AbhCOWQD (ORCPT + 99 others); Mon, 15 Mar 2021 18:16:03 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:42038 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbhCOWPy (ORCPT ); Mon, 15 Mar 2021 18:15:54 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 091BF5A9; Mon, 15 Mar 2021 23:15:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1615846553; bh=Bl36wMOwV1jcBe64Yc+fPE77DhgdFDZw0XnOymwubog=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ho9gh3tniaRd7ReugOTRnVAUBNC6wZX82MFa9JaBWvUpEu9faWS1Qu93FgXSuyemu sfQPMo511KtTySAUIT5e33dK7jc399x8CsWw67F2A9z5EsxUwLUDm/ZnZM9BqeeqZ6 mdCGWfUGHfTX/KNMgBsi08W/MYsg+rQ5T/SQmbQM= Date: Tue, 16 Mar 2021 00:15:16 +0200 From: Laurent Pinchart To: Jacopo Mondi Cc: Geert Uytterhoeven , Magnus Damm , Kieran Bingham , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] dt-bindings: media: max9286: Describe gpio-hog Message-ID: References: <20210315163028.173148-1-jacopo+renesas@jmondi.org> <20210315163028.173148-2-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210315163028.173148-2-jacopo+renesas@jmondi.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Mon, Mar 15, 2021 at 05:30:25PM +0100, Jacopo Mondi wrote: > The MAX9286 GMSL deserializer features gpio controller capabilities, > as it provides 2 GPIO lines. > > As establishing a regulator that uses one of the GPIO lines and > enabling/disabling it at run-time in the max9286 won't work due to > a circular dependency on the gpio-controller/regulator creation, allow > the usage of a gpio-hog for that purpose. > > The usage of the gpio-hog is required in designs where the MAX9286 > GPIO lines control the remote cameras power. > > Signed-off-by: Jacopo Mondi That's really a workaround until we can find a good solution, do we have to officially support it in the DT bindings ? > --- > .../bindings/media/i2c/maxim,max9286.yaml | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index ee16102fdfe7..9038300e373c 100644 > --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > @@ -177,6 +177,22 @@ properties: > > additionalProperties: false > > +patternProperties: > + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": > + type: object > + properties: > + gpio-hog: true > + gpios: true > + output-low: true > + line-name: true > + > + required: > + - gpio-hog > + - gpios > + - output-low > + > + additionalProperties: false > + > required: > - compatible > - reg -- Regards, Laurent Pinchart