From patchwork Thu Feb 8 17:48:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10207591 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0AD3460247 for ; Thu, 8 Feb 2018 17:49:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EEE6029142 for ; Thu, 8 Feb 2018 17:49:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3B4D2959F; Thu, 8 Feb 2018 17:49:17 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 7C5C729142 for ; Thu, 8 Feb 2018 17:49:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7C6636E646; Thu, 8 Feb 2018 17:49:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-x241.google.com (mail-yw0-x241.google.com [IPv6:2607:f8b0:4002:c05::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id A3D356E646 for ; Thu, 8 Feb 2018 17:49:14 +0000 (UTC) Received: by mail-yw0-x241.google.com with SMTP id l11so28735ywh.2 for ; Thu, 08 Feb 2018 09:49:14 -0800 (PST) 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=atlsO+q33yBEqGvh55spae56mlMBnDwDKG4X2/Xb57c=; b=QMqe40rg640xXfkPoM/EvK5scx4mStnJ8RUAT5YIb6+GW88Z8D3+fOweV9T6gh/VWr KKD0LJtimHdLqjXc9tH9Z7UcN4VkblO2lXCu3BGcOts1NwbVQ3h+D3x56vO8bdfrmbUI ePysLDINtIYz9bvRFSPYw3E3SesFI642U+IWk= 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=atlsO+q33yBEqGvh55spae56mlMBnDwDKG4X2/Xb57c=; b=QvtjLBa5iUknIwO+T/RxQw7mLwcF310ucFuiYiz8aG4GmqL5qZVuzJsOIy2o/lC5hm m2z/j+KJszm5M7X9ruJfQE98LNB5X2vrJFONTf4K3IUKfIyYzA8KTweyDfHHXHGArO5p NrbYVYF5QP15CViJmmkQX1s7qq7uzbTEciNu4d2A5eh6bJt0g3XNenkBWUS2jAFl7obo z25KcNjs6cV0RsK3j8efE+TWCwDjooZRCzTiFIHaI3L0SjAa/IfvdnwXIBYs4H61Iam8 +nRNtjLRzl6yjwa3yc9xHbnEvEgy9SzXxtvXN1cg3XZ75umhRvsTgl47XhPwKj8BRVar m1RQ== X-Gm-Message-State: APf1xPC3ZxGdnKwNnup1z6ydB6rLsCDnl29owEltJN+P5ldgD2xTNflw YW7/OddKpvOfjlUIVnqjDNFStM4l30U= X-Google-Smtp-Source: AH8x224ZFM26tWKTHTQfhGLO2Llqg+6d45oqt5TW7hHaJgn0OwF2OBAdTDBVK8qCx89ppUYf+q7AjA== X-Received: by 10.13.203.138 with SMTP id n132mr1163010ywd.39.1518112153139; Thu, 08 Feb 2018 09:49:13 -0800 (PST) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:d3af:69ac:1964:28e8]) by smtp.gmail.com with ESMTPSA id t73sm177220ywg.10.2018.02.08.09.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 09:49:12 -0800 (PST) From: Sean Paul To: dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 3/6] dt-bindings: Add panel-timing subnode to simple-panel Date: Thu, 8 Feb 2018 12:48:50 -0500 Message-Id: <20180208174855.55620-4-seanpaul@chromium.org> X-Mailer: git-send-email 2.16.0.rc1.238.g530d649a79-goog In-Reply-To: <20180208174855.55620-1-seanpaul@chromium.org> References: <20180208174855.55620-1-seanpaul@chromium.org> MIME-Version: 1.0 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: Thierry Reding , Mark Rutland , Jeffy Chen , Doug Anderson , Rob Herring , =?UTF-8?q?St=C3=A9phane=20Marchesin?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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) 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 Reviewed-by: Rob Herring --- .../bindings/display/panel/simple-panel.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index 45a457ad38f0..7788b9ce160b 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -12,6 +12,24 @@ Optional properties: - enable-gpios: GPIO pin to enable or disable the panel - backlight: phandle of the backlight device attached to the panel +panel-timing subnode +-------------------- + +This optional subnode is for devices which require a mode differing from the +panel's "typical" display timing as programmed in the simple-panel driver. +Overriding the driver mode must only be done in the following scenario: + - The restrictions motivating the override cannot be applied to the platform's + display driver (ie: it must be specific to the device not the platform) + - The panel must not have a fixed mode attributed to it in the driver + - The panel must provide at list one display_timing range by which the override + mode can be validated against + - The override mode will use the 'typ' values from the panel-timings subnode + - You must provide all required properties for the panel-timing subnode + +Format information on the panel-timing subnode can be found in +display-timing.txt. + + Example: panel: panel { @@ -22,4 +40,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>; + }; };