From patchwork Thu Jun 13 18:52:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10993507 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EE36013AD for ; Thu, 13 Jun 2019 18:53:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFA5B22B27 for ; Thu, 13 Jun 2019 18:53:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D40FC23201; Thu, 13 Jun 2019 18:53:50 +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.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 9F67622B27 for ; Thu, 13 Jun 2019 18:53:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67C058984C; Thu, 13 Jun 2019 18:53:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by gabe.freedesktop.org (Postfix) with ESMTPS id AEBBB8984C for ; Thu, 13 Jun 2019 18:53:46 +0000 (UTC) Received: by mail-pl1-x641.google.com with SMTP id bi6so8129139plb.12 for ; Thu, 13 Jun 2019 11:53:46 -0700 (PDT) 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 :content-transfer-encoding; bh=F8d7m1DDnqH/bUU0S136tJmuahNrjwjbhZ2wXcmIkdw=; b=t250G5o0RXMXEcesjJgfbyh+r2YS9afr7ez5Knl007eMutmob5hiwGUjifbf6DEIKd rx1JfC/hvq3OzgAJGMBLUeuQVjwjG1A+D79aQagy/LnWmSZvWjQpTEuXs0SBEkBKT5yv oxb/mrGwnbTP4jIQztxX6ObQGzs8BeL0KVym3dTqaS26OPyiWdVdDEk67MYKi25aYqj3 uA841MmElOL1zWaUbqWSsMehak3tExU61VZ+RI2kJWloGhbJXhCXKbSQk/agLkNpuymy 68mJGAucPJ609k58j5mOgzb1eQbzDpl/Qhzs4ifu1rVk2uscdkoG6tdQWUvkzoYCxikf kaCw== X-Gm-Message-State: APjAAAULgYh2nS48PflfCj3BM8HAIbpg4n8CJJqM/hLLJtHXgAZd5YxN ks+D9Joq/8bW/RvNOA5+3zjXh+o2uiM= X-Google-Smtp-Source: APXvYqxKp7XuhbcSPIGuqB4Br4J+FEyezdRc8LcQCzcSqRvzjXK5pGpx+EH6W3hDqkSMxv54g7UEGQ== X-Received: by 2002:a17:902:a5c5:: with SMTP id t5mr90864681plq.288.1560452026080; Thu, 13 Jun 2019 11:53:46 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id p43sm946314pjp.4.2019.06.13.11.53.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 11:53:45 -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 Subject: [PATCH 0/9] drm/sun4i: Allwinner R40 MIPI-DSI support Date: Fri, 14 Jun 2019 00:22:32 +0530 Message-Id: <20190613185241.22800-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Mailman-Original-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 :content-transfer-encoding; bh=F8d7m1DDnqH/bUU0S136tJmuahNrjwjbhZ2wXcmIkdw=; b=XYnYivhjrL8PvMkvcXOzIdoB8lf1mxtbUYycZaEG3qDzZOBTZW8NEM4v6Fq3KNpMR1 V9M4+v2ssLCBbmr5ZhabNGscBCasuvkwnhUqZ54hKPn1YDbi6BS99GW/25z7RJoSLomS zMZ0+g/bDTm+xsqCnr1Clt8/yhkTCEp0Kf8g8= 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: linux-sunxi@googlegroups.com, Michael Trimarchi , linux-amarula@amarulasolutions.com, Jagan Teki Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is initial version for supporting MIPI-DSI on Allwinner R40. The controller look similar like, Allwinnwe A64 so it has dependencies with A64 MIPI DSI changes, DSI fixes and R40 pwm driver [1] [2] [3] PLL-MIPI, dclk divders logic bpp/lanes are properly work for R40, like A31, A64. patch 1, 2: TCON LCD support patch 3, 4: Use clock index macros instead of numbers patch 5: Add tcon top lcd clocking patch 6, 7: Add dt-bindings for r40 dsi, dphy patch 8: Add R40 MIPI DSI pipeline patch 9: Overlay patch to test it on BPI-M2U [1] https://patchwork.freedesktop.org/series/61310/ [2] https://patchwork.freedesktop.org/series/60847/ [3] https://lore.kernel.org/patchwork/cover/862766/ 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 ARM: dts: sun8i: r40: Add TCON TOP LCD clocking dt-bindings: sun6i-dsi: Add R40 MIPI-DSI compatible (w/ A64 fallback) dt-bindings: sun6i-dsi: Add R40 DPHY compatible (w/ A31 fallback) ARM: dts: sun8i: r40: Add MIPI DSI pipeline [DO NOT MERGE] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable Bananapi S070WV20-CT16 DSI panel .../bindings/display/sunxi/sun4i-drm.txt | 1 + .../bindings/display/sunxi/sun6i-dsi.txt | 2 + .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 36 ++++++++ arch/arm/boot/dts/sun8i-r40.dtsi | 84 +++++++++++++++++-- drivers/gpu/drm/sun4i/sun4i_tcon.c | 7 ++ drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 13 +-- include/dt-bindings/clock/sun8i-tcon-top.h | 2 +- 7 files changed, 134 insertions(+), 11 deletions(-)