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=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,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 3BFBCC38A2A for ; Wed, 8 Apr 2020 19:52:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0BED42075E for ; Wed, 8 Apr 2020 19:52:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MYVzK2yd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0BED42075E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1BEC76EAE2; Wed, 8 Apr 2020 19:52:09 +0000 (UTC) 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 1A9ED6EAD6 for ; Wed, 8 Apr 2020 19:52:00 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id z26so4883871ljz.11 for ; Wed, 08 Apr 2020 12:52:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=saLPCDRxNaVrboIoRoQD/aDJjO874lHH30BBrT4XjEw=; b=MYVzK2yd4p3fplSbZBX4sdymw9ugya/Vao9SFAQX/gdlbZQdawL0XrgF7AHy2qcZuw cIP9JZO0t0M8V8WdRNsOY/B62OK/gw3w9ixZ7Lh7Y4jh57x8OvxN9yft+2u6eXHgAmC6 HZ6l3r9/Ixn5PxiDTX83uqKL7E2JBWKeOU8qauiQ9YF9A0d1catsgdT+vFCCFXF3Xaw+ 4zUsqnIX8A2XQE35fRQlS+PcESSDqNSWuTYO4niYTCr0MJshhN7oBJQfxrMSpDuPLXmw UAs9Wen6UE9Me4cEabaTAKuZNeaguCnmB1itPryOOMpt57mS20GD+ClNLh7+5StHGKtb ANJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=saLPCDRxNaVrboIoRoQD/aDJjO874lHH30BBrT4XjEw=; b=iB3sqFeEY1omXRK97VLbkxBEZ4cWStxqn46tBseCaLwqyAQs7S4hVqHeLWu2FZtou+ gIeZPaa/WJ0y8hl5A48hu0z9OG/AkSz6w+vIspGO5ZE+fDpwHo8Nkm23tQ94Af5XvQhi icU/LgG10iMw5GBp1LM+i3ci98C/ktpTwwfb3Mg89t/ZrtLLQ5KPsqxUDK5qKblSumNE Pye9Cq75IfkwDg5RbVvpT+F+m0LpXf0F7ULDpHJW2BrHnBpzON4YVFeu7eVMZtVQVPSb ma3RDpuLVwssaPWlNuyavFV4pgrzWor5yprweaXImc53tx1leHOEJx1uBAps6W70f09b nHZA== X-Gm-Message-State: AGi0PubUJMnusTwAF4YNe2GJiKOajB539TJcxnRYC3dREB3QihXe4bwU aaFidJsmAlVArfsWWUUG8DRDv06zIT0= X-Google-Smtp-Source: APiQypKKa894yGRmvO3ipRVOOLRBoPDdAi5RBXMl1JBQOr+O58wTYVsXyLjnYG9W0xxDIAw0mI1YCQ== X-Received: by 2002:a2e:7004:: with SMTP id l4mr6197357ljc.55.1586375518244; Wed, 08 Apr 2020 12:51:58 -0700 (PDT) Received: from saturn.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id i20sm3961304lfe.15.2020.04.08.12.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 12:51:57 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 16/36] dt-bindings: display: convert lg, lg4573 to DT Schema Date: Wed, 8 Apr 2020 21:50:49 +0200 Message-Id: <20200408195109.32692-17-sam@ravnborg.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200408195109.32692-1-sam@ravnborg.org> References: <20200408195109.32692-1-sam@ravnborg.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Schocher , Sam Ravnborg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" v2: - Dropped spi-slave (Maxime) - Added unevaluatedProperties (Maxime) - Deleted needless compatible from example (Rob) Signed-off-by: Sam Ravnborg Reviewed-by: Heiko Schocher Cc: Maxime Ripard Cc: Rob Herring Cc: Heiko Schocher Cc: Thierry Reding Cc: Sam Ravnborg --- .../bindings/display/panel/lg,lg4573.txt | 19 -------- .../bindings/display/panel/lg,lg4573.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.txt create mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml diff --git a/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt b/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt deleted file mode 100644 index 824441f4e95a..000000000000 --- a/Documentation/devicetree/bindings/display/panel/lg,lg4573.txt +++ /dev/null @@ -1,19 +0,0 @@ -LG LG4573 TFT Liquid Crystal Display with SPI control bus - -Required properties: - - compatible: "lg,lg4573" - - reg: address of the panel on the SPI bus - -The panel must obey rules for SPI slave device specified in document [1]. - -[1]: Documentation/devicetree/bindings/spi/spi-bus.txt - -Example: - - lcd_panel: display@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "lg,lg4573"; - spi-max-frequency = <10000000>; - reg = <0>; - }; diff --git a/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml b/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml new file mode 100644 index 000000000000..b4314ce7b411 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lg,lg4573.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LG LG4573 TFT Liquid Crystal Display with SPI control bus + +description: | + The panel must obey the rules for a SPI slave device as specified in + spi/spi-controller.yaml + +maintainers: + - Heiko Schocher + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: lg,lg4573 + + reg: true + spi-max-frequency: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + lcd_panel: display@0 { + compatible = "lg,lg4573"; + spi-max-frequency = <10000000>; + reg = <0>; + }; + }; + +... -- 2.20.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel