From patchwork Tue Sep 8 07:54:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11762789 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 DF986746 for ; Tue, 8 Sep 2020 07:54:33 +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 ABDE620C09 for ; Tue, 8 Sep 2020 07:54:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="IlKLM/V4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ABDE620C09 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com 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 51BBE6E059; Tue, 8 Sep 2020 07:54:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85DB16E059 for ; Tue, 8 Sep 2020 07:54:28 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id w2so16291941wmi.1 for ; Tue, 08 Sep 2020 00:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mXyuP55k/txQU8Qavag22Z7+e0rUydKfwB7MhziBkWA=; b=IlKLM/V4WVAAF5C6UBwIZKBIE1WSziNp6P465eu0YCqj+PNnmuZbxxVhsmyBd6cNUj 59ZYQBae1qOET3I8/xl5AGZZfHhN2Ej3aRPCrK4Yx8hvozgLjAfKMOpm6sDYPkx390zA fIw0Qco5ymgedDcLO2EXv7D5DI6mkaucPTDs2/EBwprlcv5SieAKUg/MKBnCwIILiz5P DejpAcCYm3bCdcqLqz9+gJ+WZUGigRshU/TchCBG2i7ZBQZke93uo/ECMY8bPaqYNZDZ p5hXe8xG/2dj6g99vR8C3pphhOUjcA8MsJc2SQ3GYSUYYdwAN3mFNqvBCqe76a8lPEGN z0Vg== 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=mXyuP55k/txQU8Qavag22Z7+e0rUydKfwB7MhziBkWA=; b=qP+AQ8BrA6gW4Norg3bjso2H9QZBC25jKOqBPeo1hpDVjefzJPzXgxOuO98BAOOECm NmvUYkLOcvRh9Swa97/o1TTLiL/JrpY5I6uMrwwgrQyCjlSILCwEeIj5KYYiitw4rT+Z EAtFcq+Niw2NTb0JX3jVaAr8v3LB74bKnyZ6e71a1bA7iPweJZfN4juYTJaMEYlETLWC 6B/P/prV6kPo1U/Lv/X+W5vmA6UAttAcs1ymUlMVfh6Iz4h92kBVfpOUGYpz94XKgHvU 4Lps8bJ9DgeT+rRB+0b4Z2XnWJnWRENnM5rthW/niaCg3tOBRH822nS9cAC2Xviu5XYb 40Iw== X-Gm-Message-State: AOAM533dQ3DcG+OfX2nBEIXZjOVaHVgvGr625cmWdoVU0XZ1i3IZcXz8 WTPzQY1bXnj4X1Lz8TAZ5e+arQ== X-Google-Smtp-Source: ABdhPJwDh1eoKWZjAIC9Lu2S/bF0Q1t8OpRqNst9tAsHP3ivthW9uML4FgowbJDYclYeWq08p24mYA== X-Received: by 2002:a7b:cb47:: with SMTP id v7mr3009443wmj.36.1599551666927; Tue, 08 Sep 2020 00:54:26 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id f14sm33788291wrv.72.2020.09.08.00.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 00:54:26 -0700 (PDT) From: Neil Armstrong To: thierry.reding@gmail.com, sam@ravnborg.org Subject: [PATCH v3 0/4] drm: panel: add support for TDO tl070wsh30 panel Date: Tue, 8 Sep 2020 09:54:17 +0200 Message-Id: <20200908075421.17344-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Neil Armstrong Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds support bindings and support for the TDO TL070WSH30 TFT-LCD panel module shipped with the Amlogic S400 Development Kit. The panel has a 1024×600 resolution and uses 24 bit RGB per pixel. It provides a MIPI DSI interface to the host, a built-in LED backlight and touch controller. Changes since v2 at [2]: - added reset gpio to panel-simple-dsi bindings - moved bindings to panel-simple - re-ordered prepare/unprepare - added back refresh print - moved regulator/reset handling in prepare/unprepare - aligned remove/shutdown with panel-simple - added sentinel comment into dt match table Changes since v1 at [1]: - added missing vendor-prefixes patch - removed vrefresh - fixed warning on add_panel return - removed DRM logging [1] https://patchwork.freedesktop.org/series/81376/#rev1 [2] https://patchwork.freedesktop.org/series/81376/#rev2 Neil Armstrong (4): dt-bindings: vendor-prefixes: Add Shanghai Top Display Optolelectronics vendor prefix dt-bindings: display: panel-simple-dsi: add optional reset gpio dt-bindings: display: panel-simple-dsi: add TDO TL070WSH30 DSI panel bindings drm: panel: add TDO tl070wsh30 panel driver .../display/panel/panel-simple-dsi.yaml | 3 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c | 250 ++++++++++++++++++ 5 files changed, 267 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c