From patchwork Wed Jan 1 11:24:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 997 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 47BA13F0CC for ; Wed, 1 Jan 2020 12:25:20 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id l17sf16485020pff.5 for ; Wed, 01 Jan 2020 03:25:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577877918; cv=pass; d=google.com; s=arc-20160816; b=UBSyogXCJkQ3CrBXfc/M1sHUOlFgzibGEqgXZpEsf9xTlFol2FcVUKVHTOl3x21JOs jnOtq3CzIiQVWPFDld28XEegNiw8B9bE1BOVsKztw6Gcn+EsgoF1OKVuYRDjiJkjhp0x mum2Ha2my7io1pVExLtVUqXyzCVLQ+sUasTnB/CgEaLTGe4sYvYnoZuiQub1FEvOazU1 /8L+WUHwDHIhd+KYh3KQgwJCSwMadojhtsr3Z/ZVel7fV5MWUeSQiu0OBXmjE3+77afd a+5Zb3iLyEU6byWumPRQLcdbLCrXQXhLQwNwtESYEH8kMKgrMFNBWoGNDgyY/Ydi3o2Z gMWg== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=4E+5cJD6Qg98UhBQZVpN1RinWgrWsOgnr9t9KCeCtpE=; b=y0XreVisfq5tGSYTST3O/kvJRNhOoBUhr3lXOCNNwfsJL3oXtyUsUdCvwNLHkFMrV6 44rb2/cmB31fezjHTo30PCPlwWhJQp/YnQZRZ+3IftVzMSZE1G90SHVPDGxynrQ/BeW0 asHLRfKE48YE0bTXfwF9e94bIR4hoN362BJjqlFSuCj90vADdeHG6Pjr0dEH2cmcuqpn lYcV3QWstk0XH8CFrkcacBGQYDydpevd65hCWzLt/ibNf7jQbfuqcahFe9VOsrsRChkV KjEGyrdTaeQfCfyHo5dW7Nq63ddxqF9o/qZrQ0N/w4appzMHhCZw/b/SsDl4uICfQTOG g8iw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IXadCyul; 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=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=4E+5cJD6Qg98UhBQZVpN1RinWgrWsOgnr9t9KCeCtpE=; b=feHYj2JeMF1bHcuUKdYmGaqhfa1mHyEpEtDEkrdySE8T30eZ1ZxeZ6mSFIDOEVawsm tfQsDsuYYFrWw7DVt3Pn8TyAdbQS4LjSN/o1CeX37irECQ0890gZ8qqFl6AzAFNC4KMn HypMCeuJIHX62muXVQJZsU8VdJOSsS9dKLfdE= 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: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=4E+5cJD6Qg98UhBQZVpN1RinWgrWsOgnr9t9KCeCtpE=; b=MtIhNZRIZFtQPhMoYEnuAz82TRDpZ5W5zS5DEzezln2OP58oPeMJ5ZtvH/ZHwbPVxU udzzfo0IyJv/kAkMw0nVQPwwxqoDYJNRUGNHJO7ykoiuJubjphJ2+wrfgpfitYHRv4lW G6wgx7hyhDfowjTbF/CbciVvx6aCF9dJYH6kwRuZ90nGoNfuEwZhx+PFbB+r5flzoK5k jTJpSA2yo8a+jK+B3ymdc4+fqN6AbMKUSj/OP4fxcA9OxHGVYY9bAmIGpRP5CBslt53P Ec2XSgrWVW+ZLooAlV5EKCcOC+b+4hrYW5nOLuRZoXDQ1Cei4Bbgz9uM6Htwt0FsEuEO HYBg== X-Gm-Message-State: APjAAAUqeFXkW5ZwWj3ibEb4STIZezmvcjEEuznW8jsPm5kKXxvPrIVi +fIvIhAfehhUBPmXaO5OnL3SRAG5 X-Google-Smtp-Source: APXvYqxmE6ZNm2en8yZtIrYezPwabO+H8TFx6AW4cZl4uJKRHoo9/yWidSJQ7qEQeJXvMMrAGV6ImQ== X-Received: by 2002:a17:902:8603:: with SMTP id f3mr80542939plo.198.1577877918701; Wed, 01 Jan 2020 03:25:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:28f:: with SMTP id az15ls2099063pjb.3.gmail; Wed, 01 Jan 2020 03:25:18 -0800 (PST) X-Received: by 2002:a17:90a:ac02:: with SMTP id o2mr13347910pjq.93.1577877918240; Wed, 01 Jan 2020 03:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577877918; cv=none; d=google.com; s=arc-20160816; b=1GJh5ARaGMn174Ce0IlMYI40mwJ4cXY2I0o9LedY5EQHstTIruiJ8RIL/jJByQw4v3 czum64VnuZDFLpKpiwe5dekcfZMSvpXqLFO9bVfr/ab5WtkldYXXzC20/AwjfTVPvuEu N/HJgd3LReyYzufCAOj27IAsHkLutmqMVpt3ogoE0iEZgm4lED3Yi/lHrUxHo4OvBVip AfACNNS9hAeXTjipDIkDESe8jByBf25EkwSX13YUMez6m6zBQ8y2WQfBkCEjeS9gv3AG 2HuMbwEmiRq1pZbS5f71+j2nSgysgfz9F3j8afjNmDThaEQOCfNhbA395mEbYB7/wFVS A47Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xyLN4iY9zmJMkQfktKnQpRiD7IFHvGjo95ULoKZuL/c=; b=F5FQYk2A2eVJjAJrpK2+S2w12fr9liJI6a6Nc29FqxGvfsGhG/uU/nSs+mvk+TDw68 F6YL1cYI88Gjbz5Ti2NI48AFXQqG6pkbTTf1M/qRw1sySGfqshuF5o3C5IKB2q0Udlzo ONvnmOEEfEYqTgfLL54pJJjAsMqBsDTxcJ9zAgR/vFmJbyKtOBeYX3Fq77xudcQbqwK6 iFS1Mw2ZxHCTL5kUvmdc6e2idCrYTQGJyztvN1CyOCc0FtqF41+RUA46jPOO+C5xgQar mYFKzy0H0PUQjeB4kvQDs18eKBEgV19wfapJLadrnF32mio/Hnr/uY3pu956FqH5Ylkg cdaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IXadCyul; 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 5sor52280228pfb.67.2020.01.01.03.25.18 for (Google Transport Security); Wed, 01 Jan 2020 03:25:18 -0800 (PST) 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:a62:3343:: with SMTP id z64mr80281149pfz.150.1577877917923; Wed, 01 Jan 2020 03:25:17 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:d0fe:8978:1b04:ff94]) by smtp.gmail.com with ESMTPSA id y7sm51945439pfb.139.2020.01.01.03.25.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 03:25:17 -0800 (PST) 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 2/6] dt-bindings: display: panel: Convert sitronix, st7701 to DT schema Date: Wed, 1 Jan 2020 16:54:40 +0530 Message-Id: <20200101112444.16250-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200101112444.16250-1-jagan@amarulasolutions.com> References: <20200101112444.16250-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IXadCyul; 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 --- .../display/panel/sitronix,st7701.txt | 30 --------- .../display/panel/sitronix,st7701.yaml | 61 +++++++++++++++++++ 2 files changed, 61 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..49e4b54ecf7c --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0+ OR X11) +%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. + +properties: + compatible: + oneOf: + - const: sitronix,st7701 + - items: + - const: techstar,ts8550b + + reg: + description: DSI virtual channel used by that screen + + VCC-supply: + description: analog regulator for MIPI circuit + + IOVCC-supply: + description: I/O system regulator + + reset-gpios: + description: a GPIO phandle for the reset pin + + backlight: + description: Backlight used by the panel + $ref: "/schemas/types.yaml#/definitions/phandle" + +required: + - compatible + - reg + - VCC-supply + - IOVCC-supply + - reset-gpios + +additionalProperties: false + +examples: + - | + 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>; + };