Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5398877pxv; Wed, 28 Jul 2021 09:47:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvcsgN/F0HnAHvhrG6z+PJfTJRlFJ1yvSnMJwMvZ5Q3eRvsBf3ysi0NTns+E0P6KUZrsdd X-Received: by 2002:a02:2a07:: with SMTP id w7mr696782jaw.96.1627490878192; Wed, 28 Jul 2021 09:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627490878; cv=none; d=google.com; s=arc-20160816; b=IUp7J6ZheTe/Fv8c/4L2Kg19UQsIlFHa+6Aw/2/ZxblZIPtq4wPdY4tHun+TNbSmta Eh3pW/y1LS43woGeHNx6ZF6RnA0wtf6mApBtGoFgE9Io71b+6P7TbCak+Hw3IvaZyZPg UvHcaim/C1wAl7JvY57+0BJt7raqU9JPuOM6TggaEhDZNRl9m4Ae8QNqaaVWtm5grSSA 2kTVW/iFpl8pB2uONpzMZba9RfuameDYmwmyJ82i2/Iw13vmVN8KFkZrExDKN4d42hcq 1OTJwe+WZLj/dfOqfDGlOaZob+UXrh5yd6LwA2V37PZjcLIPjTTVi+vN/7V8LJpBHpc4 TNYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3Wf14gG5Rla0NCThAzrC4jotbBpcH9EXwPpxX3uNRjo=; b=BzF7+pAxPn/xmqVvLWOlNBYsqXfp4FfWDa8F5R53hk/EnsF2AyMRT+bIFVov2Zx2vs kffxgxWK3a1Es9r6nQb7DRUI+2CsXYdwAlUA1fR4FJM+Gf0mpIoQCry0ii3GabjrBi6+ MgJdBB/FV1a2UEU7Q+SVj/qHjm3dGXiwg+6vYZA9Zgk7Ct4cO3B3rwNt127DgZ1hznmb fE8P5iG4DVCQ60XOAlcEktW8vU9adnugMfUL8gApcKNlqJOEuuXxXIqA4f5kXOQD9vnx amtjyqpfDAl1wx99/yMONtUjm8/USoJAjvw3qapUyWBtz/mLSiZ+3O2TA/Fnjyi4B/Gy Dbcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EtlAYDaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si340679jah.86.2021.07.28.09.47.47; Wed, 28 Jul 2021 09:47:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EtlAYDaE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbhG1Qq1 (ORCPT + 99 others); Wed, 28 Jul 2021 12:46:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbhG1Qq0 (ORCPT ); Wed, 28 Jul 2021 12:46:26 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5CF2C061765 for ; Wed, 28 Jul 2021 09:46:24 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id o44-20020a17090a0a2fb0290176ca3e5a2fso4991148pjo.1 for ; Wed, 28 Jul 2021 09:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3Wf14gG5Rla0NCThAzrC4jotbBpcH9EXwPpxX3uNRjo=; b=EtlAYDaEc0TpuNyXhqKi50L3nKK4in1bT8Phheri8gREf7P5NrxJ2A29bcz9tTkNV4 KMxG0EH+veKm8iIIsYG68Hmklfn+DxuQp9m7Kv3Wqy4kOtalb2dvdpSOmUM0aFyN6p9x 8aa2qd57b8OCOv02Ru/xKrV2Y1aghXj14dmi8= 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=3Wf14gG5Rla0NCThAzrC4jotbBpcH9EXwPpxX3uNRjo=; b=j7CKK7ySp2I/uORJwWMQ4O0qRsezm1V5SNVGChZmdJxARLT/54IAsYKuH7rCIw6rUc OzwEjNDlMsDWtgVGl10yZ0RtHEckuAA8X7OEaW55HYH5JwzuBBndYX4ILuMgOCSy5OjM LBhkXWlOtBusM/9iXspP1lQ97QRsMmT/6vHxh7xXjb5V9hp8oygApxuRLBYFCAeG8h86 jzjmk5eL9FdrXZ/y81va4kilbJCrPjhcHxwVsSNW+HjXphboQECKAJuUzy5QWzXOojF6 dU57tqb3YL4qF7KkWOZsFPllh/bk/GIXz8h5utCg+wBH/os2iUweEHmNiK6Tvc2PhCn6 4a4A== X-Gm-Message-State: AOAM5316G1iPHORuAJ0a1brzJRSb2q4SO7AOlstJJfkzoHz99B3GiOeJ 2RUeIOZ2W8QaMEG8qS+QhbctrQ== X-Received: by 2002:a65:4382:: with SMTP id m2mr656852pgp.205.1627490784259; Wed, 28 Jul 2021 09:46:24 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:9f1e:e713:1a5e:89dc]) by smtp.gmail.com with ESMTPSA id l12sm474075pff.182.2021.07.28.09.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jul 2021 09:46:23 -0700 (PDT) From: Douglas Anderson To: dri-devel@lists.freedesktop.org Cc: tzimmermann@suse.de, linux-arm-msm@vger.kernel.org, a.hajda@samsung.com, sam@ravnborg.org, airlied@linux.ie, bjorn.andersson@linaro.org, daniel@ffwll.ch, devicetree@vger.kernel.org, rodrigo.vivi@intel.com, jonas@kwiboo.se, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, robert.foss@linaro.org, jernej.skrabec@gmail.com, mripard@kernel.org, linus.walleij@linaro.org, maarten.lankhorst@linux.intel.com, rajeevny@codeaurora.org, lyude@redhat.com, thierry.reding@gmail.com, steev@kali.org, Douglas Anderson , Sandeep Panda , linux-kernel@vger.kernel.org Subject: [PATCH 0/6] drm/panel: atna33xc20: Fix the Samsung ATNA33XC20 panel Date: Wed, 28 Jul 2021 09:45:51 -0700 Message-Id: <20210728164557.1882787-1-dianders@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The overall goal of this series is to make the Samsung ATNA33XC20 panel work more properly. As part of this, we have: * A bugfix for the recently abstracted DP AUX backlight code. * A bugfix for the sequencing of the ti-sn65dsi86 bridge driver. * Removal of the panel from panel-simple and moving it to its own driver. If the bugfixes look good but the rest of the series needs work then those could land early on their own. There's no real compile time dependency on the bugfixes, things are just glitchier without them. NOTE: this series will (slightly) conflict with my other recent series making eDP panels probable [1]. The conflict is easy to resolve and I'm happy to repost either once the other lands. It should be noted that the fact that the Samsung ATNA33XC20 needs its own panel driver means that it _can't_ handled as a probed driver. I think this is fine, at least for now. I don't think it would be easy to make a unified design with this panel and other panels given that it's an AMOLED panel and has a whole bunch of different components on board. [1] https://lore.kernel.org/r/20210723002146.1962910-1-dianders@chromium.org/ Douglas Anderson (6): drm/dp: Don't zero PWMGEN_BIT_COUNT when driver_pwm_freq_hz not specified drm/bridge: ti-sn65dsi86: Fix power off sequence drm/bridge: ti-sn65dsi86: Add some 100 us delays Revert "drm/panel-simple: Add Samsung ATNA33XC20" Revert "drm/panel-simple: Support for delays between GPIO & regulator" drm/panel: atna33xc20: Introduce the Samsung ATNA33XC20 panel drivers/gpu/drm/bridge/ti-sn65dsi86.c | 17 +- drivers/gpu/drm/drm_dp_helper.c | 10 +- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-atna33xc20.c | 366 ++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 61 --- 6 files changed, 398 insertions(+), 69 deletions(-) create mode 100644 drivers/gpu/drm/panel/panel-samsung-atna33xc20.c -- 2.32.0.432.gabb21c7263-goog