From patchwork Tue Nov 13 11:16:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 29 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 965982E5422 for ; Tue, 13 Nov 2018 12:19:04 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id r65-v6sf5191188pfa.8 for ; Tue, 13 Nov 2018 03:19:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542107943; cv=pass; d=google.com; s=arc-20160816; b=bKgniSZ8cvOuXSHcyaJN9eK30TLKWOw1ARBB1XXHgZDSzYuVTSKxbatTkmpdcLOL8b H+nxBF/m/BnIn5Qvn52+hfKEoXLb+d8kIszn3it9Fdc+7dT2lUwSAGGpWzEFMTmh/Ubr 7bien/6NUntq2rLObLCmF83QJe7OBdHL9nrcz+Q1mi9q5p3d53nZv2nI7vM3BsnVI70t 2rXxvO8Ga/2PRIDvY2Pb7cvAhfcpIIjt49H7djVRx2OUhWEgJqfNoLrkxJ/l6tdCnhXq +rJEr9NDXrHUDaiOh0BvdPH9HyVFcIcu95QzGnySJJ9gJkuwxrzrPC8xWqQB2+Y33d+V JrdQ== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1ffbMwrT3Fv3KeJlLSZWFa/jJG9NP1xOyiBOskUUsgI=; b=oLkYZoShVlm4lU0s5+xfLDid12qqon74TDJfgn+mS9z/b3NIW9mkq7eZJwHIcaBaGm 6Ptc5Sq8t7dSxmv94BZJIWAoqK/4cPRsUTWZ5icSM1Pk8/XCc5cf8mmX8akOPRW+BR/U 3HYWJB2qXfR78RpCJwKkpoDR5EUUcfJoKsqltcVCD9aQ1FilH4mApbSkGYzkD3rMPfmy uEURZ50E0bC28eXOGgTGLPLuDKuUDUeNi6GHWCa9ujW9GJluLhY40tn6SedNje5n2x5B TqWr3a5X/be8gY7eMAy0fF9hVDWuQ9E73GTj+xEY42aexQAZNgAk+7FpClwy+6CUvxXy 6RDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fuO6h+ix; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=1ffbMwrT3Fv3KeJlLSZWFa/jJG9NP1xOyiBOskUUsgI=; b=HSovBj8oVH0H+ovX4uFUK1BEYhINZiUAve11aUswQUDtk6Yv0UHzpNDsyJ4bd1Qqx3 BnE3IXK+WPk7xrUa8zsmyWviknN2p+U5dL+ZMRKqpzyTRppE6M1i5eEqvw5s8pYrdFyu FtJOHPSdTOLHoe9aUUqG2YO5p0CkFAcgsBHMw= 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:content-transfer-encoding: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=1ffbMwrT3Fv3KeJlLSZWFa/jJG9NP1xOyiBOskUUsgI=; b=jb7R171IMMZ8tE0KMfEo16SsJ7pQeFnZayYNXyn9LVy1d4KJpGH85z6jLTPFiNEkqS 752/3fNqlzrYreE335uQfn8aSkgMlb3K7tY7fU7ARf/l/T4iNOMpQRACSVyGFiygbAop alM11h7OYIPfrN/rOL2NbV3o4NJiR3VsHISUKNwfCD/WA9sliovB8JlharRFNEw0oBqw gXYnU5idPX6P8TDKZDkjsI1fLhOzpG//6XUuWPCu9zZ8JF46D3qjSJfCdtf/ygYAiBps aZXvqrOXGLWSN4P3sYiN5kFQ5OqBrE7qi0js783PaGF/Py2SQ6p+t0Ma0iVJbp6QAiGH bO/w== X-Gm-Message-State: AGRZ1gKLziAoDEM6mKmifrf75S208CBaEaF//bBIIUx/J665VE8wgz+r Wru8ET8zUc0sL/QHenNuUQQNleQi X-Google-Smtp-Source: AJdET5ffstakQam3iRwbHCy1MSCiPtWCzYLmegJO+LR3azNssBy1Qk9DspAGXCX3vtHlh7kCUlQuqQ== X-Received: by 2002:a63:8ec8:: with SMTP id k191mr2021640pge.47.1542107943251; Tue, 13 Nov 2018 03:19:03 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ab96:: with SMTP id f22-v6ls4324975plr.1.gmail; Tue, 13 Nov 2018 03:19:03 -0800 (PST) X-Received: by 2002:a17:902:ab81:: with SMTP id f1-v6mr4739782plr.103.1542107942911; Tue, 13 Nov 2018 03:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107942; cv=none; d=google.com; s=arc-20160816; b=c6qs6EAfbEX7xXg1fTudLzeU9lPjqQTmJ2vDODd7bOXfgd7WtGbqnJDHUgTRKGGoia tlPJb/cIIsLEdYIwbMPQd09lW+6huLNJUudth8kbSctWKHJsELJZD+9DKuhYpssBKqk4 A64+Gc3v499aT72ubxLbwzKkd3YqmdsZPyhC6MJuO2lBHWN+iYu/gIM7uTZ+2QEk8BzO 9BJtqVtgGkf3DWiAVPIY+YI81zzentcB5mSNhK3tFIjkmvFAfgN+dWJ130Ts+1F+C1il pLrsCKM5dDVaCitcY4roGk2Hp5IRiHbXBynv8CnDmnjNCW3lHKVRcAgvOQoB+BdeydJm uEvQ== 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=1ffbMwrT3Fv3KeJlLSZWFa/jJG9NP1xOyiBOskUUsgI=; b=uZ7J8VA3KAccF/UZPBngZsa523rIFuT/LV3tHpYMnEyHsKpuZnGV9Tv9SO/KtZXCNW KcNR+s72Y1mKaCBoQ99RCdabTXIUJTld0Q+22RhJ2MrVtEghJCn/EKRncVNyQY3FGAuV C5nN9dq5q5ZC31DIJ1Jf2bJFjgrPoLOBcaw+9y1XNCz1dc4bbXR2DbkvdoyPwRxifFnx /F5WXclFnegdhEn4uZa+bwLC2KlkxM2y6vCAgmfG7O0M0ZwqprXk7yJNHziFzOZ1DHwG 6mxFXZt+Zh4Uu69uFLFd2TKtgkZwogUIH8scr47OPPPip6/G33R4rD6BoUuc2oWnDUQ6 6xdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fuO6h+ix; 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 v90-v6sor8737278pfd.71.2018.11.13.03.19.02 for (Google Transport Security); Tue, 13 Nov 2018 03:19:02 -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:a62:3101:: with SMTP id x1-v6mr4857394pfx.204.1542107942470; Tue, 13 Nov 2018 03:19:02 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.18.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:01 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v4 21/26] drm/panel: Add Techstar TS8550B MIPI-DSI LCD panel Date: Tue, 13 Nov 2018 16:46:28 +0530 Message-Id: <20181113111633.20189-22-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-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=fuO6h+ix; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Techstar TS8550B MIPI DSI panel is 480x854, 2-lane MIPI DSI LCD panel. Add panel driver for it. Signed-off-by: Jagan Teki --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-techstar-ts8550b.c | 324 ++++++++++++++++++ 4 files changed, 340 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-techstar-ts8550b.c diff --git a/MAINTAINERS b/MAINTAINERS index f5bb2ffa1089..3dac08d0b3cb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4718,6 +4718,12 @@ S: Maintained F: drivers/gpu/drm/tinydrm/st7735r.c F: Documentation/devicetree/bindings/display/sitronix,st7735r.txt +DRM DRIVER FOR TECHSTAR TS8550B MIPI-DSI LCD PANELS +M: Jagan Teki +S: Maintained +F: drivers/gpu/drm/panel/panel-techstar-ts8550b.c +F: Documentation/devicetree/bindings/display/panel/techstar,ts8550b.txt + DRM DRIVER FOR TDFX VIDEO CARDS S: Orphan / Obsolete F: drivers/gpu/drm/tdfx/ diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 20b88c275421..d0d4e60f5153 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -195,4 +195,13 @@ config DRM_PANEL_SITRONIX_ST7789V Say Y here if you want to enable support for the Sitronix ST7789V controller for 240x320 LCD panels +config DRM_PANEL_TECHSTAR_TS8550B + tristate "Techstar TS8550B MIPI-DSI panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Techstar TS8550B MIPI-DSI interface. + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 04696bb85218..88011f06edb8 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -20,3 +20,4 @@ obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) += panel-sharp-ls043t1le01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_TECHSTAR_TS8550B) += panel-techstar-ts8550b.o diff --git a/drivers/gpu/drm/panel/panel-techstar-ts8550b.c b/drivers/gpu/drm/panel/panel-techstar-ts8550b.c new file mode 100644 index 000000000000..70a5f8ec6908 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-techstar-ts8550b.c @@ -0,0 +1,324 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019, Amarula Solutions. + * Author: Jagan Teki + */ + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include + +#include