2020-02-06 13:38:49

by Benjamin GAIGNARD

[permalink] [raw]
Subject: [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema

Convert raydium,rm68200 to json-schema.

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

diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
deleted file mode 100644
index cbb79ef3bfc9..000000000000
--- a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-Raydium Semiconductor Corporation RM68200 5.5" 720p MIPI-DSI TFT LCD panel
-
-The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD
-panel connected using a MIPI-DSI video interface.
-
-Required properties:
- - compatible: "raydium,rm68200"
- - 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.
- - backlight: phandle of the backlight device attached to the panel.
-
-Example:
-&dsi {
- ...
- panel@0 {
- compatible = "raydium,rm68200";
- reg = <0>;
- reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
- power-supply = <&v1v8>;
- backlight = <&pwm_backlight>;
- };
-};
diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml
new file mode 100644
index 000000000000..09149f140d5f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/raydium,rm68200.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Raydium Semiconductor Corporation RM68200 5.5" 720p MIPI-DSI TFT LCD panel
+
+maintainers:
+ - Philippe CORNU <[email protected]>
+
+description: |
+ The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD
+ panel connected using a MIPI-DSI video interface.
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+
+ compatible:
+ const: raydium,rm68200
+
+ reg:
+ maxItems: 1
+ description: DSI virtual channel
+
+ backlight: true
+ enable-gpios: true
+ port: true
+ power-supply: true
+
+ reset-gpios:
+ maxItems: 1
+
+additionalProperties: false
+
+required:
+ - compatible
+ - power-supply
+ - reg
+
+examples:
+ - |
+ dsi@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ panel@0 {
+ compatible = "raydium,rm68200";
+ reg = <0>;
+ reset-gpios = <&gpiof 15 0>;
+ power-supply = <&v1v8>;
+ backlight = <&pwm_backlight>;
+ };
+ };
+...
--
2.15.0


2020-02-06 22:03:50

by Rob Herring

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

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

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

2020-02-07 09:36:54

by Philippe Cornu

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

Hi Benjamin,

On 2/6/20 2:33 PM, Benjamin Gaignard wrote:
> Convert raydium,rm68200 to json-schema.
>
> Signed-off-by: Benjamin Gaignard <[email protected]>
> ---
> .../bindings/display/panel/raydium,rm68200.txt | 25 ----------
> .../bindings/display/panel/raydium,rm68200.yaml | 56 ++++++++++++++++++++++
> 2 files changed, 56 insertions(+), 25 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
> create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml
>
> diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
> deleted file mode 100644
> index cbb79ef3bfc9..000000000000
> --- a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
> +++ /dev/null
> @@ -1,25 +0,0 @@
> -Raydium Semiconductor Corporation RM68200 5.5" 720p MIPI-DSI TFT LCD panel
> -
> -The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD
> -panel connected using a MIPI-DSI video interface.
> -
> -Required properties:
> - - compatible: "raydium,rm68200"
> - - 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.
> - - backlight: phandle of the backlight device attached to the panel.
> -
> -Example:
> -&dsi {
> - ...
> - panel@0 {
> - compatible = "raydium,rm68200";
> - reg = <0>;
> - reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
> - power-supply = <&v1v8>;
> - backlight = <&pwm_backlight>;
> - };
> -};
> diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml
> new file mode 100644
> index 000000000000..09149f140d5f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml
> @@ -0,0 +1,56 @@
> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/panel/raydium,rm68200.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Raydium Semiconductor Corporation RM68200 5.5" 720p MIPI-DSI TFT LCD panel
> +
> +maintainers:
> + - Philippe CORNU <[email protected]>
> +
> +description: |
> + The Raydium Semiconductor Corporation RM68200 is a 5.5" 720x1280 TFT LCD
> + panel connected using a MIPI-DSI video interface.
> +
> +allOf:
> + - $ref: panel-common.yaml#
> +
> +properties:
> +
> + compatible:
> + const: raydium,rm68200
> +
> + reg:
> + maxItems: 1
> + description: DSI virtual channel
> +
> + backlight: true
> + enable-gpios: true
> + port: true
> + power-supply: true
> +
> + reset-gpios:
> + maxItems: 1
> +
> +additionalProperties: false
> +
> +required:
> + - compatible
> + - power-supply
> + - reg
> +
> +examples:
> + - |
> + dsi@0 {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + panel@0 {
> + compatible = "raydium,rm68200";
> + reg = <0>;
> + reset-gpios = <&gpiof 15 0>;
> + power-supply = <&v1v8>;
> + backlight = <&pwm_backlight>;
> + };
> + };
> +...
>

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