2020-02-06 13:38:16

by Benjamin GAIGNARD

[permalink] [raw]
Subject: [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema

Convert orisetech,otm8009a to json-schema.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
.../bindings/display/panel/orisetech,otm8009a.txt | 23 ----------
.../bindings/display/panel/orisetech,otm8009a.yaml | 53 ++++++++++++++++++++++
2 files changed, 53 insertions(+), 23 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
create mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml

diff --git a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
deleted file mode 100644
index 203b03eefb68..000000000000
--- a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Orise Tech OTM8009A 3.97" 480x800 TFT LCD panel (MIPI-DSI video mode)
-
-The Orise Tech OTM8009A is a 3.97" 480x800 TFT LCD panel connected using
-a MIPI-DSI video interface. Its backlight is managed through the DSI link.
-
-Required properties:
- - compatible: "orisetech,otm8009a"
- - reg: the virtual channel number of a DSI peripheral
-
-Optional properties:
- - reset-gpios: a GPIO spec for the reset pin (active low).
- - power-supply: phandle of the regulator that provides the supply voltage.
-
-Example:
-&dsi {
- ...
- panel@0 {
- compatible = "orisetech,otm8009a";
- reg = <0>;
- reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
- power-supply = <&v1v8>;
- };
-};
diff --git a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
new file mode 100644
index 000000000000..6e6ac995c27b
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/orisetech,otm8009a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Orise Tech OTM8009A 3.97" 480x800 TFT LCD panel (MIPI-DSI video mode)
+
+maintainers:
+ - Philippe CORNU <[email protected]>
+
+description: |
+ The Orise Tech OTM8009A is a 3.97" 480x800 TFT LCD panel connected using
+ a MIPI-DSI video interface. Its backlight is managed through the DSI link.
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+
+ compatible:
+ const: orisetech,otm8009a
+
+ reg:
+ maxItems: 1
+ description: DSI virtual channel
+
+ enable-gpios: true
+ port: true
+ power-supply: true
+
+ reset-gpios:
+ maxItems: 1
+
+additionalProperties: false
+
+required:
+ - compatible
+ - reg
+
+examples:
+ - |
+ dsi@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ panel@0 {
+ compatible = "orisetech,otm8009a";
+ reg = <0>;
+ reset-gpios = <&gpiof 15 0>;
+ power-supply = <&v1v8>;
+ };
+ };
+...
+
--
2.15.0


2020-02-06 22:05:08

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema

On Thu, 6 Feb 2020 14:33:44 +0100, Benjamin Gaignard wrote:
> Convert orisetech,otm8009a to json-schema.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> .../bindings/display/panel/orisetech,otm8009a.txt | 23 ----------
> .../bindings/display/panel/orisetech,otm8009a.yaml | 53 ++++++++++++++++++++++
> 2 files changed, 53 insertions(+), 23 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
>

Reviewed-by: Rob Herring <[email protected]>

2020-02-07 09:36:23

by Philippe Cornu

[permalink] [raw]
Subject: Re: [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema

Hi Benjamin,

On 2/6/20 2:33 PM, Benjamin Gaignard wrote:
> Convert orisetech,otm8009a to json-schema.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> .../bindings/display/panel/orisetech,otm8009a.txt | 23 ----------
> .../bindings/display/panel/orisetech,otm8009a.yaml | 53 ++++++++++++++++++++++
> 2 files changed, 53 insertions(+), 23 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
> deleted file mode 100644
> index 203b03eefb68..000000000000
> --- a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
> +++ /dev/null
> @@ -1,23 +0,0 @@
> -Orise Tech OTM8009A 3.97" 480x800 TFT LCD panel (MIPI-DSI video mode)
> -
> -The Orise Tech OTM8009A is a 3.97" 480x800 TFT LCD panel connected using
> -a MIPI-DSI video interface. Its backlight is managed through the DSI link.
> -
> -Required properties:
> - - compatible: "orisetech,otm8009a"
> - - reg: the virtual channel number of a DSI peripheral
> -
> -Optional properties:
> - - reset-gpios: a GPIO spec for the reset pin (active low).
> - - power-supply: phandle of the regulator that provides the supply voltage.
> -
> -Example:
> -&dsi {
> - ...
> - panel@0 {
> - compatible = "orisetech,otm8009a";
> - reg = <0>;
> - reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
> - power-supply = <&v1v8>;
> - };
> -};
> diff --git a/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
> new file mode 100644
> index 000000000000..6e6ac995c27b
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
> @@ -0,0 +1,53 @@
> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/panel/orisetech,otm8009a.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Orise Tech OTM8009A 3.97" 480x800 TFT LCD panel (MIPI-DSI video mode)
> +
> +maintainers:
> + - Philippe CORNU <[email protected]>
> +
> +description: |
> + The Orise Tech OTM8009A is a 3.97" 480x800 TFT LCD panel connected using
> + a MIPI-DSI video interface. Its backlight is managed through the DSI link.
> +allOf:
> + - $ref: panel-common.yaml#
> +
> +properties:
> +
> + compatible:
> + const: orisetech,otm8009a
> +
> + reg:
> + maxItems: 1
> + description: DSI virtual channel
> +
> + enable-gpios: true
> + port: true
> + power-supply: true
> +
> + reset-gpios:
> + maxItems: 1
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - reg
> +
> +examples:
> + - |
> + dsi@0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + panel@0 {
> + compatible = "orisetech,otm8009a";
> + reg = <0>;
> + reset-gpios = <&gpiof 15 0>;
> + power-supply = <&v1v8>;
> + };
> + };
> +...
> +
>

Reviewed-by: Philippe Cornu <[email protected]>
Thank you
Philippe :-)