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: 10414199 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 5859160365 for ; Mon, 21 May 2018 08:27:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B4C9287AE for ; Mon, 21 May 2018 08:27:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F93A287BD; Mon, 21 May 2018 08:27:04 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 EE937287AE for ; Mon, 21 May 2018 08:27:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D99FA6F011; Mon, 21 May 2018 08:20:45 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl0-x241.google.com (mail-pl0-x241.google.com [IPv6:2607:f8b0:400e:c01::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id EADF56ECCF for ; Fri, 18 May 2018 09:46:38 +0000 (UTC) Received: by mail-pl0-x241.google.com with SMTP id n10-v6so4291465plp.0 for ; Fri, 18 May 2018 02:46:38 -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=BRpKAPJtyF1N7DgQeu4A03pv5tAXNxc5YVlyciWtTuPjRSKWv4CTtbg+AItRetaAAz +LfkWeH0A7MRFFaeEhUOawlwvlAgBxpmjVrU4jsC7eiTAfYEdzeu8JxHoZ0u7X72gFwi OD2LXJOhjiOKvQGbApCMMZHLh/zXdNXDTrdUMi/EZKuQ1xgz+xFwrN6yjb/rFp6tLL/m ztltooFZlXpkxfY8KQDCdqA3vVXpzhl5AKmFv1HjcH9A+jtHOU/RQOX4Wyl5qQXLqoFF 8IfbjAOIlfzI3Q7dQyjzWaB4ZTpaDBFdRKLxUTcNoC8Ag/K8pGTEIptaoTgTkmNEivOr a5Ww== X-Gm-Message-State: ALKqPwdwgHOWPITgHz1pP/TFIg95iXJ9GDakSP+UFpPKXyZq5RtNe/WP ZOtgbLAU1foB0yi+zT+AuxW8aw== 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-Mailman-Approved-At: Mon, 21 May 2018 08:18:09 +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 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);