media: rcar-csi2: add R8A77980 support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Mon, 6 Aug 2018 16:56:27 +0000 (12:56 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 7 Dec 2018 13:29:29 +0000 (08:29 -0500)
Add the R-Car V3H (AKA R8A77980) SoC support to the R-Car CSI2 driver.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt
drivers/media/platform/rcar-vin/rcar-csi2.c

index 282448911267bcb1ec1a1b92669f9d30c09aa78b..541d936b62e8d735dbce94425e969a3b070aba06 100644 (file)
@@ -12,6 +12,7 @@ Mandatory properties
    - "renesas,r8a7796-csi2" for the R8A7796 device.
    - "renesas,r8a77965-csi2" for the R8A77965 device.
    - "renesas,r8a77970-csi2" for the R8A77970 device.
+   - "renesas,r8a77980-csi2" for the R8A77980 device.
    - "renesas,r8a77990-csi2" for the R8A77990 device.
 
  - reg: the register base and size for the device registers
index 80ad906d1136c50177231b638cb0df9987fda557..6d356f5a9456c4e58d8741103a8b1c7592942f71 100644 (file)
@@ -971,6 +971,13 @@ static const struct rcar_csi2_info rcar_csi2_info_r8a77970 = {
        .num_channels = 4,
 };
 
+static const struct rcar_csi2_info rcar_csi2_info_r8a77980 = {
+       .init_phtw = rcsi2_init_phtw_h3_v3h_m3n,
+       .hsfreqrange = hsfreqrange_h3_v3h_m3n,
+       .csi0clkfreqrange = 0x20,
+       .clear_ulps = true,
+};
+
 static const struct rcar_csi2_info rcar_csi2_info_r8a77990 = {
        .init_phtw = rcsi2_init_phtw_v3m_e3,
        .confirm_start = rcsi2_confirm_start_v3m_e3,
@@ -994,6 +1001,10 @@ static const struct of_device_id rcar_csi2_of_table[] = {
                .compatible = "renesas,r8a77970-csi2",
                .data = &rcar_csi2_info_r8a77970,
        },
+       {
+               .compatible = "renesas,r8a77980-csi2",
+               .data = &rcar_csi2_info_r8a77980,
+       },
        {
                .compatible = "renesas,r8a77990-csi2",
                .data = &rcar_csi2_info_r8a77990,