From patchwork Sun Aug 9 21:51:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11706827 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A4C8E1392 for ; Sun, 9 Aug 2020 21:51:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 77E5820709 for ; Sun, 9 Aug 2020 21:51:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KDGG9CdM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77E5820709 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33ED889EAE; Sun, 9 Aug 2020 21:51:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4DD4E89EAE for ; Sun, 9 Aug 2020 21:51:51 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id c15so3696243lfi.3 for ; Sun, 09 Aug 2020 14:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RrsiR38UwzGryEjdYP0YDhWr8aT6bEJDFis5+ZW/wZQ=; b=KDGG9CdMfmTOWgai78aMqMIKf2hZdwLc42psRqBMoXt3B0UUYmR6MwLEgi2tY6IqZX DDL4ZBuEHsBi7TLsmsTUMNbpFoa+XtjgVlW98R3U8FJDvLbxyWGgwQ6o5kklV0eZfEVq 686SBAy+LjHG+ydsNzB8rC4e2H6HUEpcvTrzTba48080IsLCMZ3KCyk40bJC1MZ4KQpR JemrNMl57hFCFnYd8wdvGcCS2LL72f5kn6GxnGy8TsyqhO+hX9s0vNoiL+moS0uPjbCm GiQCRkCSF73QRcEXLcUQPMHir0KWoQIuFjjP5COxdSQss4z2WCjPlfw0dFpXZsqC2K+0 gh9g== 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=RrsiR38UwzGryEjdYP0YDhWr8aT6bEJDFis5+ZW/wZQ=; b=JQwGGWtiXWU4Rz0ipwes+yRfElFtJwJCuRlbmndJOhGwTPp/R+7ISqESX+cXC2J9uZ aUWM6xIIzpKbGBtxbkZpKYrIzKYrvZTHRbxzW3aYOJTh1ggM4U7PI/+tAsM0UobNtFKT VNbtUAemH50XvlAlCgXayO3Ox4AddVJwPl91y4Ly1NvlKQmJcMC5GN7E2SRMyR+JD1ws NT2F70hCKBnw0+u8YoCgjEHbZo1Xk7GFwS6PwiNl8tizIqD0Myg8Hlb/XRAXlzA2Edxp jXft7cGhIVKK4zU7MGVt4z+q4BGYNuAceO/h1oITnmWtbdyi0ZKMyhHgwjh9FUj0wIkM qMbQ== X-Gm-Message-State: AOAM530imgqi6/JsLHcbQxdcG97nXGsQrEj7RtW/W1SdOSpvyiY75LAP 3Exi2eMV3E5h/j0DA7t2F6HI3g== X-Google-Smtp-Source: ABdhPJxCn6ctoM00FlOc1yoF19XeRjQs/IZNBLYFjm4Q+m9YdPCqyWhGEwNmugdo3OB7+UGdSg1TvA== X-Received: by 2002:a19:7f94:: with SMTP id a142mr11353510lfd.43.1597009909504; Sun, 09 Aug 2020 14:51:49 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id t20sm8277045ljd.12.2020.08.09.14.51.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Aug 2020 14:51:48 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , Stephan Gerhold , =?utf-8?q?Pawe=C5=82_Chmiel?= Subject: [PATCH 0/4] drm/panel: s6e63m0: Add DSI transport Date: Sun, 9 Aug 2020 23:51:00 +0200 Message-Id: <20200809215104.1830206-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This begins to modify the Samsung S6E63M0 driver to provide DSI support. After these initial changes the driver can already be used with the Samsung GT-I8190 (Golden) phone. After this initial support we will make more changes to support more gammas (more levels of backlight), special biasing on different display types and handling of the ESD IRQ. But let's begin with this. Linus Walleij (4): drm/panel: s6e63m0: Break out SPI transport drm/panel: s6e63m0: Add DSI transport drm/panel: s6e63m0: Add reading functionality drm/panel: s6e63m0: Add code to identify panel drivers/gpu/drm/panel/Kconfig | 23 ++- drivers/gpu/drm/panel/Makefile | 2 + .../gpu/drm/panel/panel-samsung-s6e63m0-dsi.c | 145 +++++++++++++++++ .../gpu/drm/panel/panel-samsung-s6e63m0-spi.c | 101 ++++++++++++ drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 146 ++++++++++-------- drivers/gpu/drm/panel/panel-samsung-s6e63m0.h | 13 ++ 6 files changed, 363 insertions(+), 67 deletions(-) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e63m0-dsi.c create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e63m0-spi.c create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e63m0.h