Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3439284pxf; Mon, 15 Mar 2021 09:32:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW6yQe9g59+SJeGB18xrkku4uPkHhZkuBAex0xJq2K+ECC/TO3LCNpQ0qKPseZEqHG023Z X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr24338123ejb.273.1615825948161; Mon, 15 Mar 2021 09:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615825948; cv=none; d=google.com; s=arc-20160816; b=I/0BpHBTbip0rwdNT+/ZbpRf7llx1unq8CEldGEfVxzZMe/hdWjKnTy6cGdT2XDqMr ShMTMzF3rN04Mkwb/RJamXxjVIlsKq/tbRSHk4fgaTcLID6tIrrUmLm9AnQjCleZj+3f eqVRBpfR3hM+z8Do/2Uro7Ex9YyYUGvBUhE+aEXLC3PuqoTrl/1d+EXQIhS9Qq5kSNna fIdYB76e5brnJ8c1KXQHhgaLtgBiS1Ba0ESvmwl4zjvS65Aj414z9NWXkmfQis0zUcLe OCGllyrVy8o8ozDLOXCU/1nWOACbolFt6hA+Hv6vbPG4beWsT+zGFt5RvJKLPmeja7KC vIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fTa2xAltABBn7Fpt6UC8wTyE2Eh6aN9D95XfnwNwSQQ=; b=07Kw43Jhv8RDXO9o+whAbl9MfeBxvNO8On05wPLG10Jp7gr8f0xJgCWV5sFXyBD+ka kHyG2ysf0MQpIWrv9c4Rx6TZMw0AoNIw5dtm6BUUxoGxuzCt8w0kHJTjnEq/mvPqe+3Q mvPO+MEduoggQqiRHoKdIZzUXmi8I7shx+YD0L/2KdT8ADtPTCrP0TDkRo4ku/PnL3sd vz9WasxBasVbKhzarq0vJ8d1aUxktcfVVVo4PIqodBf/TAbK2tCSWknBU5fWVJHoy4eJ /pbcTH1M69gt2ZMBh3ev/YCjIFDjGUrgjrygxMIbPANEGtpnZYXkLXuPJW1CisaVyJMR g/aQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k24si11169935eds.507.2021.03.15.09.32.04; Mon, 15 Mar 2021 09:32:28 -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; 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 S229725AbhCOQbB (ORCPT + 99 others); Mon, 15 Mar 2021 12:31:01 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:51503 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231391AbhCOQar (ORCPT ); Mon, 15 Mar 2021 12:30:47 -0400 X-Originating-IP: 79.22.58.175 Received: from uno.homenet.telecomitalia.it (host-79-22-58-175.retail.telecomitalia.it [79.22.58.175]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id C082E240002; Mon, 15 Mar 2021 16:30:43 +0000 (UTC) From: Jacopo Mondi To: Geert Uytterhoeven , Magnus Damm , Laurent Pinchart , Kieran Bingham , Rob Herring Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: media: max9286: Describe gpio-hog Date: Mon, 15 Mar 2021 17:30:25 +0100 Message-Id: <20210315163028.173148-2-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210315163028.173148-1-jacopo+renesas@jmondi.org> References: <20210315163028.173148-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../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 -- 2.30.0