From patchwork Mon Apr 1 17:17:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10880369 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 51E2F184E for ; Mon, 1 Apr 2019 17:17:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3000B2888C for ; Mon, 1 Apr 2019 17:17:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D82628889; Mon, 1 Apr 2019 17:17:59 +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 8B2562889B for ; Mon, 1 Apr 2019 17:17:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 89B9B6E6CB; Mon, 1 Apr 2019 17:17:54 +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 919316E6C8 for ; Mon, 1 Apr 2019 17:17:53 +0000 (UTC) Received: by mail-pl1-x642.google.com with SMTP id d1so3117824plj.8 for ; Mon, 01 Apr 2019 10:17:53 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=glsr5s+XdI5E8OElKXrSOhJG5EzpWyBtwSQUCs3zmgY=; b=tbOM8j5MnceL039hNrYiZnA8JmzHg+G3E6nb1QlSIR+wgbuOi0n55kN20MZg4TSpdc hbTtDH16wbLqBZ//wPNieti4PIMAUhWHw45t6CrxoJcqpT7uUv8/1vqF30t9sfxCQR0n 52jgmVnFOQgv1egT7B1VvXVEFaeaSRn/08qAhGkqZA1cjgJMTGf0qeXKz9ZuGozVRLXd NwkqIxM4fAkr9MVu3JvMBWmBLbxzFPHqFsa5VEhH7o88pnLYgOn5dBlsJnUsxvU+pgl1 V2yIFscVIZ9cF/86rvzESDdGkxHz0qTIJxWS2oPkrkwCETcq+OFRSVY9BGklS/Cb26uy lQpQ== X-Gm-Message-State: APjAAAXQ4ocWo/e3eAR/zHTelo7Fz2S/UFoLYHTNGbt2ogH37Qdbmdjd 3pm78xzJ3sRRW/nmsCxDzhk6cw== X-Google-Smtp-Source: APXvYqx7wUIzLLe7Nyc479/ioHCQ6EnzrtmezVmxgg8KZIhRgA3BwDqQ/+5CWD1TGc3ev+3Aa0LIPg== X-Received: by 2002:a17:902:e508:: with SMTP id ck8mr3655525plb.96.1554139073184; Mon, 01 Apr 2019 10:17:53 -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.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 10:17:52 -0700 (PDT) From: Douglas Anderson To: Thierry Reding , Heiko Stuebner , Sean Paul Subject: [PATCH v5 1/7] dt-bindings: Add panel-timing subnode to simple-panel Date: Mon, 1 Apr 2019 10:17:18 -0700 Message-Id: <20190401171724.215780-2-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190401171724.215780-1-dianders@chromium.org> References: <20190401171724.215780-1-dianders@chromium.org> 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=glsr5s+XdI5E8OElKXrSOhJG5EzpWyBtwSQUCs3zmgY=; b=TcX442vkjfWQpxQC70BHgRkRbkU2/tJqvgUdcir+UEaQiLz9977Gd3m+QPVVBaVLK0 1xQ7lajs0jQFLxCMjF5ayNeGMo055Fw0EOLamNSmSsMj4tnG/ucDbGqlNaVk4Gkpmspl zprv+7Il9sh3cfyfLV2wRaP5h+TCH5jVle6to= 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, Rob Herring , 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 , =?utf-8?q?Enric_Balle?= =?utf-8?q?tb=C3=B2?= , =?utf-8?q?St=C3=A9phan?= =?utf-8?q?e_Marchesin?= , Ezequiel Garcia , mka@chromium.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 Changes in v5: - Removed bit about OS may ignore (Rob/Ezequiel) 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 Reviewed-by: Rob Herring Reviewed-by: Boris Brezillon Acked-by: Thierry Reding --- .../bindings/display/panel/simple-panel.txt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index b2b872c710f2..93882268c0b9 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -15,6 +15,16 @@ 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. + +Format information on the panel-timing subnode can be found in +display-timing.txt. + + Example: panel: panel { @@ -25,4 +35,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>; + }; };