From patchwork Thu Mar 28 17:17:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10875515 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 01EF11669 for ; Thu, 28 Mar 2019 17:18:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D313D28B4D for ; Thu, 28 Mar 2019 17:18:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C742628BEB; Thu, 28 Mar 2019 17:18:11 +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 5CB0028BBB for ; Thu, 28 Mar 2019 17:18:11 +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:References:In-Reply-To: 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: List-Owner; bh=yUsCepe+xewt4vpU58iPViZscw28V3zKRTJ53muYU34=; b=KfkK21dY0lDtwL kvvIo1rlf9PK9SRZjuyRdUL7wimeTOdaZKzV9r/t9uaYssq6eG7Wba75mRL5/305yfkFBrtWK31Pb U+jFPBnPv4v63aVOfeRlef4eP2XTUIZWIb3gt5FW0PaDL36neHFvAwd5VxyYckIMLbENJHLXskO/R rLsC7fj7VgdzmB+KWyuid7DSfNI6LnhKkghdWpC1xkgtftIv8nBx9sk8fjrhlecfndGm3OkMsgolB uoJCX92aUp4CWbCg6/4F82UZbwKDnW0Gzf+vv2/BTdv8U04+j4wlHAxxJ22OyH/S7jDUWphu2Hq8Y e2D9bisEaHHaR7EeFOuQ==; 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 1h9YfH-0007W3-2M; Thu, 28 Mar 2019 17:18:07 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9Yf6-0007JP-LE for linux-rockchip@lists.infradead.org; Thu, 28 Mar 2019 17:17:58 +0000 Received: by mail-pl1-x643.google.com with SMTP id y5so5250683plk.8 for ; Thu, 28 Mar 2019 10:17:56 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=DBM+pB4CxpDj9X9ckxHYOhoSP8yGYbHTSKQhNQ0sly0=; b=Vl66ov/rhi5WwNbU6h29eVKCrE9SYA5S7w092zAxp0qnZ/RAev8buplTe4QwSImPVn Nwub8mYhk+gmVd1IoRtKYMBXyH9n00HMixzzFFTZuOQJrC/6Xr/tDLXeDyd5/yIEOwmS BxRzOyKq+0v8okUlkF8GKhwM6u+20WSF6c60M= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=DBM+pB4CxpDj9X9ckxHYOhoSP8yGYbHTSKQhNQ0sly0=; b=HGVWBU0zoZJOI6qtkK6j9AWI5ODhtUlapOgavD0FUxqly+aQAwxNJAjkTgfhGVpSwS pX2gEZiNT6qNsFusOIKgaF6qWhNAJjrGHbARg/k5PB7/NgF4WIBO5cZF8ulj3r3EIbcz Dc2kblvEcGyPyPwAtJkYcBULx9/B88mxLzq8/8VDXVSs7NrVM/YvXR1QUClegCl2qcSG NuD2BZOuXNwkJSdsr4nYhvyFxmSYsZkXywjUgrYtswE7O4BUPlLpp7r8r3HKsHxbPHHQ hKOkubduvZdxkw1Zf4G/MmeNU78odcWiHEcS3pqcBiMmhpxZ1R1duIqxWewmbUijmAtj LDmQ== X-Gm-Message-State: APjAAAWU6U9qh0FTQP6MLw8N7iIYPgHQJZV4TYPjBj30GKyfL/Mf7qU7 VDTsJz3bq3jglrI7BRkjKLErkL3TbCE= X-Google-Smtp-Source: APXvYqwbitXH3ctsAeFOy7juR1bSYPkUK/OS67IB2OrZTp/oTxmqvWQJISOi6pjRnGsrAkbO/dpwsg== X-Received: by 2002:a17:902:7d81:: with SMTP id a1mr36554619plm.202.1553793475964; Thu, 28 Mar 2019 10:17:55 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 10:17:55 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Subject: [PATCH v4 1/7] dt-bindings: Add panel-timing subnode to simple-panel Date: Thu, 28 Mar 2019 10:17:04 -0700 Message-Id: <20190328171710.31949-2-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190328171710.31949-1-dianders@chromium.org> References: <20190328171710.31949-1-dianders@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_101756_691823_0A1E94F8 X-CRM114-Status: GOOD ( 14.86 ) 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, Rob Herring , Eric Anholt , David Airlie , Jeffy Chen , Doug Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Boris Brezillon , Laurent Pinchart , Daniel Vetter , =?utf-8?q?Enric_Balletb=C3=B2?= , =?utf-8?q?S?= =?utf-8?q?t=C3=A9phane_Marchesin?= , Ezequiel Garcia , mka@chromium.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sean Paul This patch adds a new subnode to simple-panel allowing us to override the typical timing expressed in the panel's display_timing. 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) Changes in v3: - Go back to using the timing subnode directly, but rename to panel-timing (Rob) 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 Cc: Doug Anderson Cc: Eric Anholt Cc: Heiko Stuebner Cc: Jeffy Chen Cc: Rob Herring Cc: Stéphane Marchesin Cc: Thierry Reding Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-rockchip@lists.infradead.org Signed-off-by: Sean Paul Signed-off-by: Douglas Anderson --- .../bindings/display/panel/simple-panel.txt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index b2b872c710f2..6157f86ddce4 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -15,6 +15,18 @@ Optional properties: (hot plug detect) signal, but the signal isn't hooked up so we should hardcode the max delay from the panel spec when powering up the panel. +panel-timing subnode +-------------------- + +This optional subnode is for devices which require a mode differing +from the panel's "typical" display timing. The panel timings provided +here will be ignored if they are found to be outside of allowable +ranges for the given panel. + +Format information on the panel-timing subnode can be found in +display-timing.txt. + + Example: panel: panel { @@ -25,4 +37,16 @@ Example: enable-gpios = <&gpio 90 0>; backlight = <&backlight>; + + panel-timing { + clock-frequency = <266604720>; + hactive = <2400>; + hfront-porch = <48>; + hback-porch = <84>; + hsync-len = <32>; + vactive = <1600>; + vfront-porch = <3>; + vback-porch = <120>; + vsync-len = <10>; + }; };