From patchwork Fri Mar 15 13:08: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: 10854689 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 C577215AC for ; Fri, 15 Mar 2019 13:08:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9F262A9B0 for ; Fri, 15 Mar 2019 13:08:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D46D2A9B2; Fri, 15 Mar 2019 13:08:43 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A0272A9B0 for ; Fri, 15 Mar 2019 13:08:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GuJZCrkp+iFsjUfyKOYuisQnMP7Lw6PiFQ7suxnJrrQ=; b=ATb0CiKXDNFHM8 hd4Tj7TirSVq/cIRo8E7arm94qyX83d1FggkKeBJzXq69s67J9ILlwg8XNqjLZ3Cmy0F0SMgm064J g4MMnF7TIYlPnAD9a4wubLfOo5Kjqa0Qo5BTqULuRK8VbE+kGuEBgdE7ZJAHWVeCpCdTeBvOdD9Ib 5nv5vwU9vdws7CrBs+UxcQ1k0gPCBDiFJF7BqxT95YDMjs3cpIA3ajAFRWluXVQvqermUxe0H9OVR DwkbCwZ1ZEyctaE3h8/j9JOlw4gaqg3nzFz+sIp7psRsZjjjbsCKb7QuxEvmvtibPYbHGkft5kWF9 GuEVEZgE6LkYQ1JajdWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4mZm-0005Zb-5W; Fri, 15 Mar 2019 13:08:42 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4mZi-0005Z6-Sp for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2019 13:08:40 +0000 Received: by mail-pg1-x544.google.com with SMTP id e17so6457805pgd.2 for ; Fri, 15 Mar 2019 06:08:37 -0700 (PDT) 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=MCAsq1unmy/u9MR2Tb3vIzLidQD5Rpkalik1aaNmBV0=; b=HaGtERc1qVWgovorqE6ioBRI86D7lQLQcVJpD3+rJ8FQbYA553LlqrpYID5XU6L4PG FIK6PefcXGw6bZ8jxROK/vJ2lDrlvTdUMqWuqdslYymLbGx2XtsGd2AC/uhfZsUkQpLc oZ4UpPONsz/EEfB97X1fGuMMfz18zVgLL3MtQ= 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=MCAsq1unmy/u9MR2Tb3vIzLidQD5Rpkalik1aaNmBV0=; b=nHoH/3lvLpBFE3MWJ8tkPYsyy6HpXfHuihco/nLr4FBcqO/Ahxe9n37KbHpCggHXmG 2lHtqybduaPvslPZJybATEmfHui3UHaqaYPTJ5EcrlhSQMLx0pYeFciHWA0iiQPEEg2+ gSbc6M8LdaarCrskD7kIa7pgrsszKsSrG5NcMBbzPzV5sKG2D1Juo42BvlHRDR5ol2QC DNpH9Ygt5EPBdg52PlIJpbLswm+2erp9gXuIF7OwSCL5hFGuOfLOF6m4LNVLFMurfaIp cGVCbVRH2y2Tgvh7RDrLweXXGmAoOPx17n2s20ZnRKD6UqBE3fMd6OU9o06PSD0gnrXV xIYA== X-Gm-Message-State: APjAAAXQUAOId5Lpbq9C1ow4bwcC6DstloSo/XSk4SE/x+urkRkJhZ55 0beiciJ+NHZ+59vy7AyYiRytaA== X-Google-Smtp-Source: APXvYqzasR/PuWyWi8ODkyuiPoNON4uV0lo0p9u87IZi9Xzt1VgyHjvVgOXXgGqKc3Yep6QEOGVkiA== X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr4234447plb.253.1552655317200; Fri, 15 Mar 2019 06:08:37 -0700 (PDT) Received: from localhost.localdomain ([183.82.230.185]) by smtp.gmail.com with ESMTPSA id e2sm854008pfa.64.2019.03.15.06.08.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 06:08:36 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Subject: [PATCH 0/6] drm/bridge: Add ICN6211 MIPI-DSI/RGB bridge Date: Fri, 15 Mar 2019 18:38:19 +0530 Message-Id: <20190315130825.9005-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190315_060839_411250_102977E8 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series support Chipone ICN6211 DSI/RGB bridge support. This ICN6211 bridge is taking flexible configuration of MIPI DSI signal input and produce RGB565, RGB666, RGB888 output format and it is present in the Bananapi s070wv20-ct16 panel. Initially similar support is written as dsi panel driver, but based on the discussion from this thread [1] and input from "Andrzej Hajda" I would ended-up writing bridge driver. patch 1, 2: export drm_bridge_detach patch 3: bridge support on Allwinner DSI controller patch 4: ICN6211 dt-bindings patch 5: ICN6211 bridge driver patch 6: overlay to enable bridge and panel on BPI-M64, this would eventually depends on 'Allwinner A64 MIPI-DSI" support [2] [2] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=90117 [1] https://patchwork.kernel.org/patch/10657579/ Any inputs? Jagan. Jagan Teki (6): drm/bridge: Export drm_bridge_detach drm/exynos: dsi: Use drm_bridge_detach drm/sun4i: dsi: Add bridge support dt-bindings: display: bridge: Add ICN6211 MIPI-DSI to RGB convertor bridge drm/bridge: Add Chipone ICN6211 MIPI-DSI/RGB convertor bridge [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Enable S070WV20-CT16 DSI panel .../display/bridge/chipone,icn6211.txt | 36 +++ MAINTAINERS | 6 + .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 63 ++++ drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/chipone-icn6211.c | 275 ++++++++++++++++++ drivers/gpu/drm/drm_bridge.c | 1 + drivers/gpu/drm/exynos/exynos_drm_dsi.c | 3 +- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 65 +++-- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 1 + include/drm/drm_bridge.h | 1 + 11 files changed, 443 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/chipone,icn6211.txt create mode 100644 drivers/gpu/drm/bridge/chipone-icn6211.c