From patchwork Sun Nov 3 20:54:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 178377 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp651333ilf; Sun, 3 Nov 2019 12:57:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxBcbSyncf36y3qc3sKEIqdzYzisXbKsWiJAhzp3o4qYiYZ/mE9/lN9bGGNLpcjBE9fhsrI X-Received: by 2002:a65:60c6:: with SMTP id r6mr2984122pgv.419.1572814637242; Sun, 03 Nov 2019 12:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572814637; cv=none; d=google.com; s=arc-20160816; b=q0mp0+ExHPzYQMi2apmqCkWl2RDpUbraIiEs8n7r4ovZEGhXOE4ZFBdH61zJclplA9 7FPvltV/5OA+JMYHaMOnPHvW6fHQG/pz3dbJKuH6WWLRjerpZAQTbbDsF+tPmKiVOJz1 3q3KiEOsXYYUQtjOGBoemYjX8S/+qgoadXkkPU0CnkfQFCMukdGjOFghm3DzmNBXNzb+ GjzUiQADDT4tenkzywiG+eZSEFBVqUXyBzUypgGSlq2KP8W6GYqjOxRIqsW1WSSthueP TSACMzEnMiq/zalN5A8wTQV0NKIFf5p57cYBM8k9XEputEtwSZibP8CPPV4BbF62X9ro v9ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=dPy25l958R5r9a6gjQi7KRGs8HcSEiqQTQAS8IoTRTQ=; b=zGNtWGTnXCXjIgolAolqZAQNdoCk9ipvJl+YHNs5jv/7Etd2W8SYW577EZFE5Xg898 ISFTQI3yg9MPtkseHcMHxJYWHTDT/RHDjBHG7N7M+gcWxJPoPoLnlIrshmeM0q/DJDS6 +4sDhXud35XKVpZkM2aJsaRtFHtBUyMTRs+FcAtXR3h0ZfVvz9wf29L6Rv7Ihe59n5nD bAJKH+OTLDON+GQruQuEqRDX6gsK4ehxtPjU/BQxOJB8BWUI3B1uMer9uLrIFBZym802 p8WA0wfLOSDREUEYb12Vase3SVoOUKSFYqny/rqUJT7KcBeHxWjzdBGmVjZSfGgw7kCb 46Gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 29si5054858pgm.338.2019.11.03.12.57.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Nov 2019 12:57:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51CC16E0A1; Sun, 3 Nov 2019 20:57:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id C3E536E0A1 for ; Sun, 3 Nov 2019 20:57:14 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id k15so3292695lja.3 for ; Sun, 03 Nov 2019 12:57:14 -0800 (PST) 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=OWmTkgG+DdmOGUyUmLEDg8JGs6+s+lKtM+lwb24iwj8=; b=friDa8ImHX38nhzE1NoregCOVLXZIjydfwqxVjWjzIvIni535ps1po59azdMVfE8An KjmFm4nSlRh3j1b6xLyILA53nau7+oJJP16YEhHxP/5J1SdW/rp9KzBlYospNhOU+Eqn Sm1O4dl1Pkqph56MWwPayFUIRH+GlP99QAAUzm7EWN0DvlTe7T69azNB7RmcaL/XUc+Y ho2gUlnCT3y3WdWo++HOhyq1NpsiWz03ZIroe7d3yoeHsvNustDa3mW/d1AiHecdycxu gWr2A0b0Q49M+v4fgQ71nWZGGBWsXV5LvFt8hPCp37LvOrkAfHGRn/E+W86Kvkn7CD8+ AYkQ== X-Gm-Message-State: APjAAAUc98HsFiMHXXgQHo5ksEWef0lKYKoeD3g/s+tBsyABUB6fZmhp Z+FXKi9sjtLtw5odC16dy8RzEw== X-Received: by 2002:a2e:9119:: with SMTP id m25mr11530357ljg.24.1572814633241; Sun, 03 Nov 2019 12:57:13 -0800 (PST) Received: from localhost.localdomain (c-79c8225c.014-348-6c756e10.bbcust.telenor.se. [92.34.200.121]) by smtp.gmail.com with ESMTPSA id v203sm6936784lfa.25.2019.11.03.12.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Nov 2019 12:57:12 -0800 (PST) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org, Rob Herring Subject: [PATCH 2/2 v5] drm/panel: Add DT bindings for Sony ACX424AKP Date: Sun, 3 Nov 2019 21:54:59 +0100 Message-Id: <20191103205459.24965-2-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191103205459.24965-1-linus.walleij@linaro.org> References: <20191103205459.24965-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=OWmTkgG+DdmOGUyUmLEDg8JGs6+s+lKtM+lwb24iwj8=; b=B9CBujALEz6KEgHeAHPXYL3qf3J11FjOtj04mnLd2rylkQI9Zw20l+n4oiBXrpsnK3 efnwnAfTGd2amCVTf8pzC+0s653jji0LnItxsEwUW7IWVQ9PHQyfHG7Bt9+Cb4/HY1tn y4adR0kkCbSM85NcvToR98+ZoPJq9QdbJy6qVwkooqJCXafvRV2Wt8u/XJHSNAnnb06k 8gxhYDK8stBqxaZ01Yk4u/a4F/6JnS0t2jiGMunAeQPauQ/0cwINeIvwEd+Pr1Cz+S8K BW2t78NlNqxBMiuartgpO7mPu9JEkrDueT8Jq7X9SNN51Rdh9y0r2MtN0E7X5ThO+q8v /KMQ== 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 v4->v5: - Fix up all warnings etc incurred from the now working schema check and DTS compilation. - I still have a vert annoying error message in the Sony panel bindings that uses this schema: sony,acx424akp.example.dt.yaml: panel@0: $nodename:0: 'panel@0' does not match '^dsi-controller(@.*)?$' As this is modeled very closely to Documentation/devicetree/bindings/net/mdio.yaml and that one doesn't emit this type of warning for its ethernet-phy@0 etc I am pretty much clueless and just can't see what the problem is. - If I can't figure this out the only viable next step is to drop the ambition to create yaml bindings simply because I'm unable to do it, and go back to traditional text bindings :( ChangeLog v3->v4: - Adjust to adjusted DSI bindings. 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 | 50 +++++++++++++++++++ 1 file changed, 50 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..1c123139b80a --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sony,acx424akp.yaml @@ -0,0 +1,50 @@ +# 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: ../dsi-controller.yaml# + +properties: + compatible: + const: sony,acx424akp + reg: true + reset-gpios: true + vddi-supply: + description: regulator that supplies the vddi voltage + enforce-video-mode: true + +required: + - compatible + - reg + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi-controller@a0351000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0351000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "sony,acx424akp"; + reg = <0>; + vddi-supply = <&foo>; + reset-gpios = <&foo_gpio 0 GPIO_ACTIVE_LOW>; + }; + }; + +...