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: 10738847 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 6684B13BF for ; Thu, 20 Dec 2018 12:55:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56317287A7 for ; Thu, 20 Dec 2018 12:55:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A04628824; Thu, 20 Dec 2018 12:55:16 +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,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 DD543287A7 for ; Thu, 20 Dec 2018 12:55:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732712AbeLTMzB (ORCPT ); Thu, 20 Dec 2018 07:55:01 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36831 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732651AbeLTMyz (ORCPT ); Thu, 20 Dec 2018 07:54:55 -0500 Received: by mail-wm1-f66.google.com with SMTP id p6so2061844wmc.1 for ; Thu, 20 Dec 2018 04:54:53 -0800 (PST) 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; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=guAKJy0OL6nXtpHu5GU/d99DuxpR0mmuIZemRdWaOszAnuyybtR/sssbywfDKRrNrf DqL8yOLBev+gKWvFdn94peWiE144jfkW0jdSegShXzl3vVX8Veitr4Aov8ON1Mna/ZKG ltr8NR+r0nrJ12xaj2GAHmF2tKLYzb0BjWWpk= 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; bh=XK1+ImY4LqT3mqPXOgRcotLaegAmI6oUTAhBqe9t1Sw=; b=c1zbF7tnyAQAQE3P4cFzFcDHr4EKOK/v2/v4JYPa8HyoxB5Mh3LBm8hqtoSFpQ8C0f KN6JJi6JefW+NgAWGxzgVQIHGecveEuMYsCSnMDiORSdN7wiem5ws/ihncJIoCiZ/N+G aSnLClmpoSdNlCAZY5vM6fzEV2YKOVh+yVN+P5aN3nvOy7uTESSoyh49n6eQcA+8hN89 S5cT2+bUko+4qB9Yb6W0L0D6geNtg9oZqTIbL6t2+fTnQWJvhsVSxU5umwYg9LVGTx7V UUgSP5M618730UJMTWyjijQ6M7OgjoC8CWYZMmpFRFceZv7I32OuVXKNQni9J2A8y/CK jDag== X-Gm-Message-State: AA+aEWa7KobrKiaZ2ce5BwKsqXUijQqGHuWOkaNgmqDzN4dDlKPoOC9B pc2BA/ZoBXbA7teqXxMF51dOpw== X-Google-Smtp-Source: AFSGD/VaVhsdOJ+GQeoQ3YRRzS8H1oCRVWa/ZckdcR5C+R9heqHrTZBUjY6lcOQvr2R2zurM9FcrHw== 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 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 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);