From patchwork Fri Jan 18 16:31:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10771155 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 1870313B5 for ; Fri, 18 Jan 2019 16:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 001662FBFE for ; Fri, 18 Jan 2019 16:32:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE7A12FC0E; Fri, 18 Jan 2019 16:32:59 +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 7B56D2FBEE for ; Fri, 18 Jan 2019 16:32:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728693AbfARQcX (ORCPT ); Fri, 18 Jan 2019 11:32:23 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46776 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728680AbfARQcW (ORCPT ); Fri, 18 Jan 2019 11:32:22 -0500 Received: by mail-pg1-f195.google.com with SMTP id w7so6269781pgp.13 for ; Fri, 18 Jan 2019 08:32:22 -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=AcTNJoiSIr2UvGcIYC+6yeK1JimQepwB20Vv9L6yJsk=; b=V52neNJr+5s5Ws7YreKtc2b0uXnFaD/GlUykSFfQFbUBiHU1Y5clMVBSrpHzW39P4d r1Dkduqwp8D1wV6rlNp4bKfRDblmhN302+64PH4JhlZ2akOt82XQgeIfQ6wDBq3SG9Na 6pB6Gm0FeqPnXFlvl9K0nySUPInlzSdgm7q88= 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=AcTNJoiSIr2UvGcIYC+6yeK1JimQepwB20Vv9L6yJsk=; b=qmorKer+xZEOGrNTBqtivOgCuIj6cRpggcISZjVuWY1eQj2/9b0NbBi/SmbQOKwm3G GEs/E/0Gcqyb4J/iLt/pEjOf7W0NYepN7MYFT07Z3f/7WbZnuf1lmEr+TQobr0QwM52d nAGXTSMj935JFQbIVJLU236Daerq0pzbCQuIo/jkV5C3ap75n9KUnCWRKnJN4nBi1Gu0 u47a8NEMqesJOkI613qv0j8KYRu3t3au9/4ffaXyVnPINamPLM8edHv+9QNJ2MF32KIF vucS+Y3DOiqDdmZFvEP+bpEqxFAM946Gt/hETaHg/3I2/o0wbAY+Sovz547BX32SgxzO KHWw== X-Gm-Message-State: AJcUukerDSKoumkIvZNrgthmATQaPBn7Vtgm7ewOANQFuzZtvVNIg+Ax e0UBcutqdgP2ki6z2tYvJC8FUg== X-Google-Smtp-Source: ALg8bN4o3QTXvzSyHghbovl3uuhczhuTH4f7BPtE96v9dSt5mHU0Qhbh1OmAJLTa98g0kwf0LPl6AA== X-Received: by 2002:a62:8985:: with SMTP id n5mr20180814pfk.255.1547829141742; Fri, 18 Jan 2019 08:32:21 -0800 (PST) Received: from jagan-XPS-13-9350.domain.name ([103.81.77.13]) by smtp.gmail.com with ESMTPSA id z13sm13967086pgf.84.2019.01.18.08.32.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 08:32:21 -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 v6 3/6] media: sun6i: Add A64 CSI block support Date: Fri, 18 Jan 2019 22:01:55 +0530 Message-Id: <20190118163158.21418-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190118163158.21418-1-jagan@amarulasolutions.com> References: <20190118163158.21418-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 a9aef630c3b4..d03559d27066 100644 --- a/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c +++ b/drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c @@ -909,10 +909,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);