Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp769094ybt; Wed, 1 Jul 2020 09:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAuo2XHfdNU69CnFHA1VneVGERzX5InwAdHzcZcu6LOZ+KArQbk208k+wQvCoX3AB9dGzx X-Received: by 2002:a05:6402:354:: with SMTP id r20mr29902017edw.32.1593621107604; Wed, 01 Jul 2020 09:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593621107; cv=none; d=google.com; s=arc-20160816; b=As5lOWq44WtBYL5J5a00TtiHnUhmV3Wk7MuJHRCLJ/8cTVeR3r9cENx/iaLpMN2QgD bjHoaTzLKY5OLLuZntBfKsUOxtRHbkc/+Cmr3e7Ib/L+LpsvP6V0oeesU99w47T0euhi 3S2GtS9UWn4iQSvacff7nI3pILXCTqOgVLrXTL8YK2XHn+T5Yz8Lr5S84HV2MnzPbnGU 8GocOrnuw8vrJX4eQxw54SznOmxZFPnXbsU85UcSxKpHGIodGLNg4uGUlKo6CMwDkuuv iZ9txGqnAFLfB+i5xUIUJfFwOYTDIHdyb4+XyfaBW2dWeCvkKfhetLx2UrfTRSO2BHks z52g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=k66Yx/ByYcg2kjon0fzKKcSr3lObAttOajYo/Peg7fI=; b=zyCOP6GHjezzkZNmdqrAbjodSf91S3Zp1lMnnZ83kAoj1x9vTFmu4hK6EK8l88kQ/Q ZS7yiED8DWUYaqbw2jJmx/HpkWl3H5HEw3uHHNYLB2YX2R9JqkkQgQ46h7MDtnW3tuik l9ZBROv2tPUaFL/DhvDc3ULdgCtwFYyzx/oKAki+55NXVWvL7w5mC5PkupiSsdUfRcTO FFeDZXdygVuN1vJjyL3PdO/XK/CeYpd8cZiobRq1j0xYEFgvH+iobMz1udzVNfebYlF6 IdOqIwzuZyRtL0e7y8MLZnnAhdw1NazItqtcA+GxxXmIiFmB2uN5Vc4XGzROY5MAbboo W5MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=fgzEhIfL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si3973787edr.156.2020.07.01.09.31.24; Wed, 01 Jul 2020 09:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=fgzEhIfL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732497AbgGAQaT (ORCPT + 99 others); Wed, 1 Jul 2020 12:30:19 -0400 Received: from vps.xff.cz ([195.181.215.36]:52048 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732160AbgGAQ3f (ORCPT ); Wed, 1 Jul 2020 12:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593620971; bh=upSyzpnnbVkpTdRY0PC/Syu6g+q/lTfw6eNj6l37uLk=; h=From:To:Cc:Subject:Date:References:From; b=fgzEhIfL17W4Rd0XU4n4QEC/RpbKfoaRfuFbuI7l9gSwow1GxR0TwqwP3RkqEp9b5 M/bSgFtA2lEcQabp76n8p4Z6vwmPv79m1vNZuMLiunyzlbPm7x9EsgbUEyCWiY3if9 b6WkWZCb8k8Td5t1RCzivhtZ8zYn3n7HrjEfrBuM= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng Cc: Ondrej Jirman , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: [PATCH v7 02/13] dt-bindings: panel: Convert rocktech,jh057n00900 to yaml Date: Wed, 1 Jul 2020 18:29:17 +0200 Message-Id: <20200701162928.1638874-3-megous@megous.com> In-Reply-To: <20200701162928.1638874-1-megous@megous.com> References: <20200701162928.1638874-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. Signed-off-by: Ondrej Jirman --- .../display/panel/rocktech,jh057n00900.txt | 23 ------- .../display/panel/rocktech,jh057n00900.yaml | 66 +++++++++++++++++++ 2 files changed, 66 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt create mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt deleted file mode 100644 index a372c5d84695..000000000000 --- a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt +++ /dev/null @@ -1,23 +0,0 @@ -Rocktech jh057n00900 5.5" 720x1440 TFT LCD panel - -Required properties: -- compatible: should be "rocktech,jh057n00900" -- reg: DSI virtual channel of the peripheral -- reset-gpios: panel reset gpio -- backlight: phandle of the backlight device attached to the panel -- vcc-supply: phandle of the regulator that provides the vcc supply voltage. -- iovcc-supply: phandle of the regulator that provides the iovcc supply - voltage. - -Example: - - &mipi_dsi { - panel@0 { - compatible = "rocktech,jh057n00900"; - reg = <0>; - backlight = <&backlight>; - reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; - vcc-supply = <®_2v8_p>; - iovcc-supply = <®_1v8_p>; - }; - }; diff --git a/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml new file mode 100644 index 000000000000..928ba42e7f8d --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/rocktech,jh057n00900.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rocktech JH057N00900 5.5" 720x1440 TFT LCD panel + +maintainers: + - Ondrej Jirman + +description: | + Rocktech JH057N00900 is a 720x1440 TFT LCD panel + connected using a MIPI-DSI video interface. + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: rocktech,jh057n00900 + + reg: + maxItems: 1 + description: DSI virtual channel + + vcc-supply: + description: Panel power supply + + iovcc-supply: + description: I/O voltage supply + + reset-gpios: + description: GPIO used for the reset pin + maxItems: 1 + + 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: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + panel@0 { + compatible = "rocktech,jh057n00900"; + reg = <0>; + vcc-supply = <®_2v8_p>; + iovcc-supply = <®_1v8_p>; + reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>; + backlight = <&backlight>; + }; + }; +... -- 2.27.0