From patchwork Thu Mar 28 17:17:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10875503 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 B1AC713B5 for ; Thu, 28 Mar 2019 17:17:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F16A28B49 for ; Thu, 28 Mar 2019 17:17:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8036D28BBB; Thu, 28 Mar 2019 17:17:58 +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 20C5628B49 for ; Thu, 28 Mar 2019 17:17:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 096326E4A0; Thu, 28 Mar 2019 17:17:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1ABAE6E4A0 for ; Thu, 28 Mar 2019 17:17:55 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id g12so5268944pll.11 for ; Thu, 28 Mar 2019 10:17:55 -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=2bAOEoSwsgTtaogopy8ZMUfxYizv7aL/kVUJt6MbgFE=; b=QbACbknBc1Y3u3zDYnpj9ewcG9hMXGK/ghp36Wo2uTVU977Ojfk5GKdXN8XNZdAuqv t8xhDxNKb7dyJVh82sPckZGH20Ne/swG+LpKRlVij+Zk+1nVRtuNSPwg8pUk2nAT/lUD TgPiPAa6eAT9rdXYg2i4CSEyRQz39wFVcBeAEKYnowi+e3Gce4nwtEXluY7DOjObRS3f ih382elH1BjizGJeHIaTF1ASVlzM2ixGdhXBRlb1/PRAOKkeqfe1gIEIaOv+ekcnVhaz pbzlyjLxWw/2RvEJhZFFFrU+fmOBdF3WTllN1sjN8GCgLgHAbHXuJecwaVVlRW7lZAP3 yxQA== X-Gm-Message-State: APjAAAWxX7SysSBtEubNGcFAp17OpO05wDkSIheCO2WziipN3Pw2uW71 jKy06qfsj+SphI1SLFjbso1j2Q== X-Google-Smtp-Source: APXvYqwDlu2rwdjW3HZKyXtwVyJanNnE8vfhkBMS+C6fEZXqoGetZFaGYWHjaCAKBfI7k1PDhglyyQ== X-Received: by 2002:a17:902:bd82:: with SMTP id q2mr14206516pls.201.1553793474736; Thu, 28 Mar 2019 10:17:54 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id r10sm31699414pfn.188.2019.03.28.10.17.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 10:17:53 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Subject: [PATCH v4 0/7] drm/panel: simple: Add mode support to devicetree Date: Thu, 28 Mar 2019 10:17:03 -0700 Message-Id: <20190328171710.31949-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-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=2bAOEoSwsgTtaogopy8ZMUfxYizv7aL/kVUJt6MbgFE=; b=D1+ItBRfhkwjmY//AzpG4ko7/1mIo1GQ/3Whaf3y0UqKRqP5DYMnS70Gb5QPqqiRui CkgfMiErgGTA93cq3t6SxA3DVaYNM5gJUowzt3Mw9MgCEt0HWHn6zrrwe9qWrlRxI0gP PL6JACpoHOlB8PRjURTt4spQ/2C/KQqy1MOO8= 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: Mark Rutland , devicetree@vger.kernel.org, Dmitry Torokhov , Rob Herring , David Airlie , Viresh Kumar , Brian Norris , Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Boris Brezillon , Klaus Goger , Laurent Pinchart , =?utf-8?q?Enric_Balle?= =?utf-8?q?tb=C3=B2?= , Ezequiel Garcia , mka@chromium.org, linux-arm-kernel@lists.infradead.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 I've pulled together the patches that didn't land in v3, addressed outstanding feedback, and reposted. Atop them I've added patches for rk3288-veyron-jerry and rk3288-veryon-minnie. Please let me know how they look. In general I have added people to the whole series who I think would like the whole series and then let get_maintainer pick extra people it thinks are relevant to each individual patch. If I see you respond to any of the patches in the series, though, I'll add you to the whole series Cc list next time. Changes in v4: - Simplify desc. for when override should be used (Thierry/Laurent) - Removed Rob H review since it's been a year and wording changed - 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) - Rebase to top of Heiko's tree - Converted changelog to after-the-cut for non-DRM change. - display_timing for Innolux n116bge new for v4. - display_timing for AUO b101ean01 new for v4. - rk3288-veyron-jerry patch new for v4. - rk3288-veyron-minnie patch new for v4. Changes in v3: - Go back to using the timing subnode directly, but rename to panel-timing (Rob) - No longer parse display-timings subnode, use panel-timing (Rob) - Unwrap the timing from display-timings and rename panel-timing (Rob) Changes in v2: - Split out the binding into a new patch (Rob) - display-timings is a new section (Rob) - Use the full display-timings subnode instead of picking the timing out (Rob/Thierry) - Parse the full display-timings node (using the native-mode) (Rob) - Wrap the timing in display-timings node to match binding (Rob/Thierry) Douglas Anderson (4): drm/panel: simple: Use display_timing for Innolux n116bge drm/panel: simple: Use display_timing for AUO b101ean01 ARM: dts: rockchip: Specify rk3288-veyron-jerry's display timings ARM: dts: rockchip: Specify rk3288-veyron-minnie's display timings Sean Paul (3): dt-bindings: Add panel-timing subnode to simple-panel drm/panel: simple: Add ability to override typical timing arm64: dts: rockchip: Specify override mode for kevin panel .../bindings/display/panel/simple-panel.txt | 24 +++ .../boot/dts/rk3288-veyron-chromebook.dtsi | 14 ++ arch/arm/boot/dts/rk3288-veyron-minnie.dts | 14 ++ .../boot/dts/rockchip/rk3399-gru-kevin.dts | 14 ++ drivers/gpu/drm/panel/panel-simple.c | 171 ++++++++++++++---- 5 files changed, 205 insertions(+), 32 deletions(-)