From patchwork Tue Jun 19 15:18:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10474669 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2E83603B5 for ; Tue, 19 Jun 2018 15:17:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5ADF28B53 for ; Tue, 19 Jun 2018 15:17:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA52828D38; Tue, 19 Jun 2018 15:17:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 751D228B53 for ; Tue, 19 Jun 2018 15:17:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937365AbeFSPRS (ORCPT ); Tue, 19 Jun 2018 11:17:18 -0400 Received: from mail-pl0-f46.google.com ([209.85.160.46]:42822 "EHLO mail-pl0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937514AbeFSPRQ (ORCPT ); Tue, 19 Jun 2018 11:17:16 -0400 Received: by mail-pl0-f46.google.com with SMTP id w17-v6so16775pll.9 for ; Tue, 19 Jun 2018 08:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=WH0HQDdXPUj6RIGc22PJ0USsQ9j7/IAmkQ0XyLdleDA=; b=QSTZFD1I+LOQ4gl/FsEr/Bt4hn9w5KteRKH3wnPUzhXNUlfJ8LuuE031V+sJGTj74F pgxJBPII7bjT2YE+P0DgcG/h/ItN9Adn7DUcSOyIBTLMQnz8R8ULAhAECjKHknIDQ281 hxkXkRhJbvwpvGv0qdS7I2u9JH8NkIANUTqR9rscYaiNpthPU5JqDsC2rltnUZa4UuGY aeFyZQ01/M0Rxm/k6PdJbrsq90ul14Rywg0xemrYmjV6tTziRFvLOICKQiWxH5fNglZ5 NJIbTK64wIroZjfrpNSkJAM50eaygLMtcY4MMz6C2lqLn1nbddww4IUFcy8OoAEJ8Y7N LM7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=WH0HQDdXPUj6RIGc22PJ0USsQ9j7/IAmkQ0XyLdleDA=; b=pE4NBjP9xubqMZb+u6fVwQoCJIa12akfMB1a1KN043vyUUiDEdMudWBgiISLlp2bWg seUnv9GNnIGmOKYrQ+xLhXcLJ6Q7AG8f/0ZJIlfAA9YyQFfQYTeKdJQdjAgvHs7TQMck +RqUFUyTbNQVN5T9kcamcjEJqlLT4OgAT/B9hBglfdKPBF/G8JEKpDYpNjFg2OGeRJa6 AdfZcSdI5t1V7kQiIBRTmiIxdD8s8bwosmdvIFJn00xl84bEPptQod7DxpDM/Ed5IJyq 2H2yeDRWy45szpb5BpS9tAzAGM1Kc8xjjKci7Fc61VvLgWZxON1StqTpC01+i1TzuLyB Y4Ug== X-Gm-Message-State: APt69E3GTHXqwkCln/FGXd31wNM/h7tdgttn6GbvEQy088jYPljiTej0 k9VR6IdX8cAPlpWvG6vwPKScsAi/ X-Google-Smtp-Source: ADUXVKI1AN+smWJHzr119k1tH9ZSlDUeqh5I7CgLbDrxWhDxMEbOagTEWS6FXX85S+6sHb5vqikQoA== X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr19465429pld.205.1529421436005; Tue, 19 Jun 2018 08:17:16 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id d9-v6sm30329822pfg.183.2018.06.19.08.17.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 08:17:14 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Wed, 20 Jun 2018 00:18:55 +0900 Message-Id: <152942153504.28480.18358640564322769858.sendpatchset@little-apple> In-Reply-To: <152942152672.28480.665572564123111170.sendpatchset@little-apple> References: <152942152672.28480.665572564123111170.sendpatchset@little-apple> Subject: [PATCH 01/04] rcar-vin: r8a77990 prototype Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Extend the VIN driver with experimental r8a77990 support. Not-Signed-off-by: Magnus Damm --- drivers/media/platform/rcar-vin/rcar-core.c | 21 +++++++++++++++++++++ drivers/media/platform/rcar-vin/rcar-csi2.c | 8 ++++++++ 2 files changed, 29 insertions(+) --- 0001/drivers/media/platform/rcar-vin/rcar-core.c +++ work/drivers/media/platform/rcar-vin/rcar-core.c 2018-06-19 20:54:34.180607110 +0900 @@ -1037,6 +1037,23 @@ static const struct rvin_info rcar_info_ .routes = _rcar_info_r8a77970_routes, }; + +static const struct rvin_group_route _rcar_info_r8a77990_routes[] = { + { .csi = RVIN_CSI40, .channel = 0, .vin = 4, .mask = BIT(0) | BIT(3) }, + { .csi = RVIN_CSI40, .channel = 0, .vin = 5, .mask = BIT(2) }, + { .csi = RVIN_CSI40, .channel = 1, .vin = 4, .mask = BIT(2) }, + { .csi = RVIN_CSI40, .channel = 1, .vin = 5, .mask = BIT(1) | BIT(3) }, + { /* Sentinel */ } +}; + +static const struct rvin_info rcar_info_r8a77990 = { + .model = RCAR_GEN3, + .use_mc = true, + .max_width = 4096, + .max_height = 4096, + .routes = _rcar_info_r8a77990_routes, +}; + static const struct of_device_id rvin_of_id_table[] = { { .compatible = "renesas,vin-r8a7778", @@ -1082,6 +1099,10 @@ static const struct of_device_id rvin_of .compatible = "renesas,vin-r8a77970", .data = &rcar_info_r8a77970, }, + { + .compatible = "renesas,vin-r8a77990", + .data = &rcar_info_r8a77990, + }, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, rvin_of_id_table); --- 0001/drivers/media/platform/rcar-vin/rcar-csi2.c +++ work/drivers/media/platform/rcar-vin/rcar-csi2.c 2018-06-19 20:54:34.180607110 +0900 @@ -951,6 +951,10 @@ static const struct rcar_csi2_info rcar_ .init_phtw = rcsi2_init_phtw_v3m_e3, }; +static const struct rcar_csi2_info rcar_csi2_info_r8a77990 = { + .init_phtw = rcsi2_init_phtw_v3m_e3, +}; + static const struct of_device_id rcar_csi2_of_table[] = { { .compatible = "renesas,r8a7795-csi2", @@ -968,6 +972,10 @@ static const struct of_device_id rcar_cs .compatible = "renesas,r8a77970-csi2", .data = &rcar_csi2_info_r8a77970, }, + { + .compatible = "renesas,r8a77990-csi2", + .data = &rcar_csi2_info_r8a77990, + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, rcar_csi2_of_table);