devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cosmin Tanislav <demonsingur@gmail.com>
To: Rob Herring <robh@kernel.org>
Cc: "Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"Cosmin Tanislav" <cosmin.tanislav@analog.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Julien Massot" <julien.massot@collabora.com>,
	"Catalin Marinas" <catalin.marinas@arm.com>,
	"Will Deacon" <will@kernel.org>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Bartosz Golaszewski" <brgl@bgdev.pl>,
	"Bjorn Andersson" <quic_bjorande@quicinc.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
	"Heiko Stuebner" <heiko@sntech.de>,
	"Biju Das" <biju.das.jz@bp.renesas.com>,
	"Taniya Das" <quic_tdas@quicinc.com>,
	"Nícolas F . R . A . Prado" <nfraprado@collabora.com>,
	"Eric Biggers" <ebiggers@google.com>,
	"Javier Carrasco" <javier.carrasco@wolfvision.net>,
	"Ross Burton" <ross.burton@arm.com>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Hans Verkuil" <hverkuil@xs4all.nl>,
	"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
	"Umang Jain" <umang.jain@ideasonboard.com>,
	"Zhi Mao" <zhi.mao@mediatek.com>,
	"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
	"Dongcheng Yan" <dongcheng.yan@intel.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
	"Tommaso Merciai" <tomm.merciai@gmail.com>,
	"Dan Carpenter" <dan.carpenter@linaro.org>,
	"Ricardo Ribalda" <ribalda@chromium.org>,
	"Ihor Matushchak" <ihor.matushchak@foobox.net>,
	"Laurentiu Palcu" <laurentiu.palcu@oss.nxp.com>,
	linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org
Subject: Re: [RFC PATCH 09/24] dt-bindings: media: i2c: max96714: make i2c-gate conditional on compatible
Date: Mon, 10 Mar 2025 14:52:57 +0200	[thread overview]
Message-ID: <a678823b-de37-461f-991f-fe8b3a7e7c40@gmail.com> (raw)
In-Reply-To: <20250310123207.GA3853920-robh@kernel.org>



On 3/10/25 2:32 PM, Rob Herring wrote:
> On Sat, Mar 08, 2025 at 08:33:38PM +0200, Cosmin Tanislav wrote:
>> Devices to be added in following patches don't use I2C gate.
>>
>> Make this property conditional on the compatible strings.
>>
>> Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
>> ---
>>   .../bindings/media/i2c/maxim,max96714.yaml    | 21 ++++++++++++-------
>>   1 file changed, 13 insertions(+), 8 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml
>> index 2f453189338f..d0a2aaf7df9c 100644
>> --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml
>> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml
>> @@ -84,14 +84,6 @@ properties:
>>       required:
>>         - port@1
>>   
>> -  i2c-gate:
>> -    $ref: /schemas/i2c/i2c-gate.yaml
>> -    unevaluatedProperties: false
>> -    description:
>> -      The MAX96714 will pass through and forward the I2C requests from the
>> -      incoming I2C bus over the GMSL2 link. Therefore it supports an i2c-gate
>> -      subnode to configure a serializer.
>> -
>>     port0-poc-supply:
>>       description: Regulator providing Power over Coax for the GMSL port
>>   
>> @@ -101,6 +93,19 @@ required:
>>     - ports
>>   
>>   additionalProperties: false
>> +allOf:
>> +  - if:
>> +      properties:
>> +        compatible:
>> +          contains:
>> +            enum:
>> +              - maxim,max96714
>> +              - maxim,max96714f
>> +    then:
>> +      properties:
>> +        i2c-gate:
> 
> Leave the original definition, invert the 'if', and here you just need:
> 
> i2c-gate: false
> 

Hi Rob.

Thanks for your comments.

After noticing that my dt-schema validation scripts are failing (because
of the jsonschema version incompatibility), I fixed them and then fixed
all the issues and sent a V2 where I introduce a separate file for these
bindings since they all have a different number of ports compared to the
max96714 one.

So the V1 of these patches have been superseded.

>> +          $ref: /schemas/i2c/i2c-gate.yaml
>> +          unevaluatedProperties: false
>>   
>>   examples:
>>     - |
>> -- 
>> 2.48.1
>>


  reply	other threads:[~2025-03-10 12:53 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-08 18:33 [RFC PATCH 00/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 01/24] dt-bindings: media: i2c: max96717: add myself as maintainer Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 02/24] dt-bindings: media: i2c: max96717: reflow text Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 03/24] dt-bindings: media: i2c: max96717: add support for I2C ATR Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 04/24] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Cosmin Tanislav
2025-03-08 20:44   ` Rob Herring (Arm)
2025-03-08 18:33 ` [RFC PATCH 05/24] dt-bindings: media: i2c: max96717: add support for MAX9295A Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 06/24] dt-bindings: media: i2c: max96717: add support for MAX96793 Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 07/24] dt-bindings: media: i2c: max96714: add myself as maintainer Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 08/24] dt-bindings: media: i2c: max96714: reflow text Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 09/24] dt-bindings: media: i2c: max96714: make i2c-gate conditional on compatible Cosmin Tanislav
2025-03-08 20:44   ` Rob Herring (Arm)
2025-03-10 12:32   ` Rob Herring
2025-03-10 12:52     ` Cosmin Tanislav [this message]
2025-03-08 18:33 ` [RFC PATCH 10/24] dt-bindings: media: i2c: max96714: make ports " Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 11/24] dt-bindings: media: i2c: max96714: make supply " Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 12/24] dt-bindings: media: i2c: max96714: add support for MAX9296A Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 13/24] dt-bindings: media: i2c: max96714: add support for MAX96716A Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 14/24] dt-bindings: media: i2c: max96714: add support for MAX96792A Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 15/24] dt-bindings: media: i2c: max96712: add myself as maintainer Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 16/24] dt-bindings: media: i2c: max96712: use pattern properties for input ports Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 17/24] dt-bindings: media: i2c: max96712: increase number of output ports Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 18/24] dt-bindings: media: i2c: max96712: add support for I2C MUX Cosmin Tanislav
2025-03-08 19:44   ` Rob Herring (Arm)
2025-03-08 18:33 ` [RFC PATCH 19/24] dt-bindings: media: i2c: max96712: add support for POC supplies Cosmin Tanislav
2025-03-08 19:59   ` Rob Herring (Arm)
2025-03-08 18:33 ` [RFC PATCH 20/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 21/24] arm64: defconfig: disable deprecated MAX96712 driver Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 22/24] staging: media: remove " Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 23/24] media: i2c: remove MAX96717 driver Cosmin Tanislav
2025-03-08 18:33 ` [RFC PATCH 24/24] media: i2c: remove MAX96714 driver Cosmin Tanislav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a678823b-de37-461f-991f-fe8b3a7e7c40@gmail.com \
    --to=demonsingur@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=benjamin.mugnier@foss.st.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=brgl@bgdev.pl \
    --cc=broonie@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=conor+dt@kernel.org \
    --cc=cosmin.tanislav@analog.com \
    --cc=dan.carpenter@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dongcheng.yan@intel.com \
    --cc=ebiggers@google.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=heiko@sntech.de \
    --cc=hverkuil@xs4all.nl \
    --cc=ihor.matushchak@foobox.net \
    --cc=javier.carrasco@wolfvision.net \
    --cc=julien.massot@collabora.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=krzk+dt@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=laurentiu.palcu@oss.nxp.com \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=nfraprado@collabora.com \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=quic_bjorande@quicinc.com \
    --cc=quic_tdas@quicinc.com \
    --cc=ribalda@chromium.org \
    --cc=robh@kernel.org \
    --cc=ross.burton@arm.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomi.valkeinen@ideasonboard.com \
    --cc=tomm.merciai@gmail.com \
    --cc=umang.jain@ideasonboard.com \
    --cc=will@kernel.org \
    --cc=zhi.mao@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).