linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] dt-bindings: add simple DSI panels
@ 2020-02-06 13:33 Benjamin Gaignard
  2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Benjamin Gaignard @ 2020-02-06 13:33 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu
  Cc: dri-devel, devicetree, linux-kernel, Benjamin Gaignard

To complement panel-simple.yaml, create panel-simple-dsi.yaml.
panel-simple-dsi-yaml are for all simple DSP panels with a single
power-supply and optional backlight / enable GPIO / reset GPIO.

Some DSI panels like orisetech,otm8009a or raydium,rm68200 are quite
similar to simple dsi panel but with small variations. Create dedicated
yaml files for them.

Benjamin Gaignard (2):
  dt-bindings: panel: Convert raydium,rm68200 to json-schema
  dt-bindings: panel: Convert orisetech,otm8009a to json-schema

Sam Ravnborg (1):
  dt-bindings: one file of all simple DSI panels

 .../bindings/display/panel/orisetech,otm8009a.txt  | 23 --------
 .../bindings/display/panel/orisetech,otm8009a.yaml | 53 +++++++++++++++++
 .../display/panel/panasonic,vvx10f034n00.txt       | 20 -------
 .../bindings/display/panel/panel-simple-dsi.yaml   | 67 ++++++++++++++++++++++
 .../bindings/display/panel/raydium,rm68200.txt     | 25 --------
 .../bindings/display/panel/raydium,rm68200.yaml    | 56 ++++++++++++++++++
 6 files changed, 176 insertions(+), 68 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/orisetech,otm8009a.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm68200.yaml

-- 
2.15.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH v4 1/3] dt-bindings: one file of all simple DSI panels
  2020-02-06 13:33 [PATCH v4 0/3] dt-bindings: add simple DSI panels Benjamin Gaignard
@ 2020-02-06 13:33 ` Benjamin Gaignard
  2020-02-06 22:00   ` Rob Herring
  2020-02-07  9:39   ` Philippe CORNU
  2020-02-06 13:33 ` [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema Benjamin Gaignard
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 11+ messages in thread
From: Benjamin Gaignard @ 2020-02-06 13:33 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu
  Cc: dri-devel, devicetree, linux-kernel, Benjamin Gaignard,
	Rob Herring, Maxime Ripard, Yannick Fertre

From: Sam Ravnborg <sam@ravnborg.org>

To complement panel-simple.yaml, create panel-simple-dsi.yaml.
panel-simple-dsi-yaml are for all simple DSP panels with a single
power-supply and optional backlight / enable GPIO.

Migrate panasonic,vvx10f034n00 over to the new file.

The objectives with one file for all the simple DSI panels are:
    - Make it simpler to add bindings for simple DSI panels
    - Keep the number of bindings file lower
    - Keep the binding documentation for simple DSI panels more consistent

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Yannick Fertre <yannick.fertre@st.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: devicetree@vger.kernel.org
---
version 4:
- remove orisetech,otm8009a and raydium,rm68200 compatibles
- remove reset-gpios optional property

version 3:
- add orisetech,otm8009a and raydium,rm68200 compatibles
- add reset-gpios optional property
- fix indentation on compatible enumeration

 .../display/panel/panasonic,vvx10f034n00.txt       | 20 -------
 .../bindings/display/panel/panel-simple-dsi.yaml   | 67 ++++++++++++++++++++++
 2 files changed, 67 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml

diff --git a/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt b/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
deleted file mode 100644
index 37dedf6a6702..000000000000
--- a/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-Panasonic 10" WUXGA TFT LCD panel
-
-Required properties:
-- compatible: should be "panasonic,vvx10f034n00"
-- reg: DSI virtual channel of the peripheral
-- power-supply: phandle of the regulator that provides the supply voltage
-
-Optional properties:
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	mdss_dsi@fd922800 {
-		panel@0 {
-			compatible = "panasonic,vvx10f034n00";
-			reg = <0>;
-			power-supply = <&vreg_vsp>;
-			backlight = <&lp8566_wled>;
-		};
-	};
diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
new file mode 100644
index 000000000000..8b60368a2425
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/panel-simple-dsi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Simple DSI panels with a single power-supply
+
+maintainers:
+  - Thierry Reding <thierry.reding@gmail.com>
+  - Sam Ravnborg <sam@ravnborg.org>
+
+description: |
+  This binding file is a collection of the DSI panels that
+  requires only a single power-supply.
+  There are optionally a backlight and an enable GPIO.
+  The panel may use an OF graph binding for the association to the display,
+  or it may be a direct child node of the display.
+
+  If the panel is more advanced a dedicated binding file is required.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+
+  compatible:
+    enum:
+      # compatible must be listed in alphabetical order, ordered by compatible.
+      # The description in the comment is mandatory for each compatible.
+
+        # Panasonic 10" WUXGA TFT LCD panel
+      - panasonic,vvx10f034n00
+
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  backlight: true
+  enable-gpios: true
+  port: true
+  power-supply: true
+
+additionalProperties: false
+
+required:
+  - compatible
+  - power-supply
+  - reg
+
+examples:
+  - |
+    mdss_dsi@fd922800 {
+      #address-cells = <1>;
+      #size-cells = <0>;
+      panel@0 {
+        compatible = "panasonic,vvx10f034n00";
+        reg = <0>;
+        power-supply = <&vcc_lcd_reg>;
+
+        port {
+          panel: endpoint {
+            remote-endpoint = <&ltdc_out>;
+          };
+        };
+      };
+    };
-- 
2.15.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema
  2020-02-06 13:33 [PATCH v4 0/3] dt-bindings: add simple DSI panels Benjamin Gaignard
  2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
@ 2020-02-06 13:33 ` Benjamin Gaignard
  2020-02-06 22:02   ` Rob Herring
  2020-02-07  9:35   ` Philippe CORNU
  2020-02-06 13:33 ` [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a " Benjamin Gaignard
  2020-02-09  8:20 ` [PATCH v4 0/3] dt-bindings: add simple DSI panels Sam Ravnborg
  3 siblings, 2 replies; 11+ messages in thread
From: Benjamin Gaignard @ 2020-02-06 13:33 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu
  Cc: dri-devel, devicetree, linux-kernel, Benjamin Gaignard

Convert raydium,rm68200 to json-schema.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
 .../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 <philippe.cornu@st.com>
+
+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


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema
  2020-02-06 13:33 [PATCH v4 0/3] dt-bindings: add simple DSI panels Benjamin Gaignard
  2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
  2020-02-06 13:33 ` [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema Benjamin Gaignard
@ 2020-02-06 13:33 ` Benjamin Gaignard
  2020-02-06 22:02   ` Rob Herring
  2020-02-07  9:34   ` Philippe CORNU
  2020-02-09  8:20 ` [PATCH v4 0/3] dt-bindings: add simple DSI panels Sam Ravnborg
  3 siblings, 2 replies; 11+ messages in thread
From: Benjamin Gaignard @ 2020-02-06 13:33 UTC (permalink / raw)
  To: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu
  Cc: dri-devel, devicetree, linux-kernel, Benjamin Gaignard

Convert orisetech,otm8009a to json-schema.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
 .../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 <philippe.cornu@st.com>
+
+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


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 1/3] dt-bindings: one file of all simple DSI panels
  2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
@ 2020-02-06 22:00   ` Rob Herring
  2020-02-07  9:39   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2020-02-06 22:00 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu, dri-devel, devicetree, linux-kernel,
	Benjamin Gaignard, Yannick Fertre

On Thu, 6 Feb 2020 14:33:42 +0100, Benjamin Gaignard wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
> 
> To complement panel-simple.yaml, create panel-simple-dsi.yaml.
> panel-simple-dsi-yaml are for all simple DSP panels with a single
> power-supply and optional backlight / enable GPIO.
> 
> Migrate panasonic,vvx10f034n00 over to the new file.
> 
> The objectives with one file for all the simple DSI panels are:
>     - Make it simpler to add bindings for simple DSI panels
>     - Keep the number of bindings file lower
>     - Keep the binding documentation for simple DSI panels more consistent
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Yannick Fertre <yannick.fertre@st.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Cc: dri-devel@lists.freedesktop.org
> Cc: devicetree@vger.kernel.org
> ---
> version 4:
> - remove orisetech,otm8009a and raydium,rm68200 compatibles
> - remove reset-gpios optional property
> 
> version 3:
> - add orisetech,otm8009a and raydium,rm68200 compatibles
> - add reset-gpios optional property
> - fix indentation on compatible enumeration
> 
>  .../display/panel/panasonic,vvx10f034n00.txt       | 20 -------
>  .../bindings/display/panel/panel-simple-dsi.yaml   | 67 ++++++++++++++++++++++
>  2 files changed, 67 insertions(+), 20 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
>  create mode 100644 Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema
  2020-02-06 13:33 ` [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema Benjamin Gaignard
@ 2020-02-06 22:02   ` Rob Herring
  2020-02-07  9:35   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2020-02-06 22:02 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu, dri-devel, devicetree, linux-kernel,
	Benjamin Gaignard

On Thu, 6 Feb 2020 14:33:43 +0100, Benjamin Gaignard wrote:
> Convert raydium,rm68200 to json-schema.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>  .../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 <robh@kernel.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema
  2020-02-06 13:33 ` [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a " Benjamin Gaignard
@ 2020-02-06 22:02   ` Rob Herring
  2020-02-07  9:34   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2020-02-06 22:02 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: thierry.reding, sam, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu, dri-devel, devicetree, linux-kernel,
	Benjamin Gaignard

On Thu, 6 Feb 2020 14:33:44 +0100, Benjamin Gaignard wrote:
> Convert orisetech,otm8009a to json-schema.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>  .../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 <robh@kernel.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a to json-schema
  2020-02-06 13:33 ` [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a " Benjamin Gaignard
  2020-02-06 22:02   ` Rob Herring
@ 2020-02-07  9:34   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Philippe CORNU @ 2020-02-07  9:34 UTC (permalink / raw)
  To: Benjamin GAIGNARD, thierry.reding, sam, airlied, daniel, robh+dt,
	mark.rutland
  Cc: dri-devel, devicetree, linux-kernel

Hi Benjamin,

On 2/6/20 2:33 PM, Benjamin Gaignard wrote:
> Convert orisetech,otm8009a to json-schema.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>   .../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 <philippe.cornu@st.com>
> +
> +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 <philippe.cornu@st.com>
Thank you
Philippe :-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema
  2020-02-06 13:33 ` [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema Benjamin Gaignard
  2020-02-06 22:02   ` Rob Herring
@ 2020-02-07  9:35   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Philippe CORNU @ 2020-02-07  9:35 UTC (permalink / raw)
  To: Benjamin GAIGNARD, thierry.reding, sam, airlied, daniel, robh+dt,
	mark.rutland
  Cc: dri-devel, devicetree, linux-kernel

Hi Benjamin,

On 2/6/20 2:33 PM, Benjamin Gaignard wrote:
> Convert raydium,rm68200 to json-schema.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>   .../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 <philippe.cornu@st.com>
> +
> +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 <philippe.cornu@st.com>
Thank you
Philippe :-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 1/3] dt-bindings: one file of all simple DSI panels
  2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
  2020-02-06 22:00   ` Rob Herring
@ 2020-02-07  9:39   ` Philippe CORNU
  1 sibling, 0 replies; 11+ messages in thread
From: Philippe CORNU @ 2020-02-07  9:39 UTC (permalink / raw)
  To: Benjamin GAIGNARD, thierry.reding, sam, airlied, daniel, robh+dt,
	mark.rutland
  Cc: dri-devel, devicetree, linux-kernel, Rob Herring, Maxime Ripard,
	Yannick FERTRE

Hi Benjamin,
and many thanks for this serie.
Regarding this patch:

Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Philippe :-)

On 2/6/20 2:33 PM, Benjamin Gaignard wrote:
> From: Sam Ravnborg <sam@ravnborg.org>
> 
> To complement panel-simple.yaml, create panel-simple-dsi.yaml.
> panel-simple-dsi-yaml are for all simple DSP panels with a single
> power-supply and optional backlight / enable GPIO.
> 
> Migrate panasonic,vvx10f034n00 over to the new file.
> 
> The objectives with one file for all the simple DSI panels are:
>      - Make it simpler to add bindings for simple DSI panels
>      - Keep the number of bindings file lower
>      - Keep the binding documentation for simple DSI panels more consistent
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Rob Herring <robh@kernel.org>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Yannick Fertre <yannick.fertre@st.com>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Cc: dri-devel@lists.freedesktop.org
> Cc: devicetree@vger.kernel.org
> ---
> version 4:
> - remove orisetech,otm8009a and raydium,rm68200 compatibles
> - remove reset-gpios optional property
> 
> version 3:
> - add orisetech,otm8009a and raydium,rm68200 compatibles
> - add reset-gpios optional property
> - fix indentation on compatible enumeration
> 
>   .../display/panel/panasonic,vvx10f034n00.txt       | 20 -------
>   .../bindings/display/panel/panel-simple-dsi.yaml   | 67 ++++++++++++++++++++++
>   2 files changed, 67 insertions(+), 20 deletions(-)
>   delete mode 100644 Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
>   create mode 100644 Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
> 
> diff --git a/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt b/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
> deleted file mode 100644
> index 37dedf6a6702..000000000000
> --- a/Documentation/devicetree/bindings/display/panel/panasonic,vvx10f034n00.txt
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -Panasonic 10" WUXGA TFT LCD panel
> -
> -Required properties:
> -- compatible: should be "panasonic,vvx10f034n00"
> -- reg: DSI virtual channel of the peripheral
> -- power-supply: phandle of the regulator that provides the supply voltage
> -
> -Optional properties:
> -- backlight: phandle of the backlight device attached to the panel
> -
> -Example:
> -
> -	mdss_dsi@fd922800 {
> -		panel@0 {
> -			compatible = "panasonic,vvx10f034n00";
> -			reg = <0>;
> -			power-supply = <&vreg_vsp>;
> -			backlight = <&lp8566_wled>;
> -		};
> -	};
> diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
> new file mode 100644
> index 000000000000..8b60368a2425
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml
> @@ -0,0 +1,67 @@
> +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/display/panel/panel-simple-dsi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Simple DSI panels with a single power-supply
> +
> +maintainers:
> +  - Thierry Reding <thierry.reding@gmail.com>
> +  - Sam Ravnborg <sam@ravnborg.org>
> +
> +description: |
> +  This binding file is a collection of the DSI panels that
> +  requires only a single power-supply.
> +  There are optionally a backlight and an enable GPIO.
> +  The panel may use an OF graph binding for the association to the display,
> +  or it may be a direct child node of the display.
> +
> +  If the panel is more advanced a dedicated binding file is required.
> +
> +allOf:
> +  - $ref: panel-common.yaml#
> +
> +properties:
> +
> +  compatible:
> +    enum:
> +      # compatible must be listed in alphabetical order, ordered by compatible.
> +      # The description in the comment is mandatory for each compatible.
> +
> +        # Panasonic 10" WUXGA TFT LCD panel
> +      - panasonic,vvx10f034n00
> +
> +  reg:
> +    maxItems: 1
> +    description: DSI virtual channel
> +
> +  backlight: true
> +  enable-gpios: true
> +  port: true
> +  power-supply: true
> +
> +additionalProperties: false
> +
> +required:
> +  - compatible
> +  - power-supply
> +  - reg
> +
> +examples:
> +  - |
> +    mdss_dsi@fd922800 {
> +      #address-cells = <1>;
> +      #size-cells = <0>;
> +      panel@0 {
> +        compatible = "panasonic,vvx10f034n00";
> +        reg = <0>;
> +        power-supply = <&vcc_lcd_reg>;
> +
> +        port {
> +          panel: endpoint {
> +            remote-endpoint = <&ltdc_out>;
> +          };
> +        };
> +      };
> +    };
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v4 0/3] dt-bindings: add simple DSI panels
  2020-02-06 13:33 [PATCH v4 0/3] dt-bindings: add simple DSI panels Benjamin Gaignard
                   ` (2 preceding siblings ...)
  2020-02-06 13:33 ` [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a " Benjamin Gaignard
@ 2020-02-09  8:20 ` Sam Ravnborg
  3 siblings, 0 replies; 11+ messages in thread
From: Sam Ravnborg @ 2020-02-09  8:20 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: thierry.reding, airlied, daniel, robh+dt, mark.rutland,
	philippe.cornu, dri-devel, devicetree, linux-kernel

Hi Benjamin.

On Thu, Feb 06, 2020 at 02:33:41PM +0100, Benjamin Gaignard wrote:
> To complement panel-simple.yaml, create panel-simple-dsi.yaml.
> panel-simple-dsi-yaml are for all simple DSP panels with a single
> power-supply and optional backlight / enable GPIO / reset GPIO.
> 
> Some DSI panels like orisetech,otm8009a or raydium,rm68200 are quite
> similar to simple dsi panel but with small variations. Create dedicated
> yaml files for them.
> 
> Benjamin Gaignard (2):
>   dt-bindings: panel: Convert raydium,rm68200 to json-schema
>   dt-bindings: panel: Convert orisetech,otm8009a to json-schema
> 
> Sam Ravnborg (1):
>   dt-bindings: one file of all simple DSI panels

Thanks for picking this up.
Applied and pushed to drm-misc-next.

	Sam

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-02-09  8:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06 13:33 [PATCH v4 0/3] dt-bindings: add simple DSI panels Benjamin Gaignard
2020-02-06 13:33 ` [PATCH v4 1/3] dt-bindings: one file of all " Benjamin Gaignard
2020-02-06 22:00   ` Rob Herring
2020-02-07  9:39   ` Philippe CORNU
2020-02-06 13:33 ` [PATCH v4 2/3] dt-bindings: panel: Convert raydium,rm68200 to json-schema Benjamin Gaignard
2020-02-06 22:02   ` Rob Herring
2020-02-07  9:35   ` Philippe CORNU
2020-02-06 13:33 ` [PATCH v4 3/3] dt-bindings: panel: Convert orisetech,otm8009a " Benjamin Gaignard
2020-02-06 22:02   ` Rob Herring
2020-02-07  9:34   ` Philippe CORNU
2020-02-09  8:20 ` [PATCH v4 0/3] dt-bindings: add simple DSI panels Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).