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: 10532155 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 7EA556020A for ; Wed, 18 Jul 2018 10:58:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76ACA28FCD for ; Wed, 18 Jul 2018 10:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A61B28FD5; Wed, 18 Jul 2018 10:58:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F83328FCD for ; Wed, 18 Jul 2018 10:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uliSGONUfx1KxXwNTXBaBXmxSOfsGJfzsFd8BBL9e8Y=; b=h8QNcHNMiZcNadUW+bziYskDCA w4rt2TzYLpcVQtNCHSOhAZJOaPsZ2UKAgORlYiojNT7+YyrxMrFLhHfOENNtMnbirFfXEpZ+hWn2n BqVw0Zs9uvVCb7nRQv08Zeul3j00pxoKrxneywlkt5eMLrduV4DGZlbdG5adTMLKeCI/B4Mh3KHfy ByXen2pSza8lknXwMvcjloAcPtyAZwaDDfXKQxcP0Sfsc99Ep1+WI/pzqOijME1lm1YOpFq5SUZKo O0BX4UCCvdf/4abtNAQEnK9f+EPcShIZ+XrICcGfyESw4HErVdcTti3u+WknOrzWXCwgL13v0Feqw T5amSjAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffk9s-0003zR-FO; Wed, 18 Jul 2018 10:58:12 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffk7P-0001EM-4H for linux-arm-kernel@lists.infradead.org; Wed, 18 Jul 2018 10:55:42 +0000 Received: by mail-pf0-x244.google.com with SMTP id v15-v6so2025193pff.5 for ; Wed, 18 Jul 2018 03:55:28 -0700 (PDT) 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; bh=sV/39YA3QCHIRLw1HmNxYPmPzaLGwJIzgHc45M+ChjM=; b=Sqt+Mxp22RgBnh254p/dWFYG/HtciS/YiPLU1LAGGKzaS8O0Kw50elyAsdhoewkfP9 XD8qWpbowBrtFP0eXmzb4NrmcGgL2cDv43kEW/aDk2Ds3ij2vT/FXS4hcGvKmCrPDFv5 Qm6Z6Nygih50ZDJCQa7LrOuEfJiEa3Y8rNHqo= 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=exrrrE97F0V/V6+pR2Z51UlEDPHHqQjQlu4EjmTyK6KD891C0ZhsqobJOywSfIytst b1hDaeNkN/gh3I3v3TFtuQJO0Mf0rjZYjw+43b/s9D+QqTJnKB+vEqM9+vqtYI/cOXkh J2pP8dKZEkgMKB9z3BOGHboxbBkFXQToZnbp7+MUh/JcQ7cj3AJBOLM9V0Q1vsEBmflj DZedSX2aBXnvnkGU/B8bN0oyn1wW98aEzaTdyN5Q9BYiQV7+fecQUPAmtkQ73opW2xvv QMrn0SgSdAVd2brufc5y7UZhXH9+oAXJS8vwXrzTpD0EQ19hYJZoWJ795wfHEZejfmer 0mIQ== X-Gm-Message-State: AOUpUlEIJG6t53sjYIxEHlrd1j40LnfNFIlRs45vIjk6gvau+lsdhS7/ czR6/y31kx+2nzft4++N3XorlA== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180718_035539_535972_B4714A67 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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);