Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2163642imm; Mon, 3 Sep 2018 21:43:54 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb62d4vGAQhwM0iPVFRvvw16VKI3rOuLHhY38DJ6CJpoFJ27/6DRUzOh7yM2OShRervISVw X-Received: by 2002:a62:1c0a:: with SMTP id c10-v6mr33321522pfc.41.1536036234883; Mon, 03 Sep 2018 21:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536036234; cv=none; d=google.com; s=arc-20160816; b=oTknZ080chSjC8PAKRZa3xodY7sEUzy062y2eTKYBsRPeaHRF9/DM+1JoJ70XElCIW /1AbHrtYimnsKNrPHuCJ9KE5Y6hx/lXfOe9i/9GwIRfXjYTuXtFPs568/XDcsm1idb9N aFmwlMclLwtAk4hRk6rPBe9gNJkTkqUJYJbiOJcpXyOIrBef04P8RoXqM+FMu5xbEtPK LD2UvfQ+A1iOFZTQ6k4IPLmeiBuk8VU2f87RDXL6E0SX0jSIvtBgxI/tJTJdjuhCa6o1 CSi18OGC5CKDJtK8586mw39apPPBZPaUgWi7PqUzBvEYuNiF/7m4IFavJpjqiuyGXUfK xV4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=5cyj+SNClecoGvB2ckP0nhmEnj5BT7E8uenjd9kbxZo=; b=Ub9afhB+lYc9FnN7R4dfwGtiO3fi65ux1XNAI9Q8nwvNOQx/ppoIp7pFaFAaWuIw1o PX9e9tV9LqcVMaM0tF084BALPHMQLuMu2Ot4UDz/XNIs2sYnib/sN0maKSdV14hZ2aPk NXK2SuJJXNI/TBpGiwxBt+Ygf5c60p84TcjqPlyP2JwEOuSm83oGvx1l7F1LZlKf4ZpC pSb2/Uh/iUizcmmeW28VFQecdcgvk9rjWbrPbql2NkhKM/SeHO0XKsFQ9m66vmNZNyEv Q1Kl1rRU0P4BjEle7fMnACjg5T6lPqE1x9a7PLDaQ8ZEMjj0Ju4choFN5HVmxptqqNIY Iehw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si21721240pfj.230.2018.09.03.21.43.40; Mon, 03 Sep 2018 21:43:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbeIDJFT (ORCPT + 99 others); Tue, 4 Sep 2018 05:05:19 -0400 Received: from hermes.aosc.io ([199.195.250.187]:44963 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726093AbeIDJFT (ORCPT ); Tue, 4 Sep 2018 05:05:19 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 9E276FFA2D; Tue, 4 Sep 2018 04:41:56 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Jagan Teki , Jernej Skrabec Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v4 04/11] drm/sun4i: Add support for A64 mixers Date: Tue, 4 Sep 2018 12:40:46 +0800 Message-Id: <20180904044053.15425-5-icenowy@aosc.io> In-Reply-To: <20180904044053.15425-1-icenowy@aosc.io> References: <20180904044053.15425-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jagan Teki Mixers in Allwinner have similar capabilities as others SoCs with DE2. Add support for them. Signed-off-by: Jagan Teki [Icenowy: Add mixer1] Signed-off-by: Icenowy Zheng Reviewed-by: Jernej Skrabec --- Changes for v4: - none Changes for v3.1: - Add mixer0 Changes for v3: - none Changes for v2: - New patch drivers/gpu/drm/sun4i/sun8i_mixer.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c b/drivers/gpu/drm/sun4i/sun8i_mixer.c index cb65b0ed53fd..091f6cf40353 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c @@ -553,6 +553,22 @@ static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg = { .mod_rate = 150000000, }; +static const struct sun8i_mixer_cfg sun50i_a64_mixer0_cfg = { + .ccsc = 0, + .mod_rate = 297000000, + .scaler_mask = 0xf, + .ui_num = 3, + .vi_num = 1, +}; + +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", @@ -570,6 +586,14 @@ 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-0", + .data = &sun50i_a64_mixer0_cfg, + }, + { + .compatible = "allwinner,sun50i-a64-de2-mixer-1", + .data = &sun50i_a64_mixer1_cfg, + }, { } }; MODULE_DEVICE_TABLE(of, sun8i_mixer_of_table); -- 2.18.0