Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3215293imu; Sat, 24 Nov 2018 00:17:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/U6OcvGmoUaCUzkknq2ceyPJG6IKCFX41aLoNnz3q86VJSjiuekfxcE0dyi3HKiaLdseBpx X-Received: by 2002:a17:902:d905:: with SMTP id c5mr18636947plz.43.1543047457091; Sat, 24 Nov 2018 00:17:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047457; cv=none; d=google.com; s=arc-20160816; b=ed9SGXEXkCndj2ubTCrWLnrMgwMvOWw0iZzSat4ZjaQ2QzPlsbKt004/B+gWpyJ1Il YmP+npM3MghQfWe7zc0wCp/frACi7OwhnCsLT0qdlMkcpTrLEQRRczZLDdj7fgIB6Gx5 bYRPLM7qfvbKpDKrRHw+Rs/LfJ+/a+6XV6OXC372mYYJI4mDnUrXNRu7p6d29aR4SCVt rVZkb8HQci58eHl7AuFmGgU85ZglmBN7lrYWRrW7vgk9iF0qO/UJVjvq1pjO5goKFsz/ vTzqvfIy1FW9tdPzGotiZukyPkBKn7vVYGE6UjqzykPS2xLKNAMbXBJ6Q73AkExh6Uod BtEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r3aOBK5svevNjxhvE7KKxhJmNEw2n6iiffKDfBkYXSE=; b=csg+mNssc6FPWNDpJaghjFVw6xfX+7Yi4MM0qPhyfj06WC4xvr0Ch2+MdTJeWn31Gy dSQE0AcyMnA5W5PyAlx1LKSLdCe6zNEM8NpnJ5W4qAnesJcAhAF0ra3bUf7rCoM+a6KK +dQ2L4Pz/tz6fuF1+7hGx8hTODIEU7SGN2C5PAXzznO7ruv9y077AOWtXRVyFG+r1dsU DbN+9fTmIZCRGKnmjb1RueRmXqn825ZDMF8TT3crW3YMskVX1y3G59hfYfFgLk0xmeiE QmrFNfX5r8+Sr7JNi1dYh3QfsotwXUPQYpWBWn9A5hrhnzhG9C2gWYijFMGhxMpFxEiP mdHA== 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 w12si32562120pfn.212.2018.11.24.00.17.22; Sat, 24 Nov 2018 00:17:37 -0800 (PST) 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 S2502817AbeKWUKo (ORCPT + 99 others); Fri, 23 Nov 2018 15:10:44 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49515 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409043AbeKWUKh (ORCPT ); Fri, 23 Nov 2018 15:10:37 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8380B20DD7; Fri, 23 Nov 2018 10:27:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id B166720F80; Fri, 23 Nov 2018 10:26:38 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter , Paul Kocialkowski Subject: [PATCH v2 43/43] drm/sun4i: frontend: Add A20-specific device-tree compatible and quirks Date: Fri, 23 Nov 2018 10:25:15 +0100 Message-Id: <20181123092515.2511-44-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the appropriate device-tree compatible and quirk data for hooking frontend support for the A20. It supports the FIR coefficients ready bit but not the access control bit. It also takes different phase values than the A33 for these coefficients. The compatible is already used in the A20 device-tree and already documented in the device-tree bindings. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_frontend.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_frontend.c b/drivers/gpu/drm/sun4i/sun4i_frontend.c index 427c51029a9c..4a9cb478167f 100644 --- a/drivers/gpu/drm/sun4i/sun4i_frontend.c +++ b/drivers/gpu/drm/sun4i/sun4i_frontend.c @@ -676,6 +676,20 @@ static const struct dev_pm_ops sun4i_frontend_pm_ops = { .runtime_suspend = sun4i_frontend_runtime_suspend, }; +static const struct sun4i_frontend_data sun7i_a20_frontend = { + .ch_phase = { + { + .horzphase = 0, + .vertphase = { 0, 0 }, + }, + { + .horzphase = 0xfc000, + .vertphase = { 0xfc000, 0xfc000 }, + }, + }, + .has_coef_rdy = true, +}; + static const struct sun4i_frontend_data sun8i_a33_frontend = { .ch_phase = { { @@ -691,6 +705,10 @@ static const struct sun4i_frontend_data sun8i_a33_frontend = { }; const struct of_device_id sun4i_frontend_of_table[] = { + { + .compatible = "allwinner,sun7i-a20-display-frontend", + .data = &sun7i_a20_frontend + }, { .compatible = "allwinner,sun8i-a33-display-frontend", .data = &sun8i_a33_frontend -- 2.19.1