From patchwork Mon Aug 6 16:56:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10557485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41F581390 for ; Mon, 6 Aug 2018 16:56:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F7DA2952A for ; Mon, 6 Aug 2018 16:56:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 232BE298B2; Mon, 6 Aug 2018 16:56:34 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 9609D29101 for ; Mon, 6 Aug 2018 16:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729714AbeHFTGa (ORCPT ); Mon, 6 Aug 2018 15:06:30 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42967 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728569AbeHFTGa (ORCPT ); Mon, 6 Aug 2018 15:06:30 -0400 Received: by mail-lf1-f68.google.com with SMTP id u202-v6so9561380lff.9 for ; Mon, 06 Aug 2018 09:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=hsclI2x5i6MTW0K6Gy4WEqI0j6VfbRhPyq6aQ8XXCcw=; b=IfvrvIGk2xLR86CrMVy72llYYpuqBu9/49Eg7AUwg2dXHEO2Rn4isUq67yAuqtSH6/ 1RqgrsprYgmONUbCvTZy58MVIj8Cse5PVmr037b325tiI4ZfSMrp9vMOkcVYMYo4UWE/ lUrMoGIGLmKpUrs1zaDONObmhJbnoBm9SDqW4NTvw5XfsnzDP+xpR6Kosop04kgCO6Oy BAaRVys++Y2k6OpFNuHtIsBQO2OVcXbNWzUMLg5+2+4O4eTWY4gIHUxPZqVmljXLUV4C ln3Rz6shrgS8JGr0TxRGIg3Dy/ZdHh12/7ai8ZmrEBzCyiCFJDoj+tbRi9AEIPlJjxm6 JPOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=hsclI2x5i6MTW0K6Gy4WEqI0j6VfbRhPyq6aQ8XXCcw=; b=Df/Te+Cvyn3j/NlTHYuJ+K0hxQHv8BaYhCm47nO5ljlkEWXczGTboZDIz13mupjEY4 /IhjtYJWKc5TsVT9Tl/QVF7Dqq918aPOM1hJYEypk9yX8FhO/gqcCVlx0hdcHsjY3ZwU MIJ2B3SUaoebzF1L1lui7zUPrj3KXeQMEYcDMwP+W8fkF8/A3xUTs36sBy8W8CeUaKfm SdAPf9C9xrTU0pGPQFEHq/sZ2EnmU80Jm3s2fL9n7vWLnBKVX3Cd49CzoimVia6Hht6r UvvFWV56fZUKp94Q/3r6EdK3IMbKoDt0nsX8/r+Xj3M1SkZCp26JpR23CCrsK1oxpoYs tqcA== X-Gm-Message-State: AOUpUlG7v/MstNSjSCEo+vKCXKS5HPla/3dfh2xUpu8tvxdIUTWvT+vr Vuns7dkNwas80+Bu2Me0+7Oreg== X-Google-Smtp-Source: AAOMgpc/sfrbUCfto4s9H7zanNd+GUofPda3PGx2/Dmecy2m6uEnlSrsRfEtifB96VLgcWvVFYSsbQ== X-Received: by 2002:a19:2207:: with SMTP id i7-v6mr11369166lfi.69.1533574590582; Mon, 06 Aug 2018 09:56:30 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.81]) by smtp.gmail.com with ESMTPSA id 102-v6sm2292665lfr.35.2018.08.06.09.56.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 09:56:29 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] rcar-csi2: add R8A77980 support To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= , Rob Herring Cc: Mark Rutland , devicetree@vger.kernel.org Organization: Cogent Embedded Message-ID: Date: Mon, 6 Aug 2018 19:56:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-MW Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the R-Car V3H (AKA R8A77980) SoC support to the R-Car CSI2 driver. Signed-off-by: Sergei Shtylyov Acked-by: Rob Herring --- This patch is against the 'media_tree.git' repo's 'master' branch. Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt | 1 drivers/media/platform/rcar-vin/rcar-csi2.c | 11 ++++++++++ 2 files changed, 12 insertions(+) Index: media_tree/Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt =================================================================== --- media_tree.orig/Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt +++ media_tree/Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt @@ -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. - reg: the register base and size for the device registers - interrupts: the interrupt for the device Index: media_tree/drivers/media/platform/rcar-vin/rcar-csi2.c =================================================================== --- media_tree.orig/drivers/media/platform/rcar-vin/rcar-csi2.c +++ media_tree/drivers/media/platform/rcar-vin/rcar-csi2.c @@ -959,6 +959,13 @@ static const struct rcar_csi2_info rcar_ .confirm_start = rcsi2_confirm_start_v3m_e3, }; +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 of_device_id rcar_csi2_of_table[] = { { .compatible = "renesas,r8a7795-csi2", @@ -976,6 +983,10 @@ static const struct of_device_id rcar_cs .compatible = "renesas,r8a77970-csi2", .data = &rcar_csi2_info_r8a77970, }, + { + .compatible = "renesas,r8a77980-csi2", + .data = &rcar_csi2_info_r8a77980, + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, rcar_csi2_of_table);