* [PATCH v2 00/11] media: i2c: max9286: Small new features @ 2022-01-01 18:27 Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Laurent Pinchart @ 2022-01-01 18:27 UTC (permalink / raw) To: linux-media Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, devicetree, Mark Brown, Liam Girdwood Hello, This small patch series adds a few new features to the max9286 driver: - Support for per-port supplies (01/11 and 04/11) - Remote I2C bus speed selection (02/11 and 09/11) - GMSL bus width selection (03/11 and 10/11) - Manual framesync operation (05/11) - RAW12 support (06/11 and 07/11) The remaining patches are small cleanups. Please see individual patches for details. I'm in two minds about the bus width selection. It would be possible to query the information from the connected serializers at runtime, using for instance the .g_mbus_config() subdev operation. On the other hand, there's *lots* of GMSL-specific bus configuration options, which would require a rework of .g_mbus_config() to pass a bus-specific structure. We would then end up having many configuration parameters not specific to video there (such as the I2C speed for instance). Furthermore, while some parameters may be different between cameras (high-immunity mode, for instance, can be configured per port), many need to be identical on all ports. I'm not sure yet what the best way to address that without an overcomplicated implementation would be (one option would be to get the parameters from the first camera and simply ignore conflicting values reported by other cameras). Thoughts are welcome. Could someone with RDACM20 cameras test the series ? I'm a bit worried about patch 11/11 in particular, there's a small risk of regression. Laurent Pinchart (10): 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 Thomas Nizan (1): media: i2c: max9286: Add support for port regulators .../bindings/media/i2c/maxim,max9286.yaml | 28 +- drivers/media/i2c/max9286.c | 425 +++++++++++++++--- 2 files changed, 387 insertions(+), 66 deletions(-) base-commit: 68b9bcc8a534cd11fe55f8bc82f948aae7d81b3c -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies 2022-01-01 18:27 [PATCH v2 00/11] media: i2c: max9286: Small new features Laurent Pinchart @ 2022-01-01 18:27 ` Laurent Pinchart 2022-01-09 11:48 ` Jacopo Mondi 2022-01-10 20:47 ` Rob Herring 2022-01-01 18:27 ` [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart 2 siblings, 2 replies; 12+ messages in thread From: Laurent Pinchart @ 2022-01-01 18:27 UTC (permalink / raw) To: linux-media Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, devicetree, Mark Brown, Liam Girdwood 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> --- Changes since v1: - Simplify mutual exclusion condition --- .../bindings/media/i2c/maxim,max9286.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index 02f656e78700..c20557b52e45 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 @@ -160,6 +160,10 @@ properties: additionalProperties: false +patternProperties: + "^port[0-3]-poc-supply$": + description: Regulator providing Power over Coax for a particular port + required: - compatible - reg @@ -167,6 +171,14 @@ required: - i2c-mux - gpio-controller +allOf: + - if: + required: + - poc-supply + then: + patternProperties: + "^port[0-3]-poc-supply$": false + additionalProperties: false examples: -- Regards, Laurent Pinchart ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart @ 2022-01-09 11:48 ` Jacopo Mondi 2022-01-10 20:47 ` Rob Herring 1 sibling, 0 replies; 12+ messages in thread From: Jacopo Mondi @ 2022-01-09 11:48 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-media, linux-renesas-soc, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, devicetree, Mark Brown, Liam Girdwood Hi Laurent, On Sat, Jan 01, 2022 at 08:27:56PM +0200, Laurent Pinchart wrote: > 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> Thanks j > --- > Changes since v1: > > - Simplify mutual exclusion condition > --- > .../bindings/media/i2c/maxim,max9286.yaml | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index 02f656e78700..c20557b52e45 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 > @@ -160,6 +160,10 @@ properties: > > additionalProperties: false > > +patternProperties: > + "^port[0-3]-poc-supply$": > + description: Regulator providing Power over Coax for a particular port > + > required: > - compatible > - reg > @@ -167,6 +171,14 @@ required: > - i2c-mux > - gpio-controller > > +allOf: > + - if: > + required: > + - poc-supply > + then: > + patternProperties: > + "^port[0-3]-poc-supply$": false > + > additionalProperties: false > > examples: > -- > Regards, > > Laurent Pinchart > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart 2022-01-09 11:48 ` Jacopo Mondi @ 2022-01-10 20:47 ` Rob Herring 1 sibling, 0 replies; 12+ messages in thread From: Rob Herring @ 2022-01-10 20:47 UTC (permalink / raw) To: Laurent Pinchart Cc: Mark Brown, devicetree, Thomas Nizan, Liam Girdwood, Jacopo Mondi, Kieran Bingham, linux-media, Niklas Söderlund, Rob Herring, linux-renesas-soc On Sat, 01 Jan 2022 20:27:56 +0200, Laurent Pinchart wrote: > 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> > --- > Changes since v1: > > - Simplify mutual exclusion condition > --- > .../bindings/media/i2c/maxim,max9286.yaml | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed 2022-01-01 18:27 [PATCH v2 00/11] media: i2c: max9286: Small new features Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart @ 2022-01-01 18:27 ` Laurent Pinchart 2022-01-01 22:01 ` Rob Herring 2022-01-04 15:56 ` Rob Herring 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart 2 siblings, 2 replies; 12+ messages in thread From: Laurent Pinchart @ 2022-01-01 18:27 UTC (permalink / raw) To: linux-media Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, 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> --- .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index c20557b52e45..5d3e99027a79 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-clock-frequency: + 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] 12+ messages in thread
* Re: [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed 2022-01-01 18:27 ` [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart @ 2022-01-01 22:01 ` Rob Herring 2022-01-04 15:56 ` Rob Herring 1 sibling, 0 replies; 12+ messages in thread From: Rob Herring @ 2022-01-01 22:01 UTC (permalink / raw) To: Laurent Pinchart Cc: devicetree, Thomas Nizan, Kieran Bingham, linux-renesas-soc, Rob Herring, Niklas Söderlund, Jacopo Mondi, linux-media On Sat, 01 Jan 2022 20:27:57 +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> > --- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ > 1 file changed, 7 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/linux-dt-review/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-clock-frequency: 'oneOf' conditional failed, one must be fixed: 'type' is a required property hint: A vendor boolean property can use "type: boolean" Additional properties are not allowed ('enum', 'default' were unexpected) hint: A vendor boolean property can use "type: boolean" Additional properties are not allowed ('default' was unexpected) hint: A vendor string property with exact values has an implicit type /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: properties:maxim,i2c-clock-frequency: 'oneOf' conditional failed, one must be fixed: '$ref' is a required property 'allOf' is a required property hint: A vendor property needs a $ref to types.yaml from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml# 8470 is not of type 'string' hint: A vendor string property with exact values has an implicit type 28300 is not of type 'string' hint: A vendor string property with exact values has an implicit type 84700 is not of type 'string' hint: A vendor string property with exact values has an implicit type 105000 is not of type 'string' hint: A vendor string property with exact values has an implicit type 173000 is not of type 'string' hint: A vendor string property with exact values has an implicit type 339000 is not of type 'string' hint: A vendor string property with exact values has an implicit type 533000 is not of type 'string' hint: A vendor string property with exact values has an implicit type 837000 is not of type 'string' hint: A vendor string property with exact values has an implicit type hint: Vendor specific properties must have a type and description unless they have a defined, common suffix. from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml# /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml: ignoring, error in schema: properties: maxim,i2c-clock-frequency Documentation/devicetree/bindings/media/i2c/maxim,max9286.example.dt.yaml:0:0: /example-0/i2c@e66d8000/gmsl-deserializer@2c: failed to match any schema with compatible: ['maxim,max9286'] doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/patch/1574505 This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1. 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. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed 2022-01-01 18:27 ` [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart 2022-01-01 22:01 ` Rob Herring @ 2022-01-04 15:56 ` Rob Herring 1 sibling, 0 replies; 12+ messages in thread From: Rob Herring @ 2022-01-04 15:56 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-media, linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, devicetree On Sat, Jan 01, 2022 at 08:27:57PM +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> > --- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index c20557b52e45..5d3e99027a79 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-clock-frequency: Use '-hz'. I don't see much reason to align with 'clock-frequency'. Actually, I'd make this 'maxim,i2c-remote-bus-hz' or similar to be a bit more self-describing. > + 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 [flat|nested] 12+ messages in thread
* [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width 2022-01-01 18:27 [PATCH v2 00/11] media: i2c: max9286: Small new features Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart @ 2022-01-01 18:27 ` Laurent Pinchart 2022-01-09 11:47 ` Jacopo Mondi ` (2 more replies) 2 siblings, 3 replies; 12+ messages in thread From: Laurent Pinchart @ 2022-01-01 18:27 UTC (permalink / raw) To: linux-media Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, 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> --- .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml index 5d3e99027a79..123e98cdb7b6 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,bus-width: + 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-clock-frequency: enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ] default: 105000 -- Regards, Laurent Pinchart ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart @ 2022-01-09 11:47 ` Jacopo Mondi 2022-01-10 20:53 ` Rob Herring 2022-01-10 21:24 ` [PATCH v2.1 " Laurent Pinchart 2 siblings, 0 replies; 12+ messages in thread From: Jacopo Mondi @ 2022-01-09 11:47 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-media, linux-renesas-soc, Kieran Bingham, Niklas Söderlund, Thomas Nizan, Rob Herring, devicetree Hi Laurent, On Sat, Jan 01, 2022 at 08:27:58PM +0200, Laurent Pinchart wrote: > 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> Thanks j > --- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index 5d3e99027a79..123e98cdb7b6 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,bus-width: > + 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-clock-frequency: > enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ] > default: 105000 > -- > Regards, > > Laurent Pinchart > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart 2022-01-09 11:47 ` Jacopo Mondi @ 2022-01-10 20:53 ` Rob Herring 2022-01-10 21:24 ` [PATCH v2.1 " Laurent Pinchart 2 siblings, 0 replies; 12+ messages in thread From: Rob Herring @ 2022-01-10 20:53 UTC (permalink / raw) To: Laurent Pinchart Cc: linux-media, linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Thomas Nizan, devicetree On Sat, Jan 01, 2022 at 08:27:58PM +0200, Laurent Pinchart wrote: > 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> > --- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml > index 5d3e99027a79..123e98cdb7b6 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,bus-width: Needs a $ref to a type. > + 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-clock-frequency: > enum: [ 8470, 28300, 84700, 105000, 173000, 339000, 533000, 837000 ] > default: 105000 > -- > Regards, > > Laurent Pinchart > > ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2.1 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart 2022-01-09 11:47 ` Jacopo Mondi 2022-01-10 20:53 ` Rob Herring @ 2022-01-10 21:24 ` Laurent Pinchart 2022-01-22 0:28 ` Rob Herring 2 siblings, 1 reply; 12+ messages in thread From: Laurent Pinchart @ 2022-01-10 21:24 UTC (permalink / raw) To: linux-media Cc: linux-renesas-soc, Jacopo Mondi, Kieran Bingham, Niklas Söderlund, Rob Herring, Thomas Nizan, 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> --- 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 438381eb3cde..c6d92f51aa5a 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] 12+ messages in thread
* Re: [PATCH v2.1 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width 2022-01-10 21:24 ` [PATCH v2.1 " Laurent Pinchart @ 2022-01-22 0:28 ` Rob Herring 0 siblings, 0 replies; 12+ messages in thread From: Rob Herring @ 2022-01-22 0:28 UTC (permalink / raw) To: Laurent Pinchart Cc: devicetree, Rob Herring, Thomas Nizan, Niklas Söderlund, linux-media, Jacopo Mondi, linux-renesas-soc, Kieran Bingham On Mon, 10 Jan 2022 23:24:46 +0200, Laurent Pinchart wrote: > 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> > --- > Changes since v2: > > - Specify the property type > --- > .../devicetree/bindings/media/i2c/maxim,max9286.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > Reviewed-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-01-22 0:28 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-01 18:27 [PATCH v2 00/11] media: i2c: max9286: Small new features Laurent Pinchart 2022-01-01 18:27 ` [PATCH v2 01/11] dt-bindings: media: i2c: max9286: Add support for per-port supplies Laurent Pinchart 2022-01-09 11:48 ` Jacopo Mondi 2022-01-10 20:47 ` Rob Herring 2022-01-01 18:27 ` [PATCH v2 02/11] dt-bindings: media: i2c: max9286: Add property to select I2C speed Laurent Pinchart 2022-01-01 22:01 ` Rob Herring 2022-01-04 15:56 ` Rob Herring 2022-01-01 18:27 ` [PATCH v2 03/11] dt-bindings: media: i2c: max9286: Add property to select bus width Laurent Pinchart 2022-01-09 11:47 ` Jacopo Mondi 2022-01-10 20:53 ` Rob Herring 2022-01-10 21:24 ` [PATCH v2.1 " Laurent Pinchart 2022-01-22 0:28 ` Rob Herring
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).