From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 657C8C4338F for ; Mon, 2 Aug 2021 06:36:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49DDA60F39 for ; Mon, 2 Aug 2021 06:36:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232334AbhHBGgk (ORCPT ); Mon, 2 Aug 2021 02:36:40 -0400 Received: from smtpbg126.qq.com ([106.55.201.22]:15993 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232268AbhHBGgc (ORCPT ); Mon, 2 Aug 2021 02:36:32 -0400 X-QQ-mid: bizesmtp54t1627886160tiyh9ajq Received: from localhost.localdomain (unknown [113.89.245.207]) by esmtp6.qq.com (ESMTP) with id ; Mon, 02 Aug 2021 14:35:57 +0800 (CST) X-QQ-SSF: 01100000002000208000D00A0000000 X-QQ-FEAT: iw3rh0TbesOHDW05wTegOh0EvpfnJ+psBGCxaUrRKCRFfJ2oBajdPnmVPOfie 723fjbXxMsjLC6Xv/SIY7+NTYwd+RjnVCvfmvU4HQupQQydPo7M6GQgeYJj8RtKbOwEw/P5 UclFbgTM5du3rmwDyURmkgP2MZ9SCa/SkA2J+Mnd4U2dlecYYLL+toPXV8zfPFANryidUKT MSZmvLkBpcRZV71RtfDUMojRtjJRjDu9CldIucB9R9nQMITLp/hbOaKbn5QjNv/0jdj+W25 dxNVKB2cqz+4CfRcsvzN6mV8Jdnas+OW9fsLrrS4m2Cc2A1kCsMBFCIx2QM8r8aq4Q0y1ku FO7lvmdzJ/smN6AEmhc1JBvC5cpHNRxjn1NVDT7 X-QQ-GoodBg: 0 From: Icenowy Zheng To: David Airlie , Daniel Vetter , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 2/4] dt-bindings: display: add binding for simple-dbi panels Date: Mon, 2 Aug 2021 14:35:36 +0800 Message-Id: <20210802063538.75583-3-icenowy@sipeed.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210802063538.75583-1-icenowy@sipeed.com> References: <20210802063538.75583-1-icenowy@sipeed.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:sipeed.com:qybgspam:qybgspam2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we're going to introduce a driver for MIPI DBI panels that need only standard MIPI-DCS commands to initialize (usually because the controller has some configuration pre-programmed), add a DT binding file for it, which now includes only one DBI Type C Option 3 panel, ZSX154-B1206. Signed-off-by: Icenowy Zheng --- .../bindings/display/simple-dbi.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/simple-dbi.yaml diff --git a/Documentation/devicetree/bindings/display/simple-dbi.yaml b/Documentation/devicetree/bindings/display/simple-dbi.yaml new file mode 100644 index 000000000000..f49b0fda0935 --- /dev/null +++ b/Documentation/devicetree/bindings/display/simple-dbi.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/simple-dbi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic MIPI DCS-compatible DBI panels Device Tree Bindings + +maintainers: + - Icenowy Zheng + +description: + This binding is for display panels that utilizes MIPI DBI Type C, follows + MIPI DCS and needs no vendor-specific initialization commands. + +properties: + compatible: + oneOf: + - description: + Zhishengxin ZSX154-B1206 1.54" 240x240 SPI LCD + items: + - const: zsx,zsx154-b1206 + + spi-max-frequency: + maximum: 30000000 + + dc-gpios: + maxItems: 1 + description: Display data/command selection (D/CX) + + backlight: true + reg: true + reset-gpios: true + rotation: true + +required: + - compatible + - reg + +allOf: + - $ref: panel/panel-common.yaml# + - if: + properties: + compatible: + contains: + const: zsx,zsx154-b1206 + + then: + required: + - dc-gpios + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0 { + compatible = "zsx,zsx154-b1206"; + reg = <0>; + spi-max-frequency = <30000000>; + dc-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; + reset-gpios = <&r_pio 2 21 GPIO_ACTIVE_HIGH>; + }; + }; + +... -- 2.30.2