From patchwork Thu Jul 11 20:34:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 11040753 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 A0DEF14C0 for ; Thu, 11 Jul 2019 20:45:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91180288AA for ; Thu, 11 Jul 2019 20:45:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 812CE28B1E; Thu, 11 Jul 2019 20:45:06 +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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81F01288AA for ; Thu, 11 Jul 2019 20:45:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48A3B6E270; Thu, 11 Jul 2019 20:45:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by gabe.freedesktop.org (Postfix) with ESMTPS id 78ABD6E270 for ; Thu, 11 Jul 2019 20:45:00 +0000 (UTC) Received: by mail-pl1-x644.google.com with SMTP id i2so3641561plt.1 for ; Thu, 11 Jul 2019 13:45:00 -0700 (PDT) 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=PiSze+b8RyOCrdrl4z9soZ+cov9nAQWtcb1gx4qZEko=; b=d6hmQYoeyWraMk9R71nxTZHyy8mF6ZE3Bfk8mEarYWmmRUoEPQQLGL/x9L3CemVRXu 3mr0KDQp8+yu1Cgh8eGU7MznaXAaS0RxSoBn3GoGCCa47DNZxvL8GCwJ+OBbb6/fQzLp xZjssvC3708IhAtYJWnTPfxdISIapVeWcWEbXp+E64WtXzcA08iUJR1ZMpo3YOUUOQs9 OJ0LnMmvAKGUJD76T9n1zPWZlSvkB6TRtNzVQHL0RojBU97LY5OFIengOPgnNvfjL80v q3nYobBlbJiFsTP+wY2+1YWRoKHlvBCWx+EzbvxbRDvXZNqNrHn1j7XIupCLb8rGvM8T GZ6g== X-Gm-Message-State: APjAAAWguqKEYbcJsKtR4S/IDjPMGy+85HROz4qAGmhFOX3+WfbGVoYV UtwNSZgHFNdioEmbN9aHeMdXewA1IP8= X-Google-Smtp-Source: APXvYqx5OMVKLfuzSjyyKQdK5nWwU4ixzYuYMZrGSFfkXAOPPnXjXzBfWibAgOkF0K9yIsJfpGBE9Q== X-Received: by 2002:a17:902:9898:: with SMTP id s24mr6688486plp.226.1562877899981; Thu, 11 Jul 2019 13:44:59 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id f17sm5320110pgv.16.2019.07.11.13.44.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 11 Jul 2019 13:44:59 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Subject: [PATCH v6 0/3] drm/panel: simple: Add mode support to devicetree Date: Thu, 11 Jul 2019 13:34:52 -0700 Message-Id: <20190711203455.125667-1-dianders@chromium.org> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog MIME-Version: 1.0 X-Mailman-Original-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=PiSze+b8RyOCrdrl4z9soZ+cov9nAQWtcb1gx4qZEko=; b=FKtfQs2vO8puHfi8u5Itf2xIOrp80ctPquUf87JLqr/dE/UjPpoKuPH3lPJMtzczUv qmsjAe/JpyaR86mjQ3YQ6oLOQzCVzw9LlXoWOuuN3PkzIRWDV2tgKRefTsRzAfV8Rb2/ p+p1+DcWIo7mGUqiAZNYCbJwDivBgkEvwYPJw= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , David Airlie , Sam Ravnborg , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Boris Brezillon , Laurent Pinchart , Enric Balletbo i Serra , Ezequiel Garcia , mka@chromium.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I'm reviving Sean Paul's old patchset to get mode support in device tree. The cover letter for his v3 is at: https://lists.freedesktop.org/archives/dri-devel/2018-February/165162.html v6 of this patch is just a repost of the 3 DRM patches in v5 rebased atop drm-misc. A few notes: - I've dropped the bindings patch. Commit 821a1f7171ae ("dt-bindings: display: Convert common panel bindings to DT schema") has landed and Rob H said [1] that when that landed the bindings were implicitly supported. - Since the bindings patch was dropped I am assuming that Heiko can just pick up the .dts patches from the v5 series. I double-checked with him and he confirmed this is fine. Thus I have left the device tree patches out of this version. There were some coding style discussions on v5 of the path but it's been agreed that we can land this series as-is and after it lands we can address the minor style issues. [1] https://lkml.kernel.org/r/CAL_JsqJGtUTpJL+SDEKi09aDT4yDzY4x9KwYmz08NaZcn=nHfA@mail.gmail.com Changes in v6: - Rebased to drm-misc next - Added tags Changes in v5: - Added Heiko's Tested-by Changes in v4: - Don't add mode from timing if override was specified (Thierry) - Add warning if timing and fixed mode was specified (Thierry) - Don't add fixed mode if timing was specified (Thierry) - Refactor/rename a bit to avoid extra indentation from "if" tests - i should be unsigned (Thierry) - Add annoying WARN_ONs for some cases (Thierry) - Simplify 'No display_timing found' handling (Thierry) - Rename to panel_simple_parse_override_mode() (Thierry) - display_timing for Innolux n116bge new for v4. - display_timing for AUO b101ean01 new for v4. Changes in v3: - No longer parse display-timings subnode, use panel-timing (Rob) Changes in v2: - Parse the full display-timings node (using the native-mode) (Rob) Douglas Anderson (2): drm/panel: simple: Use display_timing for Innolux n116bge drm/panel: simple: Use display_timing for AUO b101ean01 Sean Paul (1): drm/panel: simple: Add ability to override typical timing drivers/gpu/drm/panel/panel-simple.c | 171 ++++++++++++++++++++++----- 1 file changed, 139 insertions(+), 32 deletions(-)