From patchwork Thu Jun 13 18:52:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 549 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CFB513F033 for ; Thu, 13 Jun 2019 20:53:58 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id 30sf14454440pgk.16 for ; Thu, 13 Jun 2019 11:53:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560452037; cv=pass; d=google.com; s=arc-20160816; b=TcpX7U55blyPX3xgwGpoqfxerMXt7ZapVfVAa+Wr9D27PJUD4AqAq3T6mwBSJ36ssR eR5AUaL+iStVuvmh0CbVSDsyJyPXztvOD9Sd7kJHL5TGrqUlT5nfgT6PRBCVQnxvNz7A aqE0i4526gkeuULPxBWv0+SrqnSoVSAIsqb0JIMQWEKf+sX1/gsB2IbyetNtYfX2x3CP W71OH5e292nY5cLrJ3GJ86hZ1XsbQckuPwSwC9xCEz7e1K7XV6KgDxqYjZGo0x/ONvnM 2tOB5fp9w757b+4Lv7mAGMe/4XZocVLAaAStYD8kg+6TBT5ruLTv6eU2gYJi/7Jh7Z0z Ki5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=8bwtWG+42skHNt4DtXpQvrA2rBjsFCF1bnRLjgMPq0Q=; b=rm8dcJNoYV3A6gCWysQxXJN94IJclq5qdso6p/wsudGtfarx9Zz6dBlEf1jGQ2erq4 QSeqZPu/OZ08WTBuTkO+NWuL3PffRb9D4F0bP0TpvFemew/L4/XjxkLqdxZM8vf3xv6n yTydPfHnq1rEQfm/6j0+X20urf9Pr0T7/pXCJ14U6R91Fvgbfk5qHqvskLTR+NF0HXjU ecYBw24E5jSM2JuFUaR9oLxHnaAbQJnaAaZisbf9tLjPu23n17mCPJ1B5tiKycJwXclM 20W8Y0HK+tMegKl30lKYO6nWOeOKEysb8DZYusK5MTi3bvGQjVoLS52x0A1Koz9v5uGw dGLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aiVm+Ij7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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 :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=8bwtWG+42skHNt4DtXpQvrA2rBjsFCF1bnRLjgMPq0Q=; b=i6r+12ztPXv/KHGKmnXG7z2lPKSbWo/TBg9s9jTuJXZTK+wi/er0yWLBXTh5VTnXnE jaCeNMHiIjH3wthKM//fZXdmdvPkBoH7PfS966sA6n93ToZTjoXcJdzTd1N34Q5V/61N OVmgGzQPULXCye7VuPDZHGD0iCLkXPpMaLGYg= 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=8bwtWG+42skHNt4DtXpQvrA2rBjsFCF1bnRLjgMPq0Q=; b=UT+1qgire0onE7gr1ZtdBzo44PrUOttkHpqnu3TD0B5ItoE1bJEiyRvfFB/ybi5egk 4Ro0KMb3vjHXnkDQ8vLJuErSJ/jmq6psixqnB7Ix8VuCiuUxGjX+4jKPCna2nzVMcWy+ igCaLmb/TZFGLYWuOePCIjeKTBB7KQAKLnuackvvSyWGkFPieGI1P5IUsDR09bpwubOd K2ortwfg3ao4upC6yAzGJ+CeEyyq8RJwNHB26CP5fCCqC6r+4LGZHop28/+gJ4IKpbSk mLRVlmsAk+7TBkORJiLOFRIHfWT0z5U085JuWuLBa4d3Grt/8tIr/XtW8+U2vMVXW2Fv 6D7A== X-Gm-Message-State: APjAAAWUIsZMKoRu5BYn2wP2CYg2AbkgrnvkaCifeWI7a0W5lTpGX8Za i7BlNA9up98O7XPbRM4GJq7AC6Ne X-Google-Smtp-Source: APXvYqwkUu9UxJRN+phv/Ga7dz9r15u/dptbYERhit8UP5nEVwTty+CAKcjUr9uHXYbMiaxXtYr+fQ== X-Received: by 2002:a63:1343:: with SMTP id 3mr33049238pgt.426.1560452037574; Thu, 13 Jun 2019 11:53:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:de12:: with SMTP id m18ls566668pjv.4.canary-gmail; Thu, 13 Jun 2019 11:53:57 -0700 (PDT) X-Received: by 2002:a17:902:4906:: with SMTP id u6mr90436138pld.220.1560452037209; Thu, 13 Jun 2019 11:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560452037; cv=none; d=google.com; s=arc-20160816; b=ZPfHyurMU4TnmrmVFDRm/RceyWeTavdAe6TZzV7G9KzaNzWZjVxeYT0TCi2cmx5oqG GbP3qkLvy2cxV7t668+zc4kEGSUrvkf1Ksu7MXiK0DaBkbJxQEAqQqePvWTIbamS2EUj XuTSoQ1pV9wHIXzL+u+aUU3RkighFxC9uo6W+yfTEZxdbtzt/G4dpI3AzYDBcCvSoi8y Kx0lKtd4HS5Qb+7hl0kTWPihjKnqI/5YadjX13Jg4A/HlG6m6Uzf3XkvMzmGwlDGzVCv eeJhsOl+m0fe4Iak2HNzZ8O4svlD0xiSBzVq6tj1CTRmSPxupUh1ZKwHGTrAebKVC+Ok HTBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Z0BqE/PvwTCOuDfT7ziZnBtJoPRweQQwkvxwrMq6Xa0=; b=w9A4yxN8+Sc0En5qws/svSyjoDPH8nbV/EB11NSqequzXSo2INlK2ttvvB2EmJaidG YTkBfWaFuwc9TS1N47I1gRMsuogp7FHyb3Xa/RlmCZXitVPqkAgmOE4L7jpCq6RpP+u4 xg4rUw8lublmWZXmnhbGBUciTC0qkn9DbcyM4yWt3eeyNxq8kWOLwYrPBPjOgOEAvCf8 Mavel8SaXywIXdcyfJ60tiVNWDqfdydp1dasy186I9f4qi8LSK3FEM7YFFEmLjwX2vaH htuYlyk5818gKPvqK1dV2qxt/jGitzls6r7lG/Z46zULevjusW4u9eYk+PQPpyiqntYO E48Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aiVm+Ij7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s20sor464413pji.27.2019.06.13.11.53.57 for (Google Transport Security); Thu, 13 Jun 2019 11:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:90a:a10f:: with SMTP id s15mr7164601pjp.30.1560452036899; Thu, 13 Jun 2019 11:53:56 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id p43sm946314pjp.4.2019.06.13.11.53.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 11:53:56 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jernej Skrabec Cc: Michael Trimarchi , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/9] drm/sun4i: tcon: Add TCON LCD support for R40 Date: Fri, 14 Jun 2019 00:22:34 +0530 Message-Id: <20190613185241.22800-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190613185241.22800-1-jagan@amarulasolutions.com> References: <20190613185241.22800-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aiVm+Ij7; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , TCON LCD0, LCD1 in allwinner R40, are used for managing LCD interfaces like RGB, LVDS and DSI. Like TCON TV0, TV1 these LCD0, LCD1 are also managed via tcon top. Add support for it, in tcon driver. Signed-off-by: Jagan Teki Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 9e9d08ee8387..8553066e7bed 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -1471,6 +1471,12 @@ static const struct sun4i_tcon_quirks sun8i_a83t_tv_quirks = { .has_channel_1 = true, }; +static const struct sun4i_tcon_quirks sun8i_r40_lcd_quirks = { + .supports_lvds = true, + .has_channel_0 = true, + .set_mux = sun8i_r40_tcon_tv_set_mux, +}; + static const struct sun4i_tcon_quirks sun8i_r40_tv_quirks = { .has_channel_1 = true, .set_mux = sun8i_r40_tcon_tv_set_mux, @@ -1501,6 +1507,7 @@ const struct of_device_id sun4i_tcon_of_table[] = { { .compatible = "allwinner,sun8i-a33-tcon", .data = &sun8i_a33_quirks }, { .compatible = "allwinner,sun8i-a83t-tcon-lcd", .data = &sun8i_a83t_lcd_quirks }, { .compatible = "allwinner,sun8i-a83t-tcon-tv", .data = &sun8i_a83t_tv_quirks }, + { .compatible = "allwinner,sun8i-r40-tcon-lcd", .data = &sun8i_r40_lcd_quirks }, { .compatible = "allwinner,sun8i-r40-tcon-tv", .data = &sun8i_r40_tv_quirks }, { .compatible = "allwinner,sun8i-v3s-tcon", .data = &sun8i_v3s_quirks }, { .compatible = "allwinner,sun9i-a80-tcon-lcd", .data = &sun9i_a80_tcon_lcd_quirks },