From patchwork Tue Oct 15 08:28:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176374 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp5584194ill; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+gbU5wKsTFMY2fMiSHDObc7i7oSpk26P+XF2cfybRr2I5tenb2AzKJacPFeq9it+UHReI X-Received: by 2002:aa7:d908:: with SMTP id a8mr32334096edr.49.1571128099551; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571128099; cv=none; d=google.com; s=arc-20160816; b=EPPGhfrDglnoroLQm+6JEiHYxOqBkSb0Tw6qtsWSbale2zXUf1QJG4bwo15bUEmi7n EErlgCIzo9yaRkxLaIVhWBclNt83BWgi5luYEc+oH5W82gdXajbgEhQdofEkZcvBxNm1 zPfyjOwF1rqy/UNFsfigvw9MdviMvgPs+2T5TrkzKDvCrOF3XTYlFLds/27OvqwzOl8X zRJiL3b33A6hMLFiueo+SKEjo0bX98cwtHqB6xnDGCeQhLhq7eV506L0IOWj7oRivhSY vjsgvOd/NMMxK9+P3zP77rl6UHTg72CdEhNWWqmiQLGRWONl4cwawV4cParXPXlZl8Ol Tzcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=PevKAaP5U9kPTyicdTHBH5Kxi63mgTOwU+WgWhn3nzJdZrnszaF0Zgn6/38QYtlfKk dTUjVvRgSM7TyiF1JuD35NdMFTLhYcJwCy0zfxpH4gNB6BEAXNhPlkC4fSXPvmp64P8g 3YSDAzy2pvlU3/nwiXHFcbGRTDRTM0XeBzS3aBPW5OuL1NW8qFPUCyuQBV1BN2RDWLr/ ZNUuAU9zdjsEeVfqQYz5mKEockW4IELatkxP6JAxVnqKh67vtsZS3+ZvM1hXGefC/H78 qC+ITdBjp4OntViLw8TZR4JdkU7bG2Z5lrTijDNkxVTUQXinR4OMKSjgxPEE7F9v1QZk C8bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGu2KQCB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si12332476ejt.173.2019.10.15.01.28.19; Tue, 15 Oct 2019 01:28:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lGu2KQCB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfJOI2S (ORCPT + 8 others); Tue, 15 Oct 2019 04:28:18 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:41261 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbfJOI2S (ORCPT ); Tue, 15 Oct 2019 04:28:18 -0400 Received: by mail-lf1-f67.google.com with SMTP id r2so13753655lfn.8 for ; Tue, 15 Oct 2019 01:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=lGu2KQCBiaXwnAgxjn2XnQyZ29VvWDTfwyj851G8PR7/zGv+5q2Nb0meitSa/yPavC 5UP9jjecA1XSqKtKpA4uv9RzVqYV00H+W/svuhcGSLkjA2KoZIfev2NzXdLV0+6THABP K3Qi1CaiQ1WRYVSDuehnYYX7/xrlpbcHrTYnfPUDkr2L9LPhKtL7oioCT0H8/+DtMYxn ydTJdH9gptFk+yY7Q+MTQIrtTU/d7chqngxsySdZl8lmbo2IRbT2PcFXcIMQYXpN3ejt LUcHDOYM827MBHAjZnBgesbQZiwZmGuOF0PXnbEnj407rGcZNErbM1lxMAdznFjXlmlq 0upw== 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=3e4wGHkKDRH8I24Is4pDzwzrCPwhPGcWqf5noRqU7Cw=; b=jYYRsvTjEQXPoTdhh05deqTm8UP5fH1YrQfjZBbfNrudgTJ1RXcMU+2OsJDEB25A4Y Brr99pngD+9Z5Ps66L5Ru/VarAPybrdtaBFjXTPZqMhfifh/vMpyCJXoVZv67FJcjIqb xVhl6Ad+amXEzcjJqVCgUbtFQLLaJNvXz2SI/EkDvv9z/xAu/0/tYWSJSOf5qqJWYarQ gqEC48Nba7+sWK20rSudoND82fKwdQv9UVlavWkOV6Qa3LAlBtyV3nHtLQgP0UXVScOb WFrqQSV/JEbQuC0tG8bSCcrzU6/9Elst8VAsGAcWie2nrlmdOJ73OH1/v8I5l/H6B3fC HcyQ== X-Gm-Message-State: APjAAAV51yKd7vLM7g7gt8Oe16108meCVlfT0SnHLc+ak80+RpfHPtoV X9FQVrbwS/DOg5k/lvOTJ80Y7I2ICPA= X-Received: by 2002:ac2:46d9:: with SMTP id p25mr7820952lfo.174.1571128096556; Tue, 15 Oct 2019 01:28:16 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id y3sm4795141lji.53.2019.10.15.01.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 01:28:15 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Cc: Linus Walleij , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 1/3 v2] drm/panel: Add generic DSI panel YAML bindings Date: Tue, 15 Oct 2019 10:28:09 +0200 Message-Id: <20191015082811.29497-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds a starting point for processing and defining generic bindings used by DSI panels. We just define one single bool property to force the panel into video mode for now. Cc: devicetree@vger.kernel.org Suggested-by: Rob Herring Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - New patch after feedback. --- .../display/panel/panel-dsi-common.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml b/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml new file mode 100644 index 000000000000..4242dc25c917 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/panel-dsi-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common Properties for DSI Display Panels + +maintainers: + - Linus Walleij + +description: | + This document defines device tree properties common to DSI, Display + Serial Interface panels. It doesn't constitue a device tree binding + specification by itself but is meant to be referenced by device tree + bindings. + + When referenced from panel device tree bindings the properties defined in + this document are defined as follows. The panel device tree bindings are + responsible for defining whether each property is required or optional. + +properties: + + enforce-video-mode: + type: boolean + description: + The best option is usually to run a panel in command mode, as this + gives better control over the panel hardware. However for different + reasons like broken hardware, missing features or testing, it may be + useful to be able to force a command mode-capable panel into video + mode.