From patchwork Mon Apr 1 17:17:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10880381 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 D91121800 for ; Mon, 1 Apr 2019 17:18:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE108287FB for ; Mon, 1 Apr 2019 17:18:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A97492889B; Mon, 1 Apr 2019 17:18:08 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4DEEF287FB for ; Mon, 1 Apr 2019 17:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XHvq0NjlUFY4WGkr9Qd0cnVO1MoGoVBOiMimAWYtC74=; b=Jhm2M0Bj1KG8Hz OvV2kWX/B9rpZzK/ojJ3JPI9MCj2hZ1YWs6HiKznacsv70PgR859rdku2MdzKAz8RDpGe7dHDKrcj 02d0koxHHC11v/62DdGmOY6gvUohjwx5fQEUtqHEAGshXE4kHteF0/oeI5nzCWc5ihphZebgtgvLE TU30qYuOKlydnO5YhtXPXf89Kyf5fcwnT5J+xFKiSFxTwWXLoBrEeSSRoGF714saBTXNhOfdLSm2a MLJP3igSn6QiCAQ4a4eD0B024dGUUDraRnop4tw2gGJXDuIt0crZ7XFR0WtmRP4pbQrxLaQ74hpMy KHb/6OM8ZknS5sxUSWAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hB0ZP-0004Jw-Hm; Mon, 01 Apr 2019 17:18:03 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hB0ZE-000484-Ug for linux-rockchip@lists.infradead.org; Mon, 01 Apr 2019 17:17:54 +0000 Received: by mail-pf1-x443.google.com with SMTP id 10so4898157pfo.5 for ; Mon, 01 Apr 2019 10:17:52 -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=sYyB75pDxlY2KmTc4TNMmfz3/8I3psga6G2DFBLiLOU=; b=W7E7303t6gMCOq1fQ9vuxc6eSX2OxEw6XUVxXZuwVldo2nNYDgT6HrCgeZG2M12Tqe IoObKQblNEF2kMp3+3UcnVClg/e4v34NZ8HFpuImotjimDGW0JAoDjY+4h+zmff5iIUu VFv2E+eMOdBb+BNeIjY/hzmC72hEpiMQbLUAA= 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=sYyB75pDxlY2KmTc4TNMmfz3/8I3psga6G2DFBLiLOU=; b=HvZm1BwwvJO8FIljHgAUUJIf3idj98bUR9GzprJhCxQ5QSIxdR3guyDB8H0YwXGfyj eIHAgOE4to6GToTFvVJ/igs/7DX08/CQC/chUUVgurWDTndQZns8B2rVv5b+XZwEyEvL S83GjsUzPP+rG5pi+/6rqFfqb0RPEL4ujM8OUCM0vhMmkWoxyaDHgUaa7iLBFxLZDv/j xIr1Fwjc948VnklXRiQ8hlmYuxetce2ze2hgMEhjHlyn1N2vyDYDfM1OPDDIc1CvuKc6 jiqAT2s3VwdU9RlfY6KLUBcn/W2a3c2OI1J/dCaQOs10gsqHmvl+bMjRcxxUKzFK1tCu HgFQ== X-Gm-Message-State: APjAAAXmsrx1cEO1uOVqaozdQC6v6Y+Gmm2K6Xi1x4+2A0p1ccOk6O8V 8WWJJyuYpWXNrMafrgT8QQm4sg== X-Google-Smtp-Source: APXvYqxmw/tyt2JsPE3Cczq6gWpYprGq+P6YD+QLEkk3HlFVpoRZeHUgYnaJQrE2T1iSdNQosP/1gg== X-Received: by 2002:a63:7154:: with SMTP id b20mr54517102pgn.359.1554139071880; Mon, 01 Apr 2019 10:17:51 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id y12sm31370112pgq.64.2019.04.01.10.17.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 10:17:50 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Subject: [PATCH v5 0/7] drm/panel: simple: Add mode support to devicetree Date: Mon, 1 Apr 2019 10:17:17 -0700 Message-Id: <20190401171724.215780-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190401_101752_987251_0453D1D8 X-CRM114-Status: GOOD ( 15.79 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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 , Daniel Vetter , =?utf-8?q?Enric_Balletb=C3=B2?= , Ezequiel Garcia , mka@chromium.org, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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 No code is different between v4 and v5, just commit messages and text in the bindings. 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-chromebook (used for jaq, jerry, mighty, speedy) 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 v5: - Removed bit about OS may ignore (Rob/Ezequiel) - Added Heiko's Tested-by - It's not just jerry, it's most rk3288 Chromebooks (Heiko) 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-chromebook'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 | 22 +++ .../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, 203 insertions(+), 32 deletions(-)