media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
Subsystems (7)
PATCH v3 1/19 dt-bindings: media: i2c: max96717: add myself as maintainer
In reply to Cosmin TanislavAnalog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.
--- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +1 -0
@@ -9,6 +9,7 @@ title: MAX96717 CSI-2 to GMSL2 Serializer maintainers: - Julien Massot <[email protected]> + - Cosmin Tanislav <[email protected]> description: The MAX96717 serializer converts MIPI CSI-2 D-PHY formatted input
MAINTAINERS +1 -0
@@ -14198,6 +14198,7 @@ F: drivers/media/i2c/max96714.c MAX96717 GMSL2 SERIALIZER DRIVER M: Julien Massot <[email protected]> +M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
Signature · 1 line
2.49.0
PATCH v3 2/19 dt-bindings: media: i2c: max96717: add support for I2C ATR
In reply to Cosmin TanislavMAX96717 is capable of address translation for the connected I2C slaves.
Add support for I2C ATR while keeping I2C gate for compatibility to support this usecase.
--- .../bindings/media/i2c/maxim,max96717.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +39 -0
@@ -92,6 +92,30 @@ properties: incoming GMSL2 link. Therefore, it supports an i2c-gate subnode to configure a sensor. + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[01]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + required: - compatible - reg
@@ -99,6 +123,21 @@ required: additionalProperties: false +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + + - anyOf: + - oneOf: + - required: [i2c-atr] + - required: [i2c-gate] + + - not: + required: [i2c-atr, i2c-gate] + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include <dt-bindings/gpio/gpio.h>
Signature · 1 line
2.49.0
PATCH v3 3/19 dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf
In reply to Cosmin TanislavMAX96717 is capable of configuring various pin properties.
Add pinctrl/pinconf properties to support this usecase.
--- .../bindings/media/i2c/maxim,max96717.yaml | 110 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 111 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +110 -0
@@ -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:
MAINTAINERS +1 -0
@@ -14201,6 +14201,7 @@ M: Julien Massot <[email protected]> M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml F: Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml F: drivers/media/i2c/max96717.c
Signature · 1 line
2.49.0
v3 cover media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
This series adds new drivers for multiple Maxim GMSL2 and GMSL3 devices, replacing the few GMSL2 drivers already in upstream, and introducing a common framework that can be used to implement such GMSL chips, which avoids code duplication while also adding support for previously unsupported features.
While the normally acceptable and polite way would be to extend the current mainline drivers, the choice was made here to add a totally new set of drivers. The current drivers support only a small subset of the possible features, and only a few devices, so the end result after extending them would in any case be essentially fully rewritten, new drivers.
This series depends on:
https://lore.kernel.org/lkml/[email protected]
The previous version is at:
https://lore.kernel.org/lkml/[email protected]
The following deserializers are supported:
* MAX96712 (already exists in staging)
* MAX96714 (already exists)
* MAX96714F (already exists)
* MAX96714R (GMSL2)
* MAX96716 (GMSL2)
* MAX96724 (already exists as part of existing MAX96712 driver)
* MAX96724F (GMSL2)
* MAX96724R (GMSL2)
* MAX9296A (GMSL2)
* MAX96792A (GMSL3)
The following serializers are supported:
* MAX96717 (already exists)
* MAX9295A (GMSL2)
* MAX96793 (GMSL3)
Missing features:
* The current TPG implementation makes use of the V4L2_CID_TEST_PATTERN V4L2 control. With V4L2 streams support added, we would like to hook up TPG using the internal pad feature which has not been accepted upstream yet. We decided to leave TPG out for the moment and add it back after internal pads have been accepted.
Known backward compatibility breakages:
* No default routing. Default routing has been intentionally ommitted as the devices support quite complex routing and it would be unfeasible to provide sane defaults for multi-link deserialziers. It is expected that userspace programs would set appropritate routing.
The following list enumerates new features that are supported by the common framework and their respective chip-specific drivers:
* Full Streams API support. Most deserializers have support for more than one link, and more than one PHY. Streams support allows configuration of routing between these links and PHYs.
* .get_frame_desc() support. Both the serializers and deserializers implement this to query and provide frame descriptor data. This is used in features explained in-depth below.
* .get_mbus_config() support. The deserializers implement this to allow upstream devices to query the link frequency of its pads.
* Address translation with I2C ATR for the serializers.
* I2C ATR translation - some deserializers cannot do muxing since I2C communication channel masking is not available per-link, and the only other way to select links is to turn them off, causing link resets. For such cases, I2C ATR is used to change the address of the serializers at probe time.
* Automatic GMSL link version negotiation between GMSL3, GMSL2 6Gbps, GMSL2 3Gbps.
* Automatic stream id selection for deserializers which need serializers to stream on unique stream ids.
* Automatic VC remapping on the deserializers. VCs are picked so that if they were unique on the sink pad, they will end up as unique on the source pad they are routed to too, prioritizing using the same VC ID as the sink pad, to facilitate the possibility of using tunnel mode.
* Automatic pixel mode / tunnel mode selection. Tunnel mode is used when VC IDs do not need to be changed and all hardware supports tunnel mode, otherwise, pixel mode is used. The serializers are automatically switched between the two by using a private API.
* Automatic double mode selection. In pixel mode, double mode can be used to pack two pixels into a single data unit, optimizing bandwidth usage. The serializers are automatically set up to support the double modes determined by the deserializers using a private API.
* Automatic data padding. In pixel mode, if the data being transferred uses two different BPPs, data needs to be padded. The serializers automatically set this up depending on the configured double mode settings and incoming data types.
* Logging. Both the deserializers and serializers implement the V4L2 .log_status() ops to allow debugging of the internal state and important chip status registers.
* PHY modes. Deserializer chips commonly have more than a single PHY. The firmware ports are parsed to determine the modes in which to configure the PHYs (2x4, 4x2, 1x4+2x2, 2x2+1x4, and variations using fewer lanes).
* Serializer pinctrl. Serializers implement pinctrl to allow setting configs which would otherwise be inaccessible through GPIO: TX/RX via GMSL link, pull-up & pull-down (with strength), open-drain & push-pull, slew rate, RCLK pin selection.
The drivers have been tested on the following hardware combinations, but further testing is welcome to ensure no / minimal breakage:
* Raspberry Pi 5 + MAX9296A + 2xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96714 + 1xMAX96717 + 1xIMX219
* Raspberry Pi 5 + MAX96716A + 2xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96712 + 4xMAX96717 + 4xIMX219
* Raspberry Pi 5 + MAX96724 + 4xMAX96717 + 4xIMX219
* Raspberry Pi 5 + MAX96792A + 1xMAX96793 + 1xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96792A + 2xMAX96717 + 2xIMX219
* Renesas V4H + MAX96712 + 2xMAX96717 + 2xIMX219
Analog Devices is taking responsibility for the maintenance of these drivers and common framework, and plans to add support for new broad-market chips on top of them.
Special thanks go to Tomi Valkeinen <[email protected]> for testing the drivers, helping debug and coming up with ideas / implementations for various features.
V3:
* dt-bindings: drop reflow text patches
* dt-bindings: max96717: move pinctrl configuration into main file
* dt-bindings: max96717: allow a single level of pins configuration
* dt-bindings: max96717: use regex for matching pins nodes
* dt-bindings: max96717: drop extra allOf in pinctrl configuration
* dt-bindings: max96717: fix i2c-atr channel name regex
* dt-bindings: max96717: limit pinctrl functions to gpio / rclkout
* dt-bindings: max96717: limit pins for gpio / rclkout
* dt-bindings: max96717: add description for bias-pull-up/down
* dt-bindings: max96717: require pins and function properties
* dt-bindings: max96717: turn single compatible strings into an enum
* dt-bindings: max9296a: include indices in port descriptions
* dt-bindings: max9296a: remove property-less schema from input ports
* dt-bindings: max9296a: use ATR for MAX96716A too, removing MUX entirely
* dt-bindings: max96712: include indices in port descriptions
* dt-bindings: max96712: deprecate enable-gpios in favor of powerdown-gpios
* dt-bindings: max96712: switch from MUX to ATR
* dt-bindings: max96714: add support for MAX96714R
* max_des: fix POC NULL check
* max_des: remove index var in POC enable
* max_des: fix writing empty remaps
* max_des: skip mode setting in tunnel mode
* max_des: remove a duplicate source->sd NULL check
* max_des: set pipe tunnel mode even for disabled links
* max_ser: apply TX ID changes irrespective of serializer ID
* max9296a: fix typo in BACKTOP22
* max9296a: make register macros more consistent
* max9296a: switch MAX96716 from MUX to ATR
* max9296a: deduplicate max9296a_phy_id() logic
* max9296a: use proper PHY id in remaps
* max9296a: fix DPLL reset clear
* max9296a: limit MAX96714F to GMSL2 3Gbps
* max9296a: add support for MAX96714R
* max9296a: do not write GMSL3 link select registers in GMSL2 devices
* max9296a: use field_prep when setting RX_RATE
* max9296a: simplify setting SEL_STREAM for MAX96714
* max9296a: max96716_set_pipe_phy -> max96716a_set_pipe_phy
* max9296a: fix off-by-one in lane polarity when using polarity_on_physical_lanes
* max96724: fix typo in BACKTOP22
* max96724: switch from MUX to ATR
* max96724: add support for powerdown GPIO
* max96724: remove support for tunneling from MAX96712
* max96724: only set tunnel-related bits when in tunnel mode
* max96724: add support for MAX96724F/R
* max96724: oneshot reset links after link selection
* remove GMSL2 version defaults, set all supported versions explicitly
* reorder GMSL versions to start from 0
* add support for GMSL2 3Gbps
* support GMSL version finding for devices using MUX / GATE
* add support for deserializers which don't have individual control of each link's GMSL version
* add support for deserializers that need unique stream ids across all serializers
* select_link_version -> set_link_version
* select_resets_link -> use_atr
V2:
* add missing compatible for MAX96717F
* fix embarrassing dt-bindings mistakes
* move MAX9296A/MAX96716/MAX96792A to a separate file as they have two links / PHYs, and adding those conditionally seems impossible
Cosmin Tanislav (19):
dt-bindings: media: i2c: max96717: add myself as maintainer
dt-bindings: media: i2c: max96717: add support for I2C ATR
dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf
dt-bindings: media: i2c: max96717: add support for MAX9295A
dt-bindings: media: i2c: max96717: add support for MAX96793
dt-bindings: media: i2c: max96712: add myself as maintainer
dt-bindings: media: i2c: max96712: use pattern properties for ports
dt-bindings: media: i2c: max96712: add support for I2C ATR
dt-bindings: media: i2c: max96712: add support for POC supplies
dt-bindings: media: i2c: max96712: deprecate enable-gpios
dt-bindings: media: i2c: max96712: add support for MAX96724F/R
dt-bindings: media: i2c: max96714: add myself as maintainer
dt-bindings: media: i2c: max96714: add support for MAX96714R
dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A
media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
arm64: defconfig: disable deprecated MAX96712 driver
staging: media: remove MAX96712 driver
media: i2c: remove MAX96717 driver
media: i2c: remove MAX96714 driver
.../bindings/media/i2c/maxim,max9296a.yaml | 242 ++ .../bindings/media/i2c/maxim,max96712.yaml | 80 +- .../bindings/media/i2c/maxim,max96714.yaml | 6 +- .../bindings/media/i2c/maxim,max96717.yaml | 160 +- MAINTAINERS | 14 +- arch/arm64/configs/defconfig | 1 - drivers/media/i2c/Kconfig | 34 +- drivers/media/i2c/Makefile | 3 +- drivers/media/i2c/max96714.c | 1024 ------- drivers/media/i2c/max96717.c | 1103 -------- drivers/media/i2c/maxim-serdes/Kconfig | 53 + drivers/media/i2c/maxim-serdes/Makefile | 6 + drivers/media/i2c/maxim-serdes/max9296a.c | 1143 ++++++++ drivers/media/i2c/maxim-serdes/max96717.c | 1501 ++++++++++ drivers/media/i2c/maxim-serdes/max96724.c | 968 +++++++ drivers/media/i2c/maxim-serdes/max_des.c | 2446 +++++++++++++++++ drivers/media/i2c/maxim-serdes/max_des.h | 137 + drivers/media/i2c/maxim-serdes/max_ser.c | 1577 +++++++++++ drivers/media/i2c/maxim-serdes/max_ser.h | 129 + drivers/media/i2c/maxim-serdes/max_serdes.c | 302 ++ drivers/media/i2c/maxim-serdes/max_serdes.h | 89 + drivers/staging/media/Kconfig | 2 - drivers/staging/media/Makefile | 1 - drivers/staging/media/max96712/Kconfig | 14 - drivers/staging/media/max96712/Makefile | 2 - drivers/staging/media/max96712/max96712.c | 487 ---- 26 files changed, 8829 insertions(+), 2695 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml delete mode 100644 drivers/media/i2c/max96714.c delete mode 100644 drivers/media/i2c/max96717.c create mode 100644 drivers/media/i2c/maxim-serdes/Kconfig create mode 100644 drivers/media/i2c/maxim-serdes/Makefile create mode 100644 drivers/media/i2c/maxim-serdes/max9296a.c create mode 100644 drivers/media/i2c/maxim-serdes/max96717.c create mode 100644 drivers/media/i2c/maxim-serdes/max96724.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.h create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.c create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.h create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.c create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.h delete mode 100644 drivers/staging/media/max96712/Kconfig delete mode 100644 drivers/staging/media/max96712/Makefile delete mode 100644 drivers/staging/media/max96712/max96712.c
Signature · 1 line
2.49.0
PATCH v3 4/19 dt-bindings: media: i2c: max96717: add support for MAX9295A
MAX9295A is an older variant of the MAX96717 which does not support tunnel mode.
Document the compatibility.
--- .../devicetree/bindings/media/i2c/maxim,max96717.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +6 -1
@@ -25,12 +25,17 @@ description: The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. + MAX96717F only supports a fixed rate of 3Gbps in the forward direction. + MAX9295A only supports pixel mode. + properties: compatible: oneOf: - - const: maxim,max96717f + - enum: + - maxim,max9295a + - maxim,max96717f - items: - enum: - maxim,max96717
Signature · 1 line
2.49.0
PATCH v3 5/19 dt-bindings: media: i2c: max96717: add support for MAX96793
In reply to Cosmin TanislavMAX96793 is a newer variant of the MAX96717 which also supports GMSL3 links.
Document this compatibility.
--- .../devicetree/bindings/media/i2c/maxim,max96717.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +3 -0
@@ -30,6 +30,8 @@ description: MAX9295A only supports pixel mode. + MAX96793 also supports GMSL3 mode. + properties: compatible: oneOf:
@@ -39,6 +41,7 @@ properties: - items: - enum: - maxim,max96717 + - maxim,max96793 - const: maxim,max96717f '#gpio-cells':
Signature · 1 line
2.49.0
PATCH v3 6/19 dt-bindings: media: i2c: max96712: add myself as maintainer
In reply to Cosmin TanislavAnalog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.
--- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +1 -0
@@ -9,6 +9,7 @@ title: Quad GMSL2 to CSI-2 Deserializer with GMSL1 Compatibility maintainers: - Niklas Söderlund <[email protected]> + - Cosmin Tanislav <[email protected]> description: | The MAX96712 deserializer converts GMSL2 or GMSL1 serial inputs into MIPI
MAINTAINERS +1 -0
@@ -14184,6 +14184,7 @@ F: drivers/media/i2c/max9286.c MAX96712 QUAD GMSL2 DESERIALIZER DRIVER M: Niklas Söderlund <[email protected]> +M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml
Signature · 1 line
2.49.0
PATCH v3 7/19 dt-bindings: media: i2c: max96712: use pattern properties for ports
In reply to Cosmin TanislavThe MAX96712 and MAX96724 support up to 4 separate PHYs, depending on the selected PHY configuration. Use patternProperties to document this.
The input ports are all the same, use patternProperties for them.
--- .../bindings/media/i2c/maxim,max96712.yaml | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +10 -19
@@ -40,27 +40,15 @@ properties: ports: $ref: /schemas/graph.yaml#/properties/ports - properties: - port@0: + patternProperties: + '^port@[0-3]$': $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 0 + description: GMSL Input ports 0-3 - port@1: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 1 - - port@2: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 2 - - port@3: - $ref: /schemas/graph.yaml#/properties/port - description: GMSL Input 3 - - port@4: + '^port@[4-7]$': $ref: /schemas/graph.yaml#/$defs/port-base unevaluatedProperties: false - description: CSI-2 Output + description: CSI-2 Output port 0-3 properties: endpoint:
@@ -78,8 +66,11 @@ properties: - data-lanes - bus-type - required: - - port@4 + anyOf: + - required: [port@4] + - required: [port@5] + - required: [port@6] + - required: [port@7] required: - compatible
Signature · 1 line
2.49.0
PATCH v3 8/19 dt-bindings: media: i2c: max96712: add support for I2C ATR
In reply to Cosmin TanislavMAX96712 and MAX96724 have more than one GMSL2 link, and each link is capable of connecting to a separate serializer. If these serializers have the same CFG pins configuration, they will also have the same I2C address, causing conflicts unless the deserializer changes the address of the connected serializers.
The MAX96712 and MAX96724 support changing the I2C address of the connected serializers.
Document this capability.
--- .../bindings/media/i2c/maxim,max96712.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +31 -0
@@ -37,6 +37,30 @@ properties: enable-gpios: true + i2c-alias-pool: + maxItems: 4 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-3]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 3 + ports: $ref: /schemas/graph.yaml#/properties/ports
@@ -79,6 +103,13 @@ required: additionalProperties: false +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + examples: - | #include <dt-bindings/gpio/gpio.h>
Signature · 1 line
2.49.0
PATCH v3 9/19 dt-bindings: media: i2c: max96712: add support for POC supplies
In reply to Cosmin TanislavThe GMSL links can carry power to the serializer when using coaxial cables.
Document this capability.
--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +4 -0
@@ -96,6 +96,10 @@ properties: - required: [port@6] - required: [port@7] +patternProperties: + '^port[0-3]-poc-supply$': + description: Regulator providing Power over Coax for GMSL ports + required: - compatible - reg
Signature · 1 line
2.49.0
PATCH v3 10/19 dt-bindings: media: i2c: max96712: deprecate enable-gpios
In reply to Cosmin TanislavThe MAX96712 actually has a GPIO named PWDNB, which will put the chip in reset state when held low. Esentially, it works as an enable GPIO, but the naming is different.
Deprecate the enable-gpios property, and add powerdown-gpios as the rest of the GMSL chips.
Change the example to use powerdown-gpios.
--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +8 -2
@@ -35,7 +35,13 @@ properties: description: I2C device address maxItems: 1 - enable-gpios: true + enable-gpios: + maxItems: 1 + deprecated: true + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. i2c-alias-pool: maxItems: 4
@@ -128,7 +134,7 @@ examples: gmsl0: gmsl-deserializer@49 { compatible = "maxim,max96712"; reg = <0x49>; - enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&pca9654_a 0 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;
Signature · 1 line
2.49.0
PATCH v3 11/19 dt-bindings: media: i2c: max96712: add support for MAX96724F/R
In reply to Cosmin TanislavMAX96724F/MAX96724R are a lower capability variant of the MAX96724 which only support a fixed rate of 3Gbps in the forward direction.
--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +5 -0
@@ -24,12 +24,17 @@ description: | MAX96712 can be paired with first-generation 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 3.12Gbps with GMSL2 serializers in GMSL1 mode. + MAX96724F and MAX96724R only support a fixed rate of 3Gbps in the forward + direction. + properties: compatible: items: - enum: - maxim,max96712 - maxim,max96724 + - maxim,max96724f + - maxim,max96724r reg: description: I2C device address
Signature · 1 line
2.49.0
PATCH v3 12/19 dt-bindings: media: i2c: max96714: add myself as maintainer
In reply to Cosmin TanislavAnalog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.
--- Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml +1 -0
@@ -8,6 +8,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Maxim MAX96714 GMSL2 to CSI-2 Deserializer maintainers: + - Cosmin Tanislav <[email protected]> - Julien Massot <[email protected]> description:
MAINTAINERS +1 -0
@@ -14192,6 +14192,7 @@ F: drivers/staging/media/max96712/max96712.c MAX96714 GMSL2 DESERIALIZER DRIVER M: Julien Massot <[email protected]> +M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml
Signature · 1 line
2.49.0
PATCH v3 13/19 dt-bindings: media: i2c: max96714: add support for MAX96714R
In reply to Cosmin TanislavMAX96714R is a lower capability variant of the MAX96714 which only supports a fixed rate of 3Gbps in the forward direction.
--- .../devicetree/bindings/media/i2c/maxim,max96714.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml +4 -1
@@ -23,7 +23,9 @@ description: The GMSL2 serial link operates at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. - MAX96714F only supports a fixed rate of 3Gbps in the forward direction. + + MAX96714F and MAX96714R only support a fixed rate of 3Gbps in the forward + direction. properties: compatible:
@@ -32,6 +34,7 @@ properties: - items: - enum: - maxim,max96714 + - maxim,max96714r - const: maxim,max96714f reg:
Signature · 1 line
2.49.0
PATCH v3 14/19 dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A
In reply to Cosmin TanislavThe MAX9296A deserializer converts single or dual serial inputs to MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 serializers with GMSL1 backward compatibility. The MAX9296A supports mixed GMSL2 and GMSL1 links. The serial inputs operate independently, allowing videos with different timings and resolutions to be received on each input.
MAX96716A supports both tunnel and pixel mode.
MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links.
--- .../bindings/media/i2c/maxim,max9296a.yaml | 242 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 248 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml
Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml new file +242 -0
@@ -0,0 +1,242 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Collabora Ltd. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/maxim,max9296a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX9296A GMSL2 to CSI-2 Deserializer + +maintainers: + - Cosmin Tanislav <[email protected]> + +description: > + The MAX9296A deserializer converts single or dual serial inputs to + MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps + or 6Gbps in the forward direction and 187.5Mbps in the reverse + direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps + or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 + serializers with GMSL1 backward compatibility. The MAX9296A supports + mixed GMSL2 and GMSL1 links. The serial inputs operate independently, + allowing videos with different timings and resolutions to be received + on each input. + + MAX96716A supports both tunnel and pixel mode. + + MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links. + +properties: + compatible: + enum: + - maxim,max9296a + - maxim,max96716a + - maxim,max96792a + + reg: + maxItems: 1 + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. + + port0-poc-supply: + description: Regulator providing Power over Coax for GMSL port 0 + + port1-poc-supply: + description: Regulator providing Power over Coax for GMSL port 1 + + i2c-alias-pool: + maxItems: 2 + + i2c-atr: + type: object + additionalProperties: false + + properties: + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + + patternProperties: + '^i2c@[0-1]$': + $ref: /schemas/i2c/i2c-controller.yaml# + unevaluatedProperties: false + properties: + reg: + items: + minimum: 0 + maximum: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + patternProperties: + '^port@[0-1]$': + $ref: /schemas/graph.yaml#/properties/port + description: GMSL Input ports 0-1 + + '^port@[2-3]$': + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Output ports 0-1 + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + lane-polarities: + minItems: 1 + maxItems: 5 + + link-frequencies: + maxItems: 1 + + required: + - data-lanes + + anyOf: + - required: + - port@2 + - required: + - port@3 + +required: + - compatible + - reg + - ports + +additionalProperties: false + +allOf: + - $ref: /schemas/i2c/i2c-atr.yaml# + +dependentRequired: + i2c-atr: [i2c-alias-pool] + i2c-alias-pool: [i2c-atr] + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/media/video-interfaces.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + deserializer@28 { + compatible = "maxim,max9296a"; + reg = <0x28>; + powerdown-gpios = <&main_gpio0 37 GPIO_ACTIVE_LOW>; + + i2c-alias-pool = <0x40 0x41>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + des_gmsl_in_0: endpoint { + remote-endpoint = <&ser_0_gmsl_out>; + }; + }; + + port@1 { + reg = <1>; + des_gmsl_in_1: endpoint { + remote-endpoint = <&ser_1_gmsl_out>; + }; + }; + + port@2 { + reg = <2>; + des_csi_out: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <400000000>; + remote-endpoint = <&csi_in>; + }; + }; + }; + + i2c-atr { + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + serializer@40 { + compatible = "maxim,max96717"; + reg = <0x40>; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ser_0_csi_in: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&sensor_0_out>; + }; + }; + + port@1 { + reg = <1>; + ser_0_gmsl_out: endpoint { + remote-endpoint = <&des_gmsl_in_0>; + }; + }; + }; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + serializer@40 { + compatible = "maxim,max96717"; + reg = <0x40>; + gpio-controller; + #gpio-cells = <2>; + #clock-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + ser_1_csi_in: endpoint { + data-lanes = <1 2>; + remote-endpoint = <&sensor_1_out>; + }; + }; + + port@1 { + reg = <1>; + ser_1_gmsl_out: endpoint { + remote-endpoint = <&des_gmsl_in_1>; + }; + }; + }; + }; + }; + }; + }; + }; +...
MAINTAINERS +6 -0
@@ -14221,6 +14221,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/proximity/maxbotix,mb1232.yaml F: drivers/iio/proximity/mb1232.c +MAXIM GMSL2 SERIALIZERS AND DESERIALIZERS +M: Cosmin Tanislav <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml + MAXIM MAX11205 DRIVER M: Ramona Bolboaca <[email protected]> L: [email protected]
Signature · 1 line
2.49.0
PATCH v3 15/19 media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
In reply to Cosmin TanislavAdd drivers for some of the broad-market Maxim GMSL2 / GMSL3 serializers and deserializers.
These drivers are meant to replace the existing MAX96712 / MAX96714 / MAX96717 drivers, while integrating them in a common framework, keeping compatibility with existing usecases, and avoiding code duplication, while also enabling more features across the whole range.
These drivers also add support for the following new chips:
* MAX96716 (GMSL2)
* MAX9296A (GMSL2)
* MAX96792A (GMSL3)
* MAX9295A (GMSL2)
* MAX96793 (GMSL3)
These drivers enable support for the following new features:
* Full Streams API support
* .get_frame_desc()
* .get_mbus_config()
* I2C ATR, I2C MUX
* automatic VC remapping
* automatic pixel mode / tunnel mode selection
* automatic double mode selection
* logging of internal state and chip status registers via .log_status()
* PHY modes
* serializer pinctrl
--- MAINTAINERS | 1 + drivers/media/i2c/Kconfig | 2 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/maxim-serdes/Kconfig | 53 + drivers/media/i2c/maxim-serdes/Makefile | 6 + drivers/media/i2c/maxim-serdes/max9296a.c | 1143 +++++++++ drivers/media/i2c/maxim-serdes/max96717.c | 1501 ++++++++++++ drivers/media/i2c/maxim-serdes/max96724.c | 968 ++++++++ drivers/media/i2c/maxim-serdes/max_des.c | 2446 +++++++++++++++++++ drivers/media/i2c/maxim-serdes/max_des.h | 137 ++ drivers/media/i2c/maxim-serdes/max_ser.c | 1577 ++++++++++++ drivers/media/i2c/maxim-serdes/max_ser.h | 129 + drivers/media/i2c/maxim-serdes/max_serdes.c | 302 +++ drivers/media/i2c/maxim-serdes/max_serdes.h | 89 + 14 files changed, 8355 insertions(+) create mode 100644 drivers/media/i2c/maxim-serdes/Kconfig create mode 100644 drivers/media/i2c/maxim-serdes/Makefile create mode 100644 drivers/media/i2c/maxim-serdes/max9296a.c create mode 100644 drivers/media/i2c/maxim-serdes/max96717.c create mode 100644 drivers/media/i2c/maxim-serdes/max96724.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.h create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.c create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.h create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.c create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.h
MAINTAINERS +1 -0
@@ -14226,6 +14226,7 @@ M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml +F: drivers/media/i2c/maxim-serdes/ MAXIM MAX11205 DRIVER M: Ramona Bolboaca <[email protected]>
drivers/media/i2c/Kconfig +2 -0
@@ -1653,6 +1653,8 @@ config VIDEO_MAX96717 To compile this driver as a module, choose M here: the module will be called max96717. +source "drivers/media/i2c/maxim-serdes/Kconfig" + endmenu endif # VIDEO_DEV
drivers/media/i2c/Makefile +1 -0
@@ -70,6 +70,7 @@ obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o obj-$(CONFIG_VIDEO_MAX96714) += max96714.o obj-$(CONFIG_VIDEO_MAX96717) += max96717.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) += maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o obj-$(CONFIG_VIDEO_MT9M001) += mt9m001.o
drivers/media/i2c/maxim-serdes/Kconfig new file +53 -0
53 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +max-serdes-objs := max_serdes.o max_ser.o max_des.o +obj-$(CONFIG_VIDEO_MAXIM_SERDES) += max-serdes.o +obj-$(CONFIG_VIDEO_MAX96717) += max96717.o +obj-$(CONFIG_VIDEO_MAX96724) += max96724.o +obj-$(CONFIG_VIDEO_MAX9296A) += max9296a.o
drivers/media/i2c/maxim-serdes/max9296a.c new file +1143 -0
1,143 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max96717.c new file +1501 -0
1,501 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max96724.c new file +968 -0
275 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_des.c new file +2446 -0
2,446 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_des.h new file +137 -0
137 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_ser.c new file +1577 -0
1,577 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_ser.h new file +129 -0
129 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_serdes.c new file +302 -0
302 lines not on this page · raw message
drivers/media/i2c/maxim-serdes/max_serdes.h new file +89 -0
89 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.49.0
Part of the diff is not shown here. View the raw message.
PATCH v3 16/19 arm64: defconfig: disable deprecated MAX96712 driver
In reply to Cosmin TanislavThe staging MAX96712 driver will be removed as its functionality has been moved to the MAX96724 driver which makes use of the Maxim GMSL2/3 deserializer framework.
--- arch/arm64/configs/defconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm64/configs/defconfig +0 -1
@@ -1272,7 +1272,6 @@ CONFIG_XEN_GNTDEV=y CONFIG_XEN_GRANT_DEV_ALLOC=y CONFIG_STAGING=y CONFIG_STAGING_MEDIA=y -CONFIG_VIDEO_MAX96712=m CONFIG_VIDEO_MESON_VDEC=m CONFIG_SND_BCM2835=m CONFIG_CHROME_PLATFORMS=y
Signature · 1 line
2.49.0
PATCH v3 17/19 staging: media: remove MAX96712 driver
In reply to Cosmin TanislavRemove the staging MAX96712 driver.
Its functionality has been moved to the MAX96724 driver which makes use of the Maxim GMSL2/3 deserializer framework.
--- MAINTAINERS | 1 - drivers/staging/media/Kconfig | 2 - drivers/staging/media/Makefile | 1 - drivers/staging/media/max96712/Kconfig | 14 - drivers/staging/media/max96712/Makefile | 2 - drivers/staging/media/max96712/max96712.c | 487 ---------------------- 6 files changed, 507 deletions(-) delete mode 100644 drivers/staging/media/max96712/Kconfig delete mode 100644 drivers/staging/media/max96712/Makefile delete mode 100644 drivers/staging/media/max96712/max96712.c
MAINTAINERS +0 -1
@@ -14188,7 +14188,6 @@ M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml -F: drivers/staging/media/max96712/max96712.c MAX96714 GMSL2 DESERIALIZER DRIVER M: Julien Massot <[email protected]>
drivers/staging/media/Kconfig +0 -2
@@ -28,8 +28,6 @@ source "drivers/staging/media/imx/Kconfig" source "drivers/staging/media/ipu3/Kconfig" -source "drivers/staging/media/max96712/Kconfig" - source "drivers/staging/media/meson/vdec/Kconfig" source "drivers/staging/media/rkvdec/Kconfig"
drivers/staging/media/Makefile +0 -1
@@ -2,7 +2,6 @@ obj-$(CONFIG_VIDEO_ATMEL_ISC_BASE) += deprecated/atmel/ obj-$(CONFIG_INTEL_ATOMISP) += atomisp/ obj-$(CONFIG_VIDEO_IMX_MEDIA) += imx/ -obj-$(CONFIG_VIDEO_MAX96712) += max96712/ obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/ obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC) += rkvdec/ obj-$(CONFIG_VIDEO_STARFIVE_CAMSS) += starfive/
drivers/staging/media/max96712/Kconfig deleted +0 -14
@@ -1,14 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -config VIDEO_MAX96712 - tristate "Maxim MAX96712 Quad GMSL2 Deserializer support" - depends on I2C - depends on OF_GPIO - depends on VIDEO_DEV - select V4L2_FWNODE - select VIDEO_V4L2_SUBDEV_API - select MEDIA_CONTROLLER - help - This driver supports the Maxim MAX96712 Quad GMSL2 Deserializer. - - To compile this driver as a module, choose M here: the - module will be called max96712.
drivers/staging/media/max96712/Makefile deleted +0 -2
@@ -1,2 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_VIDEO_MAX96712) += max96712.o
drivers/staging/media/max96712/max96712.c deleted +0 -487
487 lines not on this page · raw message
Signature · 1 line
2.49.0
PATCH v3 18/19 media: i2c: remove MAX96717 driver
In reply to Cosmin TanislavThe previous MAX96717 driver has been removed and its functionality has been moved to a MAX96717 driver which makes use of the Maxim GMSL2/3 serializer framework.
--- MAINTAINERS | 1 - drivers/media/i2c/Kconfig | 17 - drivers/media/i2c/Makefile | 1 - drivers/media/i2c/max96717.c | 1103 ---------------------------------- 4 files changed, 1122 deletions(-) delete mode 100644 drivers/media/i2c/max96717.c
MAINTAINERS +0 -1
@@ -14204,7 +14204,6 @@ L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml F: Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml -F: drivers/media/i2c/max96717.c MAX9860 MONO AUDIO VOICE CODEC DRIVER M: Peter Rosin <[email protected]>
drivers/media/i2c/Kconfig +0 -17
@@ -1636,23 +1636,6 @@ config VIDEO_MAX96714 To compile this driver as a module, choose M here: the module will be called max96714. -config VIDEO_MAX96717 - tristate "Maxim MAX96717 GMSL2 Serializer support" - depends on OF && I2C && VIDEO_DEV && COMMON_CLK - select I2C_MUX - select MEDIA_CONTROLLER - select GPIOLIB - select V4L2_CCI_I2C - select V4L2_FWNODE - select VIDEO_V4L2_SUBDEV_API - help - Device driver for the Maxim MAX96717 GMSL2 Serializer. - MAX96717 serializers convert video on a MIPI CSI-2 - input to a GMSL2 output. - - To compile this driver as a module, choose M here: the - module will be called max96717. - source "drivers/media/i2c/maxim-serdes/Kconfig" endmenu
drivers/media/i2c/Makefile +0 -1
@@ -69,7 +69,6 @@ obj-$(CONFIG_VIDEO_M52790) += m52790.o obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o obj-$(CONFIG_VIDEO_MAX96714) += max96714.o -obj-$(CONFIG_VIDEO_MAX96717) += max96717.o obj-$(CONFIG_VIDEO_MAXIM_SERDES) += maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o
drivers/media/i2c/max96717.c deleted +0 -1103
1,103 lines not on this page · raw message
Signature · 1 line
2.49.0
PATCH v3 19/19 media: i2c: remove MAX96714 driver
In reply to Cosmin TanislavThe previous MAX96714 driver has been removed and its functionality has been moved to the MAX9296A driver which makes use of the Maxim GMSL2/3 serializer framework.
--- MAINTAINERS | 1 - drivers/media/i2c/Kconfig | 17 - drivers/media/i2c/Makefile | 1 - drivers/media/i2c/max96714.c | 1024 ---------------------------------- 4 files changed, 1043 deletions(-) delete mode 100644 drivers/media/i2c/max96714.c
MAINTAINERS +0 -1
@@ -14195,7 +14195,6 @@ M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained F: Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml -F: drivers/media/i2c/max96714.c MAX96717 GMSL2 SERIALIZER DRIVER M: Julien Massot <[email protected]>
drivers/media/i2c/Kconfig +0 -17
@@ -1619,23 +1619,6 @@ config VIDEO_DS90UB960 Device driver for the Texas Instruments DS90UB960 FPD-Link III Deserializer and DS90UB9702 FPD-Link IV Deserializer. -config VIDEO_MAX96714 - tristate "Maxim MAX96714 GMSL2 deserializer" - depends on OF && I2C && VIDEO_DEV - select I2C_MUX - select MEDIA_CONTROLLER - select GPIOLIB - select V4L2_CCI_I2C - select V4L2_FWNODE - select VIDEO_V4L2_SUBDEV_API - help - Device driver for the Maxim MAX96714 GMSL2 Deserializer. - MAX96714 deserializers convert a GMSL2 input to MIPI CSI-2 - output. - - To compile this driver as a module, choose M here: the - module will be called max96714. - source "drivers/media/i2c/maxim-serdes/Kconfig" endmenu
drivers/media/i2c/Makefile +0 -1
@@ -68,7 +68,6 @@ obj-$(CONFIG_VIDEO_LT6911UXE) += lt6911uxe.o obj-$(CONFIG_VIDEO_M52790) += m52790.o obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o -obj-$(CONFIG_VIDEO_MAX96714) += max96714.o obj-$(CONFIG_VIDEO_MAXIM_SERDES) += maxim-serdes/ obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o
drivers/media/i2c/max96714.c deleted +0 -1024
1,024 lines not on this page · raw message
Signature · 1 line
2.49.0
Niklas Söderlund
maintainerHi Cosmin,
Thanks for your work.
Quoted 36 lines · Cosmin Tanislav
This series adds new drivers for multiple Maxim GMSL2 and GMSL3 devices, replacing the few GMSL2 drivers already in upstream, and introducing a common framework that can be used to implement such GMSL chips, which avoids code duplication while also adding support for previously unsupported features.
While the normally acceptable and polite way would be to extend the current mainline drivers, the choice was made here to add a totally new set of drivers. The current drivers support only a small subset of the possible features, and only a few devices, so the end result after extending them would in any case be essentially fully rewritten, new drivers.
This series depends on:
https://lore.kernel.org/lkml/[email protected]The previous version is at:
https://lore.kernel.org/lkml/[email protected]The following deserializers are supported:
* MAX96712 (already exists in staging)
* MAX96714 (already exists)
* MAX96714F (already exists)
* MAX96714R (GMSL2)
* MAX96716 (GMSL2)
* MAX96724 (already exists as part of existing MAX96712 driver)
* MAX96724F (GMSL2)
* MAX96724R (GMSL2)
* MAX9296A (GMSL2)
* MAX96792A (GMSL3)The following serializers are supported:
* MAX96717 (already exists)
* MAX9295A (GMSL2)
* MAX96793 (GMSL3)
Quoted 6 lines
Missing features:
* The current TPG implementation makes use of theV4L2_CID_TEST_PATTERNV4L2 control. With V4L2 streams support added, we would like to hook up TPG using the internal pad feature which has not been accepted upstream yet. We decided to leave TPG out for the moment and add it back after internal pads have been accepted.
I only have access to remote system using these devices, that's the reason the driver in staging only supports the TPG. So I can't test the CSI-2 side of the driver without this, but I would love to do so when the TPG feature works.
I make regular use of the TPG to test capture pipelines as this is my only video source on those systems. Please make sure the TPG is functioning before removing the staging driver.
Quoted 231 lines
Known backward compatibility breakages:
* No default routing. Default routing has been intentionally ommitted as the devices support quite complex routing and it would be unfeasible to provide sane defaults for multi-link deserialziers. It is expected that userspace programs would set appropritate routing.The following list enumerates new features that are supported by the common framework and their respective chip-specific drivers:
* Full Streams API support. Most deserializers have support for more than one link, and more than one PHY. Streams support allows configuration of routing between these links and PHYs.* .get_frame_desc() support. Both the serializers and deserializers implement this to query and provide frame descriptor data. This is used in features explained in-depth below.
* .get_mbus_config() support. The deserializers implement this to allow upstream devices to query the link frequency of its pads.
* Address translation with I2C ATR for the serializers.
* I2C ATR translation - some deserializers cannot do muxing since I2C communication channel masking is not available per-link, and the only other way to select links is to turn them off, causing link resets. For such cases, I2C ATR is used to change the address of the serializers at probe time.
* Automatic GMSL link version negotiation between GMSL3, GMSL2 6Gbps, GMSL2 3Gbps.
* Automatic stream id selection for deserializers which need serializers to stream on unique stream ids.
* Automatic VC remapping on the deserializers. VCs are picked so that if they were unique on the sink pad, they will end up as unique on the source pad they are routed to too, prioritizing using the same VC ID as the sink pad, to facilitate the possibility of using tunnel mode.
* Automatic pixel mode / tunnel mode selection. Tunnel mode is used when VC IDs do not need to be changed and all hardware supports tunnel mode, otherwise, pixel mode is used. The serializers are automatically switched between the two by using a private API.
* Automatic double mode selection. In pixel mode, double mode can be used to pack two pixels into a single data unit, optimizing bandwidth usage. The serializers are automatically set up to support the double modes determined by the deserializers using a private API.
* Automatic data padding. In pixel mode, if the data being transferred uses two different BPPs, data needs to be padded. The serializers automatically set this up depending on the configured double mode settings and incoming data types.
* Logging. Both the deserializers and serializers implement the V4L2 .log_status() ops to allow debugging of the internal state and important chip status registers.
* PHY modes. Deserializer chips commonly have more than a single PHY. The firmware ports are parsed to determine the modes in which to configure the PHYs (2x4, 4x2, 1x4+2x2, 2x2+1x4, and variations using fewer lanes).
* Serializer pinctrl. Serializers implement pinctrl to allow setting configs which would otherwise be inaccessible through GPIO: TX/RX via GMSL link, pull-up & pull-down (with strength), open-drain & push-pull, slew rate, RCLK pin selection.
The drivers have been tested on the following hardware combinations, but further testing is welcome to ensure no / minimal breakage:
* Raspberry Pi 5 + MAX9296A + 2xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96714 + 1xMAX96717 + 1xIMX219
* Raspberry Pi 5 + MAX96716A + 2xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96712 + 4xMAX96717 + 4xIMX219
* Raspberry Pi 5 + MAX96724 + 4xMAX96717 + 4xIMX219
* Raspberry Pi 5 + MAX96792A + 1xMAX96793 + 1xMAX96717 + 2xIMX219
* Raspberry Pi 5 + MAX96792A + 2xMAX96717 + 2xIMX219
* Renesas V4H + MAX96712 + 2xMAX96717 + 2xIMX219Analog Devices is taking responsibility for the maintenance of these drivers and common framework, and plans to add support for new broad-market chips on top of them.
Special thanks go to Tomi Valkeinen <[email protected]> for testing the drivers, helping debug and coming up with ideas / implementations for various features.
V3:
* dt-bindings: drop reflow text patches* dt-bindings: max96717: move pinctrl configuration into main file
* dt-bindings: max96717: allow a single level of pins configuration
* dt-bindings: max96717: use regex for matching pins nodes
* dt-bindings: max96717: drop extra allOf in pinctrl configuration
* dt-bindings: max96717: fix i2c-atr channel name regex
* dt-bindings: max96717: limit pinctrl functions to gpio / rclkout
* dt-bindings: max96717: limit pins for gpio / rclkout
* dt-bindings: max96717: add description for bias-pull-up/down
* dt-bindings: max96717: require pins and function properties
* dt-bindings: max96717: turn single compatible strings into an enum* dt-bindings: max9296a: include indices in port descriptions
* dt-bindings: max9296a: remove property-less schema from input ports
* dt-bindings: max9296a: use ATR for MAX96716A too, removing MUX entirely* dt-bindings: max96712: include indices in port descriptions
* dt-bindings: max96712: deprecate enable-gpios in favor of powerdown-gpios
* dt-bindings: max96712: switch from MUX to ATR* dt-bindings: max96714: add support for MAX96714R
*
max_des: fix POC NULL check
*max_des: remove index var in POC enable
*max_des: fix writing empty remaps
*max_des: skip mode setting in tunnel mode
*max_des: remove a duplicatesource->sdNULL check
*max_des: set pipe tunnel mode even for disabled links*
max_ser: apply TX ID changes irrespective of serializer ID* max9296a: fix typo in BACKTOP22
* max9296a: make register macros more consistent
* max9296a: switch MAX96716 from MUX to ATR
* max9296a: deduplicatemax9296a_phy_id()logic
* max9296a: use proper PHY id in remaps
* max9296a: fix DPLL reset clear
* max9296a: limit MAX96714F to GMSL2 3Gbps
* max9296a: add support for MAX96714R
* max9296a: do not write GMSL3 link select registers in GMSL2 devices
* max9296a: usefield_prepwhen settingRX_RATE
* max9296a: simplify settingSEL_STREAMfor MAX96714
* max9296a:max96716_set_pipe_phy->max96716a_set_pipe_phy
* max9296a: fix off-by-one in lane polarity when usingpolarity_on_physical_lanes* max96724: fix typo in BACKTOP22
* max96724: switch from MUX to ATR
* max96724: add support for powerdown GPIO
* max96724: remove support for tunneling from MAX96712
* max96724: only set tunnel-related bits when in tunnel mode
* max96724: add support for MAX96724F/R
* max96724: oneshot reset links after link selection* remove GMSL2 version defaults, set all supported versions explicitly
* reorder GMSL versions to start from 0
* add support for GMSL2 3Gbps
* support GMSL version finding for devices using MUX / GATE
* add support for deserializers which don't have individual control of each link's GMSL version
* add support for deserializers that need unique stream ids across all serializers
*select_link_version->set_link_version
*select_resets_link->use_atrV2:
* add missing compatible for MAX96717F
* fix embarrassing dt-bindings mistakes
* move MAX9296A/MAX96716/MAX96792A to a separate file as they have two links / PHYs, and adding those conditionally seems impossibleCosmin Tanislav (19):
dt-bindings: media: i2c: max96717: add myself as maintainer
dt-bindings: media: i2c: max96717: add support for I2C ATR
dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf
dt-bindings: media: i2c: max96717: add support for MAX9295A
dt-bindings: media: i2c: max96717: add support for MAX96793
dt-bindings: media: i2c: max96712: add myself as maintainer
dt-bindings: media: i2c: max96712: use pattern properties for ports
dt-bindings: media: i2c: max96712: add support for I2C ATR
dt-bindings: media: i2c: max96712: add support for POC supplies
dt-bindings: media: i2c: max96712: deprecate enable-gpios
dt-bindings: media: i2c: max96712: add support for MAX96724F/R
dt-bindings: media: i2c: max96714: add myself as maintainer
dt-bindings: media: i2c: max96714: add support for MAX96714R
dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A
media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
arm64: defconfig: disable deprecated MAX96712 driver
staging: media: remove MAX96712 driver
media: i2c: remove MAX96717 driver
media: i2c: remove MAX96714 driver.../bindings/media/i2c/maxim,max9296a.yaml | 242 ++ .../bindings/media/i2c/maxim,max96712.yaml | 80 +- .../bindings/media/i2c/maxim,max96714.yaml | 6 +- .../bindings/media/i2c/maxim,max96717.yaml | 160 +- MAINTAINERS | 14 +- arch/arm64/configs/defconfig | 1 - drivers/media/i2c/Kconfig | 34 +- drivers/media/i2c/Makefile | 3 +- drivers/media/i2c/max96714.c | 1024 ------- drivers/media/i2c/max96717.c | 1103 -------- drivers/media/i2c/maxim-serdes/Kconfig | 53 + drivers/media/i2c/maxim-serdes/Makefile | 6 + drivers/media/i2c/maxim-serdes/max9296a.c | 1143 ++++++++ drivers/media/i2c/maxim-serdes/max96717.c | 1501 ++++++++++ drivers/media/i2c/maxim-serdes/max96724.c | 968 +++++++ drivers/media/i2c/maxim-serdes/max_des.c | 2446 +++++++++++++++++ drivers/media/i2c/maxim-serdes/max_des.h | 137 + drivers/media/i2c/maxim-serdes/max_ser.c | 1577 +++++++++++ drivers/media/i2c/maxim-serdes/max_ser.h | 129 + drivers/media/i2c/maxim-serdes/max_serdes.c | 302 ++ drivers/media/i2c/maxim-serdes/max_serdes.h | 89 + drivers/staging/media/Kconfig | 2 - drivers/staging/media/Makefile | 1 - drivers/staging/media/max96712/Kconfig | 14 - drivers/staging/media/max96712/Makefile | 2 - drivers/staging/media/max96712/max96712.c | 487 ---- 26 files changed, 8829 insertions(+), 2695 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml delete mode 100644 drivers/media/i2c/max96714.c delete mode 100644 drivers/media/i2c/max96717.c create mode 100644 drivers/media/i2c/maxim-serdes/Kconfig create mode 100644 drivers/media/i2c/maxim-serdes/Makefile create mode 100644 drivers/media/i2c/maxim-serdes/max9296a.c create mode 100644 drivers/media/i2c/maxim-serdes/max96717.c create mode 100644 drivers/media/i2c/maxim-serdes/max96724.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.c create mode 100644 drivers/media/i2c/maxim-serdes/max_des.h create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.c create mode 100644 drivers/media/i2c/maxim-serdes/max_ser.h create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.c create mode 100644 drivers/media/i2c/maxim-serdes/max_serdes.h delete mode 100644 drivers/staging/media/max96712/Kconfig delete mode 100644 drivers/staging/media/max96712/Makefile delete mode 100644 drivers/staging/media/max96712/max96712.cSignature · 1 line
2.49.0
Signature · 2 lines
Kind Regards, Niklas Söderlund
Rob Herring (Arm)
maintainerRe: [PATCH v3 14/19] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A
In reply to Cosmin TanislavQuoted 12 lines · Cosmin Tanislav
The MAX9296A deserializer converts single or dual serial inputs to MIPI CSI-2 outputs. The GMSL2 links operate at a fixed rate of 3Gbps or 6Gbps in the forward direction and 187.5Mbps in the reverse direction. In GMSL1 mode, each serial link can be paired with 3.12Gbps or 1.5Gbps GMSL1 serializers or operate up to 4.5Gbps with GMSL2 serializers with GMSL1 backward compatibility. The MAX9296A supports mixed GMSL2 and GMSL1 links. The serial inputs operate independently, allowing videos with different timings and resolutions to be received on each input.
MAX96716A supports both tunnel and pixel mode.
MAX96792A supports both tunnel and pixel mode, and has two GMSL3 links.
Quoted 7 lines
Signed-off-by Cosmin Tanislav <[email protected]>--- .../bindings/media/i2c/maxim,max9296a.yaml | 242 ++++++++++++++++++ MAINTAINERS | 6 + 2 files changed, 248 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9296a.yaml
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.example.dtb: serializer@40 (maxim,max96717): compatible: 'oneOf' conditional failed, one must be fixed:
['maxim,max96717'] is too short 'maxim,max96717' is not one of ['maxim,max9295a', 'maxim,max96717f'] from schema $id: http://devicetree.org/schemas/media/i2c/maxim,max96717.yaml# /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/media/i2c/maxim,max9296a.example.dtb: serializer@40 (maxim,max96717): compatible: 'oneOf' conditional failed, one must be fixed: ['maxim,max96717'] is too short 'maxim,max96717' is not one of ['maxim,max9295a', 'maxim,max96717f'] from schema $id: http://devicetree.org/schemas/media/i2c/maxim,max96717.yaml#
doc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]
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.
Re: [PATCH v3 01/19] dt-bindings: media: i2c: max96717: add myself as maintainer
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
Analog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.Signed-off-by Cosmin Tanislav <[email protected]>--- Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Re: [PATCH v3 02/19] dt-bindings: media: i2c: max96717: add support for I2C ATR
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
MAX96717 is capable of address translation for the connected I2C slaves.
Add support for I2C ATR while keeping I2C gate for compatibility to support this usecase.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../bindings/media/i2c/maxim,max96717.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+)
Rob Herring
maintainerRe: [PATCH v3 03/19] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf
In reply to Cosmin TanislavQuoted 136 lines · Cosmin Tanislav
MAX96717 is capable of configuring various pin properties.
Add pinctrl/pinconf properties to support this usecase.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../bindings/media/i2c/maxim,max96717.yaml | 110 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 111 insertions(+)Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml +110
-0@@ -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:MAINTAINERS +0
-0
MAINTAINERS M: Julien Massot <[email protected]> · line 14204
Quoted 4 lines
MAINTAINERS +1
-0@@ -14201,6 +14201,7 @@ M: Julien Massot <[email protected]> M: Cosmin Tanislav <[email protected]> L: [email protected] S: Maintained +F: Documentation/devicetree/bindings/media/i2c/maxim,max96717-pinctrl.yaml
Don't think you need this...
Quoted 6 lines
MAINTAINERS +0
-0F: Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml F: drivers/media/i2c/max96717.cSignature · 1 line
2.49.0
Re: [PATCH v3 04/19] dt-bindings: media: i2c: max96717: add support for MAX9295A
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
MAX9295A is an older variant of the MAX96717 which does not support tunnel mode.
Document the compatibility.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96717.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Re: [PATCH v3 05/19] dt-bindings: media: i2c: max96717: add support for MAX96793
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
MAX96793 is a newer variant of the MAX96717 which also supports GMSL3 links.
Document this compatibility.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96717.yaml | 3 +++ 1 file changed, 3 insertions(+)
Re: [PATCH v3 06/19] dt-bindings: media: i2c: max96712: add myself as maintainer
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
Analog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.Signed-off-by Cosmin Tanislav <[email protected]>--- Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Re: [PATCH v3 07/19] dt-bindings: media: i2c: max96712: use pattern properties for ports
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
The MAX96712 and MAX96724 support up to 4 separate PHYs, depending on the selected PHY configuration. Use patternProperties to document this.
The input ports are all the same, use patternProperties for them.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../bindings/media/i2c/maxim,max96712.yaml | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-)
Re: [PATCH v3 08/19] dt-bindings: media: i2c: max96712: add support for I2C ATR
In reply to Cosmin TanislavQuoted 9 lines · Cosmin Tanislav
MAX96712 and MAX96724 have more than one GMSL2 link, and each link is capable of connecting to a separate serializer. If these serializers have the same CFG pins configuration, they will also have the same I2C address, causing conflicts unless the deserializer changes the address of the connected serializers.
The MAX96712 and MAX96724 support changing the I2C address of the connected serializers.
Quoted 7 lines
Document this capability.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../bindings/media/i2c/maxim,max96712.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+)
Re: [PATCH v3 09/19] dt-bindings: media: i2c: max96712: add support for POC supplies
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
The GMSL links can carry power to the serializer when using coaxial cables.
Document this capability.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 4 ++++ 1 file changed, 4 insertions(+)
Rob Herring
maintainerRe: [PATCH v3 10/19] dt-bindings: media: i2c: max96712: deprecate enable-gpios
In reply to Cosmin TanislavQuoted 8 lines · Cosmin Tanislav
The MAX96712 actually has a GPIO named PWDNB, which will put the chip in reset state when held low. Esentially, it works as an enable GPIO, but the naming is different.
Deprecate the enable-gpios property, and add powerdown-gpios as the rest of the GMSL chips.
Change the example to use powerdown-gpios.
I don't know that this is worth changing because then we have to maintain both forever.
Quoted 36 lines
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/media/i2c/maxim,max96712.yaml +8
-2@@ -35,7 +35,13 @@ properties: description: I2C device address maxItems: 1 - enable-gpios: true + enable-gpios: + maxItems: 1 + deprecated: true + + powerdown-gpios: + maxItems: 1 + description: Specifier for the GPIO connected to the PWDNB pin. i2c-alias-pool: maxItems: 4@@ -128,7 +134,7 @@ examples: gmsl0: gmsl-deserializer@49 { compatible = "maxim,max96712"; reg = <0x49>; - enable-gpios = <&pca9654_a 0 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&pca9654_a 0 GPIO_ACTIVE_LOW>; ports { #address-cells = <1>;Signature · 1 line
2.49.0
Re: [PATCH v3 11/19] dt-bindings: media: i2c: max96712: add support for MAX96724F/R
In reply to Cosmin TanislavQuoted 8 lines · Cosmin Tanislav
MAX96724F/MAX96724R are a lower capability variant of the MAX96724 which only support a fixed rate of 3Gbps in the forward direction.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96712.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Re: [PATCH v3 12/19] dt-bindings: media: i2c: max96714: add myself as maintainer
In reply to Cosmin TanislavQuoted 10 lines · Cosmin Tanislav
Analog Devices is taking responsability for the maintenance of the Maxim GMSL2/3 devices.
Add myself to the maintainers list and to the device tree bindings.Signed-off-by Cosmin Tanislav <[email protected]>--- Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml | 1 + MAINTAINERS | 1 + 2 files changed, 2 insertions(+)
Re: [PATCH v3 13/19] dt-bindings: media: i2c: max96714: add support for MAX96714R
In reply to Cosmin TanislavQuoted 8 lines · Cosmin Tanislav
MAX96714R is a lower capability variant of the MAX96714 which only supports a fixed rate of 3Gbps in the forward direction.
Signed-off-by Cosmin Tanislav <[email protected]>--- .../devicetree/bindings/media/i2c/maxim,max96714.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Hi Cosmin,
I have tested this patch using following hardware setup:
* Raspberry Pi 5 + MAX96724 + MAX96717 + IMX219 * Raspberry Pi 5 + MAX96714 + MAX96717 + IMX219 It worked as expected without issues. Great work! -- Cheers
Jakub Kostiw
Hi Cosmin,
Resending my feedback as I accidently replied to wrong thread.
I have tested this patch using following hardware setup:
* Raspberry Pi 5 + MAX96724 + MAX96717 + IMX219
* Raspberry Pi 5 + MAX96714 + MAX96717 + IMX219
It worked as expected without issues.
Great work!
Signature · 2 lines
Cheers Jakub Kostiw