Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp350387pxb; Wed, 14 Apr 2021 17:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm4+raeMStgaYwfPZzea3eDobxZjjOJ3W9HiTFUQZENvjZCvTH8HEPY2CUan8+BCMNfAgh X-Received: by 2002:a05:6402:1255:: with SMTP id l21mr346230edw.362.1618446652351; Wed, 14 Apr 2021 17:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618446652; cv=none; d=google.com; s=arc-20160816; b=rTZ3mPMhrbPF4+DwG9Ujncj4PiyMqO/WIDY1eAymnMGZSt3327ybbtOjGair0XVZ3S ntKnvRZHBxYxjBwbwT/MZj7k1sxxeaNrZAu7OB2VZbLiudGENGuTqDYfjHeHtg+WXc0t Ece0F0HGLfhcG1Zb6MNvQlz2BEzhfnHMWhzZbhXuArxaRObPKCB77JMFbrhZD5BDBXWN fF/5/NPPXHYqOlGJg+8U3PyDoQSkltA021OMMO4ed+7wq8ltGnFhtGIwFE8uJo17m+Ok 5wffYTBf1Mk0TZiX5wML9Y5OpSMaqmlObG4G4DZlFhwsTELwHyX3M/dcgDKGwA/s78eJ U57w== 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=kmxZdSj8iYQ9WCFm+IVVMvWN1L2fCXDah9KKZnktg9I=; b=gLnUKU9yDjhOQqwF9+JlnttaEU6b7QvKn213CaCXLHiw92tFF1TSwfftKc09oWcBS5 LfqcoL/wle58MwXWWKal9KIWkn0W4JUe0RjWaGFHar+JclsmA5qw/4hfPU0ye0iKbHSp Cqd6zIB8ZVBTNGy2aV+wgnqv12ZpFkq1+k0k1ayIGe9t3narsUyzZWC8kVw2TJCWFCX0 QAV6WKs+hJp0WQwYow9Zqz7JYwf59gb+jOsOTjq38UUQdPi3XSxjIanUY9Q1p4Tjk/Z7 u+s2RFvC7qgmssk/z55NSOtNacVvW9AEZpUWidQERyL9Txp1Rz5lM/NbHCK1vkItg/3D bntA== 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 jl15si731742ejc.18.2021.04.14.17.30.29; Wed, 14 Apr 2021 17:30:52 -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 S1351524AbhDNNve (ORCPT + 99 others); Wed, 14 Apr 2021 09:51:34 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35867 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349137AbhDNNvX (ORCPT ); Wed, 14 Apr 2021 09:51:23 -0400 X-Originating-IP: 93.61.96.190 Received: from uno.LocalDomain (93-61-96-190.ip145.fastwebnet.it [93.61.96.190]) (Authenticated sender: jacopo@jmondi.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0281B6000C; Wed, 14 Apr 2021 13:50:58 +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 v3 1/5] dt-bindings: media: max9286: Define 'maxim,gpio-poc' Date: Wed, 14 Apr 2021 15:51:24 +0200 Message-Id: <20210414135128.180980-2-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210414135128.180980-1-jacopo+renesas@jmondi.org> References: <20210414135128.180980-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 Define a new vendor property in the maxim,max9286 binding schema. The new property allows to declare that the remote camera power-over-coax is controlled by one of the MAX9286 gpio lines. As it is currently not possible to establish a regulator as consumer of the MAX9286 gpio controller for this purpose, the property allows to declare that the camera power is controlled by the MAX9286 directly. The property accepts a gpio-index (0 or 1) and one line polarity flag as defined by dt-bindings/gpio/gpio.h. Signed-off-by: Jacopo Mondi --- .../bindings/media/i2c/maxim,max9286.yaml | 53 ++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index ee16102fdfe7..480a491f3744 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml @@ -70,6 +70,24 @@ properties: a remote serializer whose high-threshold noise immunity is not enabled is 100000 micro volts + maxim,gpio-poc: + $ref: '/schemas/types.yaml#/definitions/uint32-array' + minItems: 2 + maxItems: 2 + description: | + Identifier of gpio line that controls Power over Coax to the cameras and + the associated polarity flag (GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW) + as defined in . + + When the remote cameras power is controlled by one of the MAX9286 gpio + lines, this property has to be used to specify which line among the two + available ones controls the remote camera power enablement. + + When this property is used it is not possible to register a gpio + controller as the gpio lines are controlled directly by the MAX9286 and + not available for consumers, nor the 'poc-supply' property should be + specified. + ports: $ref: /schemas/graph.yaml#/properties/ports @@ -182,7 +200,6 @@ required: - reg - ports - i2c-mux - - gpio-controller additionalProperties: false @@ -327,4 +344,38 @@ examples: }; }; }; + + /* + * Example of a deserializer that controls the camera Power over Coax + * through one of its gpio lines. + */ + gmsl-deserializer@6c { + compatible = "maxim,max9286"; + reg = <0x6c>; + enable-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; + + /* + * The remote camera power is controlled by MAX9286 GPIO line #0. + * No 'poc-supply' nor 'gpio-controller' are specified. + */ + maxim,gpio-poc = <0 GPIO_ACTIVE_LOW>; + + /* + * Do not describe connections as they're the same as in the previous + * example. + */ + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@4 { + reg = <4>; + }; + }; + + i2c-mux { + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; -- 2.31.1