* [PATCH v3 00/12] media: i2c: max9286: Small new features
@ 2022-12-14 23:38 Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 01/12] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-14 23:38 UTC (permalink / raw)
To: linux-media
Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham,
Niklas Söderlund, Thomas Nizan, Rob Herring,
Krzysztof Kozlowski, Liam Girdwood, Mark Brown, devicetree
Hello,
This small patch series adds a few new features to the max9286 driver:
- Support for per-port supplies (01/12 and 04/12)
- Remote I2C bus speed selection (02/12 and 09/12)
- GMSL bus width selection (03/12 and 10/12)
- Manual framesync operation (05/12)
- RAW12 support (06/12 and 07/12)
The remaining patches are small cleanups. Please see individual patches
for details.
Compared to v2, I've incorporated all review comments and rebased the
series on top of the latest media tree (with a notable conflict due to
the PoC GPIO support that has been merged in the mainline kernel). Most
of v2 has received Reviewed-by tags, only a few patches are missing
them, so I have good hopes to land this in v6.3.
Laurent Pinchart (11):
dt-bindings: media: i2c: max9286: Add support for per-port supplies
dt-bindings: media: i2c: max9286: Add property to select I2C speed
dt-bindings: media: i2c: max9286: Add property to select bus width
media: i2c: max9286: Support manual framesync operation
media: i2c: max9286: Rename MAX9286_DATATYPE_RAW11 to RAW12
media: i2c: max9286: Support 12-bit raw bayer formats
media: i2c: max9286: Define macros for all bits of register 0x15
media: i2c: max9286: Configure remote I2C speed from device tree
media: i2c: max9286: Configure bus width from device tree
media: i2c: max9286: Select HS as data enable signal
media: i2c: max9286: Print power-up GMSL link configuration
Thomas Nizan (1):
media: i2c: max9286: Add support for port regulators
.../bindings/media/i2c/maxim,max9286.yaml | 51 +-
drivers/media/i2c/max9286.c | 465 +++++++++++++++---
2 files changed, 430 insertions(+), 86 deletions(-)
base-commit: 3178804c64ef7c8c87a53cd5bba0b2942dd64fec
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3 01/12] dt-bindings: media: i2c: max9286: Add support for per-port supplies
2022-12-14 23:38 [PATCH v3 00/12] media: i2c: max9286: Small new features Laurent Pinchart
@ 2022-12-14 23:38 ` Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 03/12] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart
2 siblings, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-14 23:38 UTC (permalink / raw)
To: linux-media
Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham,
Niklas Söderlund, Thomas Nizan, Rob Herring,
Krzysztof Kozlowski, Liam Girdwood, Mark Brown, devicetree
Power supplies for the ports can be controlled per port depending on the
hardware design. Support per-port supplies in the DT bindings, mutually
exclusive with the global supply.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes since v2:
- Make maxim,gpio-poc and port[0-3]-poc-supply mutually exclusive
Changes since v1:
- Simplify mutual exclusion condition
---
.../bindings/media/i2c/maxim,max9286.yaml | 35 +++++++++++++------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
index 90315e217003..4f28690eabcd 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
@@ -39,7 +39,7 @@ properties:
maxItems: 1
poc-supply:
- description: Regulator providing Power over Coax to the cameras
+ description: Regulator providing Power over Coax to all the ports
enable-gpios:
description: GPIO connected to the \#PWDN pin with inverted polarity
@@ -182,21 +182,36 @@ properties:
additionalProperties: false
+patternProperties:
+ "^port[0-3]-poc-supply$":
+ description: Regulator providing Power over Coax for a particular port
+
required:
- compatible
- reg
- ports
- i2c-mux
-# If 'maxim,gpio-poc' is present, then 'poc-supply' and 'gpio-controller'
-# are not allowed.
-if:
- required:
- - maxim,gpio-poc
-then:
- properties:
- poc-supply: false
- gpio-controller: false
+allOf:
+ # Only one way of specifying power supplies is allowed: 'maxim,gpio-poc',
+ # 'poc-supply' or per-port poc-supply. Additionally, if 'maxim,gpio-poc' is
+ # present, then 'gpio-controller' isn't allowed.
+ - if:
+ required:
+ - maxim,gpio-poc
+ then:
+ properties:
+ poc-supply: false
+ gpio-controller: false
+ patternProperties:
+ "^port[0-3]-poc-supply$": false
+
+ - if:
+ required:
+ - poc-supply
+ then:
+ patternProperties:
+ "^port[0-3]-poc-supply$": false
additionalProperties: false
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-14 23:38 [PATCH v3 00/12] media: i2c: max9286: Small new features Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 01/12] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart
@ 2022-12-14 23:38 ` Laurent Pinchart
2022-12-15 13:24 ` Rob Herring
2022-12-16 0:45 ` [PATCH v3.1 " Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 03/12] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart
2 siblings, 2 replies; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-14 23:38 UTC (permalink / raw)
To: linux-media
Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham,
Niklas Söderlund, Thomas Nizan, Rob Herring,
Krzysztof Kozlowski, devicetree
The I2C speed on the remote side (the I2C master bus of the connected
serializers) is configurable, and doesn't need to match the speed of the
local bus (the slave bus of the MAX9286). All remote buses must use the
same speed, and the MAX9286 needs to be programmed accordingly. Add a
new DT property to select the speed to make it configurable.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes since v2:
- Rename property to maxim,i2c-remote-bus-hz
- Specify the property type
---
.../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
index 4f28690eabcd..315a6eef6198 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
@@ -50,6 +50,14 @@ properties:
'#gpio-cells':
const: 2
+ maxim,i2c-remote-bus-hz:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ]
+ default: 105000
+ description: |
+ The I2C clock frequency for the remote I2C buses. The value must match
+ the configuration of the remote serializers.
+
maxim,reverse-channel-microvolt:
minimum: 30000
maximum: 200000
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 03/12] dt-bindings: media: i2c: max9286: Add property to select bus width
2022-12-14 23:38 [PATCH v3 00/12] media: i2c: max9286: Small new features Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 01/12] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart
@ 2022-12-14 23:38 ` Laurent Pinchart
2 siblings, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-14 23:38 UTC (permalink / raw)
To: linux-media
Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham,
Niklas Söderlund, Thomas Nizan, Rob Herring,
Krzysztof Kozlowski, devicetree
The GMSL serial data bus width is normally selected by the BWS pin, but
it can also be configured by software. Add a DT property that allows
overriding the value of the BWS-selected bus width to support systems
whose BWS pin doesn't result in the correct value.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes since v2:
- Specify the property type
---
.../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
index 315a6eef6198..fbacf2a45dfc 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
@@ -50,6 +50,14 @@ properties:
'#gpio-cells':
const: 2
+ maxim,bus-width:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [ 24, 27, 32 ]
+ description: |
+ The GMSL serial data bus width. This setting is normally controlled by
+ the BWS pin, but may be overridden with this property. The value must
+ match the configuration of the remote serializers.
+
maxim,i2c-remote-bus-hz:
$ref: /schemas/types.yaml#/definitions/uint32
enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ]
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-14 23:38 ` [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart
@ 2022-12-15 13:24 ` Rob Herring
2022-12-15 13:43 ` Laurent Pinchart
2022-12-16 0:45 ` [PATCH v3.1 " Laurent Pinchart
1 sibling, 1 reply; 10+ messages in thread
From: Rob Herring @ 2022-12-15 13:24 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Kieran Bingham, Rob Herring, devicetree, linux-media,
Jacopo Mondi, Niklas Söderlund, Krzysztof Kozlowski,
Thomas Nizan, linux-renesas-soc
On Thu, 15 Dec 2022 01:38:15 +0200, Laurent Pinchart wrote:
> The I2C speed on the remote side (the I2C master bus of the connected
> serializers) is configurable, and doesn't need to match the speed of the
> local bus (the slave bus of the MAX9286). All remote buses must use the
> same speed, and the MAX9286 needs to be programmed accordingly. Add a
> new DT property to select the speed to make it configurable.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
> ---
> Changes since v2:
>
> - Rename property to maxim,i2c-remote-bus-hz
> - Specify the property type
> ---
> .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-remote-bus-hz: '$ref' should not be valid under {'const': '$ref'}
hint: Standard unit suffix properties don't need a type $ref
from schema $id: http://devicetree.org/meta-schemas/core.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221214233825.13050-3-laurent.pinchart+renesas@ideasonboard.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-15 13:24 ` Rob Herring
@ 2022-12-15 13:43 ` Laurent Pinchart
2022-12-15 16:22 ` Rob Herring
0 siblings, 1 reply; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-15 13:43 UTC (permalink / raw)
To: Rob Herring
Cc: Kieran Bingham, Rob Herring, devicetree, linux-media,
Jacopo Mondi, Niklas Söderlund, Krzysztof Kozlowski,
Thomas Nizan, linux-renesas-soc
Hi Rob,
On Thu, Dec 15, 2022 at 07:24:38AM -0600, Rob Herring wrote:
> On Thu, 15 Dec 2022 01:38:15 +0200, Laurent Pinchart wrote:
> > The I2C speed on the remote side (the I2C master bus of the connected
> > serializers) is configurable, and doesn't need to match the speed of the
> > local bus (the slave bus of the MAX9286). All remote buses must use the
> > same speed, and the MAX9286 needs to be programmed accordingly. Add a
> > new DT property to select the speed to make it configurable.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > Reviewed-by: Rob Herring <robh@kernel.org>
> > ---
> > Changes since v2:
> >
> > - Rename property to maxim,i2c-remote-bus-hz
> > - Specify the property type
> > ---
> > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
>
> My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> on your patch (DT_CHECKER_FLAGS is new in v5.13):
>
> yamllint warnings/errors:
>
> dtschema/dtc warnings/errors:
> /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-remote-bus-hz: '$ref' should not be valid under {'const': '$ref'}
> hint: Standard unit suffix properties don't need a type $ref
> from schema $id: http://devicetree.org/meta-schemas/core.yaml#
I wonder how I missed that, as I've run dt_binding_check before
submitting. I'll fix it.
I'm a bit surprised though, all unit-suffixed properties use 32-bit
integers in the DT schema, while I can imagine that some may need a
64-bit integer. What's the recommendation in that case ?
> doc reference errors (make refcheckdocs):
>
> See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20221214233825.13050-3-laurent.pinchart+renesas@ideasonboard.com
>
> The base for the series is generally the latest rc1. A different dependency
> should be noted in *this* patch.
>
> If you already ran 'make dt_binding_check' and didn't see the above
> error(s), then make sure 'yamllint' is installed and dt-schema is up to
> date:
>
> pip3 install dtschema --upgrade
>
> Please check and re-submit after running the above command yourself. Note
> that DT_SCHEMA_FILES can be set to your schema file to speed up checking
> your schema. However, it must be unset to test all examples with your schema.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-15 13:43 ` Laurent Pinchart
@ 2022-12-15 16:22 ` Rob Herring
2022-12-15 16:46 ` Laurent Pinchart
0 siblings, 1 reply; 10+ messages in thread
From: Rob Herring @ 2022-12-15 16:22 UTC (permalink / raw)
To: Laurent Pinchart
Cc: Kieran Bingham, devicetree, linux-media, Jacopo Mondi,
Niklas Söderlund, Krzysztof Kozlowski, Thomas Nizan,
linux-renesas-soc
On Thu, Dec 15, 2022 at 03:43:28PM +0200, Laurent Pinchart wrote:
> Hi Rob,
>
> On Thu, Dec 15, 2022 at 07:24:38AM -0600, Rob Herring wrote:
> > On Thu, 15 Dec 2022 01:38:15 +0200, Laurent Pinchart wrote:
> > > The I2C speed on the remote side (the I2C master bus of the connected
> > > serializers) is configurable, and doesn't need to match the speed of the
> > > local bus (the slave bus of the MAX9286). All remote buses must use the
> > > same speed, and the MAX9286 needs to be programmed accordingly. Add a
> > > new DT property to select the speed to make it configurable.
> > >
> > > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > > Reviewed-by: Rob Herring <robh@kernel.org>
> > > ---
> > > Changes since v2:
> > >
> > > - Rename property to maxim,i2c-remote-bus-hz
> > > - Specify the property type
> > > ---
> > > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
> > > 1 file changed, 8 insertions(+)
> > >
> >
> > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> > on your patch (DT_CHECKER_FLAGS is new in v5.13):
> >
> > yamllint warnings/errors:
> >
> > dtschema/dtc warnings/errors:
> > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-remote-bus-hz: '$ref' should not be valid under {'const': '$ref'}
> > hint: Standard unit suffix properties don't need a type $ref
> > from schema $id: http://devicetree.org/meta-schemas/core.yaml#
>
> I wonder how I missed that, as I've run dt_binding_check before
> submitting. I'll fix it.
>
> I'm a bit surprised though, all unit-suffixed properties use 32-bit
> integers in the DT schema, while I can imagine that some may need a
> 64-bit integer. What's the recommendation in that case ?
Use -mhz.
Anything outside the norm we have to special case in
property-units.yaml.
Rob
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-15 16:22 ` Rob Herring
@ 2022-12-15 16:46 ` Laurent Pinchart
0 siblings, 0 replies; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-15 16:46 UTC (permalink / raw)
To: Rob Herring
Cc: Kieran Bingham, devicetree, linux-media, Jacopo Mondi,
Niklas Söderlund, Krzysztof Kozlowski, Thomas Nizan,
linux-renesas-soc
Hi Rob,
On Thu, Dec 15, 2022 at 10:22:16AM -0600, Rob Herring wrote:
> On Thu, Dec 15, 2022 at 03:43:28PM +0200, Laurent Pinchart wrote:
> > On Thu, Dec 15, 2022 at 07:24:38AM -0600, Rob Herring wrote:
> > > On Thu, 15 Dec 2022 01:38:15 +0200, Laurent Pinchart wrote:
> > > > The I2C speed on the remote side (the I2C master bus of the connected
> > > > serializers) is configurable, and doesn't need to match the speed of the
> > > > local bus (the slave bus of the MAX9286). All remote buses must use the
> > > > same speed, and the MAX9286 needs to be programmed accordingly. Add a
> > > > new DT property to select the speed to make it configurable.
> > > >
> > > > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > > > Reviewed-by: Rob Herring <robh@kernel.org>
> > > > ---
> > > > Changes since v2:
> > > >
> > > > - Rename property to maxim,i2c-remote-bus-hz
> > > > - Specify the property type
> > > > ---
> > > > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
> > > > 1 file changed, 8 insertions(+)
> > > >
> > >
> > > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check'
> > > on your patch (DT_CHECKER_FLAGS is new in v5.13):
> > >
> > > yamllint warnings/errors:
> > >
> > > dtschema/dtc warnings/errors:
> > > /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-remote-bus-hz: '$ref' should not be valid under {'const': '$ref'}
> > > hint: Standard unit suffix properties don't need a type $ref
> > > from schema $id: http://devicetree.org/meta-schemas/core.yaml#
> >
> > I wonder how I missed that, as I've run dt_binding_check before
> > submitting. I'll fix it.
> >
> > I'm a bit surprised though, all unit-suffixed properties use 32-bit
> > integers in the DT schema, while I can imagine that some may need a
> > 64-bit integer. What's the recommendation in that case ?
>
> Use -mhz.
I expected that answer :-) It's not an issue with this specific
property, so I'm fine. If I ever run into the need of a 64-bit Hz value
to have both range and precision, we'll talk about it then :-) I don't
expect that to be very common.
> Anything outside the norm we have to special case in
> property-units.yaml.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3.1 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-14 23:38 ` [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart
2022-12-15 13:24 ` Rob Herring
@ 2022-12-16 0:45 ` Laurent Pinchart
2022-12-16 10:05 ` Jacopo Mondi
1 sibling, 1 reply; 10+ messages in thread
From: Laurent Pinchart @ 2022-12-16 0:45 UTC (permalink / raw)
To: linux-media
Cc: linux-renesas-soc, Kieran Bingham, Jacopo Mondi,
Niklas Söderlund, Rob Herring, devicetree,
Krzysztof Kozlowski, Thomas Nizan
The I2C speed on the remote side (the I2C master bus of the connected
serializers) is configurable, and doesn't need to match the speed of the
local bus (the slave bus of the MAX9286). All remote buses must use the
same speed, and the MAX9286 needs to be programmed accordingly. Add a
new DT property to select the speed to make it configurable.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes since v3:
- Drop the property type
- Add maxim,i2c-remote-bus-hz property to example
Changes since v2:
- Rename property to maxim,i2c-remote-bus-hz
- Specify the property type
---
.../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
index 4f28690eabcd..75c2d8b8c809 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
@@ -50,6 +50,13 @@ properties:
'#gpio-cells':
const: 2
+ maxim,i2c-remote-bus-hz:
+ enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ]
+ default: 105000
+ description: |
+ The I2C clock frequency for the remote I2C buses. The value must match
+ the configuration of the remote serializers.
+
maxim,reverse-channel-microvolt:
minimum: 30000
maximum: 200000
@@ -234,6 +241,7 @@ examples:
gpio-controller;
#gpio-cells = <2>;
+ maxim,i2c-remote-bus-hz = <339000>;
maxim,reverse-channel-microvolt = <170000>;
ports {
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3.1 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed
2022-12-16 0:45 ` [PATCH v3.1 " Laurent Pinchart
@ 2022-12-16 10:05 ` Jacopo Mondi
0 siblings, 0 replies; 10+ messages in thread
From: Jacopo Mondi @ 2022-12-16 10:05 UTC (permalink / raw)
To: Laurent Pinchart
Cc: linux-media, linux-renesas-soc, Kieran Bingham, Jacopo Mondi,
Niklas Söderlund, Rob Herring, devicetree,
Krzysztof Kozlowski, Thomas Nizan
Hi Laurent
On Fri, Dec 16, 2022 at 02:45:00AM +0200, Laurent Pinchart wrote:
> The I2C speed on the remote side (the I2C master bus of the connected
> serializers) is configurable, and doesn't need to match the speed of the
> local bus (the slave bus of the MAX9286). All remote buses must use the
> same speed, and the MAX9286 needs to be programmed accordingly. Add a
> new DT property to select the speed to make it configurable.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Thanks
j
> ---
> Changes since v3:
>
> - Drop the property type
> - Add maxim,i2c-remote-bus-hz property to example
>
> Changes since v2:
>
> - Rename property to maxim,i2c-remote-bus-hz
> - Specify the property type
> ---
> .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
> index 4f28690eabcd..75c2d8b8c809 100644
> --- a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
> +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
> @@ -50,6 +50,13 @@ properties:
> '#gpio-cells':
> const: 2
>
> + maxim,i2c-remote-bus-hz:
> + enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ]
> + default: 105000
> + description: |
> + The I2C clock frequency for the remote I2C buses. The value must match
> + the configuration of the remote serializers.
> +
> maxim,reverse-channel-microvolt:
> minimum: 30000
> maximum: 200000
> @@ -234,6 +241,7 @@ examples:
> gpio-controller;
> #gpio-cells = <2>;
>
> + maxim,i2c-remote-bus-hz = <339000>;
> maxim,reverse-channel-microvolt = <170000>;
>
> ports {
> --
> Regards,
>
> Laurent Pinchart
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-12-16 10:05 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14 23:38 [PATCH v3 00/12] media: i2c: max9286: Small new features Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 01/12] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart
2022-12-14 23:38 ` [PATCH v3 02/12] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart
2022-12-15 13:24 ` Rob Herring
2022-12-15 13:43 ` Laurent Pinchart
2022-12-15 16:22 ` Rob Herring
2022-12-15 16:46 ` Laurent Pinchart
2022-12-16 0:45 ` [PATCH v3.1 " Laurent Pinchart
2022-12-16 10:05 ` Jacopo Mondi
2022-12-14 23:38 ` [PATCH v3 03/12] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox