linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Cosmin Tanislav <demonsingur@gmail.com>
Cc: "Cosmin Tanislav" <cosmin.tanislav@analog.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"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" <andersson@kernel.org>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>,
	"Vignesh Raghavendra" <vigneshr@ti.com>,
	"Nícolas F . R . A . Prado" <nfraprado@collabora.com>,
	"Taniya Das" <quic_tdas@quicinc.com>,
	"Liu Ying" <victor.liu@nxp.com>,
	"Ross Burton" <ross.burton@arm.com>,
	"Elinor Montmasson" <elinor.montmasson@savoirfairelinux.com>,
	"Eric Biggers" <ebiggers@google.com>,
	"Hans Verkuil" <hverkuil@xs4all.nl>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>,
	"Zhi Mao" <zhi.mao@mediatek.com>,
	"Dongcheng Yan" <dongcheng.yan@intel.com>,
	"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
	"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
	"Tommaso Merciai" <tomm.merciai@gmail.com>,
	"Dan Carpenter" <dan.carpenter@linaro.org>,
	"Ricardo Ribalda" <ribalda@chromium.org>,
	"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: [PATCH v3 03/19] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf
Date: Wed, 14 May 2025 17:01:28 -0500	[thread overview]
Message-ID: <20250514220128.GA3111478-robh@kernel.org> (raw)
In-Reply-To: <20250512212832.3674722-4-demonsingur@gmail.com>

On Tue, May 13, 2025 at 12:28:12AM +0300, Cosmin Tanislav wrote:
> MAX96717 is capable of configuring various pin properties.
> 
> Add pinctrl/pinconf properties to support this usecase.
> 
> Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
> ---
>  .../bindings/media/i2c/maxim,max96717.yaml    | 110 ++++++++++++++++++
>  MAINTAINERS                                   |   1 +
>  2 files changed, 111 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> index 167c3dd50683..5998e2518be9 100644
> --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> @@ -121,6 +121,116 @@ required:
>    - reg
>    - ports
>  
> +patternProperties:
> +  '-pins$':
> +    type: object
> +    additionalProperties: false
> +
> +    properties:
> +      function:
> +        enum: [gpio, rclkout]
> +
> +      pins: true
> +      drive-open-drain: true
> +      drive-push-pull: true
> +      bias-disable: true
> +      output-disable: true
> +      output-enable: true
> +      output-low: true
> +      output-high: true
> +      input-enable: true
> +
> +      slew-rate:
> +        description: |
> +          Slew rate.
> +          0 - Fastest
> +          1 - Fast
> +          2 - Slow
> +          3 - Slowest
> +        maximum: 3
> +
> +      bias-pull-up:
> +        oneOf:
> +          - type: boolean
> +            description: Enable regular 40kOhm pull-up
> +          - enum: [ 40000, 1000000 ]
> +            description: Enable either the 40kOhm or the 1MOhm pull-up
> +
> +      bias-pull-down:
> +        oneOf:
> +          - type: boolean
> +            description: Enable regular 40kOhm pull-down
> +          - enum: [ 40000, 1000000 ]
> +            description: Enable either the 40kOhm or the 1MOhm pull-down
> +
> +      maxim,jitter-compensation:
> +        type: boolean
> +        description: Enables jitter compensation.
> +
> +      maxim,gmsl-tx:
> +        type: boolean
> +        description: Enable transmitting pin value to GMSL link.
> +
> +      maxim,gmsl-rx:
> +        type: boolean
> +        description: Enable receiving pin value from GMSL link.
> +
> +      maxim,gmsl-tx-id:
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        description:
> +          Identifier used while transmitting value to GMSL link.
> +          Default value matches the pin number.
> +        minimum: 0
> +        maximum: 31
> +
> +      maxim,gmsl-rx-id:
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        description:
> +          Identifier used while receiving value from GMSL link.
> +          Default value matches the pin number.
> +        minimum: 0
> +        maximum: 31
> +
> +      maxim,rclkout-clock:
> +        $ref: /schemas/types.yaml#/definitions/uint32
> +        description: |
> +          Clock value.
> +          0 - XTAL / 1 = 25MHz
> +          1 - XTAL / 2 = 12.5MHz
> +          2 - XTAL / 4 = 6.25MHz
> +          3 - Reference PLL output
> +        minimum: 0
> +        maximum: 3
> +
> +    required:
> +      - pins
> +      - function
> +
> +    allOf:
> +      - $ref: /schemas/pinctrl/pincfg-node.yaml#
> +      - $ref: /schemas/pinctrl/pinmux-node.yaml#
> +
> +      - if:
> +          properties:
> +            function:
> +              const: gpio
> +        then:
> +          properties:
> +            pins:
> +              items:
> +                enum: [mfp0, mfp1, mfp2, mfp3, mfp4, mfp5, mfp6, mfp7,
> +                       mfp8, mfp9, mfp10]
> +
> +      - if:
> +          properties:
> +            function:
> +              const: rclkout
> +        then:
> +          properties:
> +            pins:
> +              items:
> +                enum: [mfp0, mfp1, mfp2, mfp3, mfp4, mfp7, mfp8]
> +
>  additionalProperties: false
>  
>  allOf:
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 8f463ebca056..f8ffb7cff9c5 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -14201,6 +14201,7 @@ M:	Julien Massot <julien.massot@collabora.com>
>  M:	Cosmin Tanislav <cosmin.tanislav@analog.com>
>  L:	linux-media@vger.kernel.org
>  S:	Maintained
> +F:	Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml

Don't think you need this...

>  F:	Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
>  F:	drivers/media/i2c/max96717.c
>  
> -- 
> 2.49.0
> 


  reply	other threads:[~2025-05-14 22:04 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-12 21:28 [PATCH v3 00/19] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Cosmin Tanislav
2025-05-12 21:28 ` [PATCH v3 01/19] dt-bindings: media: i2c: max96717: add myself as maintainer Cosmin Tanislav
2025-05-14 21:56   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 02/19] dt-bindings: media: i2c: max96717: add support for I2C ATR Cosmin Tanislav
2025-05-14 21:58   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 03/19] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Cosmin Tanislav
2025-05-14 22:01   ` Rob Herring [this message]
2025-05-12 21:28 ` [PATCH v3 04/19] dt-bindings: media: i2c: max96717: add support for MAX9295A Cosmin Tanislav
2025-05-14 22:02   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 05/19] dt-bindings: media: i2c: max96717: add support for MAX96793 Cosmin Tanislav
2025-05-14 22:03   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 06/19] dt-bindings: media: i2c: max96712: add myself as maintainer Cosmin Tanislav
2025-05-14 22:03   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 07/19] dt-bindings: media: i2c: max96712: use pattern properties for ports Cosmin Tanislav
2025-05-14 22:04   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 08/19] dt-bindings: media: i2c: max96712: add support for I2C ATR Cosmin Tanislav
2025-05-14 22:04   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 09/19] dt-bindings: media: i2c: max96712: add support for POC supplies Cosmin Tanislav
2025-05-14 22:05   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 10/19] dt-bindings: media: i2c: max96712: deprecate enable-gpios Cosmin Tanislav
2025-05-14 22:10   ` Rob Herring
2025-05-12 21:28 ` [PATCH v3 11/19] dt-bindings: media: i2c: max96712: add support for MAX96724F/R Cosmin Tanislav
2025-05-14 22:10   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 12/19] dt-bindings: media: i2c: max96714: add myself as maintainer Cosmin Tanislav
2025-05-14 22:10   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 13/19] dt-bindings: media: i2c: max96714: add support for MAX96714R Cosmin Tanislav
2025-05-14 22:11   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 14/19] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A Cosmin Tanislav
2025-05-12 23:25   ` Rob Herring (Arm)
2025-05-12 21:28 ` [PATCH v3 16/19] arm64: defconfig: disable deprecated MAX96712 driver Cosmin Tanislav
2025-05-12 21:28 ` [PATCH v3 17/19] staging: media: remove " Cosmin Tanislav
2025-05-12 21:28 ` [PATCH v3 18/19] media: i2c: remove MAX96717 driver Cosmin Tanislav
2025-05-12 21:28 ` [PATCH v3 19/19] media: i2c: remove MAX96714 driver Cosmin Tanislav
2025-05-12 21:57 ` [PATCH v3 00/19] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Niklas Söderlund
2025-05-19 19:40 ` Jakub Kostiw
     [not found] ` <20250512212832.3674722-16-demonsingur@gmail.com>
2025-05-19 20:08   ` [PATCH v3 15/19] " Jakub Kostiw

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=20250514220128.GA3111478-robh@kernel.org \
    --to=robh@kernel.org \
    --cc=andersson@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=benjamin.mugnier@foss.st.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=demonsingur@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dongcheng.yan@intel.com \
    --cc=ebiggers@google.com \
    --cc=elinor.montmasson@savoirfairelinux.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=hverkuil@xs4all.nl \
    --cc=julien.massot@collabora.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=krzk+dt@kernel.org \
    --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_tdas@quicinc.com \
    --cc=ribalda@chromium.org \
    --cc=ross.burton@arm.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomm.merciai@gmail.com \
    --cc=victor.liu@nxp.com \
    --cc=vigneshr@ti.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).