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