Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2446035lqo; Mon, 20 May 2024 06:20:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIf5SWYM6eKGk1vSufteYVpvg/Jhp+nZttSVI0im6NtcGW6S2ai08dXgeBwKQTyEjcMAKcQIGD57wcu4Q6J7XwmQ12YFvluJ5cKuu14w== X-Google-Smtp-Source: AGHT+IENO+2u74/IUVE9EvN2FGHbHsvpayTS2N6NH5RPKMbRk/aiROwV0jMig7YvKWJinY80Uamd X-Received: by 2002:a05:6214:5c47:b0:6a9:ad5d:faa0 with SMTP id 6a1803df08f44-6a9ad5dfb52mr41581386d6.11.1716211257918; Mon, 20 May 2024 06:20:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716211257; cv=pass; d=google.com; s=arc-20160816; b=KfLbqaYSXwuyPnsybSmMxILMZHpjzOmw1Nmu7vG0y9jXMihF+/0wGE4L8otzriOtPm UiBWrqlt6fCufU3lALUKqWPD95x2u9jlLc69tgmTcQ9EVwshrH0jo6B5OZkZqRDyYvXC LQcRFl+8l33Mn9Qo0Y589nZaZHvnKvsj4XFMcooDETpd8V0Q5xLykt0lPlw3Ae94jAta qvELnFx26hJA0oVKWG9n65Mcyiahbe/gQFT8jWx5d68Yj+khbqDvbJMR68jrnpi050Pa ML0FLN1gSU5/+IX1UFXaDza2041/PNdtdWFdX6wVr4aL+qhaOW8oSe8FC2hI27HIy9+T cCig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=hpoD7IfFyo0fRXVXGRhMKLv7hvGmowk4hNOwLuLBHAQ=; fh=MAq6tnBUSrHDo4JPOMIwAzTtWQtzrf1jQIfa1YyY1Q4=; b=Tf/q5TnZaI4ijMXfilxds/5MAUvFisN9KytpV9dApMEK1wfaSQGRCa6WAtIlUiHq1t 7tKV15r3/PqeCRMNVB+wbUo4dW7zDPd9SX1pMVpM8gO2Px6+5YIDQ+mIzvGAw5HnNvO5 W5Qsl+AyQMIWuyiCAixJKOyNmviS+/wrqFbVXLqOhipTXLR66qWsHTqY90VexFb6lKB3 zcmBcuWSi67jpHSMRZQKfgY1ZqucGptj3baqxWguxdB65EH71MJsLRc8OyhrXjKOMOrI JBCp705rcHFoOdh2XylC+DIkIUey8XuwFdeDzjncDlxYXxKc5zB75CaaHTE8Ak3xoZVG +0aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=Gi413aOO; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-183782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a947ae9a2csi44718576d6.513.2024.05.20.06.20.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 06:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=Gi413aOO; arc=pass (i=1 spf=pass spfdomain=raspberrypi.com dkim=pass dkdomain=raspberrypi.com dmarc=pass fromdomain=raspberrypi.com); spf=pass (google.com: domain of linux-kernel+bounces-183782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183782-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=raspberrypi.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 969011C21518 for ; Mon, 20 May 2024 13:20:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00370136651; Mon, 20 May 2024 13:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="Gi413aOO" Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CFA454FA1 for ; Mon, 20 May 2024 13:20:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716211248; cv=none; b=r4BonLmSObga4P+Ca/LEYDxiPHIkkKrZBrka0Ve0YRQd3vVNe2LHzBqJpiboofw0qTsLeugyh5gMjw8bC0sif4MEIZonFJX/3HIteYWNfJZ64wXx9vDExnts3581FoNxbTEToDL/WPsamkJ6KNIYv3NIdiOhplGM7JpHaGHsFTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716211248; c=relaxed/simple; bh=ZtzndvGkIGuejxzhOSScRg7IFRuZt6nV23246Vkm7LU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=IbRgNAYFQgbiFlZNdZglbsGSm7W6CmUYJVN7BzR9u8XtVyCuuEd9sPxPQO15wdBRDgw5nvd/l+A9uLwUsmJ64fkv5a/zNBcT8/d+F+07GQZOpZRvL+rn3XfpKR0tLWrdAMasmcx0dBadCRDsX35yGKhO6yafiqDJuPpNYdx6e1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=Gi413aOO; arc=none smtp.client-ip=209.85.219.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-de45dba15feso2438091276.3 for ; Mon, 20 May 2024 06:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1716211244; x=1716816044; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hpoD7IfFyo0fRXVXGRhMKLv7hvGmowk4hNOwLuLBHAQ=; b=Gi413aOOHZC8oi/vIxiokZn6wPLk1GwKQisEgY9YXEYwHF4JEYQCv6oxrMMDZH8zxn sZ3pkNx+z3MffKoEv4oZo4Dug06YaSMPc7WuoBu+rDzK7es9E2GGVhNPy+VSvsK6Ipnv Ma7FAcwb7N/rw/jKevDJ6MUwossqrJ+maZyrTSMORnkqarhEv1MCDO4XCyGXGEX/wBIf FX8wY8poBv96TLV8D6Qr8xIRmCGTddAANkVJsZUvonmPWYyk7x74py7qITor9xWLLrq7 HEE9Cu6Bf0ohpJy0xNYC9ecUaH4YA/5/L+XwKSkvmZ1kUxnLmEeiWVR6M2/sU6uE4XeI NJWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716211244; x=1716816044; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hpoD7IfFyo0fRXVXGRhMKLv7hvGmowk4hNOwLuLBHAQ=; b=IkqpxXMGwSWBptx10wxalVKzi45Cnhql/djFle6rTDsb2KCTHkcaU0rY2Xgreg3Gpu wX9NyOtDF4K7Z6ZA4UXz+lGtbqYOsAnGPjFGoX/8l1Q7t5hru9r+LmxT19bgEOKgVyu7 pJmPFNKtK6/KP/qMqsZ6a9TR9925zDgIbvt/SwwE9zX0R0GPzSm4aIsXnNOyu1mjycM8 RFj5WlBlfAUc2ibm2nXXr/bN/rX/uMBzDT9Ydw7LQYR31ZPPWqhk4DPx7KrCHi4hUF93 E/KB3FQGPQAjfadVFE17RCYmzffEVCcM7GDL/iQBj6tsnzxCrxHPY0adFRIZGmFfDU0u WPxg== X-Forwarded-Encrypted: i=1; AJvYcCUZj8pVVr74qMoaaJHORxR11xjI4eZmghoaEo2oebQ65QS042WtxJDpP/WYl9CXnCoV4xad/hukEWIWLXP3j1ayDwYC/oKoo0kl9XOm X-Gm-Message-State: AOJu0Ywz58pQFb1e4ECq54ohT91hZ36Om5OC4LF8n3mJAKQO/7KPKJa+ nWXHzq4WBg1HsUahzOPk+yhmGHDLoa47VxvaEE5hHDRb02Br9SErXNG0308ZH+U0hnd0Xb8BjH6 4iuaQcq9Gcqlk1bkiyyC+Iye4I1RKhPgYvppdgA== X-Received: by 2002:a5b:3ce:0:b0:de5:51d0:9a8d with SMTP id 3f1490d57ef6-dee4f334373mr26443106276.55.1716211243868; Mon, 20 May 2024 06:20:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501152442.1072627-1-git@luigi311.com> <20240501152442.1072627-22-git@luigi311.com> In-Reply-To: From: Dave Stevenson Date: Mon, 20 May 2024 14:20:28 +0100 Message-ID: Subject: Re: [PATCH v5 21/25] dt-bindings: media: imx258: Add binding for powerdown-gpio To: =?UTF-8?Q?Ond=C5=99ej_Jirman?= , Sakari Ailus , git@luigi311.com, linux-media@vger.kernel.org, dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, phone-devel@vger.kernel.org, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ond=C5=99ej On Mon, 20 May 2024 at 13:55, Ond=C5=99ej Jirman wrote: > > On Fri, May 17, 2024 at 08:31:35AM GMT, Sakari Ailus wrote: > > Hi Luis, > > > > On Wed, May 01, 2024 at 09:24:38AM -0600, git@luigi311.com wrote: > > > From: Ondrej Jirman > > > > > > Add powerdown-gpio binding as it is required for some boards. > > > > I thought the conclusion was that this wasn't a property of the sensor?= If > > it needs to be controlled, then this should take place somewhere else t= han > > in the sensor driver. > > It's a property of the sensor modules. It's just optional on > some, eg. (pin 8): > > https://assets-global.website-files.com/63b65bd4974577341e1fe194/654290= d4d0fb173e87f754ed_IMX_258_FF_drawing.png > > Where else should it be so that the module is described properly in the > DT and the powerdown signal can be used as part of powerup/down sequence > of the sensor? From v3 [1] Luis reported testing dropping the powerdown-gpio on a PPP and it working fine. I linked to the IMX258 datasheet in the same thread[2], and that datasheet does not include such a signal on the imx258 sensor itself. If your module has a powerdown gpio, then you'll have to ask the module vendor what it is actually connected to. Potentially it relates to the VCM driver rather than the sensor. Dave [1] https://www.spinics.net/lists/linux-media/msg252519.html [2] https://www.spinics.net/lists/linux-media/msg252496.html > regards, > o. > > > > > > > Signed-off-by: Ondrej Jirman > > > Signed-off-by: Luis Garcia > > > Reviewed-by: Krzysztof Kozlowski > > > Reviewed-by: Pavel Machek > > > --- > > > Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml | 4 +++= + > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx258.= yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > > index c978abc0cdb3..33338139e6e8 100644 > > > --- a/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > > +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx258.yaml > > > @@ -36,6 +36,10 @@ properties: > > > reg: > > > maxItems: 1 > > > > > > + powerdown-gpios: > > > + description: > > > + Reference to the GPIO connected to the PWDN pin, if any. > > > + > > > reset-gpios: > > > description: |- > > > Reference to the GPIO connected to the XCLR pin, if any. > > > > -- > > Regards, > > > > Sakari Ailus