Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2227785lqb; Mon, 27 May 2024 12:02:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU6O3N64byyVWyHM5VRuYGM3RDt0qUkIy0opTemKOkHEl2NtkGIGGFL+G/2KMaQDW9ay87oHY5BXbrxQ1GQDb+UkG8+0KCdwZLY2HEK/A== X-Google-Smtp-Source: AGHT+IFhTQiJ2n55cEXK+fBJe2TuCLK8J5kvMBt5TZ11BnM6ALVjHE5QQq7NyAQg4W+JjXZ0T7ko X-Received: by 2002:a05:6e02:1748:b0:373:906f:d45b with SMTP id e9e14a558f8ab-373906feacemr66491255ab.32.1716836548669; Mon, 27 May 2024 12:02:28 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68229a303d0si6641086a12.664.2024.05.27.12.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 12:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Zr627DWc; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-191355-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191355-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4490D281562 for ; Mon, 27 May 2024 19:02:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 471D91649D1; Mon, 27 May 2024 19:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Zr627DWc" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 784301649CF for ; Mon, 27 May 2024 19:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716836463; cv=none; b=kHv/Wa3uQQmkrLXj5ZIb9F1HT1F9d1Jr9149Qj/fzvif+jzbyWQxhbGHqOKuN12893dfkwT5j1yCsFfg8KTCsaw29CVMwtoLCgtTOeabSEABrecJYne5kwQkYFfVHcxY7FXHUxXMfnPOAVFqgqorqAA9Hwfe0Gp7V58ZNGP2E2o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716836463; c=relaxed/simple; bh=ZJykFrLkMw27Ap6h6e1bwUeJqwTUQU6oAVNdAHpj1/Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bRNoFBiirU33Go5jGh96GUABgn0zvXitHldzOEQT5xsLgidstpNQINTBRxxrdVfcohLh9QQCDOaKcT7bVFO7aWaPET3lA82J9rmhMnkYapXdVT0QMA3PnGjxAfnmNegsFsRZyK23BBAS0ADYiqmZseVkSwn9NZZLTVBnYX1z9xM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Zr627DWc; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5766cd9ca1bso54571a12.0 for ; Mon, 27 May 2024 12:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716836460; x=1717441260; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=VTJ3szqoHmc1+yUf2WmkBbMeHBDSss7x5+bTQB5BW00=; b=Zr627DWc6Nb6ESeXj2t4BtxB2RK7aGgqVyCjB9arygWsAd4DI9g/wE21/HNewV3YG6 xjgfVO2wuV8E6kwUA8qydPlnjGeBQYa6VnZlpDP8WvxU/N0ld2cZDzezPCIUzse2dUIv /OnD26u/LDWNS8GeSxK48rloPlVJPYurZFZ5KsDsiY2+opQLmArVWrqmZEI3LjEm1Gqe Z45pm64STqeuQPdaGeqd/1yx77++/S4UsqzXsRzxLUFlJhBosR2eja/7uR90tbPDkQtI AgM4o4rE1a/MEjLN8RxpCDhVWn6uzWUJicnZS4bDTBMyvLexEsgfabrjAcLAHS7AeCkQ 0uqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716836460; x=1717441260; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VTJ3szqoHmc1+yUf2WmkBbMeHBDSss7x5+bTQB5BW00=; b=XcvXvViHnxdsFMOcfLW2EOBsN9aAPTrFA6Zk+BUkaR6pAgbbuskejy3kUw+vAHFwrT 1UyG9boqWHKQHLkBjj54S/nuTvrjeEancAI8YPDXqo8OLuqZ+IsmV0m3jladr0UMryMO Nx50qG5Z6P7nRnT0+hN+FiECbbaMvg74XzeT2ICP8E+mH2FpZhw4NhM/xxl8M6pLCSYF Z13Wavj31IRTpO3YfYw4OKWDodWUFQb6jMI3zMPe1XWCSPuzSSMoQo0K/MbHDEpd/KwN t0GDaXKH5MWtV7s1YAWjVQJTX7zxNN8errLe4SWFly28UYGkt6eLkEh+LCdn3yF2ls19 yqOA== X-Forwarded-Encrypted: i=1; AJvYcCUCIF/rCvTJHvDQ1HkPYReXPXnpUx/4g/N8bq/xfG4H2aZ6mcGotENNLhAE/GiDmk1ijgSIGTReCk16bSkhtk8PmIiZgejbhnKv/g9q X-Gm-Message-State: AOJu0YzsYIvEN+mLho4OHKCIz46/0IQ6iiuJ621RC6sNgqHED4OZzPYX qbKsJu/C2Qloxi8It6qQf1PSSbd8Un5kG03gu5I18Ca65AyKjEnJmGQKow5v0bI= X-Received: by 2002:a50:a402:0:b0:573:5c4f:27a8 with SMTP id 4fb4d7f45d1cf-57851a1ed5emr7722421a12.35.1716836459874; Mon, 27 May 2024 12:00:59 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57868fbbd8dsm3996346a12.8.2024.05.27.12.00.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 12:00:59 -0700 (PDT) Message-ID: Date: Mon, 27 May 2024 21:00:57 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] media: dt-bindings: Add ST VD56G3 camera sensor binding To: Sylvain Petinot , benjamin.mugnier@foss.st.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Sakari Ailus Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240521162950.6987-1-sylvain.petinot@foss.st.com> <20240521162950.6987-2-sylvain.petinot@foss.st.com> <2110ba34-658e-4d60-b524-2f5ead6c8d3e@linaro.org> <77fa3ed3-2341-4106-adf2-ec8bd9de91ff@foss.st.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMF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blD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <77fa3ed3-2341-4106-adf2-ec8bd9de91ff@foss.st.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27/05/2024 15:14, Sylvain Petinot wrote: >> >>> Signed-off-by: Sylvain Petinot >>> --- >>> .../bindings/media/i2c/st,st-vd56g3.yaml | 132 ++++++++++++++++++ >>> MAINTAINERS | 9 ++ >>> 2 files changed, 141 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/media/i2c/st,st-vd56g3.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/media/i2c/st,st-vd56g3.yaml b/Documentation/devicetree/bindings/media/i2c/st,st-vd56g3.yaml >>> new file mode 100644 >>> index 000000000000..22cb2557e311 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/media/i2c/st,st-vd56g3.yaml >> >> Why duplicated 'st'? > > Legacy : our first st-mipid02 driver was upstream this way few years back. > > We have 3 options : > > 1- keep this unpleasant naming to keep consistency with st-mipid02 [1] > and st-vgxy61 [2] ? Unpleasant? Please follow generic rules. Filename must match compatible and compatible must follow vendor,device format. > 2- rename this driver properly ('vd56g3') and keep the two others the > old way (I personally don't like this option) We do not talk about driver here. Does not matter. > 3- rename this driver properly ('vd56g3') and in a second patch rename > the two others drivers. > > I would be interested to get Sakari's opinion on this subject. About what? Renaming drivers? > > [1]: > https://elixir.bootlin.com/linux/v6.9.1/source/drivers/media/i2c/st-mipid02.c > > [2]: > https://elixir.bootlin.com/linux/v6.9.1/source/drivers/media/i2c/st-vgxy61.c Howe are these drivers anyhow related to the *binding*? .. >>> + >>> + st,leds: >>> + description: >>> + Sensor's GPIOs used for external LED control. Signal being the enveloppe >>> + of the integration time. >> >> More information is needed. GPIOs coming from LED or SoC? What's the >> meaning of values? > > The vd56g3 image sensor provides 8 GPIOS that can be used for different > use cases (external led controls, synchronization between master/slave > sensors, external sensor trigger, etc.). This submission supports only > the first use case: the control of one(or multiple) external LED. What your driver supports is not really relevant. Describe hardware. > > The vd56g3 sensor family are optimized for visible and near infrared > scenes. In NIR, external IR leds are generally used for illumination. > > With such use case, a led (or a led driver) can be connected directly to > one of the 8 GPIOs of the sensor. On the driver side, when a led is > configured in the dt, the driver will configure the sensor accordingly. > It will also offer an optional "V4L2_FLASH_LED_MODE_FLASH" control to > start/stop the external control. > > Different signal modes are supported by the HW, but the default > (implemented) one is a "strobe" mode where signal is the envelope of the > integration time (IR led is on while image sensor is integrating). You did not explain the meaning of the property. Please describe the hardware and the meaning of values used in this property. Best regards, Krzysztof