From patchwork Thu Dec 20 12:54:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 111 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 179542E54F7 for ; Thu, 20 Dec 2018 13:54:54 +0100 (CET) Received: by mail-wr1-f70.google.com with SMTP id d11sf547847wrq.18 for ; Thu, 20 Dec 2018 04:54:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1545310493; cv=pass; d=google.com; s=arc-20160816; b=ZsYl2VuttFV40OefiL9YiVC4kRbCOx3HN470R2v8ANVSdecv7KGP7TruwJ2+2kraQH aoCh6Hj+EysnN6e4h+FGnh/XImRYowd7d6I8w/LjWrjMvUlZJYXpK19WP0+TDd38gONc wFrNfDNjgkVCXa9E4hnuiBAtwf5NqS2mZ4yrGHiLrP+DXpbujLwVD3hur9Hl+tGkZZKa zh8NwTZ71CmOvMVB3MSPND9nT5k/2qM6b+TdHsOwJ0AES+MOnTtjg8H0K/WCkNT60HTZ 22aGwcIoi/EoqiCqO0GEifl16Zue6YdsmoF7lSAZYLMAU0szagWs/iEFt7aHZhPGmd4p 6nnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=JB21mGYuoi5pCA38kOkZnS4iwDvFaJtX9P6pxdaYKH8tg4SEJi54v9gmPfz9iAq0iU oyxt9rl8TsBWvq7Tjt5NbA+UJXWDIhxEzReeYvPqNMHb1LJsi45y0lcmDubomdvm+ld6 xQ5PHactA0R1CqDM6jGaAAIymfR/PuRpIWoQA3JMJ/e3cwgIZ7KSK+MyLHZnk3nFTsVM jj023nz1N7nt2EuDMoxP/tStimX3sPbijBM4udYOdjwaLziFINrEIJjcEHXtw+56JorR THZVBJ/sVv2+6q8yn9Y46UsOUJsMISfy9chA3beHytgpms0l1GmSSnaw204o2hD1iMWq FntQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=guAKJy0O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=fejTdNo3nRzpvWVTuARMGN7AHKuUZrRmKQGbaNd6r5DJX7ZVTzCudRD4/yvLwBgqGS baZjIXHnxq7AxAr0KyhzMgynwuw/wn5tiVlqbehwT/YvizFzAdD/80pLrOnOha5teH7h JycrdPNcZV1htt5MeFUhuZPs5jFE0Vh9E3V+k= 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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=CnD2tzbuN7dFvSCHw3bcZPfxFYH9U6rbweva/XM4R/uxan4uhTLMHbPt5XZs7/Jc8P chPENYydnpI3wf/7aCgaUIMGZpof3sFaGFXpB4I34KD4xLGeYiAc9GPXb1jKxBLCoiCK hfqT0Bqm4M+SuClVoxwDIPjnhRIHMLx9ku+vF8cxxcSF0e5WV3v/iSLEkf5W9xFxJf4e elD0YR8gFWYplpFIUNYW7h8ocmmkFmZJHHVQ1dyHNG4MpADHPW/SZ4jQd9FyR/MBRA0z QxWo27rkY1xTa49EO2z4abKPAtfkzfi56WGvJKPi00qDJ6EtT0coXLomh8nDEZGTYTjx rC0Q== X-Gm-Message-State: AA+aEWZlvABqXHqqgEpd56OGP2RSWruNuF2vyL+aBB608B9ce4nHj5f7 3EIpaoZDnGynsTnyXK2JN03qwSwX X-Google-Smtp-Source: AFSGD/Va5XdA38ICdoXkx53zq5igLZL6/pkOtAY8JQhrRpng8z2CeB3Chj0JVXVAL0pcLQIpMn+zfQ== X-Received: by 2002:adf:8245:: with SMTP id 63mr2124053wrb.25.1545310493723; Thu, 20 Dec 2018 04:54:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:6209:: with SMTP id y9ls5712865wru.16.gmail; Thu, 20 Dec 2018 04:54:53 -0800 (PST) X-Received: by 2002:a5d:65ce:: with SMTP id e14mr21731610wrw.150.1545310493264; Thu, 20 Dec 2018 04:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545310493; cv=none; d=google.com; s=arc-20160816; b=InDHgoRcg48kqop5qD9pMUE4LvrZqHHNTBK7k8TiZAxC+3GCdvryZhJEB2com3cdSv 7euu9VYPfLUmA145i87l4+M67WYRMsTFU+aLbD09Dm1uuFczMlAFeyhwITi/WER1/uhf xBI/TOwrffo1HdxCIZzeceG69xxf9TQoCbWflj1rmQlFA6ot5wVTFAd74gEURF5tgiCS CwiCLlfQfr6zPHWRhtZhE3+PQ9zFMcBewjh72aLnV3lmRZaqjFVKJMVsROCzla+QofBt 0fXVgAC8c0ptf/TgkG2UPJUP0UkIkwNKCNYiIgILrNEj9ZpO0GhphxthqnPW4Uq7pCwp lUAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=ajq7sVL9ju05WDUFRohNgsC9TM0d28WCXkf94kw+e0aG+fuu6ZC8o2AVDmwtwFn4yR mcDSDvEEAeto8+To8E2041nZz/oCh3eDZSJ+/NUPf6gqQ4XB9Zo4w57ykynlwDMGlMb5 gUU072HfhRCEF4gQewr4UzRdYfKyPAewop7pYIXdQfZbj/VURhBsFr6NeK/wJ5m6iTR/ pKdxZAd5b8Z+eQuDKF/BtxCZ1Fa+cVWmv5mukTU6aKxGK0UpKgGoMdEAnYIo8vIgq/32 en99aYqHqHGb3aIufMWp3vCKqXJBGUttYatkobS+9zk/2MF1Nx3phFvCt1rR3nk8N7U7 tt2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=guAKJy0O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 194sor6317774wmm.23.2018.12.20.04.54.53 for (Google Transport Security); Thu, 20 Dec 2018 04:54:53 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a1c:a895:: with SMTP id r143mr10839869wme.95.1545310493002; Thu, 20 Dec 2018 04:54:53 -0800 (PST) Received: from localhost.localdomain (ip-163-240.sn-213-198.clouditalia.com. [213.198.163.240]) by smtp.gmail.com with ESMTPSA id o4sm8732756wrq.66.2018.12.20.04.54.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 04:54:52 -0800 (PST) From: Jagan Teki To: Yong Deng , Mauro Carvalho Chehab , Maxime Ripard , Rob Herring , Mark Rutland , Chen-Yu Tsai , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi , linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v5 3/6] media: sun6i: Add A64 CSI block support Date: Thu, 20 Dec 2018 18:24:35 +0530 Message-Id: <20181220125438.11700-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181220125438.11700-1-jagan@amarulasolutions.com> References: <20181220125438.11700-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=guAKJy0O; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , CSI block in Allwinner A64 has similar features as like in H3, but default mod clock rate in BSP along with latest mainline testing require to operate it at 300MHz. So, add A64 CSI compatibe along with mod_rate quirk. Signed-off-by: Jagan Teki --- drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c index fe002beae09c..48919aabefdb 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c @@ -913,10 +913,15 @@ static int sun6i_csi_remove(struct platform_device *pdev) static const struct sun6i_csi_variant sun6i_a31_csi = { }; +static const struct sun6i_csi_variant sun50i_a64_csi = { + .mod_rate = 300000000, +}; + static const struct of_device_id sun6i_csi_of_match[] = { { .compatible = "allwinner,sun6i-a31-csi", .data = &sun6i_a31_csi, }, { .compatible = "allwinner,sun8i-h3-csi", .data = &sun6i_a31_csi, }, { .compatible = "allwinner,sun8i-v3s-csi", .data = &sun6i_a31_csi, }, + { .compatible = "allwinner,sun50i-a64-csi", .data = &sun50i_a64_csi, }, {}, }; MODULE_DEVICE_TABLE(of, sun6i_csi_of_match);