[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250311182304.GA3925099-robh@kernel.org>
Date: Tue, 11 Mar 2025 13:23:04 -0500
From: Rob Herring <robh@...nel.org>
To: Cosmin Tanislav <demonsingur@...il.com>
Cc: Tomi Valkeinen <tomi.valkeinen@...asonboard.com>,
Cosmin Tanislav <cosmin.tanislav@...log.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Niklas Söderlund <niklas.soderlund@...natech.se>,
Julien Massot <julien.massot@...labora.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Bjorn Andersson <quic_bjorande@...cinc.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Arnd Bergmann <arnd@...db.de>, Taniya Das <quic_tdas@...cinc.com>,
Biju Das <biju.das.jz@...renesas.com>,
NÃcolas F . R . A . Prado <nfraprado@...labora.com>,
Eric Biggers <ebiggers@...gle.com>,
Javier Carrasco <javier.carrasco@...fvision.net>,
Ross Burton <ross.burton@....com>,
Hans Verkuil <hverkuil@...all.nl>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Zhi Mao <zhi.mao@...iatek.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Dongcheng Yan <dongcheng.yan@...el.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Benjamin Mugnier <benjamin.mugnier@...s.st.com>,
Tommaso Merciai <tomm.merciai@...il.com>,
Dan Carpenter <dan.carpenter@...aro.org>,
Ihor Matushchak <ihor.matushchak@...box.net>,
Laurentiu Palcu <laurentiu.palcu@....nxp.com>,
linux-media@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-staging@...ts.linux.dev, linux-gpio@...r.kernel.org
Subject: Re: [RFC PATCH v2 04/16] dt-bindings: media: i2c: max96717: add
support for pinctrl/pinconf
On Sun, Mar 09, 2025 at 10:47:56AM +0200, 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@...il.com>
> ---
> .../media/i2c/maxim,max96717-pinctrl.yaml | 71 +++++++++++++++++++
> .../bindings/media/i2c/maxim,max96717.yaml | 16 ++++-
> MAINTAINERS | 1 +
> 3 files changed, 87 insertions(+), 1 deletion(-)
> create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml
> new file mode 100644
> index 000000000000..347e66a5320c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml
> @@ -0,0 +1,71 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (C) 2025 Analog Devices Inc.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/i2c/maxim,max96717-pinctrl.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Maxim GMSL2 Serializer Pinctrl
> +
> +maintainers:
> + - Cosmin Tanislav <cosmin.tanislav@...log.com>
> +
> +allOf:
> + - $ref: /schemas/pinctrl/pincfg-node.yaml#
> + - $ref: /schemas/pinctrl/pinmux-node.yaml#
> +
> +unevaluatedProperties: false
> +
> +properties:
> + function: true
> + pins: true
> + drive-open-drain: true
> + drive-push-pull: true
> + bias-disable: true
> + bias-pull-up: true
> + bias-pull-down: true
> + output-disable: true
> + output-enable: true
> + output-low: true
> + output-high: true
> + slew-rate: true
> + input-enable: true
> +
> + 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.
Use normally wrapping or blank line between paragraphs.
> + 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
> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> index dd28cc397674..0a43582168a8 100644
> --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
> @@ -120,7 +120,21 @@ required:
> - reg
> - ports
>
> -additionalProperties: false
> +additionalProperties:
> + anyOf:
> + - type: object
> + allOf:
> + - $ref: /schemas/media/i2c/maxim,max96717-pinctrl.yaml#
You can drop the allOf here.
> +
> + unevaluatedProperties: false
> +
> + - type: object
> + additionalProperties:
> + type: object
> + allOf:
> + - $ref: /schemas/media/i2c/maxim,max96717-pinctrl.yaml#
And here.
> +
> + unevaluatedProperties: false
Do you really need to support 2 forms?
This also allows the node names to be anything. We do that for existing
cases, but for new ones you should define some prefix or suffix.
Typically, '-pins$' is used.
Rob
Powered by blists - more mailing lists