MAX9286 GMSL Support
Subsystems (4)
v3 cover MAX9286 GMSL Support
This series provides a pair of drivers for GMSL cameras on the R-Car ADAS platforms.
These drivers originate from Cogent Embedded, and have been refactored to split the MAX9286 away from the RDACM20 drivers which were once very tightly coupled.
This posting is the culmination of ~100 changesets spread across Jacopo, Niklas, Laurent and myself - thus they contain all of our SoB tags.
Although this device is capable of handling up to 4 streams, this is not possible until the VC work comes through from Sakari and as such - this driver is only functional on a *single* stream.
This driver along with the associated platform support for the Renesas R-Car Salvator-X, and the Eagle-V3M can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git gmsl/v3
---
v2:
- Add Jacopo's dt-binding patches
- Fix MAINTAINERS entries
- Add imi vendor prefix to Jacopo's patches
- Remove VC support
v3:
MAX9286:
- Initialise notifier with v4l2_async_notifier_init
- Update for new mbus csi2 format V4L2_MBUS_CSI2_DPHY
RDACM20:
- Use new V4L2_MBUS_CSI2_DPHY bus type
- Remove 'always zero' error print
- Fix module description
Bindings:
- Fixes from Laurent's review comments on V2
Jacopo Mondi (1):
dt-bindings: media: i2c: Add bindings for IMI RDACM20
Kieran Bingham (2):
media: i2c: Add MAX9286 driver
media: i2c: Add RDACM20 driver
Laurent Pinchart (1):
dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
.../bindings/media/i2c/imi,rdacm20.txt | 65 + .../bindings/media/i2c/maxim,max9286.txt | 182 +++ .../devicetree/bindings/vendor-prefixes.txt | 1 + MAINTAINERS | 20 + drivers/media/i2c/Kconfig | 22 + drivers/media/i2c/Makefile | 2 + drivers/media/i2c/max9286.c | 1136 +++++++++++++++++ drivers/media/i2c/rdacm20-ov10635.h | 953 ++++++++++++++ drivers/media/i2c/rdacm20.c | 635 +++++++++ 9 files changed, 3016 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imi,rdacm20.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt create mode 100644 drivers/media/i2c/max9286.c create mode 100644 drivers/media/i2c/rdacm20-ov10635.h create mode 100644 drivers/media/i2c/rdacm20.c
Signature · 1 line
2.17.1
PATCH v3 1/4 dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
---
v3:
- Update binding descriptions
--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +182 -0
@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes. + +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus. + +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address + +Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pin + +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description + ---------------------------------------- + Port 0 GMSL Input 0 + Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]): + +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane. + +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>; + + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Signature · 1 line
2.17.1
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hi Kieran,
Could you cc the devicetree list for the next version, please?
Quoted 24 lines · Kieran Bingham
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
Signed-off-by Laurent Pinchart <[email protected]>Signed-off-by Jacopo Mondi <[email protected]>Signed-off-by Kieran Bingham <[email protected]>---
v3:
- Update binding descriptions--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +0
-0
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
CSI-2 D-PHY I presume?
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus.
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 21
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address + +Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pin
If this is basically a hardware reset pin, then you could call it e.g. enable-gpios or reset-gpios. There was recently a similar discussion related to ad5820 DT bindings.
Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +9
-0+ +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port.
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ + Port Description + ---------------------------------------- + Port 0 GMSL Input 0 + Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):
Isn't port 4 included?
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.
Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Quoted 66 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +66
-0+ +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + };
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 124
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>;
What's the second value for in the reg property? There's more of the same below.
Quoted 58 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +58
-0+ + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Signature · 4 lines
Regards, Sakari Ailus e-mail: [email protected]
Kieran Bingham
maintainerRe: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hi Sakari,
Thank you for the review,
Quoted 3 lines · Sakari Ailus
Hi Kieran,
Could you cc the devicetree list for the next version, please?
Argh - looks like I've missed the DT list on all three postings.
No wonder the responses have been quiet :-)
I'll do a v4 post after I've gone through some of your comments, and make sure I remember the DT guys this time :)
Quoted 19 lines · Kieran Bingham
Quoted 18 lines
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
Signed-off-by Laurent Pinchart <[email protected]>Signed-off-by Jacopo Mondi <[email protected]>Signed-off-by Kieran Bingham <[email protected]>---
v3:
- Update binding descriptions--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt
Quoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +12
-0+ +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus. + +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address +
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 21
Quoted 4 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +4
-0+Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pinIf this is basically a hardware reset pin, then you could call it e.g. enable-gpios or reset-gpios. There was recently a similar discussion related to ad5820 DT bindings.
Ah yes ... now which polarity ;-)
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +13
-0+ +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description + ---------------------------------------- + Port 0 GMSL Input 0
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):Isn't port 4 included?
Hrm ... yes well I guess these are mandatory for port 4. I'll look at the wording here.
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Uhm ... Niklas?
Quoted 72 lines
Quoted 72 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +71
-0+ +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>;
Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 124
Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0+ reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>;What's the second value for in the reg property? There's more of the same below.
These are specific to the RDACM20:
Quoted 1 line
From the RDACM20 documentation:
- reg: Pair of I2C device addresses, the first to be assigned to the serializer, the second to be assigned to the camera sensor.
Each RDACM20 camera boots up with the same I2C addresses. The driver remaps them to the new values specified here.
But they are not relevant to the max9286 except for the example of adding in the rdacm20.
Quoted 59 lines
Quoted 58 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +58
-0+ + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hi Kieran,
Quoted 16 lines · Kieran Bingham
Quoted 7 lines
Quoted 7 lines
(quoted diff) +0
-0
a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtb/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtnew file mode 100644
index 000000000000..a73e3c0dc31bDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +0
-0Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Quoted 4 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Yes it's only D-PHY.
Quoted 13 lines
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Quoted 1 line
Uhm ... Niklas?
The MAX9286 documentation contains information on lane remapping and support for any number (1-4) of enabled data-lanes. I have not tested if this works in practice but the registers are there and documented :-)
Signature · 2 lines
Regards, Niklas Söderlund
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hello,
Quoted 39 lines · On Monday, 15 October 2018 22:01:21 EEST Niklas Söderlund wrote:
Quoted 18 lines · Kieran Bingham
Quoted 9 lines
Quoted 9 lines
diff --git
a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtb/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtnew file mode 100644
index 000000000000..a73e3c0dc31bDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +1
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL DeserializerQuoted 8 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +3
-0+--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 GigabitMultimedia
+Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Quoted 4 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Yes it's only D-PHY.
Quoted 13 lines
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 9 lines
+
+- remote-endpoint: phandle to the remote GMSL source endpoint subnode in theDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Quoted 5 lines
Quoted 1 line
Uhm ... Niklas?
The MAX9286 documentation contains information on lane remapping and support for any number (1-4) of enabled data-lanes. I have not tested if this works in practice but the registers are there and documented :-)
That's my understanding too. Clock lane remapping doesn't seem to be supported though. We could thus omit the clock-lanes property.
Signature · 3 lines
Regards, Laurent Pinchart
Kieran Bingham
maintainerRe: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Quoted 21 lines · Laurent Pinchart
Hello,
Quoted 18 lines · On Monday, 15 October 2018 22:01:21 EEST Niklas Söderlund wrote:
Quoted 17 lines · Kieran Bingham
Quoted 17 lines
Quoted 12 lines
diff --git
a/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtb/Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtnew file mode 100644
index 000000000000..a73e3c0dc31bDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +4
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 GigabitQuoted 3 lines
Multimedia
+Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Updated.
Quoted 21 lines
Quoted 21 lines
Quoted 5 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Yes it's only D-PHY.
Quoted 13 lines
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 9 lines
+
+- remote-endpoint: phandle to the remote GMSL source endpoint subnode in theDocumentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Uhm ... Niklas?
The MAX9286 documentation contains information on lane remapping and support for any number (1-4) of enabled data-lanes. I have not tested if this works in practice but the registers are there and documented :-)
That's my understanding too. Clock lane remapping doesn't seem to be supported though. We could thus omit the clock-lanes property.
Ok - no point describing something that can't be changed.
Dropped.
--
Regards
Kieran
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
In reply to Kieran BinghamHi Kieran,
Quoted 50 lines · Kieran Bingham
Hi Sakari,
Thank you for the review,
Quoted 3 lines · Sakari Ailus
Hi Kieran,
Could you cc the devicetree list for the next version, please?
Argh - looks like I've missed the DT list on all three postings.
No wonder the responses have been quiet :-)
I'll do a v4 post after I've gone through some of your comments, and make sure I remember the DT guys this time :)
Quoted 19 lines · Kieran Bingham
Quoted 18 lines
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
Signed-off-by Laurent Pinchart <[email protected]>Signed-off-by Jacopo Mondi <[email protected]>Signed-off-by Kieran Bingham <[email protected]>---
v3:
- Update binding descriptions--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtQuoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Quoted 26 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Quoted 20 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus.Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 21
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address + +Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pinIf this is basically a hardware reset pin, then you could call it e.g. enable-gpios or reset-gpios. There was recently a similar discussion related to ad5820 DT bindings.
Techinically is a powerdown control, it shuts the current to the chip, not reset it.
Quoted 2 lines
Ah yes ... now which polarity ;-)
The signal is active low (when is at physical level 0, the chip is off).
According to the gpio bindings documentation
"The gpio-specifier's polarity flag should represent the physical level at the GPIO controller that achieves (or represents, for inputs) a logically asserted value at the device."
Sakari's argument, which I understand and has been debated before, is to use generic names (ie. don't use the pin name as specified by the HW manual, but name it after its function. It doesn't matter if your pin is called "#RST", just call it "reset-gpios' and state the pin name in the documentation if you like to.)
I count much more 'enable-gpios' compared to 'powerdown-gpios', so that seems the obvious choice, as generic names have not yet been documented anywhere as far as I know, but the most common ones should be used.
Using generic names is good because in the power up/down routines, you don't have to care about the signals polarities, but only about their logical levels. At power-up if you have an "enable-gpio" just set it to logical 1, the gpio framework translates it to the appropriate physical level. Easier to write and to review.
To comply with GPIO bindings we would have to
enable-gpios: <&gpio 13 GPIO_ACTIVE_LOW>;
And at power up we would have to use the logical value, and for an enable signal, setting it to "1" at power up would be the natural choice. However to have our line set to physical 1 and have the chip powered we would have to:
gpiod_set_value(&enable, 0);
Which makes any reason to use generic names vanish.
All of this to say that, even if less popular, I would call it "powerdown-gpios", which is anyway quite generic, and describe it as:
powerdown-gpios: Power down GPIO signal, pin name "PWDN". Active low.
So that at power_up:
gpiod_set_value(&pwdn, 0);
And at power down:
gpiod_set_value(&pwdn, 1);
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +11
-0+ +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description
Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ ---------------------------------------- + Port 0 GMSL Input 0 + Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):
I guess Sakari means s/3/4 here: ^
Or didn't I get his questions and then neither your answer :) ?
Thanks
j
Quoted 178 lines
Quoted 2 lines
Isn't port 4 included?
Hrm ... yes well I guess these are mandatory for port 4. I'll look at the wording here.
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Uhm ... Niklas?
Quoted 72 lines
Quoted 72 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +71
-0+ +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>;Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 124
Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0+ reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>;What's the second value for in the reg property? There's more of the same below.
These are specific to the RDACM20:
From the RDACM20 documentation:
- reg: Pair of I2C device addresses, the first to be assigned to the serializer, the second to be assigned to the camera sensor.
Each RDACM20 camera boots up with the same I2C addresses. The driver remaps them to the new values specified here.
But they are not relevant to the max9286 except for the example of adding in the rdacm20.
Quoted 59 lines
Quoted 58 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +58
-0+ + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Kieran Bingham
maintainerRe: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hi Jacopo,
Quoted 80 lines · jacopo mondi
Hi Kieran,
Quoted 50 lines · Kieran Bingham
Hi Sakari,
Thank you for the review,
Quoted 3 lines · Sakari Ailus
Hi Kieran,
Could you cc the devicetree list for the next version, please?
Argh - looks like I've missed the DT list on all three postings.
No wonder the responses have been quiet :-)
I'll do a v4 post after I've gone through some of your comments, and make sure I remember the DT guys this time :)
Quoted 19 lines · Kieran Bingham
Quoted 18 lines
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
Signed-off-by Laurent Pinchart <[email protected]>Signed-off-by Jacopo Mondi <[email protected]>Signed-off-by Kieran Bingham <[email protected]>---
v3:
- Update binding descriptions--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtQuoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Quoted 26 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Quoted 20 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus.Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 21
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address + +Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pinIf this is basically a hardware reset pin, then you could call it e.g. enable-gpios or reset-gpios. There was recently a similar discussion related to ad5820 DT bindings.
Quoted 8 lines
Techinically is a powerdown control, it shuts the current to the chip, not reset it.
Quoted 2 lines
Ah yes ... now which polarity ;-)
The signal is active low (when is at physical level 0, the chip is off).
Great - so this is the same as having an enable-gpio which is GPIO_ACTIVE_HIGH right ?
Quoted 23 lines
According to the gpio bindings documentation
"The gpio-specifier's polarity flag should represent the physical level at the GPIO controller that achieves (or represents, for inputs) a logically asserted value at the device."
Sakari's argument, which I understand and has been debated before, is to use generic names (ie. don't use the pin name as specified by the HW manual, but name it after its function. It doesn't matter if your pin is called "#RST", just call it "reset-gpios' and state the pin name in the documentation if you like to.)
I count much more 'enable-gpios' compared to 'powerdown-gpios', so that seems the obvious choice, as generic names have not yet been documented anywhere as far as I know, but the most common ones should be used.
Using generic names is good because in the power up/down routines, you don't have to care about the signals polarities, but only about their logical levels. At power-up if you have an "enable-gpio" just set it to logical 1, the gpio framework translates it to the appropriate physical level. Easier to write and to review.
Quoted 3 lines
To comply with GPIO bindings we would have to
enable-gpios: <&gpio 13 GPIO_ACTIVE_LOW>;
I think I misunderstand your point here.
Why do we have to set the polarity as ACTIVE_LOW to comply with the bindings?
A logically asserted 'enable' value of the device is GPIO_ACTIVE_HIGH on this pin?
If 'powerdown' is inverted to 'enable' then so is the signal polarity?
Quoted 8 lines
And at power up we would have to use the logical value, and for an enable signal, setting it to "1" at power up would be the natural choice. However to have our line set to physical 1 and have the chip powered we would have to:
gpiod_set_value(&enable, 0);Which makes any reason to use generic names vanish.
So then we should be able to use:
enable-gpios: <&gpio 13 GPIO_ACTIVE_HIGH>;
At power up:
gpiod_set_value(&enable, 1);
At power down:
gpiod_set_value(&enable, 0);
Interestingly though - we don't yet touch this in the driver at all!
So I assume the device is conveniently at the right level for us already?
But if we want any runtime-pm we would need to add in this support.
Quoted 26 lines
All of this to say that, even if less popular, I would call it "powerdown-gpios", which is anyway quite generic, and describe it as:
powerdown-gpios: Power down GPIO signal, pin name "PWDN". Active low.
So that at
power_up:gpiod_set_value(&pwdn, 0);And at power down:
gpiod_set_value(&pwdn, 1);Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +13
-0+ +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description + ---------------------------------------- + Port 0 GMSL Input 0
Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):I guess Sakari means s/3/4 here: ^
That would be incorrect, because Port 4 is an output port, not an input port.
Quoted 10 lines
Or didn't I get his questions and then neither your answer :) ?
Thanks
jQuoted 5 lines
Quoted 2 lines
Isn't port 4 included?
Hrm ... yes well I guess these are mandatory for port 4. I'll look at the wording here.
Port 4 does also need a remote-endpoint, but it is to a CSI2 sink endpoint node. Not a GMSL source endpoint node - hence it's not appropriate to just 's/3/4/' above.
Quoted 102 lines
Quoted 102 lines
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Uhm ... Niklas?
Quoted 72 lines
Quoted 72 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +71
-0+ +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>;Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 124
Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0+ reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>;What's the second value for in the reg property? There's more of the same below.
These are specific to the RDACM20:
From the RDACM20 documentation:
Quoted 8 lines
Quoted 8 lines
- reg: Pair of I2C device addresses, the first to be assigned to the serializer, the second to be assigned to the camera sensor.
Each RDACM20 camera boots up with the same I2C addresses. The driver remaps them to the new values specified here.
But they are not relevant to the max9286 except for the example of adding in the rdacm20.
I wonder if perhaps we should specify a reg-names field here to make this clear? Especially as we could/should also add a third register "mcu" on this at some point.
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 58 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +58
-0+ + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
Hi Kieran,
Quoted 119 lines · Kieran Bingham
Hi Jacopo,
Quoted 80 lines · jacopo mondi
Hi Kieran,
Quoted 50 lines · Kieran Bingham
Hi Sakari,
Thank you for the review,
Quoted 3 lines · Sakari Ailus
Hi Kieran,
Could you cc the devicetree list for the next version, please?
Argh - looks like I've missed the DT list on all three postings.
No wonder the responses have been quiet :-)
I'll do a v4 post after I've gone through some of your comments, and make sure I remember the DT guys this time :)
Quoted 19 lines · Kieran Bingham
Quoted 18 lines
From: Laurent Pinchart <[email protected]>
The MAX9286 deserializes video data received on up to 4 Gigabit Multimedia Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.
Signed-off-by Laurent Pinchart <[email protected]>Signed-off-by Jacopo Mondi <[email protected]>Signed-off-by Kieran Bingham <[email protected]>---
v3:
- Update binding descriptions--- .../bindings/media/i2c/maxim,max9286.txt | 182 ++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/maxim,max9286.txtQuoted 13 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 5
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0@@ -0,0 +1,182 @@ +Maxim Integrated Quad GMSL Deserializer +--------------------------------------- + +The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia +Serial Links (GMSL) and outputs them on a CSI-2 port using up to 4 data lanes.CSI-2 D-PHY I presume?
Quoted 26 lines
Yes, that's how I've adapted the driver based on the latest bus changes.
Niklas - Could you confirm that everything in VIN/CSI2 is configured to use D-PHY and not C-PHY at all ?
Quoted 20 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ +In addition to video data, the GMSL links carry a bidirectional control +channel that encapsulates I2C messages. The MAX9286 forwards all I2C traffic +not addressed to itself to the other side of the links, where a GMSL +serializer will output it on a local I2C bus. In the other direction all I2C +traffic received over GMSL by the MAX9286 is output on the local I2C bus.Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 21
Quoted 10 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +10
-0+ +Required Properties: + +- compatible: Shall be "maxim,max9286" +- reg: I2C device address + +Optional Properties: + +- poc-supply: Regulator providing Power over Coax to the cameras +- pwdn-gpios: GPIO connected to the #PWDN pinIf this is basically a hardware reset pin, then you could call it e.g. enable-gpios or reset-gpios. There was recently a similar discussion related to ad5820 DT bindings.
Quoted 8 lines
Techinically is a powerdown control, it shuts the current to the chip, not reset it.
Quoted 2 lines
Ah yes ... now which polarity ;-)
The signal is active low (when is at physical level 0, the chip is off).
Great - so this is the same as having an enable-gpio which is
GPIO_ACTIVE_HIGHright ?Quoted 23 lines
According to the gpio bindings documentation
"The gpio-specifier's polarity flag should represent the physical level at the GPIO controller that achieves (or represents, for inputs) a logically asserted value at the device."
Sakari's argument, which I understand and has been debated before, is to use generic names (ie. don't use the pin name as specified by the HW manual, but name it after its function. It doesn't matter if your pin is called "#RST", just call it "reset-gpios' and state the pin name in the documentation if you like to.)
I count much more 'enable-gpios' compared to 'powerdown-gpios', so that seems the obvious choice, as generic names have not yet been documented anywhere as far as I know, but the most common ones should be used.
Using generic names is good because in the power up/down routines, you don't have to care about the signals polarities, but only about their logical levels. At power-up if you have an "enable-gpio" just set it to logical 1, the gpio framework translates it to the appropriate physical level. Easier to write and to review.
Quoted 9 lines
Quoted 3 lines
To comply with GPIO bindings we would have to
enable-gpios: <&gpio 13 GPIO_ACTIVE_LOW>;I think I misunderstand your point here.
Why do we have to set the polarity as
ACTIVE_LOWto comply with the bindings?
As I read this
Quoted 7 lines
Quoted 3 lines
"The gpio-specifier's polarity flag should represent the physical level at the GPIO controller that achieves (or represents, for inputs) a logically asserted value at the device."
A logically asserted 'enable' value of the device is
GPIO_ACTIVE_HIGHon this pin?If 'powerdown' is inverted to 'enable' then so is the signal polarity?
Ok then, I see. An 'enable' is logically asserted when the pin is physically HIGH. A 'powerdown' is logically asserted when the pin is physically LOW. My previous reasoning was taking into account the actual pin function (eg. the #PWDN pin is logicall asserted when is physically LOW). But yeah, if we call it enable, it should be described as physically active HIGH.
Quoted 14 lines
Quoted 10 lines
And at power up we would have to use the logical value, and for an enable signal, setting it to "1" at power up would be the natural choice. However to have our line set to physical 1 and have the chip powered we would have to:
gpiod_set_value(&enable, 0);Which makes any reason to use generic names vanish.
So then we should be able to use:
Quoted 7 lines
enable-gpios: <&gpio 13
GPIO_ACTIVE_HIGH>;At power up:
gpiod_set_value(&enable, 1);At power down:
gpiod_set_value(&enable, 0);
Yes, seems good to me :) I've been overthinking this possibly.
Thanks
j
Quoted 241 lines
Interestingly though - we don't yet touch this in the driver at all!
So I assume the device is conveniently at the right level for us already?
But if we want any runtime-pm we would need to add in this support.
Quoted 26 lines
All of this to say that, even if less popular, I would call it "powerdown-gpios", which is anyway quite generic, and describe it as:
powerdown-gpios: Power down GPIO signal, pin name "PWDN". Active low.
So that at
power_up:gpiod_set_value(&pwdn, 0);And at power down:
gpiod_set_value(&pwdn, 1);Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +13
-0+ +Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description + ---------------------------------------- + Port 0 GMSL Input 0Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):I guess Sakari means s/3/4 here: ^
That would be incorrect, because Port 4 is an output port, not an input port.
Quoted 10 lines
Or didn't I get his questions and then neither your answer :) ?
Thanks
jQuoted 5 lines
Quoted 2 lines
Isn't port 4 included?
Hrm ... yes well I guess these are mandatory for port 4. I'll look at the wording here.
Port 4 does also need a remote-endpoint, but it is to a CSI2 sink endpoint node. Not a GMSL source endpoint node - hence it's not appropriate to just 's/3/4/' above.
Quoted 102 lines
Quoted 102 lines
Quoted 11 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 48
Quoted 8 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +8
-0+ +- remote-endpoint: phandle to the remote GMSL source endpoint subnode in the + remote node port. + +Required Endpoint Properties for CSI-2 Output Port (Port 4): + +- data-lanes: array of physical CSI-2 data lane indexes. +- clock-lanes: index of CSI-2 clock lane.Is any number of lanes supported? How about lane remapping? If you do not have lane remapping, the clock-lanes property is redundant.
Uhm ... Niklas?
Quoted 72 lines
Quoted 72 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +71
-0+ +Required i2c-mux nodes: +---------------------- + +Each GMSL link is modeled as a child bus of an i2c bus multiplexer/switch, in +accordance with bindings described in +Documentation/devicetree/bindings/i2c/i2c-mux.txt. The serializer device on +the remote end of the GMSL link shall be modelled as a child node of the +corresponding I2C bus. + +Required i2c child bus properties: +- all properties described as required i2c child bus nodes properties in + Documentation/devicetree/bindings/i2c/i2c-mux.txt. + +Example: +------- + + gmsl-deserializer@2c { + compatible = "maxim,max9286"; + reg = <0x2c>; + poc-supply = <&camera_poc_12v>; + pwdn-gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + + #address-cells = <1>; + #size-cells = <0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + max9286_in0: endpoint { + remote-endpoint = <&rdacm20_out0>; + }; + }; + + port@1 { + reg = <1>; + max9286_in1: endpoint { + remote-endpoint = <&rdacm20_out1>; + }; + }; + + port@2 { + reg = <2>; + max9286_in2: endpoint { + remote-endpoint = <&rdacm20_out2>; + }; + }; + + port@3 { + reg = <3>; + max9286_in3: endpoint { + remote-endpoint = <&rdacm20_out3>; + }; + }; + + port@4 { + reg = <4>; + max9286_out: endpoint { + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csi40_in>; + }; + }; + }; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>;Quoted 9 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 124
Quoted 5 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +5
-0+ reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>;What's the second value for in the reg property? There's more of the same below.
These are specific to the RDACM20:
From the RDACM20 documentation:
Quoted 8 lines
Quoted 8 lines
- reg: Pair of I2C device addresses, the first to be assigned to the serializer, the second to be assigned to the camera sensor.
Each RDACM20 camera boots up with the same I2C addresses. The driver remaps them to the new values specified here.
But they are not relevant to the max9286 except for the example of adding in the rdacm20.
I wonder if perhaps we should specify a reg-names field here to make this clear? Especially as we could/should also add a third register "mcu" on this at some point.
Quoted 59 lines
Quoted 59 lines
Quoted 59 lines
Quoted 58 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +58
-0+ + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + camera@52 { + compatible = "imi,rdacm20"; + reg = <0x52 0x62>; + port { + rdacm20_out1: endpoint { + remote-endpoint = <&max9286_in1>; + }; + }; + }; + }; + + i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + + camera@53 { + compatible = "imi,rdacm20"; + reg = <0x53 0x63>; + port { + rdacm20_out2: endpoint { + remote-endpoint = <&max9286_in2>; + }; + }; + }; + }; + + i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + camera@54 { + compatible = "imi,rdacm20"; + reg = <0x54 0x64>; + port { + rdacm20_out3: endpoint { + remote-endpoint = <&max9286_in3>; + }; + }; + }; + }; + };
Re: [PATCH v3 1/4] dt-bindings: media: i2c: Add bindings for Maxim Integrated MAX9286
In reply to Kieran BinghamHi Kieran,
On Fri, Nov 02, 2018 at 01:29:54PM +0000, Kieran Bingham wrote:
...
Quoted 31 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +12
-0+Required endpoint nodes: +----------------------- + +The connections to the MAX9286 GMSL and its endpoint nodes are modeled using +the OF graph bindings in accordance with the video interface bindings defined +in Documentation/devicetree/bindings/media/video-interfaces.txt. + +The following table lists the port number corresponding to each device port. + + Port Description + ---------------------------------------- + Port 0 GMSL Input 0Quoted 9 lines
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt line 40
Quoted 6 lines
Documentation/devicetree/bindings/media/i2c/maxim,max9286.txt new file +6
-0+ Port 1 GMSL Input 1 + Port 2 GMSL Input 2 + Port 3 GMSL Input 3 + Port 4 CSI-2 Output + +Optional Endpoint Properties for GSML Input Ports (Port [0-3]):I guess Sakari means s/3/4 here: ^
That would be incorrect, because Port 4 is an output port, not an input port.
Quoted 6 lines
Or didn't I get his questions and then neither your answer :) ?
Thanks
jQuoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Isn't port 4 included?
Hrm ... yes well I guess these are mandatory for port 4. I'll look at the wording here.
Port 4 does also need a remote-endpoint, but it is to a CSI2 sink endpoint node. Not a GMSL source endpoint node - hence it's not appropriate to just 's/3/4/' above.
Ah, right. And now I recall Rob's position has been that remote-endpoint property doesn't really need documenting in per-device bindings as it's part of the graph bindings anyway; just refer to the graph bindings --- just like you refer to video-interfaces.txt.
Signature · 2 lines
Sakari Ailus e-mail: [email protected]
PATCH v3 2/4 dt-bindings: media: i2c: Add bindings for IMI RDACM20
In reply to Kieran BinghamFrom: Jacopo Mondi <[email protected]>
The IMI RDACM20 is a Gigabit Multimedia Serial Link (GMSL) camera capable of transmitting video and I2C control messages on a coax cable physical link for automotive applications.
Document its device tree binding interface.
---
v2:
- Provide imi vendor prefix
- Fix minor spelling
v3:
- update binding descriptions
--- .../bindings/media/i2c/imi,rdacm20.txt | 65 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imi,rdacm20.txt
Documentation/devicetree/bindings/media/i2c/imi,rdacm20.txt new file +65 -0
@@ -0,0 +1,65 @@ +IMI D&D RDACM20 Automotive Camera Platform +------------------------------------------ + +The IMI D&D RDACM20 is a GMSL-compatible camera designed for automotive +applications. It encloses a Maxim Integrated MAX9271 GMSL serializer, an +Omnivision OV10635 camera sensor and an embedded MCU, and connects to a remote +GMSL endpoint through a coaxial cable. + + IMI RDACM20 + --------------- -------------------------------- +| GMSL | <--- Video Stream | <- Video--------\ | +| |< ====== GMSL Link ======== >|MAX9271<- I2C bus-> <-->OV10635 | +| de-serializer | <--- I2C messages ---> | \<-->MCU | + --------------- -------------------------------- + +The RDACM20 transmits video data generated by the embedded camera sensor on the +GMSL serial channel to a remote GMSL de-serializer, as well as it receives and +transmits I2C messages encapsulated in the GMSL bidirectional control channel. + +All I2C traffic received on the GMSL link not directed to the serializer is +propagated on the local I2C bus to the embedded camera sensor and MCU. All +I2C traffic generated on the local I2C bus not directed to the serializer is +propagated to the remote de-serializer encapsulated in the GMSL control channel. + +The RDACM20 DT node should be a direct child of the GMSL Deserializer's I2C bus +corresponding to the GMSL link that the camera is attached to. + +Required Properties: + +- compatible: Shall be "imi,rdacm20". +- reg: Pair of I2C device addresses, the first to be assigned to the serializer + the second to be assigned to the camera sensor. + +Connection to the remote GMSL endpoint are modelled using the OF graph bindings +in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +The device node contains a single "port" child node with a single "endpoint" +sub-device. + +Required endpoint properties: + +- remote-endpoint: phandle to the remote GMSL endpoint sub-node in the remote + node port. + +Example: +------- + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + camera@51 { + compatible = "imi,rdacm20"; + reg = <0x51 0x61>; + + port { + rdacm20_out0: endpoint { + remote-endpoint = <&max9286_in0>; + }; + }; + + }; + };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -171,6 +171,7 @@ idt Integrated Device Technologies, Inc. ifi Ingenieurburo Fur Ic-Technologie (I/F/I) ilitek ILI Technology Corporation (ILITEK) img Imagination Technologies Ltd. +imi Integrated Micro-Electronics Inc. infineon Infineon Technologies inforce Inforce Computing ingenic Ingenic Semiconductor
Signature · 1 line
2.17.1
PATCH v3 3/4 media: i2c: Add MAX9286 driver
In reply to Kieran BinghamFrom: Kieran Bingham <[email protected]>
The MAX9286 is a 4-channel GMSL deserializer with coax or STP input and CSI-2 output. The device supports multicamera streaming applications, and features the ability to synchronise the attached cameras.
CSI-2 output can be configured with 1 to 4 lanes, and a control channel is supported over I2C, which implements an I2C mux to facilitate communications with connected cameras across the reverse control channel.
--
v2:
- Fix MAINTAINERS entry
This posting is released with the following modifications to work without Sakari's VC developments:
- max9286_g_mbus_config() re-instated
- max9286_get_frame_desc() is not bus/csi aware
- max9286_{get,set}_routing() removed
v3:
- Initialise notifier with v4l2_async_notifier_init
- Update for new mbus csi2 format V4L2_MBUS_CSI2_DPHY
--- MAINTAINERS | 10 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/max9286.c | 1136 +++++++++++++++++++++++++++++++++++ 4 files changed, 1158 insertions(+) create mode 100644 drivers/media/i2c/max9286.c
MAINTAINERS +10 -0
@@ -8864,6 +8864,16 @@ F: Documentation/devicetree/bindings/hwmon/max6697.txt F: drivers/hwmon/max6697.c F: include/linux/platform_data/max6697.h +MAX9286 QUAD GMSL DESERIALIZER DRIVER +M: Jacopo Mondi <[email protected]> +M: Kieran Bingham <[email protected]> +M: Laurent Pinchart <[email protected]> +M: Niklas Söderlund <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/max9286.txt +F: drivers/media/i2c/max9286.c + MAX9860 MONO AUDIO VOICE CODEC DRIVER M: Peter Rosin <[email protected]> L: [email protected] (moderated for non-subscribers)
drivers/media/i2c/Kconfig +11 -0
@@ -472,6 +472,17 @@ config VIDEO_VPX3220 To compile this driver as a module, choose M here: the module will be called vpx3220. +config VIDEO_MAX9286 + tristate "Maxim MAX9286 GMSL deserializer support" + depends on I2C && I2C_MUX + depends on VIDEO_V4L2_SUBDEV_API && MEDIA_CONTROLLER + select V4L2_FWNODE + help + This driver supports the Maxim MAX9286 GMSL deserializer. + + To compile this driver as a module, choose M here: the + module will be called max9286. + comment "Video and audio decoders" config VIDEO_SAA717X
drivers/media/i2c/Makefile +1 -0
@@ -110,5 +110,6 @@ obj-$(CONFIG_VIDEO_IMX258) += imx258.o obj-$(CONFIG_VIDEO_IMX274) += imx274.o obj-$(CONFIG_VIDEO_IMX319) += imx319.o obj-$(CONFIG_VIDEO_IMX355) += imx355.o +obj-$(CONFIG_VIDEO_MAX9286) += max9286.o obj-$(CONFIG_SDR_MAX2175) += max2175.o
drivers/media/i2c/max9286.c new file +1136 -0
1,136 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 4/4 media: i2c: Add RDACM20 driver
In reply to Kieran BinghamFrom: Kieran Bingham <[email protected]>
The RDACM20 is a GMSL camera supporting 1280x800 resolution images developed by IMI based on an Omnivision 10635 sensor and a Maxim MAX9271 GMSL serializer.
The GMSL link carries power, control (I2C) and video data over a single coax cable.
---
v2:
- Fix MAINTAINERS entry
v3:
- Use new V4L2_MBUS_CSI2_DPHY bus type
- Remove 'always zero' error print
- Fix module description
--- MAINTAINERS | 10 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/rdacm20-ov10635.h | 953 ++++++++++++++++++++++++++++ drivers/media/i2c/rdacm20.c | 635 ++++++++++++++++++ 5 files changed, 1610 insertions(+) create mode 100644 drivers/media/i2c/rdacm20-ov10635.h create mode 100644 drivers/media/i2c/rdacm20.c
MAINTAINERS +10 -0
@@ -12230,6 +12230,16 @@ S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git F: tools/testing/selftests/rcutorture +RDACM20 Camera Sensor +M: Jacopo Mondi <[email protected]> +M: Kieran Bingham <[email protected]> +M: Laurent Pinchart <[email protected]> +M: Niklas Söderlund <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/rdacm20.txt +F: drivers/media/i2c/rdacm20* + RDC R-321X SoC M: Florian Fainelli <[email protected]> S: Maintained
drivers/media/i2c/Kconfig +11 -0
@@ -989,6 +989,17 @@ config VIDEO_S5C73M3 This is a V4L2 sensor driver for Samsung S5C73M3 8 Mpixel camera. +config VIDEO_RDACM20 + tristate "IMI RDACM20 camera support" + depends on I2C && VIDEO_V4L2_SUBDEV_API && MEDIA_CONTROLLER + select V4L2_FWNODE + help + This driver supports the IMI RDACM20 GMSL camera, used in + ADAS systems. + + This camera should be used in conjunction with a GMSL + deserialiser such as the MAX9286. + comment "Flash devices" config VIDEO_ADP1653
drivers/media/i2c/Makefile +1 -0
@@ -111,5 +111,6 @@ obj-$(CONFIG_VIDEO_IMX274) += imx274.o obj-$(CONFIG_VIDEO_IMX319) += imx319.o obj-$(CONFIG_VIDEO_IMX355) += imx355.o obj-$(CONFIG_VIDEO_MAX9286) += max9286.o +obj-$(CONFIG_VIDEO_RDACM20) += rdacm20.o obj-$(CONFIG_SDR_MAX2175) += max2175.o
drivers/media/i2c/rdacm20-ov10635.h new file +953 -0
953 lines not on this page · raw message
drivers/media/i2c/rdacm20.c new file +635 -0
635 lines not on this page · raw message
Signature · 1 line
2.17.1