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: 11199385 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E08F1575 for ; Fri, 18 Oct 2019 18:25:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7640120820 for ; Fri, 18 Oct 2019 18:25:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7640120820 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 874046EB84; Fri, 18 Oct 2019 18:25:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id BAC9E6EB85 for ; Fri, 18 Oct 2019 18:24:59 +0000 (UTC) Received: by mail-lj1-x243.google.com with SMTP id m7so7186776lji.2 for ; Fri, 18 Oct 2019 11:24:59 -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=YYQD8ZjjV8FYWgYSkKKTS/qtO4T+D7cqMY9D6mPQHr8=; b=K67Q7k8BknAYbYoTQxfVerEQfcfVn2I/HlhbWIvTuLWnGvUgLwl2FJsvsyHMtszi0K 0U5cXaeFtIwHY4DcQ8x+zCbywxlHZTkEn4EV7h/1/XCSq7WW1nDe6YKv48A9gq2pjl+h M0sl9E6+Yrk68DY8q/FQO9z1iUMYMEZ8dKP+2hYj3eUlFQzok1GBkOU7+jD9MxhnkGCu vqPC/6zTNFdHuddYRrVQd0Ay+31sW3ae/lOaUzM0TgrvvUWlaiO4bMWTeG45lxD4V0oL P1ytC0FGUEptwSLOa9Er5AgkIIrL11h3tOqLELruRXrk8H9blsEMPGlwTqM3z4eEcndZ XYLw== X-Gm-Message-State: APjAAAWvax1/702cxVLH1LyA2aZ1nOzcujp9ZSr+liODlDcH+s2t+Sw7 D8L8bmQWo5j5h9UbyaWAuAWnYA== X-Google-Smtp-Source: APXvYqxtc8ZUeBcK8hiA5gxckfrSmYQjAwIJX8pQ/ZT8e1aLDLHCnL2gVSUTTfHtu03NaTJV1SDldQ== 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 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 X-Mailman-Original-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-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: devicetree@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 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