From patchwork Fri Apr 3 14:24:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1067 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 77DE23F1FE for ; Fri, 3 Apr 2020 16:25:09 +0200 (CEST) Received: by mail-io1-f72.google.com with SMTP id n15sf6135237iog.8 for ; Fri, 03 Apr 2020 07:25:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585923908; cv=pass; d=google.com; s=arc-20160816; b=Q2wf9NSRI+dzXGCMHbjZCBQsFebnSl5bPZ9gfzVePwASXD0rsaXpREeb40cl1qaq/M bLmM+ycIINaMLOZcFAV6BAzmzDU1NmrvOOExGvqfMFe+SDIgDzzWTMNJi1XGpRjqyPQn 0O6P6PrvEcBuZy/LjgpF1mykH4H/HV5fiLTD05GPMvzSYsgV7FUZLh7boeXdo3CLQnPQ 1Hj2yIqMsWKC2gXI8aBO1S18qcD5yp0eH81bERUPNGLGosGu1SkLQ3iplM+xoEQrfNBW FI/qPw9npzzyEkSmjW2GrJrZa8aoOQnrc7m0TMzPMX+fh7daAgbyj8UNuw29w9sXGPDn AFdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=muOsyknzyBkd9QwAiOiQcayDKn9Y56x2RTgRUI0Dmng=; b=ZrS1iHCVP2GS5gSad/zQMk5F/WW4JCVVQ3lqVmPe35M8zCD2HQ4F13E80MzB3yO0O6 OYCVaO/3/C7Xu6io7WUtq8k6QCcBBPLHOwuq5J0tHakc8TQqHFQyPOintThYFGddYGsZ Q18Pr0hPiZeqMuldqfoejZGxfasaExWaVRM2zqCq8sBPDJhbKEhMs9QHB9uA2muCs6hl wY7Ok2rhgR/xbqNZlcaDWUbv0fKkI+LEF39wSx4WY7zVB4Z04okmFW4+Ic1OpNt9jli3 okXtckXjA/aQR7SWpXDCjaASF/7rcMn5HVoQ0/bznTKZOTGedeGSFYnqFchWMVmYK98F DitA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Euy1XSbh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=muOsyknzyBkd9QwAiOiQcayDKn9Y56x2RTgRUI0Dmng=; b=SQdHRrLkfvS7RFfBKaQJ3uD02mGTX3dr+8gFHgGftVxcflIGInHixNKzYI9I1N8+M4 HsADBSCp0WjiHhX2ChcG+m9G6i7ZgMsV5y7kzGUKWTy7TDBLq2CzVqxK1HF3WFkAM0K7 x/JJ+00QJLz4q2z6qqeIC6jEosYWID9GWNzUQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=muOsyknzyBkd9QwAiOiQcayDKn9Y56x2RTgRUI0Dmng=; b=R7cqIoD5txUHJcaRtngKnD2C+RX8nBBVBjmu8z4ZL6da8DlNxCP7F13o4a4X8k1iGu 44TdSUfGxGD0FQWt9kNTS7QMq+2DCPVVtG181kxObh9Ptc3qzr/VAnKMPdQP6cmrZdP5 jTt4j0iCSLVL/Qr81fkNsaKgaaXRZbARVveoTkxPVFh0DzkjBImJP9nWgoCiS2CtAeIn BZSdqWLh97sIdg/sB88RhenINSy7TUJfjcQM1QD9GGE8S2aFxib9pEWf72JbXaFOxuKC 7oyHnFumo9dgOdWcKq6VUwf4hnroTEBG8DTeeQBjQJBAOl/xkUGAGsFXVYrOp7j/nGfF AhYg== X-Gm-Message-State: AGi0PuYRHGVRy9NXqFDvqT9Ic3NrqpMncGuhiKZgs2MqAt5SYDpyK67x jwZgm3qYgrKDq/8i1+VuUdwgYE5I X-Google-Smtp-Source: APiQypJvwCB3hiBPx+jkPxzMNu/ipk54zPqoR0qjPuwUwLGGarTXkDTOi/CmKtIK9+N3DMy8B/v0pg== X-Received: by 2002:a92:bb0e:: with SMTP id w14mr3598856ili.206.1585923907718; Fri, 03 Apr 2020 07:25:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a92:3d8d:: with SMTP id k13ls3654280ilf.5.gmail; Fri, 03 Apr 2020 07:25:07 -0700 (PDT) X-Received: by 2002:a92:8517:: with SMTP id f23mr9326550ilh.106.1585923907240; Fri, 03 Apr 2020 07:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585923907; cv=none; d=google.com; s=arc-20160816; b=LiUr1L+gRV/oujA1q1KEBNVMOHLqZ5R10PHi8ZfOXhvNqboZPmUELfw/qfK7kNrW2q GkCJ4Xs16qBV6Y13bdRXWZJe0vSEpHsPMR2utulD7Z4K+C19b3cbd+1fo7VtCjAUsidl yU5GOESS3gsRUxepIWK0DuJrGu7TwvEj8T+qPtYw+o/MqIXu4Xmi7lz2hnXjgLy1p1xM 0YSf6zBCjdf/AWZMzKZmfclEK2/XXstSS/jX0AOOkOqwlYeViMtmcDDaK91uQVE17hMZ rPNkl2773hnz4UcMX3bR3j5ZlpvAhI+QqGalePCOgQUtWtG7+dL8IjnVJibL8oN/bbo3 6ptw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+a7470YaM4juMtdG/mmWqx5LDt9fs/5Ezk3ziKgHNt8=; b=0xZHB0kIWrJaV0gvitN62EMxaAusiByGEfvOytPWn1Dp5aqDnZ7oyOXEJzlu3K02Ls XqrNryjADfFEwITwjs5TUDX/4kgMKgauoE6nF+PO7AOpelXdgbAfr6zoNnwZ37gIbtD2 Pp/ep9dGXrKTQhfELNJBUDDY1w+evQl0bsavmNa+Q5JRKOKs+VJhVD8Ql3Dy9dnToJ3R V9pqoIyOGnOsIxP4n8Iqa46be1Ar2o55Im9+g7gUbxkqDyInYcUx1ecYMUIdG86c7XhF +JPSjtAuXf4qS99kSZZevG4NtKe0nsXIAbeikufSjSxPC93poCUamIk3aXxKVsOlseDT GRlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Euy1XSbh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 124sor9272554ilc.19.2020.04.03.07.25.07 for (Google Transport Security); Fri, 03 Apr 2020 07:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8f87:: with SMTP id z7mr7339466plo.342.1585923906818; Fri, 03 Apr 2020 07:25:06 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9cd7:b821:2c84:e325]) by smtp.gmail.com with ESMTPSA id g75sm5857060pje.37.2020.04.03.07.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 07:25:06 -0700 (PDT) From: Jagan Teki To: Thierry Reding , Sam Ravnborg , Rob Herring Cc: David Airlie , Daniel Vetter , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 2/3] dt-bindings: display: panel: Convert sitronix, st7701 to DT schema Date: Fri, 3 Apr 2020 19:54:52 +0530 Message-Id: <20200403142453.25307-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200403142453.25307-1-jagan@amarulasolutions.com> References: <20200403142453.25307-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Euy1XSbh; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert the sitronix,st7701 panel bindings to DT schema. Signed-off-by: Jagan Teki --- Changes for v3: - update the licence, used (GPL-2.0-only OR BSD-2-Clause) since I'm the author for old binding - use panel-common.yaml - mark true for common properties - use maxItems: 1 for reg - update example Changes for v2: - fix dt_binding_check .../display/panel/sitronix,st7701.txt | 30 -------- .../display/panel/sitronix,st7701.yaml | 69 +++++++++++++++++++ 2 files changed, 69 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt deleted file mode 100644 index ccd17597f1f6..000000000000 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt +++ /dev/null @@ -1,30 +0,0 @@ -Sitronix ST7701 based LCD panels - -ST7701 designed for small and medium sizes of TFT LCD display, is -capable of supporting up to 480RGBX864 in resolution. It provides -several system interfaces like MIPI/RGB/SPI. - -Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has -inbuilt ST7701 chip. - -Required properties: -- compatible: must be "sitronix,st7701" and one of - * "techstar,ts8550b" -- reset-gpios: a GPIO phandle for the reset pin - -Required properties for techstar,ts8550b: -- reg: DSI virtual channel used by that screen -- VCC-supply: analog regulator for MIPI circuit -- IOVCC-supply: I/O system regulator - -Optional properties: -- backlight: phandle for the backlight control. - -panel@0 { - compatible = "techstar,ts8550b", "sitronix,st7701"; - reg = <0>; - VCC-supply = <®_dldo2>; - IOVCC-supply = <®_dldo2>; - reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ - backlight = <&backlight>; -}; diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml new file mode 100644 index 000000000000..6dff59fe4be1 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/sitronix,st7701.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sitronix ST7701 based LCD panels + +maintainers: + - Jagan Teki + +description: | + ST7701 designed for small and medium sizes of TFT LCD display, is + capable of supporting up to 480RGBX864 in resolution. It provides + several system interfaces like MIPI/RGB/SPI. + + Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has + inbuilt ST7701 chip. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - techstar,ts8550b + - const: sitronix,st7701 + + reg: + description: DSI virtual channel used by that screen + maxItems: 1 + + VCC-supply: + description: analog regulator for MIPI circuit + + IOVCC-supply: + description: I/O system regulator + + reset-gpios: true + + backlight: true + +required: + - compatible + - reg + - VCC-supply + - IOVCC-supply + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; + IOVCC-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; + };