From patchwork Fri May 18 09:45:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10409389 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 1CDFB602C2 for ; Fri, 18 May 2018 10:11:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AEDB288FE for ; Fri, 18 May 2018 10:11:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F36162890E; Fri, 18 May 2018 10:11:10 +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 E01E9288FE for ; Fri, 18 May 2018 10:11:09 +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=HjIyQ/8i1nbjvTr6f9AsWP1oyAlc2nqRgsQiMomZDKQ=; b=MHRs0wTnAxMF8nxM8xYhRMYRoj Qv/MGivSCRUOh0wEFRorabVbZMr+8ZTMPe65qgClEIKo5jr7dF9I3aIhbtJ8btJIeLfEP5CRqa71k WhmuAXAvvY0CpyZR5VyeaEYOVNUQnnEaHYflGacLXzooDPXELyP1k6brIvBegGRkyuZ/L+HjIH2Za TfJglJRfQ7HnPTXajVuzP7dHgivR/r4aXNEgvpPnPKRfc1chk3/q0dd9KsdBVJRrD1cs2G42L9Tuu 7N0oT5tRdBSkIHst45GkjOLRyi/yOHY+7R8yf6yIej9ClTHui0fV4HcjxfmWjqKvSyoBWrqSnxdF4 Yn6MoURg==; 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 1fJcLi-00061B-Mw; Fri, 18 May 2018 10:10:58 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJcEb-0008UB-Ue for linux-arm-kernel@bombadil.infradead.org; Fri, 18 May 2018 10:03:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FG9+6NKUE0+tyM4Y5JgBSIFL2CDX3pwqGQnerXiaMkw=; b=Vi8AgtDsBQI8ZaUVmS6RTjE0I nCVtx2B4zJ4mXb65Bv5xhWKdS+F24Rg8vMN50WRCd7OU//2qsSfauUY2/rR9bVy2d0ElTQL6Z97u2 z/lUuPvgiM8b/bOzRrrWfIpaliwU0Rpi5KcguO5wSoS6Dg/JJEcJZRSAEN6Gj2F0jcatgPdhTqV6W Iq2wTmXxwJqlSfAYypmhA5iQJUou5lWRuWYmBIMdqI7ypucdDUY37UR1BocD51yZblfJN0ToW8FGW TCrAgl4Nu6emLvsp5uxxb9H1P8RX7RZ7FpcAFBlCoLjIWU0TaPM678cAERZSRFQdJMmWF85FR4OiW eE84wpE8A==; Received: from mail-pl0-x243.google.com ([2607:f8b0:400e:c01::243]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJbyM-0002FE-SB for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 09:46:52 +0000 Received: by mail-pl0-x243.google.com with SMTP id az12-v6so4285067plb.8 for ; Fri, 18 May 2018 02:46:40 -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=FG9+6NKUE0+tyM4Y5JgBSIFL2CDX3pwqGQnerXiaMkw=; b=dUHr4TZGIE/+lpJ6x62l5Yg0BUCDtpkCxY3pwBrGH5wsAWeaMynS6zePd9F32Gk6Z3 7c58jq5BGh9Xaf5LG21wguG4el+Y+3bkQSKYT5JywXnml0jC54lQcIMQqjwWrP2AoSrD +Og3escBmAM6THEMDBPA9jnqi5rPjySkqCUQg= 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=FG9+6NKUE0+tyM4Y5JgBSIFL2CDX3pwqGQnerXiaMkw=; b=MYedQit32GKSB32wHUzLHjklGGtKL/VvvoJyWYBHMB85cexiqOak24oYkiHKa6+3tc 97h/XVl3dmAovB46tisLNQ3oYaqeJFgzzlBA7W8azm/PNaQX/vIpgEdB9XXdP3zIaath PlMZx7PStgUgRQ2KtaPk2otTVTy98r43AUs7qBCivBRopI7B1szfN0vJ0Y4M3m8NKYuX ycDZ1avXc6occSgRSe8vNuKXtKnUCePw/EP60BpzEwotzFI7iqC+KjYVgDK8dOdemGHu KejEYOcnLUqs5cfrGkOB9EzSJbVvEYoQCGvnuXZfmtjB5yYALr2VufhFaTrpkIgdLcN1 W8Uw== X-Gm-Message-State: ALKqPwfwTMXgL4gW1d+AZM4dRduItjXkq0PuxyNYJg85IOADYmsZPM51 JVYYDQf/QFagi7uA/o9xpvkB2A== X-Google-Smtp-Source: AB8JxZr8T+b2wTvHyA6fBAeb9G4SD++I2bWpV6ec6Va4HCttATRZ+c5J1FjZhTvG7zRuI+g3xzKcjg== X-Received: by 2002:a17:902:b681:: with SMTP id c1-v6mr8795987pls.286.1526636798506; Fri, 18 May 2018 02:46:38 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.74]) by smtp.gmail.com with ESMTPSA id j11-v6sm12694097pff.64.2018.05.18.02.46.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:46:37 -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 v2 06/26] drm/sun4i: Add support for A64 mixer1 Date: Fri, 18 May 2018 15:15:16 +0530 Message-Id: <20180518094536.17201-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180518094536.17201-1-jagan@amarulasolutions.com> References: <20180518094536.17201-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180518_104651_055518_FDE7D838 X-CRM114-Status: GOOD ( 17.64 ) 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 v2: - New patch drivers/gpu/drm/sun4i/sun8i_mixer.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index 36d90c76317a..5b02c6ee2be6 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c @@ -508,6 +508,15 @@ 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, + .index = 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", @@ -525,6 +534,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);