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: 10207597 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 579AD60247 for ; Thu, 8 Feb 2018 17:49:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07B5829142 for ; Thu, 8 Feb 2018 17:49:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F05EF2959F; Thu, 8 Feb 2018 17:49:27 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 A223429142 for ; Thu, 8 Feb 2018 17:49:27 +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=js4PFsSuiZK/oO0KTlYclhZ4+Y4xbmBPGYK77eo/vuA=; b=Dyx3ccvjaiNcDe xwIoXHR07cBjJW+hLusP8nwELGXgaUEpHy4G6LKA3SXNC3IAYuZq+lmL1Oixi8f8e1D9OXgOo5y3N iqo3NiPI5Iey4JcS3wIUAGereFIf1G/UhoUn06NDu2RF1RlkzUVSeX18TjDAEi2e4fjbfxoTa3Aja 9IR+HXmGtiRXLtdaENHcYqBvZNX5MhWbtA/QokK+u4QFmzewSYvbfsCeKdT8D5+oRST4KYbFvGQda KQ+Ro/KTDhn7uWzxvYS6y48xd4H9AZ+8JkMArho3Cgf50SuAvDFyTadkgYFlgIqWHEProhHanK/q8 wF75OyH0F/Ntf4mamC0Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejqK7-0006fd-6P; Thu, 08 Feb 2018 17:49:27 +0000 Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejqK4-00066X-Fc for linux-rockchip@lists.infradead.org; Thu, 08 Feb 2018 17:49:26 +0000 Received: by mail-yw0-x242.google.com with SMTP id t201so3215795ywf.1 for ; Thu, 08 Feb 2018 09:49:13 -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=rbu/JpJmtsYvLDcijepbEi2AXa3TsJ8jByHDGgWkWOe6PsvAls2cCuJzocX8ReUYcq WEkV9qBBXjMA+8lyxyns8R7sEwqbhfwOhdrVjrz41yEsVdAbQayO4s/LD1kNsNGsXrw4 RcLLa9WD+QU+rSNioU4Jg3USOTBEenI+CY6RGwSNe3HOnPUojE4fO35Ul0rz/Orv9MAc aRSj6b3vme6Y0agcbWorrqfyUCSpz1JOCKXxSPrrvNhYlyrli6eaX9NBBdDl9LBfFenC rJjkEaDQhl8EeHY4U1seWkHHEty0MczusmPeacRBOpnUzXVGgQNr9hDF+zSpX4pIcppF bfDw== X-Gm-Message-State: APf1xPBd95pT+cKP32qp12vswceNoaLhtnvwX1JihWPlYN0nAbZ2rBKa CIoxdF80T11tzSpEGnIqYpR8dw== 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: 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: Thierry Reding , Mark Rutland , Heiko Stuebner , Jeffy Chen , Doug Anderson , Eric Anholt , Rob Herring , Sean Paul , =?UTF-8?q?St=C3=A9phane=20Marchesin?= Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org 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>; + }; };