Re: [PATCH v7 25/25] rcar-vin: enable support for r8a7796

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CC DT

On Sat, Nov 11, 2017 at 1:38 AM, Niklas Söderlund
<niklas.soderlund+renesas@xxxxxxxxxxxx> wrote:
> Add the SoC specific information for Renesas r8a7796.
>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx>
> Reviewed-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>
> ---
>  .../devicetree/bindings/media/rcar_vin.txt         |  1 +
>  drivers/media/platform/rcar-vin/rcar-core.c        | 64 ++++++++++++++++++++++
>  2 files changed, 65 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt b/Documentation/devicetree/bindings/media/rcar_vin.txt
> index df1abd0fb20386f8..ddf249c2276600d2 100644
> --- a/Documentation/devicetree/bindings/media/rcar_vin.txt
> +++ b/Documentation/devicetree/bindings/media/rcar_vin.txt
> @@ -10,6 +10,7 @@ Depending on the instance the VIN input is connected to external SoC pins, or
>  on Gen3 to a CSI-2 receiver.
>
>   - 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 b22f6596700d2479..e329de4ce0172e8d 100644
> --- a/drivers/media/platform/rcar-vin/rcar-core.c
> +++ b/drivers/media/platform/rcar-vin/rcar-core.c
> @@ -1084,6 +1084,66 @@ static const struct rvin_info rcar_info_r8a7795es1 = {
>         },
>  };
>
> +static const struct rvin_info rcar_info_r8a7796 = {
> +       .chip = RCAR_GEN3,
> +       .use_mc = true,
> +       .max_width = 4096,
> +       .max_height = 4096,
> +
> +       .num_chsels = 5,
> +       .chsels = {
> +               {
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +                       { .csi = RVIN_NC, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +               }, {
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +                       { .csi = RVIN_NC, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 1 },
> +                       { .csi = RVIN_CSI20, .chan = 1 },
> +               }, {
> +                       { .csi = RVIN_NC, .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_NC, .chan = 1 },
> +                       { .csi = RVIN_CSI40, .chan = 3 },
> +                       { .csi = RVIN_CSI20, .chan = 3 },
> +               }, {
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +                       { .csi = RVIN_NC, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +               }, {
> +                       { .csi = RVIN_CSI20, .chan = 0 },
> +                       { .csi = RVIN_NC, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 0 },
> +                       { .csi = RVIN_CSI40, .chan = 1 },
> +                       { .csi = RVIN_CSI20, .chan = 1 },
> +               }, {
> +                       { .csi = RVIN_NC, .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_NC, .chan = 1 },
> +                       { .csi = RVIN_CSI40, .chan = 3 },
> +                       { .csi = RVIN_CSI20, .chan = 3 },
> +               },
> +       },
> +};
> +
>  static const struct of_device_id rvin_of_id_table[] = {
>         {
>                 .compatible = "renesas,vin-r8a7778",
> @@ -1117,6 +1177,10 @@ static const struct of_device_id rvin_of_id_table[] = {
>                 .compatible = "renesas,vin-r8a7795",
>                 .data = &rcar_info_r8a7795,
>         },
> +       {
> +               .compatible = "renesas,vin-r8a7796",
> +               .data = &rcar_info_r8a7796,
> +       },
>         { },
>  };
>  MODULE_DEVICE_TABLE(of, rvin_of_id_table);
> --
> 2.15.0




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux