From patchwork Wed Jul 18 10:54:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10533683 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 1D9E9600F4 for ; Thu, 19 Jul 2018 07:03:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D3702964C for ; Thu, 19 Jul 2018 07:03:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED05C29651; Thu, 19 Jul 2018 07:03:56 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A696729651 for ; Thu, 19 Jul 2018 07:03:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 423906ECD7; Thu, 19 Jul 2018 07:03:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id E23BC895EE for ; Wed, 18 Jul 2018 10:55:28 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id e13-v6so2024692pff.7 for ; Wed, 18 Jul 2018 03:55:28 -0700 (PDT) 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; bh=sV/39YA3QCHIRLw1HmNxYPmPzaLGwJIzgHc45M+ChjM=; b=lcqM7JJyGCNLDx1N9+Uysl6LlRkAZMz/0FHL+5ZxeAYGp5lPPmfv+1LEOaPvqs6Kzk GXsWLd1FzKjPjxUy+bpTbQAMaP4lpZhQXeH2h4TcRlJS8ffjcoq9PqbBsh7EbuEaB/rt L2LjlFzXwOGR1DMRWdR023WaRI098Sv8Bxy20YZ6hI8rDYJ4lRsTWg2dmJyUj9KtFt1J 6/Pk9b6LoKOvtf9fJQLshj+PArj8E+GaHboHQSTZqpnkKxwhgkdUx/mnT1XLQucwRtXy JHm5W1BbYOyRMxQSUsQZ3fDWvj31lZwdE+ilQPVud6ioEFQs0lL/cXFYUS0rRfR1CAOm YaiQ== X-Gm-Message-State: AOUpUlHhtrKWtGFvo5Fb3BjExyka1otcXSe1itxxLrqJkW5siCZdRQkc qnJoz2ftU+lteLwXnqGLLDSYNA== X-Google-Smtp-Source: AAOMgpeCGaoXVchdb79cJ5FxWwsI2cEkREfM70d/Re7hCKNJQPHBdtU3KzOj32Uzr0xL28GIifjwcQ== X-Received: by 2002:a62:23d1:: with SMTP id q78-v6mr4636611pfj.179.1531911328527; Wed, 18 Jul 2018 03:55:28 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.107]) by smtp.gmail.com with ESMTPSA id x25-v6sm4644452pgv.63.2018.07.18.03.55.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jul 2018 03:55:28 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v3 02/18] drm/sun4i: Add support for A64 mixer1 Date: Wed, 18 Jul 2018 16:24:42 +0530 Message-Id: <20180718105458.22304-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718105458.22304-1-jagan@amarulasolutions.com> References: <20180718105458.22304-1-jagan@amarulasolutions.com> X-Mailman-Approved-At: Thu, 19 Jul 2018 07:03:43 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Mixers in Allwinner have similar capabilities as others SoCs with DE2. Mixer1 has 1 VI and 1 UI planes and supports HW scaling on all planes. Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - New patch drivers/gpu/drm/sun4i/sun8i_mixer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index f76a5576c0e6..756280194f94 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c @@ -578,6 +578,14 @@ static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg = { .mod_rate = 150000000, }; +static const struct sun8i_mixer_cfg sun50i_a64_mixer1_cfg = { + .ccsc = 1, + .mod_rate = 297000000, + .scaler_mask = 0x3, + .ui_num = 1, + .vi_num = 1, +}; + static const struct of_device_id sun8i_mixer_of_table[] = { { .compatible = "allwinner,sun8i-a83t-de2-mixer-0", @@ -603,6 +611,10 @@ static const struct of_device_id sun8i_mixer_of_table[] = { .compatible = "allwinner,sun8i-v3s-de2-mixer", .data = &sun8i_v3s_mixer_cfg, }, + { + .compatible = "allwinner,sun50i-a64-de2-mixer-1", + .data = &sun50i_a64_mixer1_cfg, + }, { } }; MODULE_DEVICE_TABLE(of, sun8i_mixer_of_table);