From patchwork Fri Oct 18 18:24:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176940 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1223148ill; Fri, 18 Oct 2019 11:24:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrEvI9eTO007XI11WUU7G9utAFY+suBHbAn/rMq3taZrBRMU/HNsK6KrdNY4dbt7BGjaG+ X-Received: by 2002:aa7:cd43:: with SMTP id v3mr10979203edw.235.1571423098497; Fri, 18 Oct 2019 11:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571423098; cv=none; d=google.com; s=arc-20160816; b=UeAlIByL9WVojCgBA9a8fNZh4RZdv9f3oblwmfNgBSJEBKY+KQ0+mfnt/he4XKW/P+ 6lg61IixTpTiwnSJW6c5qUzAQXQYCC8QoHYKt1irBa4ET9QEZCs6xB9nzs53vaMaCwO+ aEJsKGzE8LltSPZOwgsZImT5/QML+Z8XkbhNRfC90+Ms5rcE88EiKQiCFwd0ORxJMbb0 wxUJOaDbTkxxRgbuIwKQAQcY3OtS0fmYIUncoQjCKUETWa/HsboxXEXQi66Ptk0KKj2r AMIio7rPA0cbPINSeAiC7jNIudkdambcjbMlyfSwddCIyFO+ykCQs88lM/KDTkwdVj85 xayw== 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=IYHZuLGg+JGJBwHO1m+JSuqR2RXOf2t8ywlY3WZdrN0=; b=RYRzaXA9IH2CSKwyi4VsOaNR88WhCbWp/9hXHrR4caYRaCMAcN1X8zLb90NP7ygVeq oyOsqgmQLNqgv6lEYJ3qPMX7kV3jC4l6vEcsouiCF7fS+C9F7W7UxhzMGX1CVUPCW+wJ cI2Ef60+Dey4UywPMK5qiBUmg6MimlAeGM2kDSLta5beE56EoGDFVgTGMMYR1Gp73h7N HIPfMurahSA/vTbGx0lhewZqltEQ/KrmrCgoa3c9USRVVphx7sKZFceIEeH26rnvuhms ymNzxLe5uywBxFzVqNl37ky5xacZ6Hj0LmqFFRDs2GakfGE4ceV3jfNKOAleAUL8/Rgo FbzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=auHZttj8; 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 x45si4627036edd.388.2019.10.18.11.24.58; Fri, 18 Oct 2019 11:24:58 -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=auHZttj8; 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 S2502853AbfJRSY5 (ORCPT + 8 others); Fri, 18 Oct 2019 14:24:57 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37068 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502836AbfJRSY5 (ORCPT ); Fri, 18 Oct 2019 14:24:57 -0400 Received: by mail-lj1-f196.google.com with SMTP id l21so7180839lje.4 for ; Fri, 18 Oct 2019 11:24:55 -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=IYHZuLGg+JGJBwHO1m+JSuqR2RXOf2t8ywlY3WZdrN0=; b=auHZttj89zTTWX6QMDr8blBfC+K/EgSELf0teDHp1pkUjxV63etpiqa9A4Qd08STM7 IMiiWsXaiMaKzdHmXylAP/bj3ts9LRBL5qbSIkL5L6XuGEQTaU7icGOQxSQRzVj1vDur Aikyb2mwMmucPPWhTjD58iPhEhZ/lXlMHmosULz+j1kpV7F5ApvX9Wx5jYn90HQLANJ/ bnABKygJfUUocd53BiIh/CGwCslYNIaQFMGBQgzl9eUt0bTDZnKgEZofPPgyRB/0pg+V E/HYvP8i/wFhI1bTBvgv9nObxFtsvTVGdHo0XI6+ZT7CJBL2LAsgViiImxxu8NUsMlA3 3LxQ== 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=IYHZuLGg+JGJBwHO1m+JSuqR2RXOf2t8ywlY3WZdrN0=; b=l9aqMxNMQb0z12OS5DxrrHmnGD/tE72MQmS9PTv5uWJNucojsfAtOmCjAD2pSbiF9D NqBu7NFmkv/2PsPRDp1MlZLK3AgGHda30B/iSx9xIXiP7YjMwfeLrSeky51sixKGNpEB /ylG9aWeQXwV6n2GFekhkvIZ0+N02+NqFs90hxAbdjy9cjilM8T1ehBUqG2gTsdAtp/7 yTWDTMQgZdPYvlXURLY0Kd7p2fQfjqFrL0eaWMY2EVJtGOCTLQDr/WrefYUhDgJxTvH1 6+dNSQrW5NqTMdaTJIczVVheT+uUH6eI/QpfdL+EOeMvhr7YY0lynOVB6+Cj+YnqheZW Jupw== X-Gm-Message-State: APjAAAX0slPXmn8bH0JOaFeXIZQvrtoE9LyXEHrvD7G6ezBDuWKOwv6F JRL2OYm35gGnjyVB5mj/x3knuw== X-Received: by 2002:a2e:8684:: with SMTP id l4mr7425517lji.87.1571423095129; Fri, 18 Oct 2019 11:24:55 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id g26sm3020617lje.80.2019.10.18.11.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 11:24:51 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Andrzej Hajda Cc: Linus Walleij , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 1/3 v3] drm/panel: Add generic DSI panel YAML bindings Date: Fri, 18 Oct 2019 20:24:44 +0200 Message-Id: <20191018182446.26131-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 v2->v3: - Make a more complete DSI panel binding including the controller and its address-cells and size-cells and a pattern for the panel nodes. The panel is one per DSI master, the reg property is compulsory but should always be 0 (as far as I can tell) as only one panel can be connected. The bus doesn't really have any addresses for the panel, the address/reg notation seems to be cargo-culted from the port graphs and is not necessary to parse some device trees, it is used to tell whether the node is a panel or not rather than any addressing. - I have no idea how many displays you can daisychain on a single DSI master, I just guess 15 will be enough. The MIPI-specs are memberwalled. Someone who knows can tell perhaps? ChangeLog v1->v2: - New patch after feedback. --- .../display/panel/panel-dsi-common.yaml | 58 +++++++++++++++++++ 1 file changed, 58 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..d63f597eff9c --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-dsi-common.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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 constitute 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. + + Notice: this binding concerns DSI panels connected directly to a master + without any intermediate port graph to the panel. Each DSI master + can control exactly one panel. They should all just have a node "panel" + for their panel with their reg-property set to 0. + +properties: + $nodename: + pattern: "^dsi-controller(@[0-9a-f]+)?$" + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^panel$": + type: object + + properties: + reg: + const: 0 + description: + Only one panel can be connected to each DSI controller, but for + historical reasons, the reg property must be specified, as the + DSI controller can contain other child nodes, and operating + systems will identify which child node is the panel by looking + for the reg property. It should however always be set to 0. + + 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. From patchwork Fri Oct 18 18:24:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 176941 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1223188ill; Fri, 18 Oct 2019 11:25:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxR35HSFkrlOHXlJypTRy1IFIjptD2jGXUhXn92cDO1WqGvYft1WMkVp/q+Puq1Jqea1a/o X-Received: by 2002:a05:6402:120c:: with SMTP id c12mr11184158edw.119.1571423100943; Fri, 18 Oct 2019 11:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571423100; cv=none; d=google.com; s=arc-20160816; b=i1ToXB9XF19Vgjrwn8Rmi8w7S+MxZrtGFrPnf/q55aTvSRBMJA492XZsIKxwcQ1Zcz N6F4nY+luT70rMoBKMCyJT4ZOJjdw/GjOoBvSXrkrlMb5XBVpm/0wZ5xNbBGhhwAmAz5 8qtPgn2L8SYxEf7DU5/PEsaTFFP/6QQXouqc3fcYmiMAZPSspTAu4saO3QEIsGpr7bYr WdFiw1JIHou2A0M4VWo9vgQupepiAojy4rrUuYxTFoX9hjfllqbaPGzP/X0cwe8x31T5 /BbFhS//KOyEU5FQugfZtHTCZIL/64LjoXp/gVYe5FwDo3gLE41uNMf8HUAH4ER2wseL gO6g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YYQD8ZjjV8FYWgYSkKKTS/qtO4T+D7cqMY9D6mPQHr8=; b=IhFZxm4EBk+1yonjbBbS2bfyDkGRlM0k97VzjD3sKoe+2YoLrLxbRHhNgVmAnuLWqU phbVabf3zUHp7oVJqSKuOi6XNVX354jlgstfuAt8NdpzQfdpSnvYyCcFcKEVFVoQ2NQq XB/Ovg3U8HuvD5LURsqCCnucVW2wd0mmqUfl+R7GdQtOlw3Nhw9+cU+oteh81o/19161 wG7hBBBWCXb+A32GHtWzjFYSP7+yr4ZquxH84BD2QlYBXQ0yS1Ov8SbS9ZEx1BdJ2sYm YNB2q3HrHqlHHagQnISYDKQ1GhFbSzlH8q9R4/JkC2bvJalxwJYuebH1aEqfDHwsvZVL 6OAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kimc05Do; 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 x45si4627036edd.388.2019.10.18.11.25.00; Fri, 18 Oct 2019 11:25:00 -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=kimc05Do; 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 S2502865AbfJRSZA (ORCPT + 8 others); Fri, 18 Oct 2019 14:25:00 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34430 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502836AbfJRSZA (ORCPT ); Fri, 18 Oct 2019 14:25:00 -0400 Received: by mail-lj1-f195.google.com with SMTP id j19so7181801lja.1 for ; Fri, 18 Oct 2019 11:24:58 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=YYQD8ZjjV8FYWgYSkKKTS/qtO4T+D7cqMY9D6mPQHr8=; b=kimc05Do/CaE/fiIUHNko2Lc742S8/237oDRPUfI3GEx6oAx9L9lJDf1iB9ZVBvgqr QHI9LXd7JPvAcIL8zQeohj8pqSIe4nKSyTNiX153O98ykn+pcc0mC6UD7j89U/P6K654 wXdH5XPyh2zGfOJ3JCCvTD4hpxDtVNzNYM4mpoG7KN810cJKVnXxZud/XLtcFFIeY0wW /iVfomwNt/Sd+lhGoDLSXOItmjkDyAIakZzaekbf2DwspANM3ihx4jgKH8wazzadgrPt PClTRmbx3FQyecschVXDPaHtu5piX9TuDiRTHMHviHbZNAsG9BB+i38YhGgM58jkjt8k rLgw== 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=YYQD8ZjjV8FYWgYSkKKTS/qtO4T+D7cqMY9D6mPQHr8=; b=C0rMbZn/2KMmAZ5SFplKT9F/9shiUbrMx/7cfamLDt7PvTRA45rXIBd3hL4PmTYI3/ jzRfTlZW7o5D4/DybYUzOa+6AlczpIngSDV6pSZMZh+zmwHfMdkzu5q/ORUUsugcNYDI hEjnjVzo7a4jIwOiA3Q3fK33y9Q81T57s2FLEROrwfRm8E4aVNmDXagsrx1DmgHhIdgm 3RhPLauQzNKBB/vS4TjVAoWt/e4JzreohWEOoxM0vDV1y3OgfIHRLizkl1jkAm/IhgDQ r20PiMtyb5BZmk2JOtU+UPk5z9Cm0uIKUAO3uf/QrWFYNs5eQBZoz9sEACesr0pbFCS0 tVGw== X-Gm-Message-State: APjAAAXUHuKZZTgibKoMFxzugcD4gQkUzpgA/VnUseralKTJ1DTSZb3t 6pXpf05PHKsV2B0TLe3atlzDhg== X-Received: by 2002:a2e:29dd:: with SMTP id p90mr7174062ljp.26.1571423098036; Fri, 18 Oct 2019 11:24:58 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id g26sm3020617lje.80.2019.10.18.11.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 11:24:56 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Andrzej Hajda Cc: Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 2/3 v3] drm/panel: Add DT bindings for Sony ACX424AKP Date: Fri, 18 Oct 2019 20:24:45 +0200 Message-Id: <20191018182446.26131-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191018182446.26131-1-linus.walleij@linaro.org> References: <20191018182446.26131-1-linus.walleij@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds device tree bindings for the Sony ACX424AKP panel. Let's use YAML. Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Put the example inside a dsi-controller so we have a complete example that verifies to the DSI panel generic binding. ChangeLog v1->v2: - Suggest a stand-alone YAML bindings file for DSI panels in a separate patch, and use that to reference the boolean "enforce-video-mode" attribute for DSI panels --- .../display/panel/sony,acx424akp.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml b/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml new file mode 100644 index 000000000000..c01eea17b08f --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sony,acx424akp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony ACX424AKP 4" 480x864 AMOLED panel + +maintainers: + - Linus Walleij + +allOf: + - $ref: panel-common.yaml# + - $ref: panel-dsi-common.yaml# + +properties: + compatible: + const: sony,acx424akp + reg: true + port: true + reset-gpios: true + vddi-supply: + description: regulator that supplies the vddi voltage + enforce-video-mode: true + +required: + - compatible + - reg + - port + - reset-gpios + - power-supply + +additionalProperties: false + +examples: + - | + dsi-controller@0 { + compatible = "foo"; + #address-cells = <1>; + #size-cells = <0>; + panel { + compatible = "sony,acx424akp"; + reg = <0>; + vddi-supply = <&foo>; + reset-gpios = <&foo_gpio 0 GPIO_ACTIVE_LOW>; + }; + }; + +... \ No newline at end of file