From patchwork Tue Dec 31 13:05:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 985 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EAF233F077 for ; Tue, 31 Dec 2019 14:05:44 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id f1sf1663005pjg.7 for ; Tue, 31 Dec 2019 05:05:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577797543; cv=pass; d=google.com; s=arc-20160816; b=tInTeOmqyde+HXWj3Nu2omABoIYwTXLMGga2oK/l7W5Zt8Dy5/F2SJ9RBHdC+lAifq FtqzAmBxQdXJnEnyo1ySusKack7k8LRJ6oCni/gno4QhpyOVFljBYr0HzsmzcdAAwvZr QPnZcwQ35N2arpufqNT7NlNJ0/pBgKElJblk3Z/XL9ZBDNlpOBUvFOzwco8p45p4xND8 VFPSXSP8FpicnCxSZBXej+0nHZSr65wAnl5pMtWQivsJJu4US50sd1EZSkAJ8upTRa7a ZSdENDXHIgUvw0EKPMy1hpGP6p7xbBabkB8b/76Ui5DDjpEyQtBf1G8ln0X5ox4BuYZs m9eA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=jPe/aHAFSnfcMvHf6inFGlDPHTbNcL2cKXJW+tYwe9o=; b=n4XtLxlgu0WLmBlcwTf23L/y6juWKU4y5M6YRBRA/OLwMbGD3hdiUmE+JCsMKfm5Ll qpJlY8oBUf+1ZseAk5YyW6weEUidkwxvLrXWttt4DSBijYzsTIp6ur4pg5+/WB4yWvPt KPle/MvJwjT66cbDVGVUivkkcN6/VlhyUXZPNmfr1lia7wmnQJCwm1/9J9ZvaQMq2eL7 g4ebmzaT2Eo77mh7cBT6cdjqR0me9CfhN5ecIRd+b4jfDzT7r2dtl+JQP0aPJCr8Sex9 fGcfdjf8MwG+ZrFfhrmfdlPG0qBl4/FNuvnvMOI/W3zjpClBONOgbcz3URMJglA3fEqd YX3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JNRNyjPn; 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:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=jPe/aHAFSnfcMvHf6inFGlDPHTbNcL2cKXJW+tYwe9o=; b=GD77igCMypu0wwH08qCN40PNDeTdICDaeXnTGTEa/DW5HH4g4xZaO5Mkk/dYJVx6bc gBzIpXqaOIz/lx3JbA74J9hyZuIMHpzNJcn6Mdy19BiGuZJdia91spC+lnsbQgnSArS/ xPydT8ok3RIiKF4ztcphcifdB1o33zN7HKTao= 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: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=jPe/aHAFSnfcMvHf6inFGlDPHTbNcL2cKXJW+tYwe9o=; b=MbW7YW5eH1mI5oXKyUXZrD6uwdPaUUpDe6z2V3ubsVC95B/qbTF3OOshJylLyvD+bM vbm3V4aWaujnEQyrk0T52b6HA8y8Y4k/qo0RC5vCIqI4UyeCm2Jfn6RUDfWIuNOL1xIN v05fh/vOO9u3E+NZmQ+RmS5WoTA3nK14clHPI3MNU+ZvR0VO1DvcaAload2Ok0JvdyBG jibRmHZ6CbAEYUiqI0bhQ+WeknG0aK89UlFea9eshVqjtJc3xF1Y0jnbHmZU2mQMvdb4 iCBFZQuGxx+UQ0X9h7SRcUqkOzMH07FS0GTVu7+1wQjwTkjgFuCM+KMjjC081kv8QleW v+ug== X-Gm-Message-State: APjAAAVJsql5IJREKJjTjyjbt6bcJ8+da+vh6fCxgy1ZRxxqmYP4299N g9ZEPJVr9LaW5KGMTQNSSqkP073z X-Google-Smtp-Source: APXvYqxecRl8lOv0koGTUFKrkipzKrlbsca45xfpz/s/GNg/fvAJwRg/vr81d2YPf2+jcXC5IVYUPg== X-Received: by 2002:a17:90a:26ec:: with SMTP id m99mr6190332pje.130.1577797542817; Tue, 31 Dec 2019 05:05:42 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8c8c:: with SMTP id t12ls10335997plo.9.gmail; Tue, 31 Dec 2019 05:05:42 -0800 (PST) X-Received: by 2002:a17:90a:ec10:: with SMTP id l16mr6022574pjy.19.1577797542292; Tue, 31 Dec 2019 05:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577797542; cv=none; d=google.com; s=arc-20160816; b=FOJ642XRHag7QYaG8pnftDwRK4IUehQJkyHwYKpryhAO3iT7D0I4j/cr6JzrEI2oai J+82KlCpFIIxKro8N0vHoPMp5hljcfYLhdxQx7ZJPWDpdl3cu389Buz7ykXqF0q8q6vV Q1u8efZ69emk2xgIoQRvlZqcQRJiRMX/7kZtLKUlyoh0GZOF3ERVkU3RPj1LE0t/ZarK s8lp57bxbFlRiMVnmbo2oKxALQqk+aJ4QcEomjwMtFuGE0WvmwETaiqawwtZuVba955X NrRz0LHsHSmYaIO8I7iNmGjZvEFgcakONEmrEE14inenHoQX76ZTH7S9ktoSy46IIiur 41iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=G8ue1C52c6GMFo3Ro49/gUAlsKHzYRxfbPWqTGCIbyw=; b=rOtEVNQk9EPBR05gfatvJg8uvBqNX1Oa30npekCM5L4xIDscKovCi7b7+NFeiujHwf PE1UmT+U1ZBe5KVQ9Ku+ge7QJ6hGIOjnXer3BKsdyr1KjD+WfRMH2+RDZpl8Yyt8Xcq6 QsElZCQvnLWCd14pTrZDwW/tUkDthx2hQkEECbBzXPNPtj1hq/NBJSSeABAk45wtwnIk jKG8eQABiW7/HJnqhPG8lSyBQpohYMShbFddQV9gRW1MKdyocKaF538n1jMhB48yA2DV Ur0gYsjXVeUGKmQ9AQqF5ajUlCCTmKI24NOkVOORpHRkd2bxySgoq5r0DGLvDVtTPbAO Xj5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JNRNyjPn; 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 59sor49049735ple.10.2019.12.31.05.05.41 for (Google Transport Security); Tue, 31 Dec 2019 05:05:41 -0800 (PST) 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:902:bf0c:: with SMTP id bi12mr47277055plb.208.1577797541340; Tue, 31 Dec 2019 05:05:41 -0800 (PST) Received: from localhost.localdomain ([49.206.202.115]) by smtp.gmail.com with ESMTPSA id i3sm55204089pfg.94.2019.12.31.05.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 05:05:40 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring Cc: David Airlie , Daniel Vetter , Mark Rutland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 0/9] drm/sun4i: Allwinner R40 MIPI-DSI support Date: Tue, 31 Dec 2019 18:35:19 +0530 Message-Id: <20191231130528.20669-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 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=JNRNyjPn; 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: , This is v3 version for supporting MIPI-DSI on Allwinner R40 from initial version[1]. The controller look similar like, Allwinner A64 but with associated R40 TCON TOP for DSI pipeline. Changes for v3: - collect Rob, Chen-Yu r-b, a-b tags - move tcon top reset control methods into probe - rebase on drm-misc Changes for v2: - drop tcon top lcd clock patch - add TODO text while adding tcon lcd support - add patch for registering tcon top clock gates in probe - change tcon-ch0 in tcon_lcd0 to CLK_TCON_LCD0 - change mod clock in dphy to tcon_top with index 3 [1] https://patchwork.freedesktop.org/series/62062/ Any inputs? Jagan. Jagan Teki (9): dt-bindings: display: Add TCON LCD compatible for R40 drm/sun4i: tcon: Add TCON LCD support for R40 ARM: dts: sun8i: r40: Use tcon top clock index macros drm/sun4i: tcon_top: Use clock name index macros drm/sun4i: tcon_top: Register reset, clock gates in probe dt-bindings: sun6i-dsi: Add R40 DPHY compatible (w/ A31 fallback) dt-bindings: sun6i-dsi: Document R40 MIPI-DSI controller (w/ A64 fallback) ARM: dts: sun8i: r40: Add MIPI DSI pipeline [DO NOT MERGE] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable Bananapi S070WV20-CT16 .../display/allwinner,sun6i-a31-mipi-dsi.yaml | 8 +- .../bindings/display/sunxi/sun4i-drm.txt | 1 + .../phy/allwinner,sun6i-a31-mipi-dphy.yaml | 1 + .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 37 +++++++++ arch/arm/boot/dts/sun8i-r40.dtsi | 77 ++++++++++++++++++- drivers/gpu/drm/sun4i/sun4i_tcon.c | 8 ++ drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 50 ++++++------ 7 files changed, 154 insertions(+), 28 deletions(-)