Add the SoC specific information for Renesas r8a7796.

Signed-off-by: Niklas Söderlund <niklas.soderlund+rene...@ragnatech.se>
---
 .../devicetree/bindings/media/rcar_vin.txt         |  1 +
 drivers/media/platform/rcar-vin/rcar-core.c        | 63 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt 
b/Documentation/devicetree/bindings/media/rcar_vin.txt
index 64b03f1..e3a82dc 100644
--- a/Documentation/devicetree/bindings/media/rcar_vin.txt
+++ b/Documentation/devicetree/bindings/media/rcar_vin.txt
@@ -10,6 +10,7 @@ always slaves and support multiple input channels which can 
be either RGB,
 YUVU, BT656 or CSI-2.
 
  - compatible: Must be one or more of the following
+   - "renesas,vin-r8a7796" for the R8A7796 device
    - "renesas,vin-r8a7795" for the R8A7795 device
    - "renesas,vin-r8a7794" for the R8A7794 device
    - "renesas,vin-r8a7793" for the R8A7793 device
diff --git a/drivers/media/platform/rcar-vin/rcar-core.c 
b/drivers/media/platform/rcar-vin/rcar-core.c
index 1a86c72..bb31af8 100644
--- a/drivers/media/platform/rcar-vin/rcar-core.c
+++ b/drivers/media/platform/rcar-vin/rcar-core.c
@@ -1201,6 +1201,65 @@ static const struct rvin_info rcar_info_r8a7795 = {
        },
 };
 
+static const struct rvin_info rcar_info_r8a7796 = {
+       .chip = RCAR_GEN3,
+       .max_width = 4096,
+       .max_height = 4096,
+
+       .num_chsels = 5,
+       .chsels = {
+               {
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+               }, {
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 1 },
+                       { .csi = RVIN_CSI20, .chan = 1 },
+               }, {
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 2 },
+                       { .csi = RVIN_CSI20, .chan = 2 },
+               }, {
+                       { .csi = RVIN_CSI40, .chan = 1 },
+                       { .csi = RVIN_CSI20, .chan = 1 },
+                       { .csi = RVIN_NOOPE, .chan = 1 },
+                       { .csi = RVIN_CSI40, .chan = 3 },
+                       { .csi = RVIN_CSI20, .chan = 3 },
+               }, {
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+               }, {
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 1 },
+                       { .csi = RVIN_CSI20, .chan = 1 },
+               }, {
+                       { .csi = RVIN_NOOPE, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 0 },
+                       { .csi = RVIN_CSI20, .chan = 0 },
+                       { .csi = RVIN_CSI40, .chan = 2 },
+                       { .csi = RVIN_CSI20, .chan = 2 },
+               }, {
+                       { .csi = RVIN_CSI40, .chan = 1 },
+                       { .csi = RVIN_CSI20, .chan = 1 },
+                       { .csi = RVIN_NOOPE, .chan = 1 },
+                       { .csi = RVIN_CSI40, .chan = 3 },
+                       { .csi = RVIN_CSI20, .chan = 3 },
+               },
+       },
+};
+
 static const struct rvin_info rcar_info_gen2 = {
        .chip = RCAR_GEN2,
        .max_width = 2048,
@@ -1213,6 +1272,10 @@ static const struct of_device_id rvin_of_id_table[] = {
                .data = &rcar_info_r8a7795,
        },
        {
+               .compatible = "renesas,vin-r8a7796",
+               .data = &rcar_info_r8a7796,
+       },
+       {
                .compatible = "renesas,vin-r8a7794",
                .data = &rcar_info_gen2,
        },
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to