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 464D5C352BE for ; Wed, 8 Apr 2020 19:52:12 +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 155122075E for ; Wed, 8 Apr 2020 19:52:12 +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="RgHB+vU0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 155122075E 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 CD5756EAD8; Wed, 8 Apr 2020 19:52:03 +0000 (UTC) Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id 552836EADB for ; Wed, 8 Apr 2020 19:52:02 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id x23so6121637lfq.1 for ; Wed, 08 Apr 2020 12:52:02 -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=Eb49ZuvI3f7DDW48zoIuxR6GcmzkcmV13fqoE06Migw=; b=RgHB+vU0JT/cP5j8wdXpTw2ra/VmeMQfZY2OkY+7pKt7dCJdWgSbGOr/7hSXGWRUEP S5H4Uw+n0I04CmNzsTgYfZczuwqF5eSlv83tvexHfMcaHcg0Vd4m1H4gkbyyoqL6VgZF xILgSKhZbrx7dGPLjc1ShxKfMMPAjsD00Ka12wWylEZeLxgdVwYzhOK1EIu1GHhf/euU fdGBJKe0SRILvZGlYBVn+mCMK+kEHMGMqotQC+wFluWViAynEROPErtuJcsvRHhYjtvy 6TmhPmGy2teKId5XLe98cZXJkW8JQjRa6yMnDkf0CypxomPWe+AFzsDrQe0pi5Nt3HRE ZlvA== 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=Eb49ZuvI3f7DDW48zoIuxR6GcmzkcmV13fqoE06Migw=; b=idh7zigGTv/S3e1ZCrj/C9+FhBoIYpocvkEgdugSHE9fcjGa/oTmtwnHg1QnxMqSKx 4Oil/ewOgfJvFK/4xc0+UV9Sr1hcthrpM2aIN5IHNGbS3+qNtQmt+00YjJx3X+Wvb5+D hK8KBuFXbao/Q+PzGNBAZrJd8h4A+COfEU9IR8rPYaXMyXlZkR09AGCKDjf5wtnmqTWV Mhp2i0+dE/sH/sWjd2QASOUUEL2CZupZFY0p2G4EpqWzc7ABi+pYjHwslqB8hJFQ+ASq oKDtDdpwBu1QQHMjE72Qz+E5T8IoQwY6pjr5xbZO4EswjjyCiS5m9GllEkzYIEAvIhOu NsWw== X-Gm-Message-State: AGi0PuZLOO42R7kRDRV1pIimACNXebEALfRoXcwo5c48EuUTTlkSpHH3 vcFIuRnJ2GHSFaj54INahkIFB8bM4hE= X-Google-Smtp-Source: APiQypLtbfFhvPCLUgnNiNW/30yqgnvPpjBjpJhOgDTx8jktct5hMNJjGyD95RkAZONZ9dfuqv6hsA== X-Received: by 2002:a19:ac41:: with SMTP id r1mr5536385lfc.113.1586375520379; Wed, 08 Apr 2020 12:52:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2020 12:51:59 -0700 (PDT) From: Sam Ravnborg To: dri-devel@lists.freedesktop.org, Thierry Reding , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v2 18/36] dt-bindings: display: convert raydium, rm67191 to DT Schema Date: Wed, 8 Apr 2020 21:50:51 +0200 Message-Id: <20200408195109.32692-19-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: Robert Chiras , 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: - Fix entry in MAINTAINERS - Add reg number to node name (Rob) Signed-off-by: Sam Ravnborg Cc: Rob Herring Cc: Robert Chiras Cc: Thierry Reding Cc: Sam Ravnborg --- .../display/panel/raydium,rm67191.txt | 41 ---------- .../display/panel/raydium,rm67191.yaml | 75 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 76 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt deleted file mode 100644 index 10424695aa02..000000000000 --- a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt +++ /dev/null @@ -1,41 +0,0 @@ -Raydium RM67171 OLED LCD panel with MIPI-DSI protocol - -Required properties: -- compatible: "raydium,rm67191" -- reg: virtual channel for MIPI-DSI protocol - must be <0> -- dsi-lanes: number of DSI lanes to be used - must be <3> or <4> -- port: input port node with endpoint definition as - defined in Documentation/devicetree/bindings/graph.txt; - the input port should be connected to a MIPI-DSI device - driver - -Optional properties: -- reset-gpios: a GPIO spec for the RST_B GPIO pin -- v3p3-supply: phandle to 3.3V regulator that powers the VDD_3V3 pin -- v1p8-supply: phandle to 1.8V regulator that powers the VDD_1V8 pin -- width-mm: see panel-common.txt -- height-mm: see panel-common.txt -- video-mode: 0 - burst-mode - 1 - non-burst with sync event - 2 - non-burst with sync pulse - -Example: - - panel@0 { - compatible = "raydium,rm67191"; - reg = <0>; - pinctrl-0 = <&pinctrl_mipi_dsi_0_1_en>; - pinctrl-names = "default"; - reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; - dsi-lanes = <4>; - width-mm = <68>; - height-mm = <121>; - - port { - panel_in: endpoint { - remote-endpoint = <&mipi_out>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file mode 100644 index 000000000000..8fdd4e56aedf --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/raydium,rm67191.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raydium RM67171 OLED LCD panel with MIPI-DSI protocol + +maintainers: + - Robert Chiras + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: raydium,rm67191 + + reg: true + port: true + reset-gpios: true + width-mm: true + height-mm: true + + dsi-lanes: + description: Number of DSI lanes to be used must be <3> or <4> + enum: [3, 4] + + v3p3-supply: + description: phandle to 3.3V regulator that powers the VDD_3V3 pin + + v1p8-supply: + description: phandle to 1.8V regulator that powers the VDD_1V8 pin + + video-mode: + description: | + 0 - burst-mode + 1 - non-burst with sync event + 2 - non-burst with sync pulse + enum: [0, 1, 2] + +required: + - compatible + - reg + - dsi-lanes + - port + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "raydium,rm67191"; + reg = <0>; + reset-gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + dsi-lanes = <4>; + width-mm = <68>; + height-mm = <121>; + video-mode = <1>; + + port { + panel_in: endpoint { + remote-endpoint = <&mipi_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index dba84e7726b7..33dbe94e03ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5388,7 +5388,7 @@ DRM DRIVER FOR RAYDIUM RM67191 PANELS M: Robert Chiras S: Maintained F: drivers/gpu/drm/panel/panel-raydium-rm67191.c -F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt +F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml DRM DRIVER FOR RAGE 128 VIDEO CARDS S: Orphan / Obsolete -- 2.20.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel