Skip to contentSkip to conversation

dt-bindings: display: convert remaning panel bindings to DT Schema

PATCH Superseded Sam Ravnborg 14 participants 86 messages Mar 15, 2020 – Mar 31, 2020

Subsystems (12)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover dt-bindings: display: convert remaning panel bindings to DT Schema

Convert remaining(*) panel bindings to DT Schema.

To prepare for the migration a few preparations
patches was required:

- te-gpios is now added to panel-common - as this
property is used by a few bindings.

- The slave part of spi-controller.yaml was migrated to a new file spi-slave.yaml.
This was done so spi slaves in panel/ could include this file rather than duplicate property names. => Please review this carefully!

The original author of the panel bindings are listed as maintainer in the DT Schema. In the few cases the panel binding was also listed in MAINTAINERS I checked that there was a match. It was done manually so I may have missed someone.

All bindings pass dt_binding_check with no warnings.

- "dt-bindings: display: convert ilitek,ili9322 to DT" The .txt file listed some constrains that I did not manage to capture in the DT Schema.
And some properties looks like that could be dropped. => Please take a closer look.

- "dt-bindings: display: convert sharp,lq101r1sx01 to DT Schema" The .txt file describes some constrains, as some properties are mandatory for the main challen, but not allowed for the secondary channel.
These constraints are not matched in the DT Schema. => Any hints how to do this would be appreciated.

Patches made on top of drm-misc-next as of today with no other patches.

(*) Two .txt files reamins:
- display-timing.txt, points to display-timings.yaml
- panel-dsi-cm.txt, conversion is included in another patch-set

Sam

Sam Ravnborg (36):
dt-bindings: display: add te-gpios to panel-common
dt-bindings: spi: support non-spi bindings as SPI slaves
dt-bindings: display: convert samsung,s6e63m0 to DT Schema
dt-bindings: display: convert arm,versatile-tft-panel to DT Schema
dt-bindings: display: convert boe,himax8279d to DT Schema
dt-bindings: display: convert ilitek,ili9322 to DT Schema
dt-bindings: display: convert ilitek,ili9881c to DT Schema
dt-bindings: display: convert feiyang,fy07024di26a30d to DT Schema
dt-bindings: display: convert innolux,p079zca to DT Schema
dt-bindings: display: convert innolux,p097pfg to DT Schema
dt-bindings: display: convert innolux,p120zdg-bf1 to DT Schema
dt-bindings: display: convert jdi,lt070me05000 to DT Schema
dt-bindings: display: convert kingdisplay,kd035g6-54nt to DT Schema
dt-bindings: display: convert kingdisplay,kd097d04 to DT Schema
dt-bindings: display: convert simple lg panels to DT Schema
dt-bindings: display: convert lg,lg4573 to DT Schema
dt-bindings: display: convert osddisplays,osd101t2587-53ts to DT Schema
dt-bindings: display: convert raydium,rm67191 to DT Schema
dt-bindings: display: convert rocktech,jh057n00900 to DT Schema
dt-bindings: display: convert samsung AMOLED to DT Schema
dt-bindings: display: convert samsung,s6d16d0 to DT Schema
dt-bindings: display: convert samsung,ld9040 to DT Schema
dt-bindings: display: convert samsung,s6e8aa0 to DT Schema
dt-bindings: display: convert toppoly panels to DT Schema
dt-bindings: display: convert startek,startek-kd050c to DT Schema
dt-bindings: display: convert sony,acx565akm to DT Schema
dt-bindings: display: convert sitronix,st7701 to DT Schema
dt-bindings: display: convert sitronix,st7789v to DT Schema
dt-bindings: display: drop unused simple-panel.txt
dt-bindings: display: convert sharp,ls043t1le01 to DT Schema
dt-bindings: display: convert sharp,lq101r1sx01 to DT Schema
dt-bindings: display: convert sharp,ls037v7dw01 to DT Schema
dt-bindings: display: convert sharp,lq150x1lg11 to DT Schema
dt-bindings: display: convert seiko,43wvf1g to DT Schema
dt-bindings: display: convert lgphilips,lb035q02 to DT Schema
dt-bindings: display: convert olimex,lcd-olinuxino to DT Schema

 .../display/panel/arm,versatile-tft-panel.txt      |  31 -------
 .../display/panel/arm,versatile-tft-panel.yaml     |  51 +++++++++++
 .../bindings/display/panel/boe,himax8279d.txt      |  24 -----
 .../bindings/display/panel/boe,himax8279d.yaml     |  59 ++++++++++++
 .../display/panel/feiyang,fy07024di26a30d.txt      |  20 -----
 .../display/panel/feiyang,fy07024di26a30d.yaml     |  56 ++++++++++++
 .../bindings/display/panel/ilitek,ili9322.txt      |  49 ----------
 .../bindings/display/panel/ilitek,ili9322.yaml     |  90 +++++++++++++++++++
 .../bindings/display/panel/ilitek,ili9881c.txt     |  20 -----
 .../bindings/display/panel/ilitek,ili9881c.yaml    |  50 +++++++++++
 .../bindings/display/panel/innolux,p079zca.txt     |  22 -----
 .../bindings/display/panel/innolux,p097pfg.txt     |  24 -----
 .../bindings/display/panel/innolux,p097pfg.yaml    |  56 ++++++++++++
 .../bindings/display/panel/innolux,p120zdg-bf1.txt |  22 -----
 .../display/panel/innolux,p120zdg-bf1.yaml         |  43 +++++++++
 .../bindings/display/panel/jdi,lt070me05000.txt    |  31 -------
 .../bindings/display/panel/jdi,lt070me05000.yaml   |  69 ++++++++++++++
 .../display/panel/kingdisplay,kd035g6-54nt.txt     |  42 ---------
 .../display/panel/kingdisplay,kd035g6-54nt.yaml    |  60 +++++++++++++
 .../display/panel/kingdisplay,kd097d04.txt         |  22 -----
 .../bindings/display/panel/lg,acx467akm-7.txt      |   7 --
 .../bindings/display/panel/lg,ld070wx3-sl01.txt    |   7 --
 .../bindings/display/panel/lg,lg4573.txt           |  19 ----
 .../bindings/display/panel/lg,lg4573.yaml          |  41 +++++++++
 .../bindings/display/panel/lg,lh500wx1-sd03.txt    |   7 --
 .../bindings/display/panel/lgphilips,lb035q02.txt  |  33 -------
 .../bindings/display/panel/lgphilips,lb035q02.yaml |  54 +++++++++++
 .../display/panel/olimex,lcd-olinuxino.txt         |  42 ---------
 .../display/panel/olimex,lcd-olinuxino.yaml        |  70 +++++++++++++++
 .../display/panel/osddisplays,osd101t2587-53ts.txt |  14 ---
 .../bindings/display/panel/panel-common.yaml       |   7 ++
 .../bindings/display/panel/panel-simple-dsi.yaml   |   2 +
 .../bindings/display/panel/panel-simple.yaml       |  10 +++
 .../bindings/display/panel/raydium,rm67191.txt     |  41 ---------
 .../bindings/display/panel/raydium,rm67191.yaml    |  75 ++++++++++++++++
 .../display/panel/rocktech,jh057n00900.txt         |  23 -----
 .../display/panel/rocktech,jh057n00900.yaml        |  57 ++++++++++++
 .../display/panel/samsung,amoled-mipi-dsi.yaml     |  65 ++++++++++++++
 .../bindings/display/panel/samsung,ld9040.txt      |  66 --------------
 .../bindings/display/panel/samsung,ld9040.yaml     | 100 +++++++++++++++++++++
 .../bindings/display/panel/samsung,s6d16d0.txt     |  30 -------
 .../bindings/display/panel/samsung,s6d16d0.yaml    |  56 ++++++++++++
 .../bindings/display/panel/samsung,s6e3ha2.txt     |  31 -------
 .../bindings/display/panel/samsung,s6e63j0x03.txt  |  24 -----
 .../bindings/display/panel/samsung,s6e63m0.txt     |  33 -------
 .../bindings/display/panel/samsung,s6e63m0.yaml    |  58 ++++++++++++
 .../bindings/display/panel/samsung,s6e8aa0.txt     |  56 ------------
 .../bindings/display/panel/samsung,s6e8aa0.yaml    |  96 ++++++++++++++++++++
 .../bindings/display/panel/seiko,43wvf1g.txt       |  23 -----
 .../bindings/display/panel/seiko,43wvf1g.yaml      |  49 ++++++++++
 .../bindings/display/panel/sharp,lq101r1sx01.txt   |  49 ----------
 .../bindings/display/panel/sharp,lq101r1sx01.yaml  |  78 ++++++++++++++++
 .../bindings/display/panel/sharp,lq150x1lg11.txt   |  36 --------
 .../bindings/display/panel/sharp,lq150x1lg11.yaml  |  58 ++++++++++++
 .../bindings/display/panel/sharp,ls037v7dw01.txt   |  43 ---------
 .../bindings/display/panel/sharp,ls037v7dw01.yaml  |  66 ++++++++++++++
 .../bindings/display/panel/sharp,ls043t1le01.txt   |  22 -----
 .../bindings/display/panel/sharp,ls043t1le01.yaml  |  51 +++++++++++
 .../bindings/display/panel/simple-panel.txt        |   1 -
 .../bindings/display/panel/sitronix,st7701.txt     |  30 -------
 .../bindings/display/panel/sitronix,st7701.yaml    |  68 ++++++++++++++
 .../bindings/display/panel/sitronix,st7789v.txt    |  37 --------
 .../bindings/display/panel/sitronix,st7789v.yaml   |  58 ++++++++++++
 .../bindings/display/panel/sony,acx565akm.txt      |  30 -------
 .../bindings/display/panel/sony,acx565akm.yaml     |  53 +++++++++++
 .../display/panel/startek,startek-kd050c.txt       |   4 -
 .../display/panel/startek,startek-kd050c.yaml      |  33 +++++++
 .../devicetree/bindings/display/panel/tpo,td.yaml  |  60 +++++++++++++
 .../bindings/display/panel/tpo,td028ttec1.txt      |  32 -------
 .../bindings/display/panel/tpo,td043mtea1.txt      |  33 -------
 .../devicetree/bindings/spi/spi-controller.yaml    |  63 +------------
 .../devicetree/bindings/spi/spi-slave.yaml         |  83 +++++++++++++++++
 72 files changed, 1885 insertions(+), 1140 deletions(-)
#1 lore raw

PATCH 1/36 dt-bindings: display: add te-gpios to panel-common

Several bindings specifies a "te-gpios" for tearing effect signal. Add this to panel-common so we have a shared definition.

Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../devicetree/bindings/display/panel/panel-common.yaml    | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-common.yaml +7 -0
index ed051ba12084..463bc06bd538 100644
@@ -124,6 +124,13 @@ properties:
       while active. Active high reset signals can be supported by inverting the
       GPIO specifier polarity flag.
 
+  te-gpios:
+    maxItems: 1
+    description:
+      GPIO spec for the tearing effect synchronization signal.
+      The tearing effect signal is active high. Active low signals can be
+      supported by inverting the GPIO specifier polarity flag.
+
   # Power
   power-supply:
     description:
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/36 dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties.

---
 .../bindings/spi/spi-controller.yaml          | 63 +-------------
 .../devicetree/bindings/spi/spi-slave.yaml    | 83 +++++++++++++++++++
 2 files changed, 86 insertions(+), 60 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-slave.yaml
Documentation/devicetree/bindings/spi/spi-controller.yaml +3 -60
index 1e0ca6ccf64b..99531c8d10dd 100644
@@ -67,71 +67,14 @@ patternProperties:
   "^.*@[0-9a-f]+$":
     type: object
 
+    allOf:
+      - $ref: spi-slave.yaml#
+
     properties:
       compatible:
         description:
           Compatible of the SPI device.
 
-      reg:
-        minimum: 0
-        maximum: 256
-        description:
-          Chip select used by the device.
-
-      spi-3wire:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires 3-wire mode.
-
-      spi-cpha:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires shifted clock phase (CPHA) mode.
-
-      spi-cpol:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires inverse clock polarity (CPOL) mode.
-
-      spi-cs-high:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the chip select active high.
-
-      spi-lsb-first:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the LSB first mode.
-
-      spi-max-frequency:
-        $ref: /schemas/types.yaml#/definitions/uint32
-        description:
-          Maximum SPI clocking speed of the device in Hz.
-
-      spi-rx-bus-width:
-        allOf:
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MISO.
-
-      spi-rx-delay-us:
-        description:
-          Delay, in microseconds, after a read transfer.
-
-      spi-tx-bus-width:
-        allOf:
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MOSI.
-
-      spi-tx-delay-us:
-        description:
-          Delay, in microseconds, after a write transfer.
-
     required:
       - compatible
       - reg
Documentation/devicetree/bindings/spi/spi-slave.yaml new file +83 -0

83 lines not on this page · raw message

Signature · 1 line
2.20.1
#13 lore raw

PATCH 3/36 dt-bindings: display: convert samsung, s6e63m0 to DT Schema

In reply to Sam Ravnborg

The binding for this panel is a SPI slave.
Reference spi-slave.yaml
to avoid duplicating all properties.

Cc Jonathan Bakker <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/samsung,s6e63m0.txt         | 33 -----------
 .../display/panel/samsung,s6e63m0.yaml        | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 33 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt deleted +0 -33
deleted file mode 100644
index 9fb9ebeef8e4..000000000000
@@ -1,33 +0,0 @@
-Samsung s6e63m0 AMOLED LCD panel
-
-Required properties:
-  - compatible: "samsung,s6e63m0"
-  - reset-gpios: GPIO spec for reset pin
-  - vdd3-supply: VDD regulator
-  - vci-supply: VCI regulator
-
-The panel must obey rules for SPI slave device specified in document [1].
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[2]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-		s6e63m0: display@0 {
-			compatible = "samsung,s6e63m0";
-			reg = <0>;
-			reset-gpio = <&mp05 5 1>;
-			vdd3-supply = <&ldo12_reg>;
-			vci-supply = <&ldo11_reg>;
-			spi-max-frequency = <1200000>;
-
-			port {
-				lcd_ep: endpoint {
-					remote-endpoint = <&fimd_ep>;
-				};
-			};
-		};
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.20.1
#15 lore raw

PATCH 4/36 dt-bindings: display: convert arm, versatile-tft-panel to DT Schema

In reply to Sam Ravnborg
Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/arm,versatile-tft-panel.txt | 31 -----------
 .../panel/arm,versatile-tft-panel.yaml        | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt deleted +0 -31
deleted file mode 100644
index 0601a9e34703..000000000000
@@ -1,31 +0,0 @@
-ARM Versatile TFT Panels
-
-These panels are connected to the daughterboards found on the
-ARM Versatile reference designs.
-
-This device node must appear as a child to a "syscon"-compatible
-node.
-
-Required properties:
-- compatible: should be "arm,versatile-tft-panel"
-
-Required subnodes:
-- port: see display/panel/panel-common.yaml, graph.txt
-
-
-Example:
-
-sysreg@0 {
-	compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
-	reg = <0x00000 0x1000>;
-
-	panel: display@0 {
-		compatible = "arm,versatile-tft-panel";
-
-		port {
-			panel_in: endpoint {
-				remote-endpoint = <&foo>;
-			};
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.20.1
#18 lore raw

PATCH 5/36 dt-bindings: display: convert boe, himax8279d to DT Schema

In reply to Sam Ravnborg
Cc Jerry Han <hanxu5-dyavHbARFqWrZjcNGxgArdPArS5jOdiE2SarAXORi/[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/boe,himax8279d.txt | 24 --------
 .../display/panel/boe,himax8279d.yaml         | 59 +++++++++++++++++++
 2 files changed, 59 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/boe,himax8279d.yaml
Documentation/devicetree/bindings/display/panel/boe,himax8279d.txt deleted +0 -24
deleted file mode 100644
index 3caea2172b1b..000000000000
@@ -1,24 +0,0 @@
-Boe Himax8279d 1200x1920 TFT LCD panel
-
-Required properties:
-- compatible: should be "boe,himax8279d8p" and one of: "boe,himax8279d10p"
-- reg: DSI virtual channel of the peripheral
-- enable-gpios: panel enable gpio
-- pp33-gpios: a GPIO phandle for the 3.3v pin that provides the supply voltage
-- pp18-gpios: a GPIO phandle for the 1.8v pin that provides the supply voltage
-
-Optional properties:
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	&mipi_dsi {
-		panel {
-			compatible = "boe,himax8279d8p", "boe,himax8279d10p";
-			reg = <0>;
-			backlight = <&backlight>;
-			enable-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
-			pp33-gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
-			pp18-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/boe,himax8279d.yaml new file +59 -0

59 lines not on this page · raw message

Signature · 1 line
2.20.1
#19 lore raw

PATCH 6/36 dt-bindings: display: convert ilitek, ili9322 to DT Schema

In reply to Sam Ravnborg

The .txt binding explains:

"
The following optional properties only apply to RGB and YUV input modes and
can be omitted for BT.656 input modes:
"

This constraint is not implmented in the DT Schema.

The original binding from the .txt file referenced properties that is included in panel-timing.yaml. These properties are kept here as we want as close to a 1:1 conversion as we can. If the properties should be dropped from the binding then this is a follow-up patch.

The properties in question are:
- pixelclk-active
- de-active
- hsync-active
- vsync-active

Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/ilitek,ili9322.txt | 49 ----------
 .../display/panel/ilitek,ili9322.yaml         | 90 +++++++++++++++++++
 2 files changed, 90 insertions(+), 49 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9322.txt deleted +0 -49
deleted file mode 100644
index 3d5ce6ad6ec7..000000000000
@@ -1,49 +0,0 @@
-Ilitek ILI9322 TFT panel driver with SPI control bus
-
-This is a driver for 320x240 TFT panels, accepting a variety of input
-streams that get adapted and scaled to the panel. The panel output has
-960 TFT source driver pins and 240 TFT gate driver pins, VCOM, VCOML and
-VCOMH outputs.
-
-Required properties:
-  - compatible: "dlink,dir-685-panel", "ilitek,ili9322"
-    (full system-specific compatible is always required to look up configuration)
-  - reg: address of the panel on the SPI bus
-
-Optional properties:
-  - vcc-supply: core voltage supply, see regulator/regulator.txt
-  - iovcc-supply: voltage supply for the interface input/output signals,
-    see regulator/regulator.txt
-  - vci-supply: voltage supply for analog parts, see regulator/regulator.txt
-  - reset-gpios: a GPIO spec for the reset pin, see gpio/gpio.txt
-
-  The following optional properties only apply to RGB and YUV input modes and
-  can be omitted for BT.656 input modes:
-
-  - pixelclk-active: see display/panel/display-timing.txt
-  - de-active: see display/panel/display-timing.txt
-  - hsync-active: see display/panel/display-timing.txt
-  - vsync-active: see display/panel/display-timing.txt
-
-The panel must obey the rules for a SPI slave device as specified in
-spi/spi-bus.txt
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in
-media/video-interfaces.txt. This node should describe panel's video bus.
-
-Example:
-
-panel: display@0 {
-	compatible = "dlink,dir-685-panel", "ilitek,ili9322";
-	reg = <0>;
-	vcc-supply = <&vdisp>;
-	iovcc-supply = <&vdisp>;
-	vci-supply = <&vdisp>;
-
-	port {
-		panel_in: endpoint {
-			remote-endpoint = <&display_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml new file +90 -0

90 lines not on this page · raw message

Signature · 1 line
2.20.1
#22 lore raw

PATCH 7/36 dt-bindings: display: convert ilitek, ili9881c to DT Schema

In reply to Sam Ravnborg
Cc Maxime Ripard <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/ilitek,ili9881c.txt         | 20 --------
 .../display/panel/ilitek,ili9881c.yaml        | 50 +++++++++++++++++++
 2 files changed, 50 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml
Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt deleted +0 -20
deleted file mode 100644
index 4a041acb4e18..000000000000
@@ -1,20 +0,0 @@
-Ilitek ILI9881c based MIPI-DSI panels
-
-Required properties:
-  - compatible: must be "ilitek,ili9881c" and one of:
-    * "bananapi,lhr050h41"
-  - reg: DSI virtual channel used by that screen
-  - power-supply: phandle to the power regulator
-  - reset-gpios: a GPIO phandle for the reset pin
-
-Optional properties:
-  - backlight: phandle to the backlight used
-
-Example:
-panel@0 {
-	compatible = "bananapi,lhr050h41", "ilitek,ili9881c";
-	reg = <0>;
-	power-supply = <&reg_display>;
-	reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */
-	backlight = <&pwm_bl>;
-};
Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.20.1
#24 lore raw

PATCH 8/36 dt-bindings: display: convert feiyang, fy07024di26a30d to DT Schema

In reply to Sam Ravnborg
Cc Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/feiyang,fy07024di26a30d.txt | 20 -------
 .../panel/feiyang,fy07024di26a30d.yaml        | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml
Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.txt deleted +0 -20
deleted file mode 100644
index 82caa7b65ae8..000000000000
@@ -1,20 +0,0 @@
-Feiyang FY07024DI26A30-D 7" MIPI-DSI LCD Panel
-
-Required properties:
-- compatible: must be "feiyang,fy07024di26a30d"
-- reg: DSI virtual channel used by that screen
-- avdd-supply: analog regulator dc1 switch
-- dvdd-supply: 3v3 digital regulator
-- reset-gpios: a GPIO phandle for the reset pin
-
-Optional properties:
-- backlight: phandle for the backlight control.
-
-panel@0 {
-	compatible = "feiyang,fy07024di26a30d";
-	reg = <0>;
-	avdd-supply = <&reg_dc1sw>;
-	dvdd-supply = <&reg_dldo2>;
-	reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */
-	backlight = <&backlight>;
-};
Documentation/devicetree/bindings/display/panel/feiyang,fy07024di26a30d.yaml new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.20.1
#27 lore raw

PATCH 9/36 dt-bindings: display: convert innolux, p079zca to DT Schema

In reply to Sam Ravnborg

As the binding matches panel-simple, added the compatible to the panel-simple list.
With this change enable-gpios is now optional.

Cc Chris Zhong <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/innolux,p079zca.txt         | 22 -------------------
 .../bindings/display/panel/panel-simple.yaml  |  2 ++
 2 files changed, 2 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt
Documentation/devicetree/bindings/display/panel/innolux,p079zca.txt deleted +0 -22
deleted file mode 100644
index 3ab8c7412cf6..000000000000
@@ -1,22 +0,0 @@
-Innolux P079ZCA 7.85" 768x1024 TFT LCD panel
-
-Required properties:
-- compatible: should be "innolux,p079zca"
-- reg: DSI virtual channel of the peripheral
-- power-supply: phandle of the regulator that provides the supply voltage
-- enable-gpios: panel enable gpio
-
-Optional properties:
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	&mipi_dsi {
-		panel@0 {
-			compatible = "innolux,p079zca";
-			reg = <0>;
-			power-supply = <...>;
-			backlight = <&backlight>;
-			enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
index 393ffc6acbba..5088fe81d025 100644
@@ -143,6 +143,8 @@ properties:
       - innolux,n116bge
         # InnoLux 15.6" WXGA TFT LCD panel
       - innolux,n156bge-l21
+        # Innolux P079ZCA 7.85" 768x1024 TFT LCD panel
+      - innolux,p079zca
         # Innolux Corporation 7.0" WSVGA (1024x600) TFT LCD panel
       - innolux,zj070na-01p
         # Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
Signature · 1 line
2.20.1
#28 lore raw

PATCH 10/36 dt-bindings: display: convert innolux, p097pfg to DT Schema

In reply to Sam Ravnborg
Cc Lin Huang <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/innolux,p097pfg.txt         | 24 --------
 .../display/panel/innolux,p097pfg.yaml        | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 24 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml
Documentation/devicetree/bindings/display/panel/innolux,p097pfg.txt deleted +0 -24
deleted file mode 100644
index d1cab3a8f0fb..000000000000
@@ -1,24 +0,0 @@
-Innolux P097PFG 9.7" 1536x2048 TFT LCD panel
-
-Required properties:
-- compatible: should be "innolux,p097pfg"
-- reg: DSI virtual channel of the peripheral
-- avdd-supply: phandle of the regulator that provides positive voltage
-- avee-supply: phandle of the regulator that provides negative voltage
-- enable-gpios: panel enable gpio
-
-Optional properties:
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	&mipi_dsi {
-		panel@0 {
-			compatible = "innolux,p079zca";
-			reg = <0>;
-			avdd-supply = <...>;
-			avee-supply = <...>;
-			backlight = <&backlight>;
-			enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/innolux,p097pfg.yaml new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.20.1
#29 lore raw

PATCH 11/36 dt-bindings: display: convert innolux, p120zdg-bf1 to DT Schema

In reply to Sam Ravnborg
Cc Sandeep Panda <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/innolux,p120zdg-bf1.txt     | 22 ----------
 .../display/panel/innolux,p120zdg-bf1.yaml    | 43 +++++++++++++++++++
 2 files changed, 43 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.yaml
Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.txt deleted +0 -22
deleted file mode 100644
index 513f03466aba..000000000000
@@ -1,22 +0,0 @@
-Innolux P120ZDG-BF1 12.02 inch eDP 2K display panel
-
-This binding is compatible with the simple-panel binding, which is specified
-in simple-panel.txt in this directory.
-
-Required properties:
-- compatible: should be "innolux,p120zdg-bf1"
-- power-supply: regulator to provide the supply voltage
-
-Optional properties:
-- enable-gpios: GPIO pin to enable or disable the panel
-- backlight: phandle of the backlight device attached to the panel
-- no-hpd: If HPD isn't hooked up; add this property.
-
-Example:
-	panel_edp: panel-edp {
-		compatible = "innolux,p120zdg-bf1";
-		enable-gpios = <&msmgpio 31 GPIO_ACTIVE_LOW>;
-		power-supply = <&pm8916_l2>;
-		backlight = <&backlight>;
-		no-hpd;
-	};
Documentation/devicetree/bindings/display/panel/innolux,p120zdg-bf1.yaml new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
2.20.1
#31 lore raw

PATCH 12/36 dt-bindings: display: convert jdi, lt070me05000 to DT Schema

In reply to Sam Ravnborg
Cc Vinay Simha BN <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/jdi,lt070me05000.txt        | 31 ---------
 .../display/panel/jdi,lt070me05000.yaml       | 69 +++++++++++++++++++
 2 files changed, 69 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt deleted +0 -31
deleted file mode 100644
index 4989c91d505f..000000000000
@@ -1,31 +0,0 @@
-JDI model LT070ME05000 1200x1920 7" DSI Panel
-
-Required properties:
-- compatible: should be "jdi,lt070me05000"
-- vddp-supply: phandle of the regulator that provides the supply voltage
-  Power IC supply (3-5V)
-- iovcc-supply: phandle of the regulator that provides the supply voltage
-  IOVCC , power supply for LCM (1.8V)
-- enable-gpios: phandle of gpio for enable line
-  LED_EN, LED backlight enable, High active
-- reset-gpios: phandle of gpio for reset line
-  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
-  XRES, Reset, Low active
-- dcdc-en-gpios: phandle of the gpio for power ic line
-  Power IC supply enable, High active
-
-Example:
-
-	dsi0: qcom,mdss_dsi@4700000 {
-		panel@0 {
-			compatible = "jdi,lt070me05000";
-			reg = <0>;
-
-			vddp-supply = <&pm8921_l17>;
-			iovcc-supply = <&pm8921_lvs7>;
-
-			enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
-			reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
-			dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.20.1
#34 lore raw

PATCH 13/36 dt-bindings: display: convert kingdisplay, kd035g6-54nt to DT Schema

In reply to Sam Ravnborg
Cc Paul Cercueil <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../panel/kingdisplay,kd035g6-54nt.txt        | 42 -------------
 .../panel/kingdisplay,kd035g6-54nt.yaml       | 60 +++++++++++++++++++
 2 files changed, 60 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt deleted +0 -42
deleted file mode 100644
index fa9596082e44..000000000000
@@ -1,42 +0,0 @@
-King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
-
-Required properties:
-- compatible: should be "kingdisplay,kd035g6-54nt"
-- power-supply: See panel-common.txt
-- reset-gpios: See panel-common.txt
-
-Optional properties:
-- backlight: see panel-common.txt
-
-The generic bindings for the SPI slaves documented in [1] also apply.
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[2]: Documentation/devicetree/bindings/graph.txt
-
-Example:
-
-&spi {
-	panel@0 {
-		compatible = "kingdisplay,kd035g6-54nt";
-		reg = <0>;
-
-		spi-max-frequency = <3125000>;
-		spi-3wire;
-		spi-cs-high;
-
-		reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
-
-		backlight = <&backlight>;
-		power-supply = <&ldo6>;
-
-		port {
-			panel_input: endpoint {
-				remote-endpoint = <&panel_output>;
-			};
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
2.20.1
#36 lore raw

PATCH 14/36 dt-bindings: display: convert kingdisplay, kd097d04 to DT Schema

In reply to Sam Ravnborg

kingdisplay,kd097d04 matches the panel-simple-dsi binding. The only difference is that enable-gpios is now an optional property.

Cc Nickey Yang <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/kingdisplay,kd097d04.txt    | 22 -------------------
 .../display/panel/panel-simple-dsi.yaml       |  2 ++
 2 files changed, 2 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt
Documentation/devicetree/bindings/display/panel/kingdisplay,kd097d04.txt deleted +0 -22
deleted file mode 100644
index cfefff688614..000000000000
@@ -1,22 +0,0 @@
-Kingdisplay KD097D04 9.7" 1536x2048 TFT LCD panel
-
-Required properties:
-- compatible: should be "kingdisplay,kd097d04"
-- reg: DSI virtual channel of the peripheral
-- power-supply: phandle of the regulator that provides the supply voltage
-- enable-gpios: panel enable gpio
-
-Optional properties:
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	&mipi_dsi {
-		panel@0 {
-			compatible = "kingdisplay,kd097d04";
-			reg = <0>;
-			power-supply = <...>;
-			backlight = <&backlight>;
-			enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +2 -0
index b2e8742fd6af..949371db0a16 100644
@@ -29,6 +29,8 @@ properties:
       # compatible must be listed in alphabetical order, ordered by compatible.
       # The description in the comment is mandatory for each compatible.
 
+        # Kingdisplay KD097D04 9.7" 1536x2048 TFT LCD panel
+      - kingdisplay,kd097d04
         # Panasonic 10" WUXGA TFT LCD panel
       - panasonic,vvx10f034n00
 
Signature · 1 line
2.20.1
#37 lore raw

PATCH 15/36 dt-bindings: display: convert simple lg panels to DT Schema

In reply to Sam Ravnborg

Add the lg panels that matches the panel-simple binding to panel-simple.yaml

Cc Alexandre Courbot <[email protected]>
Cc Brian Masney <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../devicetree/bindings/display/panel/lg,acx467akm-7.txt   | 7 -------
 .../devicetree/bindings/display/panel/lg,ld070wx3-sl01.txt | 7 -------
 .../devicetree/bindings/display/panel/lg,lh500wx1-sd03.txt | 7 -------
 .../devicetree/bindings/display/panel/panel-simple.yaml    | 6 ++++++
 4 files changed, 6 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,acx467akm-7.txt
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,ld070wx3-sl01.txt
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lh500wx1-sd03.txt
Documentation/devicetree/bindings/display/panel/lg,acx467akm-7.txt deleted +0 -7
deleted file mode 100644
index fc1e1b325e49..000000000000
@@ -1,7 +0,0 @@
-LG ACX467AKM-7 4.95" 1080×1920 LCD Panel
-
-Required properties:
-- compatible: must be "lg,acx467akm-7"
-
-This binding is compatible with the simple-panel binding, which is specified
-in simple-panel.txt in this directory.
Documentation/devicetree/bindings/display/panel/lg,ld070wx3-sl01.txt deleted +0 -7
deleted file mode 100644
index 5e649cb9aa1a..000000000000
@@ -1,7 +0,0 @@
-LG Corporation 7" WXGA TFT LCD panel
-
-Required properties:
-- compatible: should be "lg,ld070wx3-sl01"
-
-This binding is compatible with the simple-panel binding, which is specified
-in simple-panel.txt in this directory.
Documentation/devicetree/bindings/display/panel/lg,lh500wx1-sd03.txt deleted +0 -7
deleted file mode 100644
index a04fd2b2e73d..000000000000
@@ -1,7 +0,0 @@
-LG Corporation 5" HD TFT LCD panel
-
-Required properties:
-- compatible: should be "lg,lh500wx1-sd03"
-
-This binding is compatible with the simple-panel binding, which is specified
-in simple-panel.txt in this directory.
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +6 -0
index 5088fe81d025..b1b8d0edadef 100644
@@ -155,8 +155,14 @@ properties:
       - kyo,tcg121xglp
         # LeMaker BL035-RGB-002 3.5" QVGA TFT LCD panel
       - lemaker,bl035-rgb-002
+        # LG ACX467AKM-7 4.95" 1080×1920 LCD Panel
+      - lg,acx467akm-7
         # LG 7" (800x480 pixels) TFT LCD panel
       - lg,lb070wv8
+        # LG Corporation 7" WXGA TFT LCD panel
+      - lg,ld070wx3-sl01
+        # LG Corporation 5" HD TFT LCD panel
+      - lg,lh500wx1-sd03
         # LG LP079QX1-SP0V 7.9" (1536x2048 pixels) TFT LCD panel
       - lg,lp079qx1-sp0v
         # LG 9.7" (2048x1536 pixels) TFT LCD panel
Signature · 1 line
2.20.1
#39 lore raw

PATCH 16/36 dt-bindings: display: convert lg, lg4573 to DT Schema

In reply to Sam Ravnborg
Cc Heiko Schocher <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/lg,lg4573.txt      | 19 ---------
 .../bindings/display/panel/lg,lg4573.yaml     | 41 +++++++++++++++++++
 2 files changed, 41 insertions(+), 19 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
Documentation/devicetree/bindings/display/panel/lg,lg4573.txt deleted +0 -19
deleted file mode 100644
index 824441f4e95a..000000000000
@@ -1,19 +0,0 @@
-LG LG4573 TFT Liquid Crystal Display with SPI control bus
-
-Required properties:
-  - compatible: "lg,lg4573"
-  - reg: address of the panel on the SPI bus
-
-The panel must obey rules for SPI slave device specified in document [1].
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-
-Example:
-
-	lcd_panel: display@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "lg,lg4573";
-		spi-max-frequency = <10000000>;
-		reg = <0>;
-	};
Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.20.1
#42 lore raw

PATCH 17/36 dt-bindings: display: convert osddisplays, osd101t2587-53ts to DT Schema

In reply to Sam Ravnborg

osddisplays,osd101t2587-53ts is compatible with panel-simple binding, so list the compatible in the panel-simple binding file.

Cc Peter Ujfalusi <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/osddisplays,osd101t2587-53ts.txt | 14 --------------
 .../bindings/display/panel/panel-simple.yaml       |  2 ++
 2 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt
Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt deleted +0 -14
deleted file mode 100644
index 9d88e96003fc..000000000000
@@ -1,14 +0,0 @@
-One Stop Displays OSD101T2587-53TS 10.1" 1920x1200 panel
-
-The panel is similar to OSD101T2045-53TS, but it needs additional
-MIPI_DSI_TURN_ON_PERIPHERAL message from the host.
-
-Required properties:
-- compatible: should be "osddisplays,osd101t2587-53ts"
-- power-supply: as specified in the base binding
-
-Optional properties:
-- backlight: as specified in the base binding
-
-This binding is compatible with the simple-panel binding, which is specified
-in simple-panel.txt in this directory.
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
index b1b8d0edadef..70c290f7df30 100644
@@ -209,6 +209,8 @@ properties:
       - osddisplays,osd070t1718-19ts
         # One Stop Displays OSD101T2045-53TS 10.1" 1920x1200 panel
       - osddisplays,osd101t2045-53ts
+        # One Stop Displays OSD101T2587-53TS 10.1" 1920x1200 panel
+      - osddisplays,osd101t2587-53ts
         # QiaoDian XianShi Corporation 4"3 TFT LCD panel
       - qiaodian,qd43003c0-40
         # Rocktech Displays Ltd. RK101II01D-CT 10.1" TFT 1280x800
Signature · 1 line
2.20.1
#44 lore raw

PATCH 18/36 dt-bindings: display: convert raydium, rm67191 to DT Schema

In reply to Sam Ravnborg
Cc Robert Chiras <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/raydium,rm67191.txt         | 41 ----------
 .../display/panel/raydium,rm67191.yaml        | 75 +++++++++++++++++++
 2 files changed, 75 insertions(+), 41 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt deleted +0 -41
deleted file mode 100644
index 10424695aa02..000000000000
@@ -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>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +75 -0

75 lines not on this page · raw message

Signature · 1 line
2.20.1
#47 lore raw

PATCH 19/36 dt-bindings: display: convert rocktech, jh057n00900 to DT Schema

In reply to Sam Ravnborg
Cc "Guido Günther" <[email protected]>
Cc Purism Kernel Team <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/rocktech,jh057n00900.txt    | 23 --------
 .../display/panel/rocktech,jh057n00900.yaml   | 57 +++++++++++++++++++
 2 files changed, 57 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
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt deleted +0 -23
deleted file mode 100644
index a372c5d84695..000000000000
@@ -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 = <&reg_2v8_p>;
-			iovcc-supply = <&reg_1v8_p>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml new file +57 -0

57 lines not on this page · raw message

Signature · 1 line
2.20.1
#49 lore raw

PATCH 20/36 dt-bindings: display: convert samsung AMOLED to DT Schema

In reply to Sam Ravnborg

For samsung there was two AMOLED panels with the same description.
Collect them in one binding file.

Cc Hoegeun Kwon <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../panel/samsung,amoled-mipi-dsi.yaml        | 65 +++++++++++++++++++
 .../display/panel/samsung,s6e3ha2.txt         | 31 ---------
 .../display/panel/samsung,s6e63j0x03.txt      | 24 -------
 3 files changed, 65 insertions(+), 55 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt
Documentation/devicetree/bindings/display/panel/samsung,amoled-mipi-dsi.yaml new file +65 -0
new file mode 100644
index 000000000000..96bdde9298e0
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/samsung,amoled-mipi-dsi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung AMOLED MIPI-DSI panels
+
+maintainers:
+  - Hoegeun Kwon <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    enum:
+        # Samsung S6E63J0X03 1.63" 320x320 AMOLED panel
+      - samsung,s6e63j0x03
+        # Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel
+      - samsung,s6e3ha2
+        # Samsung S6E3HF2 5.65" 1600x2560 AMOLED panel
+      - samsung,s6e3hf2
+
+  reg: true
+  reset-gpios: true
+  enable-gpios: true
+  te-gpios: true
+
+  vdd3-supply:
+    description: I/O voltage supply
+
+  vci-supply:
+    description: voltage supply for analog circuits
+
+required:
+  - compatible
+  - reg
+  - vdd3-supply
+  - vci-supply
+  - reset-gpios
+  - enable-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "samsung,s6e3ha2";
+            reg = <0>;
+            vdd3-supply = <&ldo27_reg>;
+            vci-supply = <&ldo28_reg>;
+            reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>;
+            enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>;
+            te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...
Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt deleted +0 -31
deleted file mode 100644
index 4acea25c244b..000000000000
@@ -1,31 +0,0 @@
-Samsung S6E3HA2 5.7" 1440x2560 AMOLED panel
-Samsung S6E3HF2 5.65" 1600x2560 AMOLED panel
-
-Required properties:
-  - compatible: should be one of:
-    "samsung,s6e3ha2",
-    "samsung,s6e3hf2".
-  - reg: the virtual channel number of a DSI peripheral
-  - vdd3-supply: I/O voltage supply
-  - vci-supply: voltage supply for analog circuits
-  - reset-gpios: a GPIO spec for the reset pin (active low)
-  - enable-gpios: a GPIO spec for the panel enable pin (active high)
-
-Optional properties:
-  - te-gpios: a GPIO spec for the tearing effect synchronization signal
-    gpio pin (active high)
-
-Example:
-&dsi {
-	...
-
-	panel@0 {
-		compatible = "samsung,s6e3ha2";
-		reg = <0>;
-		vdd3-supply = <&ldo27_reg>;
-		vci-supply = <&ldo28_reg>;
-		reset-gpios = <&gpg0 0 GPIO_ACTIVE_LOW>;
-		enable-gpios = <&gpf1 5 GPIO_ACTIVE_HIGH>;
-		te-gpios = <&gpf1 3 GPIO_ACTIVE_HIGH>;
-	};
-};
Documentation/devicetree/bindings/display/panel/samsung,s6e63j0x03.txt deleted +0 -24
deleted file mode 100644
index 3f1a8392af7f..000000000000
@@ -1,24 +0,0 @@
-Samsung S6E63J0X03 1.63" 320x320 AMOLED panel (interface: MIPI-DSI command mode)
-
-Required properties:
-  - compatible: "samsung,s6e63j0x03"
-  - reg: the virtual channel number of a DSI peripheral
-  - vdd3-supply: I/O voltage supply
-  - vci-supply: voltage supply for analog circuits
-  - reset-gpios: a GPIO spec for the reset pin (active low)
-  - te-gpios: a GPIO spec for the tearing effect synchronization signal
-    gpio pin (active high)
-
-Example:
-&dsi {
-	...
-
-	panel@0 {
-		compatible = "samsung,s6e63j0x03";
-		reg = <0>;
-		vdd3-supply = <&ldo16_reg>;
-		vci-supply = <&ldo20_reg>;
-		reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
-		te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
-	};
-};
Signature · 1 line
2.20.1
#50 lore raw

PATCH 21/36 dt-bindings: display: convert samsung, s6d16d0 to DT Schema

In reply to Sam Ravnborg
Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/samsung,s6d16d0.txt         | 30 ----------
 .../display/panel/samsung,s6d16d0.yaml        | 56 +++++++++++++++++++
 2 files changed, 56 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d16d0.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6d16d0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6d16d0.txt deleted +0 -30
deleted file mode 100644
index b94e366f451b..000000000000
@@ -1,30 +0,0 @@
-Samsung S6D16D0 4" 864x480 AMOLED panel
-
-Required properties:
-  - compatible: should be:
-    "samsung,s6d16d0",
-  - reg: the virtual channel number of a DSI peripheral
-  - vdd1-supply: I/O voltage supply
-  - reset-gpios: a GPIO spec for the reset pin (active low)
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in
-media/video-interfaces.txt. This node should describe panel's video bus.
-
-Example:
-&dsi {
-	...
-
-	panel@0 {
-		compatible = "samsung,s6d16d0";
-		reg = <0>;
-		vdd1-supply = <&foo>;
-		reset-gpios = <&foo_gpio 0 GPIO_ACTIVE_LOW>;
-
-		port {
-			panel_in: endpoint {
-				remote-endpoint = <&dsi_out>;
-			};
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/samsung,s6d16d0.yaml new file +56 -0

56 lines not on this page · raw message

Signature · 1 line
2.20.1
#52 lore raw

PATCH 22/36 dt-bindings: display: convert samsung, ld9040 to DT Schema

In reply to Sam Ravnborg
Cc Andrzej Hajda <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/samsung,ld9040.txt |  66 ------------
 .../display/panel/samsung,ld9040.yaml         | 100 ++++++++++++++++++
 2 files changed, 100 insertions(+), 66 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt deleted +0 -66
deleted file mode 100644
index 354d4d1df4ff..000000000000
@@ -1,66 +0,0 @@
-Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
-
-Required properties:
-  - compatible: "samsung,ld9040"
-  - reg: address of the panel on SPI bus
-  - vdd3-supply: core voltage supply
-  - vci-supply: voltage supply for analog circuits
-  - reset-gpios: a GPIO spec for the reset pin
-  - display-timings: timings for the connected panel according to [1]
-
-The panel must obey rules for SPI slave device specified in document [2].
-
-Optional properties:
-  - power-on-delay: delay after turning regulators on [ms]
-  - reset-delay: delay after reset sequence [ms]
-  - panel-width-mm: physical panel width [mm]
-  - panel-height-mm: physical panel height [mm]
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [3]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt
-[2]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[3]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-	lcd@0 {
-		compatible = "samsung,ld9040";
-		reg = <0>;
-		vdd3-supply = <&ldo7_reg>;
-		vci-supply = <&ldo17_reg>;
-		reset-gpios = <&gpy4 5 0>;
-		spi-max-frequency = <1200000>;
-		spi-cpol;
-		spi-cpha;
-		power-on-delay = <10>;
-		reset-delay = <10>;
-		panel-width-mm = <90>;
-		panel-height-mm = <154>;
-
-		display-timings {
-			timing {
-				clock-frequency = <23492370>;
-				hactive = <480>;
-				vactive = <800>;
-				hback-porch = <16>;
-				hfront-porch = <16>;
-				vback-porch = <2>;
-				vfront-porch = <28>;
-				hsync-len = <2>;
-				vsync-len = <1>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <0>;
-				pixelclk-active = <0>;
-			};
-		};
-
-		port {
-			lcd_ep: endpoint {
-				remote-endpoint = <&fimd_dpi_ep>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +100 -0

100 lines not on this page · raw message

Signature · 1 line
2.20.1
#54 lore raw

PATCH 23/36 dt-bindings: display: convert samsung, s6e8aa0 to DT Schema

In reply to Sam Ravnborg
Cc Andrzej Hajda <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/samsung,s6e8aa0.txt         | 56 -----------
 .../display/panel/samsung,s6e8aa0.yaml        | 96 +++++++++++++++++++
 2 files changed, 96 insertions(+), 56 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.txt deleted +0 -56
deleted file mode 100644
index 9e766c5f86da..000000000000
@@ -1,56 +0,0 @@
-Samsung S6E8AA0 AMOLED LCD 5.3 inch panel
-
-Required properties:
-  - compatible: "samsung,s6e8aa0"
-  - reg: the virtual channel number of a DSI peripheral
-  - vdd3-supply: core voltage supply
-  - vci-supply: voltage supply for analog circuits
-  - reset-gpios: a GPIO spec for the reset pin
-  - display-timings: timings for the connected panel as described by [1]
-
-Optional properties:
-  - power-on-delay: delay after turning regulators on [ms]
-  - reset-delay: delay after reset sequence [ms]
-  - init-delay: delay after initialization sequence [ms]
-  - panel-width-mm: physical panel width [mm]
-  - panel-height-mm: physical panel height [mm]
-  - flip-horizontal: boolean to flip image horizontally
-  - flip-vertical: boolean to flip image vertically
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt
-[2]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-	panel {
-		compatible = "samsung,s6e8aa0";
-		reg = <0>;
-		vdd3-supply = <&vcclcd_reg>;
-		vci-supply = <&vlcd_reg>;
-		reset-gpios = <&gpy4 5 0>;
-		power-on-delay= <50>;
-		reset-delay = <100>;
-		init-delay = <100>;
-		panel-width-mm = <58>;
-		panel-height-mm = <103>;
-		flip-horizontal;
-		flip-vertical;
-
-		display-timings {
-			timing0: timing-0 {
-				clock-frequency = <57153600>;
-				hactive = <720>;
-				vactive = <1280>;
-				hfront-porch = <5>;
-				hback-porch = <5>;
-				hsync-len = <5>;
-				vfront-porch = <13>;
-				vback-porch = <1>;
-				vsync-len = <2>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml new file +96 -0

96 lines not on this page · raw message

Signature · 1 line
2.20.1
#55 lore raw

PATCH 24/36 dt-bindings: display: convert toppoly panels to DT Schema

In reply to Sam Ravnborg
Cc Marek Belisko <[email protected]>
Cc H. Nikolaus Schaller <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/tpo,td.yaml        | 60 +++++++++++++++++++
 .../bindings/display/panel/tpo,td028ttec1.txt | 32 ----------
 .../bindings/display/panel/tpo,td043mtea1.txt | 33 ----------
 3 files changed, 60 insertions(+), 65 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td.yaml
 delete mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt
 delete mode 100644 Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt
Documentation/devicetree/bindings/display/panel/tpo,td.yaml new file +60 -0
new file mode 100644
index 000000000000..9a79bcf87753
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/tpo,td.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Toppoly TD Panels
+
+maintainers:
+  - Marek Belisko <[email protected]>
+  - H. Nikolaus Schaller <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+  - $ref: ../../spi/spi-slave.yaml#
+
+properties:
+  compatible:
+    enum:
+        # Toppoly TD028TTEC1 Panel
+      - tpo,td028ttec1
+        # Toppoly TD043MTEA1 Panel
+      - tpo,td043mtea1
+
+  reg: true
+  label: true
+  reset-gpios: true
+  backlight: true
+  port: true
+
+required:
+  - compatible
+  - port
+
+examples:
+  - |
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel: panel@0 {
+            compatible = "tpo,td043mtea1";
+            reg = <0>;
+            spi-max-frequency = <100000>;
+            spi-cpol;
+            spi-cpha;
+
+            label = "lcd";
+
+            reset-gpios = <&gpio7 7 0>;
+
+            port {
+                lcd_in: endpoint {
+                    remote-endpoint = <&dpi_out>;
+                };
+            };
+        };
+    };
+
+...
Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt deleted +0 -32
deleted file mode 100644
index 898e06ecf4ef..000000000000
@@ -1,32 +0,0 @@
-Toppoly TD028TTEC1 Panel
-========================
-
-Required properties:
-- compatible: "tpo,td028ttec1"
-
-Optional properties:
-- label: a symbolic name for the panel
-- backlight: phandle of the backlight device
-
-Required nodes:
-- Video port for DPI input
-
-Example
--------
-
-lcd-panel: td028ttec1@0 {
-	compatible = "tpo,td028ttec1";
-	reg = <0>;
-	spi-max-frequency = <100000>;
-	spi-cpol;
-	spi-cpha;
-
-	label = "lcd";
-	backlight = <&backlight>;
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&dpi_out>;
-		};
-	};
-};
-
Documentation/devicetree/bindings/display/panel/tpo,td043mtea1.txt deleted +0 -33
deleted file mode 100644
index ec6d62975162..000000000000
@@ -1,33 +0,0 @@
-TPO TD043MTEA1 Panel
-====================
-
-Required properties:
-- compatible: "tpo,td043mtea1"
-- reset-gpios: panel reset gpio
-
-Optional properties:
-- label: a symbolic name for the panel
-
-Required nodes:
-- Video port for DPI input
-
-Example
--------
-
-lcd-panel: panel@0 {
-	compatible = "tpo,td043mtea1";
-	reg = <0>;
-	spi-max-frequency = <100000>;
-	spi-cpol;
-	spi-cpha;
-
-	label = "lcd";
-
-	reset-gpios = <&gpio7 7 0>;
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&dpi_out>;
-		};
-	};
-};
Signature · 1 line
2.20.1
#56 lore raw

PATCH 25/36 dt-bindings: display: convert startek, startek-kd050c to DT Schema

In reply to Sam Ravnborg
Cc Marek Belisko <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/startek,startek-kd050c.txt  |  4 ---
 .../display/panel/startek,startek-kd050c.yaml | 33 +++++++++++++++++++
 2 files changed, 33 insertions(+), 4 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.yaml
Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.txt deleted +0 -4
deleted file mode 100644
index 70cd8d18d841..000000000000
@@ -1,4 +0,0 @@
-Startek Electronic Technology Co. KD050C 5.0" WVGA TFT LCD panel
-
-Required properties:
-- compatible: should be "startek,startek-kd050c"
Documentation/devicetree/bindings/display/panel/startek,startek-kd050c.yaml new file +33 -0
new file mode 100644
index 000000000000..fd668640afd1
@@ -0,0 +1,33 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/startek,startek-kd050c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Startek Electronic Technology Co. KD050C 5.0" WVGA TFT LCD panel
+
+maintainers:
+  - Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/[email protected]>
+
+allOf:
+  - $ref: panel-dpi.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: startek,startek-kd050c
+      - {} # panel-dpi, but not listed here to avoid false select
+
+  backlight: true
+  enable-gpios: true
+  height-mm: true
+  label: true
+  panel-timing: true
+  port: true
+  power-supply: true
+  reset-gpios: true
+  width-mm: true
+
+additionalProperties: false
+
+...
Signature · 1 line
2.20.1
#57 lore raw

PATCH 26/36 dt-bindings: display: convert sony, acx565akm to DT Schema

In reply to Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/sony,acx565akm.txt | 30 -----------
 .../display/panel/sony,acx565akm.yaml         | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt deleted +0 -30
deleted file mode 100644
index e12333280749..000000000000
@@ -1,30 +0,0 @@
-Sony ACX565AKM SDI Panel
-========================
-
-Required properties:
-- compatible: "sony,acx565akm"
-
-Optional properties:
-- label: a symbolic name for the panel
-- reset-gpios: panel reset gpio
-
-Required nodes:
-- Video port for SDI input
-
-Example
--------
-
-acx565akm@2 {
-	compatible = "sony,acx565akm";
-	spi-max-frequency = <6000000>;
-	reg = <2>;
-
-	label = "lcd";
-	reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&sdi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.20.1
#60 lore raw

PATCH 27/36 dt-bindings: display: convert sitronix, st7701 to DT Schema

In reply to Sam Ravnborg

The old binding documented that a number of properties is required only for a specific panel.
The binding supports only one panel so they are now unconditionally required.

Cc Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sitronix,st7701.txt         | 30 --------
 .../display/panel/sitronix,st7701.yaml        | 68 +++++++++++++++++++
 2 files changed, 68 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml
Documentation/devicetree/bindings/display/panel/sitronix,st7701.txt deleted +0 -30
deleted file mode 100644
index ccd17597f1f6..000000000000
@@ -1,30 +0,0 @@
-Sitronix ST7701 based LCD panels
-
-ST7701 designed for small and medium sizes of TFT LCD display, is
-capable of supporting up to 480RGBX864 in resolution. It provides
-several system interfaces like MIPI/RGB/SPI.
-
-Techstar TS8550B is 480x854, 2-lane MIPI DSI LCD panel which has
-inbuilt ST7701 chip.
-
-Required properties:
-- compatible: must be "sitronix,st7701" and one of
-  * "techstar,ts8550b"
-- reset-gpios: a GPIO phandle for the reset pin
-
-Required properties for techstar,ts8550b:
-- reg: DSI virtual channel used by that screen
-- VCC-supply: analog regulator for MIPI circuit
-- IOVCC-supply: I/O system regulator
-
-Optional properties:
-- backlight: phandle for the backlight control.
-
-panel@0 {
-	compatible = "techstar,ts8550b", "sitronix,st7701";
-	reg = <0>;
-	VCC-supply = <&reg_dldo2>;
-	IOVCC-supply = <&reg_dldo2>;
-	reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */
-	backlight = <&backlight>;
-};
Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml new file +68 -0

68 lines not on this page · raw message

Signature · 1 line
2.20.1
#61 lore raw

PATCH 28/36 dt-bindings: display: convert sitronix, st7789v to DT Schema

In reply to Sam Ravnborg
Cc Maxime Ripard <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sitronix,st7789v.txt        | 37 ------------
 .../display/panel/sitronix,st7789v.yaml       | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 37 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7789v.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml
Documentation/devicetree/bindings/display/panel/sitronix,st7789v.txt deleted +0 -37
deleted file mode 100644
index c6995dde641b..000000000000
@@ -1,37 +0,0 @@
-Sitronix ST7789V RGB panel with SPI control bus
-
-Required properties:
-  - compatible: "sitronix,st7789v"
-  - reg: Chip select of the panel on the SPI bus
-  - reset-gpios: a GPIO phandle for the reset pin
-  - power-supply: phandle of the regulator that provides the supply voltage
-
-Optional properties:
-  - backlight: phandle to the backlight used
-
-The generic bindings for the SPI slaves documented in [1] also applies
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[2]: Documentation/devicetree/bindings/graph.txt
-
-Example:
-
-panel@0 {
-	compatible = "sitronix,st7789v";
-	reg = <0>;
-	reset-gpios = <&pio 6 11 GPIO_ACTIVE_LOW>;
-	backlight = <&pwm_bl>;
-	spi-max-frequency = <100000>;
-	spi-cpol;
-	spi-cpha;
-
-	port {
-		panel_input: endpoint {
-			remote-endpoint = <&tcon0_out_panel>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.20.1
#62 lore raw

PATCH 29/36 dt-bindings: display: drop unused simple-panel.txt

In reply to Sam Ravnborg

There are no more references to simple-panel.txt.
Delete it.

Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 Documentation/devicetree/bindings/display/panel/simple-panel.txt | 1 -
 1 file changed, 1 deletion(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/simple-panel.txt
Documentation/devicetree/bindings/display/panel/simple-panel.txt deleted +0 -1
deleted file mode 100644
index e11208fb7da8..000000000000
@@ -1 +0,0 @@
-See panel-common.yaml in this directory.
Signature · 1 line
2.20.1
#63 lore raw

PATCH 30/36 dt-bindings: display: convert sharp, ls043t1le01 to DT Schema

In reply to Sam Ravnborg

The txt binding specified the property "power-supply". But the example and the actual implementation in the linux-kernel uses "avdd-supply".
So the binding is adjusted to use avdd-supply as this seems to be the correct choice.
There are no DT files in the linux kernel to check.

Cc Werner Johansson <werner.johansson-/[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sharp,ls043t1le01.txt       | 22 --------
 .../display/panel/sharp,ls043t1le01.yaml      | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml
Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.txt deleted +0 -22
deleted file mode 100644
index 3770a111968b..000000000000
@@ -1,22 +0,0 @@
-Sharp Microelectronics 4.3" qHD TFT LCD panel
-
-Required properties:
-- compatible: should be "sharp,ls043t1le01-qhd"
-- 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
-- reset-gpios: a GPIO spec for the reset pin
-
-Example:
-
-	mdss_dsi@fd922800 {
-		panel@0 {
-			compatible = "sharp,ls043t1le01-qhd";
-			reg = <0>;
-			avdd-supply = <&pm8941_l22>;
-			backlight = <&pm8941_wled>;
-			reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/sharp,ls043t1le01.yaml new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.20.1
#64 lore raw

PATCH 31/36 dt-bindings: display: convert sharp, lq101r1sx01 to DT Schema

In reply to Sam Ravnborg

This bindings describes a panel with a secondary channel.

A few of the properties are only required for the
main (non-secondary) node.
This is properly described in the binding.

A few properties are only valid for the main node, this is not described in the binding.
I failed to find a way to describe it.

Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sharp,lq101r1sx01.txt       | 49 ------------
 .../display/panel/sharp,lq101r1sx01.yaml      | 78 +++++++++++++++++++
 2 files changed, 78 insertions(+), 49 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml
Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.txt deleted +0 -49
deleted file mode 100644
index f522bb8e47e1..000000000000
@@ -1,49 +0,0 @@
-Sharp Microelectronics 10.1" WQXGA TFT LCD panel
-
-This panel requires a dual-channel DSI host to operate. It supports two modes:
-- left-right: each channel drives the left or right half of the screen
-- even-odd: each channel drives the even or odd lines of the screen
-
-Each of the DSI channels controls a separate DSI peripheral. The peripheral
-driven by the first link (DSI-LINK1), left or even, is considered the primary
-peripheral and controls the device. The 'link2' property contains a phandle
-to the peripheral driven by the second link (DSI-LINK2, right or odd).
-
-Note that in video mode the DSI-LINK1 interface always provides the left/even
-pixels and DSI-LINK2 always provides the right/odd pixels. In command mode it
-is possible to program either link to drive the left/even or right/odd pixels
-but for the sake of consistency this binding assumes that the same assignment
-is chosen as for video mode.
-
-Required properties:
-- compatible: should be "sharp,lq101r1sx01"
-- reg: DSI virtual channel of the peripheral
-
-Required properties (for DSI-LINK1 only):
-- link2: phandle to the DSI peripheral on the secondary link. Note that the
-  presence of this property marks the containing node as DSI-LINK1.
-- power-supply: phandle of the regulator that provides the supply voltage
-
-Optional properties (for DSI-LINK1 only):
-- backlight: phandle of the backlight device attached to the panel
-
-Example:
-
-	dsi@54300000 {
-		panel: panel@0 {
-			compatible = "sharp,lq101r1sx01";
-			reg = <0>;
-
-			link2 = <&secondary>;
-
-			power-supply = <...>;
-			backlight = <...>;
-		};
-	};
-
-	dsi@54400000 {
-		secondary: panel@0 {
-			compatible = "sharp,lq101r1sx01";
-			reg = <0>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/sharp,lq101r1sx01.yaml new file +78 -0

78 lines not on this page · raw message

Signature · 1 line
2.20.1
#66 lore raw

PATCH 32/36 dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

In reply to Sam Ravnborg
Cc Tony Lindgren <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sharp,ls037v7dw01.txt       | 43 ------------
 .../display/panel/sharp,ls037v7dw01.yaml      | 66 +++++++++++++++++++
 2 files changed, 66 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt deleted +0 -43
deleted file mode 100644
index 0cc8981e9d49..000000000000
@@ -1,43 +0,0 @@
-SHARP LS037V7DW01 TFT-LCD panel
-===================================
-
-Required properties:
-- compatible: "sharp,ls037v7dw01"
-
-Optional properties:
-- label: a symbolic name for the panel
-- enable-gpios: a GPIO spec for the optional enable pin.
-  This pin is the INI pin as specified in the LS037V7DW01.pdf file.
-- reset-gpios: a GPIO spec for the optional reset pin.
-  This pin is the RESB pin as specified in the LS037V7DW01.pdf file.
-- mode-gpios: a GPIO
-  ordered MO, LR, and UD as specified in the LS037V7DW01.pdf file.
-
-Required nodes:
-- Video port for DPI input
-
-This panel can have zero to five GPIOs to configure to change configuration
-between QVGA and VGA mode and the scan direction. As these pins can be also
-configured with external pulls, all the GPIOs are considered optional with holes
-in the array.
-
-Example
--------
-
-Example when connected to a omap2+ based device:
-
-lcd0: display {
-	compatible = "sharp,ls037v7dw01";
-	power-supply = <&lcd_3v3>;
-	enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;	/* gpio152, lcd INI */
-	reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;	/* gpio155, lcd RESB */
-	mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH	/* gpio154, lcd MO */
-		      &gpio1 2 GPIO_ACTIVE_HIGH		/* gpio2, lcd LR */
-		      &gpio1 3 GPIO_ACTIVE_HIGH>;	/* gpio3, lcd UD */
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&dpi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
2.20.1
#72 lore raw

PATCH 33/36 dt-bindings: display: convert sharp, lq150x1lg11 to DT Schema

In reply to Sam Ravnborg
Cc Peter Rosin <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sharp,lq150x1lg11.txt       | 36 ------------
 .../display/panel/sharp,lq150x1lg11.yaml      | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 36 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.yaml
Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt deleted +0 -36
deleted file mode 100644
index 0f57c3143506..000000000000
@@ -1,36 +0,0 @@
-Sharp 15" LQ150X1LG11 XGA TFT LCD panel
-
-Required properties:
-- compatible: should be "sharp,lq150x1lg11"
-- power-supply: regulator to provide the VCC supply voltage (3.3 volts)
-
-Optional properties:
-- backlight: phandle of the backlight device
-- rlud-gpios: a single GPIO for the RL/UD (rotate 180 degrees) pin.
-- sellvds-gpios: a single GPIO for the SELLVDS pin.
-
-If rlud-gpios and/or sellvds-gpios are not specified, the RL/UD and/or SELLVDS
-pins are assumed to be handled appropriately by the hardware.
-
-Example:
-
-	backlight: backlight {
-		compatible = "pwm-backlight";
-		pwms = <&pwm 0 100000>;                      /* VBR */
-
-		brightness-levels = <0 20 40 60 80 100>;
-		default-brightness-level = <2>;
-
-		power-supply = <&vdd_12v_reg>;               /* VDD */
-		enable-gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;  /* XSTABY */
-	};
-
-	panel {
-		compatible = "sharp,lq150x1lg11";
-
-		power-supply = <&vcc_3v3_reg>;               /* VCC */
-
-		backlight = <&backlight>;
-		rlud-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;    /* RL/UD */
-		sellvds-gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; /* SELLVDS */
-	};
Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.yaml new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.20.1
#73 lore raw

PATCH 34/36 dt-bindings: display: convert seiko, 43wvf1g to DT Schema

In reply to Sam Ravnborg
Cc Marco Franchi <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/seiko,43wvf1g.txt  | 23 ---------
 .../bindings/display/panel/seiko,43wvf1g.yaml | 49 +++++++++++++++++++
 2 files changed, 49 insertions(+), 23 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.yaml
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.txt deleted +0 -23
deleted file mode 100644
index aae57ef36cdd..000000000000
@@ -1,23 +0,0 @@
-Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel
-
-Required properties:
-- compatible: should be "sii,43wvf1g".
-- "dvdd-supply": 3v3 digital regulator.
-- "avdd-supply": 5v analog regulator.
-
-Optional properties:
-- backlight: phandle for the backlight control.
-
-Example:
-
-	panel {
-		compatible = "sii,43wvf1g";
-		backlight = <&backlight_display>;
-		dvdd-supply = <&reg_lcd_3v3>;
-		avdd-supply = <&reg_lcd_5v>;
-		port {
-			panel_in: endpoint {
-				remote-endpoint = <&display_out>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/seiko,43wvf1g.yaml new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
2.20.1
#75 lore raw

PATCH 35/36 dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

In reply to Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/lgphilips,lb035q02.txt      | 33 ------------
 .../display/panel/lgphilips,lb035q02.yaml     | 54 +++++++++++++++++++
 2 files changed, 54 insertions(+), 33 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted +0 -33
deleted file mode 100644
index 1a1e653e5407..000000000000
@@ -1,33 +0,0 @@
-LG.Philips LB035Q02 Panel
-=========================
-
-Required properties:
-- compatible: "lgphilips,lb035q02"
-- enable-gpios: panel enable gpio
-
-Optional properties:
-- label: a symbolic name for the panel
-
-Required nodes:
-- Video port for DPI input
-
-Example
--------
-
-lcd-panel: panel@0 {
-	compatible = "lgphilips,lb035q02";
-	reg = <0>;
-	spi-max-frequency = <100000>;
-	spi-cpol;
-	spi-cpha;
-
-	label = "lcd";
-
-	enable-gpios = <&gpio7 7 0>;
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&dpi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
2.20.1
#82 lore raw

PATCH 36/36 dt-bindings: display: convert olimex, lcd-olinuxino to DT Schema

In reply to Sam Ravnborg
Cc Stefan Mavrodiev <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/olimex,lcd-olinuxino.txt    | 42 -----------
 .../display/panel/olimex,lcd-olinuxino.yaml   | 70 +++++++++++++++++++
 2 files changed, 70 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt deleted +0 -42
deleted file mode 100644
index a89f9c830a85..000000000000
@@ -1,42 +0,0 @@
-Binding for Olimex Ltd. LCD-OLinuXino bridge panel.
-
-This device can be used as bridge between a host controller and LCD panels.
-Currently supported LCDs are:
-  - LCD-OLinuXino-4.3TS
-  - LCD-OLinuXino-5
-  - LCD-OLinuXino-7
-  - LCD-OLinuXino-10
-
-The panel itself contains:
-  - AT24C16C EEPROM holding panel identification and timing requirements
-  - AR1021 resistive touch screen controller (optional)
-  - FT5x6 capacitive touch screnn controller (optional)
-  - GT911/GT928 capacitive touch screen controller (optional)
-
-The above chips share same I2C bus. The EEPROM is factory preprogrammed with
-device information (id, serial, etc.) and timing requirements.
-
-Touchscreen bingings can be found in these files:
-  - input/touchscreen/goodix.txt
-  - input/touchscreen/edt-ft5x06.txt
-  - input/touchscreen/ar1021.txt
-
-Required properties:
-  - compatible: should be "olimex,lcd-olinuxino"
-  - reg: address of the configuration EEPROM, should be <0x50>
-  - power-supply: phandle of the regulator that provides the supply voltage
-
-Optional properties:
-  - enable-gpios: GPIO pin to enable or disable the panel
-  - backlight: phandle of the backlight device attacked to the panel
-
-Example:
-&i2c2 {
-	panel@50 {
-		compatible = "olimex,lcd-olinuxino";
-		reg = <0x50>;
-		power-supply = <&reg_vcc5v0>;
-		enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>;
-		backlight = <&backlight>;
-	};
-};
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file +70 -0

70 lines not on this page · raw message

Signature · 1 line
2.20.1
#3 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg
Quoted 6 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties.

To me it seems like you are creating the common SPI slave bindings? Maybe the commit message should be about that.

Documentation/devicetree/bindings/spi/spi-slave.yaml line 25

Quoted 3 lines
Documentation/devicetree/bindings/spi/spi-slave.yaml new file +3 -0
+  reg:
+    minimum: 0
+    maximum: 256

255? Or am I wrong?

Apart from that it looks good to me.

Yours,
Linus Walleij

Reviewed-by on v1 19/36
#48 lore raw

Re: [PATCH v1 19/36] dt-bindings: display: convert rocktech,jh057n00900 to DT Schema

In reply to Sam Ravnborg

Hi,

Quoted 5 lines · Sam Ravnborg
Cc "Guido Günther" <[email protected]>
Cc Purism Kernel Team <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>

Thanks!
-- Guido

Quoted 102 lines
---
 .../display/panel/rocktech,jh057n00900.txt    | 23 --------
 .../display/panel/rocktech,jh057n00900.yaml   | 57 +++++++++++++++++++
 2 files changed, 57 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
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt deleted +0 -23
deleted file mode 100644
index a372c5d84695..000000000000
@@ -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 = <&reg_2v8_p>;
-			iovcc-supply = <&reg_1v8_p>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml new file +57 -0
new file mode 100644
index 000000000000..827417bbff63
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: GPL-2.0
+%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:
+  - Guido Günther <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: rocktech,jh057n00900
+
+  reg: true
+  reset-gpios: true
+  backlight: true
+
+  vcc-supply:
+    description: The regulator that provides the vcc supply voltage
+
+  iovcc-supply:
+    description: The regulator that provides the iovcc supply voltage
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - backlight
+  - vcc-supply
+  - iovcc-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "rocktech,jh057n00900";
+            reg = <0>;
+            backlight = <&backlight>;
+            reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+            vcc-supply = <&reg_2v8_p>;
+            iovcc-supply = <&reg_1v8_p>;
+        };
+    };
+
+...
Signature · 1 line
2.20.1
Reviewed-by on v1 6/36
#20 lore raw

Re: [PATCH v1 06/36] dt-bindings: display: convert ilitek, ili9322 to DT Schema

In reply to Sam Ravnborg
Quoted 16 lines · Sam Ravnborg

The .txt binding explains:

"
The following optional properties only apply to RGB and YUV input modes and
can be omitted for BT.656 input modes:
"

This constraint is not implmented in the DT Schema.

The original binding from the .txt file referenced properties that is included in panel-timing.yaml. These properties are kept here as we want as close to a 1:1 conversion as we can. If the properties should be dropped from the binding then this is a follow-up patch.

Quoted 5 lines

The properties in question are:
- pixelclk-active
- de-active
- hsync-active
- vsync-active

Sorry about that. They should be dropped, but certainly it is fine to do with a follow up patch.

Quoted 5 lines
Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>

Yours,
Linus Walleij

#21 lore raw

Re: [PATCH v1 06/36] dt-bindings: display: convert ilitek, ili9322 to DT Schema

In reply to Linus Walleij

Hi Linus.

Quoted 18 lines · Linus Walleij
Quoted 16 lines · Sam Ravnborg

The .txt binding explains:

"
The following optional properties only apply to RGB and YUV input modes and
can be omitted for BT.656 input modes:
"

This constraint is not implmented in the DT Schema.

The original binding from the .txt file referenced properties that is included in panel-timing.yaml. These properties are kept here as we want as close to a 1:1 conversion as we can. If the properties should be dropped from the binding then this is a follow-up patch.

Quoted 8 lines
Quoted 5 lines

The properties in question are:
- pixelclk-active
- de-active
- hsync-active
- vsync-active

Sorry about that. They should be dropped, but certainly it is fine to do with a follow up patch.

I changed my mind - lets try to avoid too many patches.
So if you do not mind I will do it in this patch - and note it in the changelog.

Sam

Quoted 11 lines
Quoted 6 lines
Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>

Yours,
Linus Walleij

Reviewed-by on v1 15/36
#38 lore raw

Re: [PATCH v1 15/36] dt-bindings: display: convert simple lg panels to DT Schema

In reply to Sam Ravnborg
Quoted 8 lines · Sam Ravnborg

Add the lg panels that matches the panel-simple binding to panel-simple.yaml

Cc Alexandre Courbot <[email protected]>
Cc Brian Masney <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
Reviewed-by on v1 16/36
#40 lore raw

Re: [PATCH v1 16/36] dt-bindings: display: convert lg,lg4573 to DT Schema

In reply to Sam Ravnborg

Hello Sam,

Am 15.03.2020 um 14:43 schrieb Sam Ravnborg:

Quoted 10 lines
Cc Heiko Schocher <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
  .../bindings/display/panel/lg,lg4573.txt      | 19 ---------
  .../bindings/display/panel/lg,lg4573.yaml     | 41 +++++++++++++++++++
  2 files changed, 41 insertions(+), 19 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.txt create mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
Reviewed-by on v1 17/36
#43 lore raw

Re: [PATCH v1 17/36] dt-bindings: display: convert osddisplays,osd101t2587-53ts to DT Schema

In reply to Sam Ravnborg
Quoted 7 lines · Sam Ravnborg

osddisplays,osd101t2587-53ts is compatible with panel-simple binding, so list the compatible in the panel-simple binding file.

Cc Peter Ujfalusi <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
Quoted 5 lines
---
  .../display/panel/osddisplays,osd101t2587-53ts.txt | 14 --------------
  .../bindings/display/panel/panel-simple.yaml       |  2 ++
  2 files changed, 2 insertions(+), 14 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/panel/osddisplays,osd101t2587-53ts.txt

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#76 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

In reply to Sam Ravnborg

Hi Sam,

Quoted 19 lines · Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
  .../display/panel/lgphilips,lb035q02.txt      | 33 ------------
  .../display/panel/lgphilips,lb035q02.yaml     | 54 +++++++++++++++++++
  2 files changed, 54 insertions(+), 33 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt create mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml

Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted +0 -2
deleted file mode 100644
index 1a1e653e5407..000000000000
@@ -1,33 +0,0 @@
-LG.Philips LB035Q02 Panel
-=========================

Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt line 12

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted +0 -10
-
-Required properties:
-- compatible: "lgphilips,lb035q02"
-- enable-gpios: panel enable gpio
-
-Optional properties:
-- label: a symbolic name for the panel
-
-Required nodes:
-- Video port for DPI input

Isn't this also compatible with panel-simple bindings? 'label' is the only one not in panel-simple, but that's optional and has never been used by the panel driver.

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#77 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips,lb035q02 to DT Schema

Hi Tomi.

Thanks for your feedback.

Quoted 28 lines · Tomi Valkeinen

Hi Sam,

Quoted 25 lines · Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
  .../display/panel/lgphilips,lb035q02.txt      | 33 ------------
  .../display/panel/lgphilips,lb035q02.yaml     | 54 +++++++++++++++++++
  2 files changed, 54 insertions(+), 33 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt create mode 100644 Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml

Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted +0 -8
deleted file mode 100644
index 1a1e653e5407..000000000000
@@ -1,33 +0,0 @@
-LG.Philips LB035Q02 Panel
-=========================
-
-Required properties:
-- compatible: "lgphilips,lb035q02"
-- enable-gpios: panel enable gpio
-
-Optional properties:
Quoted 8 lines

Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt line 12

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.txt deleted +0 -4
-- label: a symbolic name for the panel
-
-Required nodes:
-- Video port for DPI input

Isn't this also compatible with panel-simple bindings? 'label' is the only one not in panel-simple, but that's optional and has never been used by the panel driver.

The panel is a SPI slave - which is not too obvious from the old binding.

The new DT Schema includes spi/spi-slave.yaml to give the binding proper access to the spi slave properties.

That would not be possible with panel-simple binding as no further properties are allowed with the panel-simple binding.

I hope this explains why there is a dedicated binding for this panel.

Sam

#78 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

Quoted 6 lines · Sam Ravnborg
Quoted 3 lines

Isn't this also compatible with panel-simple bindings? 'label' is the only one not in panel-simple, but that's optional and has never been used by the panel driver.

The panel is a SPI slave - which is not too obvious from the old binding.

Quoted 7 lines

The new DT Schema includes spi/spi-slave.yaml to give the binding proper access to the spi slave properties.

That would not be possible with panel-simple binding as no further properties are allowed with the panel-simple binding.

I hope this explains why there is a dedicated binding for this panel.

Hmm, but how is this different than, say, DSI panels? There are DSI panels in panel-simple bindings, and those might require DSI bus parameters ('reg' in the minimum).

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#79 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips,lb035q02 to DT Schema

Hi Tomi.

Quoted 11 lines · Tomi Valkeinen
Quoted 9 lines · Sam Ravnborg
Quoted 3 lines

Isn't this also compatible with panel-simple bindings? 'label' is the only one not in panel-simple, but that's optional and has never been used by the panel driver.

The panel is a SPI slave - which is not too obvious from the old binding.

The new DT Schema includes spi/spi-slave.yaml to give the binding proper access to the spi slave properties.

Quoted 8 lines
Quoted 4 lines

That would not be possible with panel-simple binding as no further properties are allowed with the panel-simple binding.

I hope this explains why there is a dedicated binding for this panel.

Hmm, but how is this different than, say, DSI panels? There are DSI panels in panel-simple bindings, and those might require DSI bus parameters ('reg' in the minimum).

We have panel-simple-dsi for DSI simple based panels. This binding includes the reg property.

If we have included DSI panels in panel-simple.yaml, and we likely have by accident, then they should be moved to panel-simple-dsi.yaml.

If they requires anything else then they shall have their own binding.

panel-simple.yaml and panel-simple.dsi.yaml are on purpose only for the simple panels and they have:
"additionalProperties: false" to avoid that a lot of extra sneaks in.

I actually considered shortly a panel-simple-spi.yaml, but the few panels I looked at had different names for the power-supply so that did not fly.
I did not check them all - we have today (with this patch-set) 9 bindings that references spi-slave.yaml.

Sam

Reviewed-by on v1 12/36
#32 lore raw

Re: [PATCH v1 12/36] dt-bindings: display: convert jdi,lt070me05000 to DT Schema

In reply to Sam Ravnborg

sam,

Thanks.

Quoted 127 lines · Sam Ravnborg
Cc Vinay Simha BN <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/jdi,lt070me05000.txt        | 31 ---------
 .../display/panel/jdi,lt070me05000.yaml       | 69 +++++++++++++++++++
 2 files changed, 69 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt deleted +0 -31
deleted file mode 100644
index 4989c91d505f..000000000000
@@ -1,31 +0,0 @@
-JDI model LT070ME05000 1200x1920 7" DSI Panel
-
-Required properties:
-- compatible: should be "jdi,lt070me05000"
-- vddp-supply: phandle of the regulator that provides the supply voltage
-  Power IC supply (3-5V)
-- iovcc-supply: phandle of the regulator that provides the supply voltage
-  IOVCC , power supply for LCM (1.8V)
-- enable-gpios: phandle of gpio for enable line
-  LED_EN, LED backlight enable, High active
-- reset-gpios: phandle of gpio for reset line
-  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
-  XRES, Reset, Low active
-- dcdc-en-gpios: phandle of the gpio for power ic line
-  Power IC supply enable, High active
-
-Example:
-
-       dsi0: qcom,mdss_dsi@4700000 {
-               panel@0 {
-                       compatible = "jdi,lt070me05000";
-                       reg = <0>;
-
-                       vddp-supply = <&pm8921_l17>;
-                       iovcc-supply = <&pm8921_lvs7>;
-
-                       enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
-                       reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
-                       dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
-               };
-       };
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file +69 -1
new file mode 100644
index 000000000000..e0abf68ecb19
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/jdi,lt070me05000.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: JDI model LT070ME05000 1200x1920 7" DSI Panel
+
+maintainers:
+  - Vinay Simha BN <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: jdi,lt070me05000
+
+  enable-gpios: true
+  reg: true
+  reset-gpios: true
+
+  vddp-supply:
+    description: |
+      The regulator that provides the supply voltage Power IC supply (3-5V)
+
+  iovcc-supply:
+    description: |
+      The regulator that provides the supply voltage IOVCC,
+      power supply for LCM (1.8V)
+
+  dcdc-en-gpios:
+    description: |
+      phandle of the gpio for power ic line
+      Power IC supply enable, High active
+
+required:
+  - compatible
+  - reg
+  - vddp-supply
+  - iovcc-supply
+  - enable-gpios
+  - reset-gpios
+  - dcdc-en-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi: qcom,mdss_dsi@4700000 {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "jdi,lt070me05000";
+            reg = <0>;
+
+            vddp-supply = <&pm8921_l17>;
+            iovcc-supply = <&pm8921_lvs7>;
+
+            enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
+            reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
+            dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...
--

2.20.1

Signature · 2 lines
regards,
vinaysimha
#80 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips, lb035q02 to DT Schema

In reply to Sam Ravnborg
Quoted 14 lines · Sam Ravnborg

We have panel-simple-dsi for DSI simple based panels. This binding includes the reg property.

If we have included DSI panels in panel-simple.yaml, and we likely have by accident, then they should be moved to panel-simple-dsi.yaml.

If they requires anything else then they shall have their own binding.

panel-simple.yaml and panel-simple.dsi.yaml are on purpose only for the simple panels and they have:
"additionalProperties: false" to avoid that a lot of extra sneaks in.

Quoted 5 lines

I actually considered shortly a panel-simple-spi.yaml, but the few panels I looked at had different names for the power-supply so that did not fly.
I did not check them all - we have today (with this patch-set) 9 bindings that references spi-slave.yaml.

Okay, I understand now. Makes sense.

panel-simple.c has dsi_of_match, which lists DSI panels. I was looking at that when I said panel-simple binding has DSI panels. At least auo,b080uan01 and osddisplays,osd101t2045-53ts are there, and earlier in this series you moved osddisplays,osd101t2587-53ts to panel-simple bindings.

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
maintainer
#4 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg
Quoted 2 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

What is an "independent binding"?

Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.

#5 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

Hi Mark.

Quoted 6 lines · Mark Brown
Quoted 2 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

What is an "independent binding"?

For several panels we have device trees that looks like this:

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    panel@0 {
        compatible = "kingdisplay,kd035g6-54nt";
        reg = <0>;

        spi-max-frequency = <3125000>;
        spi-3wire;
        spi-cs-high;
	...

The bindings are child of the spi controller node, but not specified in the same binding file as the spi controller node.

A lot of bindings repeats the descriptions of (some of) the pi-slave properties.
To avoid introducing yet another set of redundant and maybe incomplete SPI slave property descriptions I moved the relevant properties from spi-controller.yaml to spi-slave.yaml.

So SPI slaves can now reference spi-slave.yaml to get access to the SPI slave properties - and the copies can be avoided. Likewise spi-controller.yml now references spi-slave.yaml.

This was the best way I saw it could be done.

This approach is used in several bindings in this patch set.

Sam

maintainer
#6 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

Quoted 9 lines · Sam Ravnborg
Quoted 6 lines · Mark Brown
Quoted 2 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

What is an "independent binding"?

For several panels we have device trees that looks like this:

So what you're trying to do is define a generic class for SPI slaves which are just normal children of SPI nodes? I really can't get to there from your changelog so we need some work there - in particular "non-spi bindings" is *very* confusing as as far as I can see these are bindings for SPI devices.

Quoted 2 lines

The bindings are child of the spi controller node, but not specified in the same binding file as the spi controller node.

Of course not, this how all buses work isn't it?

Quoted 5 lines

So SPI slaves can now reference spi-slave.yaml to get access to the SPI slave properties - and the copies can be avoided. Likewise spi-controller.yml now references spi-slave.yaml.

This was the best way I saw it could be done.

Rob didn't do the binding conversion but he did review it - I'm a bit surprised that there's issues here?

Also shouldn't there be some constraint that these devices have to be the child of a SPI controller or something? Just including a file doesn't look right for something like class definition.

#7 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

Hi Mark.

Quoted 22 lines · Mark Brown
Quoted 9 lines · Sam Ravnborg
Quoted 6 lines · Mark Brown
Quoted 2 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

What is an "independent binding"?

For several panels we have device trees that looks like this:

So what you're trying to do is define a generic class for SPI slaves which are just normal children of SPI nodes? I really can't get to there from your changelog so we need some work there - in particular "non-spi bindings" is *very* confusing as as far as I can see these are bindings for SPI devices.

Quoted 2 lines

The bindings are child of the spi controller node, but not specified in the same binding file as the spi controller node.

Of course not, this how all buses work isn't it?

Quoted 8 lines
Quoted 5 lines

So SPI slaves can now reference spi-slave.yaml to get access to the SPI slave properties - and the copies can be avoided. Likewise spi-controller.yml now references spi-slave.yaml.

This was the best way I saw it could be done.

Rob didn't do the binding conversion but he did review it - I'm a bit surprised that there's issues here?

For panels we have panel-common.yaml that list all the typical properties used by a panel - so the individual panel bindings shall not repeat them.
This is also aligned with the principle of re-using properties rather than inventing new properties all over.

And with a number of bindings describing HW that is SPI slaves the idea is to do something like we do for panels.

I look forward for Rob's feedback - but as he is on vacation this week we may have to wait a week for that.

The simple way forward had been to do like we do in many other places and include a few SPI properties and be done with it.
This is an attempt to do something better.
If there is push-back or a nack, then we can always do like we do in other places and just duplicate the properties.

Quoted 3 lines

Also shouldn't there be some constraint that these devices have to be the child of a SPI controller or something? Just including a file doesn't look right for something like class definition.

It was the best I could come up with - and this patch was called out for review in the hope there is a better way than this patch.

We have similar examples like:
- pincfg-node.yaml
- regulatro.yaml
- dma-common.yaml

They are not exactly 1:1 to what we do with spi-slave.yaml, but they served as inspiration.

Sam

maintainer
#8 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

Quoted 2 lines · Sam Ravnborg

It was the best I could come up with - and this patch was called out for review in the hope there is a better way than this patch.

It definitely seems like a useful thing, just a bit surprised it's not already there and if this is the best way to do it.

Quoted 3 lines

We have similar examples like:
- pincfg-node.yaml
- regulatro.yaml

I'm curious what properties your consumers have for regulators - I'd expect them to just have simple pointers to the regualtors with no configuration.

Reviewed-by on v1 11/36
#30 lore raw

Re: [PATCH v1 11/36] dt-bindings: display: convert innolux,p120zdg-bf1 to DT Schema

In reply to Sam Ravnborg

Hi,

Quoted 10 lines · Sam Ravnborg
Cc Sandeep Panda <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/innolux,p120zdg-bf1.txt     | 22 ----------
 .../display/panel/innolux,p120zdg-bf1.yaml    | 43 +++++++++++++++++++
 2 files changed, 43 insertions(+), 22 deletions(-)
#9 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg

Hi Sam,

Quoted 84 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties.

---
 .../bindings/spi/spi-controller.yaml          | 63 +-------------
 .../devicetree/bindings/spi/spi-slave.yaml    | 83 +++++++++++++++++++
 2 files changed, 86 insertions(+), 60 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-slave.yaml
Documentation/devicetree/bindings/spi/spi-controller.yaml +3 -50
index 1e0ca6ccf64b..99531c8d10dd 100644
@@ -67,71 +67,14 @@ patternProperties:
   "^.*@[0-9a-f]+$":
     type: object
 
+    allOf:
+      - $ref: spi-slave.yaml#
+
     properties:
       compatible:
         description:
           Compatible of the SPI device.
 
-      reg:
-        minimum: 0
-        maximum: 256
-        description:
-          Chip select used by the device.
-
-      spi-3wire:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires 3-wire mode.
-
-      spi-cpha:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires shifted clock phase (CPHA) mode.
-
-      spi-cpol:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires inverse clock polarity (CPOL) mode.
-
-      spi-cs-high:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the chip select active high.
-
-      spi-lsb-first:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the LSB first mode.
-
-      spi-max-frequency:
-        $ref: /schemas/types.yaml#/definitions/uint32
-        description:
-          Maximum SPI clocking speed of the device in Hz.
-
-      spi-rx-bus-width:
-        allOf:
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MISO.
-
-      spi-rx-delay-us:
-        description:
-          Delay, in microseconds, after a read transfer.
-
-      spi-tx-bus-width:
-        allOf:

Documentation/devicetree/bindings/spi/spi-controller.yaml patternProperties: · line 134

Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-controller.yaml +0 -10
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MOSI.
-
-      spi-tx-delay-us:
-        description:
-          Delay, in microseconds, after a write transfer.
-

I can see what you're trying to do, but you don't really need to.

All the SPI devices will be declared under a spi controller node that will validate its child nodes (and thus the devices) already.

Doing it this way would actually make all the checks happen twice, once as part of the SPI controller, once as part of the SPI device binding, without any good reason.

Maxime

#10 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

Hi Maxime.

Quoted 100 lines · Maxime Ripard

Hi Sam,

Quoted 84 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties.

---
 .../bindings/spi/spi-controller.yaml          | 63 +-------------
 .../devicetree/bindings/spi/spi-slave.yaml    | 83 +++++++++++++++++++
 2 files changed, 86 insertions(+), 60 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-slave.yaml
Documentation/devicetree/bindings/spi/spi-controller.yaml +3 -50
index 1e0ca6ccf64b..99531c8d10dd 100644
@@ -67,71 +67,14 @@ patternProperties:
   "^.*@[0-9a-f]+$":
     type: object
 
+    allOf:
+      - $ref: spi-slave.yaml#
+
     properties:
       compatible:
         description:
           Compatible of the SPI device.
 
-      reg:
-        minimum: 0
-        maximum: 256
-        description:
-          Chip select used by the device.
-
-      spi-3wire:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires 3-wire mode.
-
-      spi-cpha:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires shifted clock phase (CPHA) mode.
-
-      spi-cpol:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires inverse clock polarity (CPOL) mode.
-
-      spi-cs-high:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the chip select active high.
-
-      spi-lsb-first:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the LSB first mode.
-
-      spi-max-frequency:
-        $ref: /schemas/types.yaml#/definitions/uint32
-        description:
-          Maximum SPI clocking speed of the device in Hz.
-
-      spi-rx-bus-width:
-        allOf:
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MISO.
-
-      spi-rx-delay-us:
-        description:
-          Delay, in microseconds, after a read transfer.
-
-      spi-tx-bus-width:
-        allOf:

Documentation/devicetree/bindings/spi/spi-controller.yaml patternProperties: · line 134

Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-controller.yaml +0 -10
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MOSI.
-
-      spi-tx-delay-us:
-        description:
-          Delay, in microseconds, after a write transfer.
-

I can see what you're trying to do, but you don't really need to.

Quoted 2 lines

All the SPI devices will be declared under a spi controller node that will validate its child nodes (and thus the devices) already.

This was the missing piece - thanks.
And as Mark put it "why is this suddenly an issue"? Turns out this is already properly handled and I made up an issue. Maybe Mark tried to explian it to me already...

Quoted 4 lines

Doing it this way would actually make all the checks happen twice, once as part of the SPI controller, once as part of the SPI device binding, without any good reason.

I had focus on validating the example in the binding file and not the full picture.

One thing I do not see properly addressed, but maybe I just miss it. What triggers that we catch properties that are not supposed to be present?

If we see a unsupported property "foobar":

spi {
    ...
    panel {
       ....
       foobar = <1>;
    };
};

somewhere in a SPI slave binding we should catch this. If for no other reasons that it could be a simple spelling mistake that otherwise could go undetected for a long time.
But maybe this is really not feasible to do?

Sam

Reviewed-by on v1 26/36
#58 lore raw

Re: [PATCH v1 26/36] dt-bindings: display: convert sony, acx565akm to DT Schema

In reply to Sam Ravnborg
Quoted 97 lines · Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
  .../bindings/display/panel/sony,acx565akm.txt | 30 -----------
  .../display/panel/sony,acx565akm.yaml         | 53 +++++++++++++++++++
  2 files changed, 53 insertions(+), 30 deletions(-)

delete mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml

Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt deleted +0 -30
deleted file mode 100644
index e12333280749..000000000000
@@ -1,30 +0,0 @@
-Sony ACX565AKM SDI Panel
-========================
-
-Required properties:
-- compatible: "sony,acx565akm"
-
-Optional properties:
-- label: a symbolic name for the panel
-- reset-gpios: panel reset gpio
-
-Required nodes:
-- Video port for SDI input
-
-Example
--------
-
-acx565akm@2 {
-	compatible = "sony,acx565akm";
-	spi-max-frequency = <6000000>;
-	reg = <2>;
-
-	label = "lcd";
-	reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&sdi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +43 -0
new file mode 100644
index 000000000000..a0b1abb9f33d
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sony,acx565akm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony ACX565AKM SDI Panel
+
+maintainers:
+  - Tomi Valkeinen <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+  - $ref: ../../spi/spi-slave.yaml#
+
+properties:
+  compatible:
+    const: sony,acx565akm
+
+  label: true
+  reset-gpios: true
+  port: true
+
+required:
+  - compatible
+  - port
+
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        acx565akm@2 {
+            compatible = "sony,acx565akm";
+            spi-max-frequency = <6000000>;
+            reg = <2>;
+
+            label = "lcd";
+            reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */

Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml line 53

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +10 -0
+
+            port {
+                lcd_in: endpoint {
+                    remote-endpoint = <&sdi_out>;
+                };
+            };
+        };
+    };
+
+...

Tomi

Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#81 lore raw

Re: [PATCH v1 35/36] dt-bindings: display: convert lgphilips,lb035q02 to DT Schema

In reply to Tomi Valkeinen

Hi Tomi.

Quoted 5 lines · Tomi Valkeinen
Quoted 3 lines · Sam Ravnborg

We have panel-simple-dsi for DSI simple based panels. This binding includes the reg property.

Quoted 8 lines
Quoted 3 lines

If we have included DSI panels in panel-simple.yaml, and we likely have by accident, then they should be moved to panel-simple-dsi.yaml.

panel-simple.c has dsi_of_match, which lists DSI panels. I was looking at that when I said panel-simple binding has DSI panels. At least auo,b080uan01 and osddisplays,osd101t2045-53ts are there, and earlier in this series you moved osddisplays,osd101t2587-53ts to panel-simple bindings.

I will clean this up as part of v2.
Thanks.

Sam

#11 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg

Hi,

Quoted 101 lines · Sam Ravnborg
Quoted 100 lines · Maxime Ripard

Hi Sam,

Quoted 84 lines · Sam Ravnborg

Independent bindings can be SPI slaves which for example is the case for several panel bindings.

Move SPI slave properties to spi-slave.yaml so the independent SPI slave bindings can include spi-slave.yaml rather than duplicating the properties.

---
 .../bindings/spi/spi-controller.yaml          | 63 +-------------
 .../devicetree/bindings/spi/spi-slave.yaml    | 83 +++++++++++++++++++
 2 files changed, 86 insertions(+), 60 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-slave.yaml
Documentation/devicetree/bindings/spi/spi-controller.yaml +3 -50
index 1e0ca6ccf64b..99531c8d10dd 100644
@@ -67,71 +67,14 @@ patternProperties:
   "^.*@[0-9a-f]+$":
     type: object
 
+    allOf:
+      - $ref: spi-slave.yaml#
+
     properties:
       compatible:
         description:
           Compatible of the SPI device.
 
-      reg:
-        minimum: 0
-        maximum: 256
-        description:
-          Chip select used by the device.
-
-      spi-3wire:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires 3-wire mode.
-
-      spi-cpha:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires shifted clock phase (CPHA) mode.
-
-      spi-cpol:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires inverse clock polarity (CPOL) mode.
-
-      spi-cs-high:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the chip select active high.
-
-      spi-lsb-first:
-        $ref: /schemas/types.yaml#/definitions/flag
-        description:
-          The device requires the LSB first mode.
-
-      spi-max-frequency:
-        $ref: /schemas/types.yaml#/definitions/uint32
-        description:
-          Maximum SPI clocking speed of the device in Hz.
-
-      spi-rx-bus-width:
-        allOf:
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MISO.
-
-      spi-rx-delay-us:
-        description:
-          Delay, in microseconds, after a read transfer.
-
-      spi-tx-bus-width:
-        allOf:

Documentation/devicetree/bindings/spi/spi-controller.yaml patternProperties: · line 134

Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-controller.yaml +0 -10
-          - $ref: /schemas/types.yaml#/definitions/uint32
-          - enum: [ 1, 2, 4, 8 ]
-          - default: 1
-        description:
-          Bus width to the SPI bus used for MOSI.
-
-      spi-tx-delay-us:
-        description:
-          Delay, in microseconds, after a write transfer.
-

I can see what you're trying to do, but you don't really need to.

Quoted 7 lines
Quoted 2 lines

All the SPI devices will be declared under a spi controller node that will validate its child nodes (and thus the devices) already.

This was the missing piece - thanks.
And as Mark put it "why is this suddenly an issue"? Turns out this is already properly handled and I made up an issue. Maybe Mark tried to explian it to me already...

Yeah, the schemas multi-layering thing is pretty difficult to get used to :)

Quoted 22 lines
Quoted 4 lines

Doing it this way would actually make all the checks happen twice, once as part of the SPI controller, once as part of the SPI device binding, without any good reason.

I had focus on validating the example in the binding file and not the full picture.

One thing I do not see properly addressed, but maybe I just miss it. What triggers that we catch properties that are not supposed to be present?

If we see a unsupported property "foobar":

spi {
    ...
    panel {
       ....
       foobar = <1>;
    };
};
Quoted 4 lines

somewhere in a SPI slave binding we should catch this. If for no other reasons that it could be a simple spelling mistake that otherwise could go undetected for a long time.
But maybe this is really not feasible to do?

So you have multiple things here you can do.

Like I said, the schemas are all run as some kind of layers, and each schema must validate, so you'll want to make a schema that will validate only what's it supposed to be validating.

Let's use your SPI panel as an example. The SPI controller schema has a description of what a controller is supposed to look like, and the properties that are useful to that controller in the devices (things like the chip-select number, phase settings, etc).

However, at the controller level, you have no idea what devices are connected, and thus you cannot limit the number of properties a child is going to have.

The second layer that comes in is the device binding itself. Here, you'll know what the device itself needs, but you don't really care about the SPI controller setting itself, since you could have pretty much each combination in various DTs.

The main property to restrict the allowed properties is additionalProperties, and setting it to false will raise an error for each property encountered that isn't part of the *current* schema. This means that we can't set it for the spi controller binding, and we would need to duplicate the list of all the generic SPI properties in each and every binding to avoid spurious error
messages: this is not really ideal, but some (early) schemas are doing this.

The next spec of the schema language introduces a new property though that is unevaluatedProperties, which works pretty much like additionalProperties, but will emit an error only if no schema defines it. Like I said, the library implementing the schema validation logic doesn't implement that new spec yet, but the tools allow that property to be set (but it's ignored). It would be best to simply use unevaluatedProperties in your panel patch, and when the tools will be updated you'll get the behaviour you want.

Maxime

maintainer
#12 lore raw

Re: [PATCH v1 02/36] dt-bindings: spi: support non-spi bindings as SPI slaves

In reply to Sam Ravnborg
Quoted 9 lines · Sam Ravnborg
Quoted 2 lines · Maxime Ripard

All the SPI devices will be declared under a spi controller node that will validate its child nodes (and thus the devices) already.

This was the missing piece - thanks.
And as Mark put it "why is this suddenly an issue"? Turns out this is already properly handled and I made up an issue. Maybe Mark tried to explian it to me already...

No, I didn't actually understand how it worked - I was just pretty sure that it should and trusted that Rob and Maxime had got it right.

Reviewed-by on v1 34/36
#74 lore raw

Re: [PATCH v1 34/36] dt-bindings: display: convert seiko,43wvf1g to DT Schema

In reply to Sam Ravnborg

Em dom., 15 de mar. de 2020 às 10:46, Sam Ravnborg <[email protected]> escreveu:

Quoted 6 lines
Cc Marco Franchi <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>

---

Thanks!

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 13/36
#35 lore raw

Re: [PATCH v1 13/36] dt-bindings: display: convert kingdisplay,kd035g6-54nt to DT Schema

In reply to Sam Ravnborg

Hi Sam,

Quoted 1 line · Sam Ravnborg

Cheers,
-Paul

Quoted 132 lines
Cc Paul Cercueil <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../panel/kingdisplay,kd035g6-54nt.txt        | 42 -------------
 .../panel/kingdisplay,kd035g6-54nt.yaml       | 60 
+++++++++++++++++++
 2 files changed, 60 insertions(+), 42 deletions(-)
 delete mode 100644 
Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt
 create mode 100644 

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt deleted +0 -1
deleted file mode 100644
index fa9596082e44..000000000000
--- 

a/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt +++ /dev/null

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.txt deleted +0 -42
@@ -1,42 +0,0 @@
-King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT LCD panel
-
-Required properties:
-- compatible: should be "kingdisplay,kd035g6-54nt"
-- power-supply: See panel-common.txt
-- reset-gpios: See panel-common.txt
-
-Optional properties:
-- backlight: see panel-common.txt
-
-The generic bindings for the SPI slaves documented in [1] also apply.
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[2]: Documentation/devicetree/bindings/graph.txt
-
-Example:
-
-&spi {
-	panel@0 {
-		compatible = "kingdisplay,kd035g6-54nt";
-		reg = <0>;
-
-		spi-max-frequency = <3125000>;
-		spi-3wire;
-		spi-cs-high;
-
-		reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
-
-		backlight = <&backlight>;
-		power-supply = <&ldo6>;
-
-		port {
-			panel_input: endpoint {
-				remote-endpoint = <&panel_output>;
-			};
-		};
-	};
-};
(quoted diff) +0 -0
new file mode 100644
index 000000000000..31fc63294a9f

b/Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml new file +4 -0
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: 

http://devicetree.org/schemas/display/panel/kingdisplay,kd035g6-54nt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

(quoted diff) +2 -0
+
+title: King Display KD035G6-54NT 3.5" (320x240 pixels) 24-bit TFT 

LCD panel

Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.yaml new file +53 -1
+
+maintainers:
+  - Paul Cercueil <[email protected]>
+
+allOf:
+  - $ref: ../../spi/spi-slave.yaml#
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: kingdisplay,kd035g6-54nt
+
+  backlight: true
+  port: true
+  power-supply: true
+  reg: true
+  reset-gpios: true
+
+required:
+  - compatible
+  - power-supply
+  - reset-gpios
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "kingdisplay,kd035g6-54nt";
+            reg = <0>;
+
+            spi-max-frequency = <3125000>;
+            spi-3wire;
+            spi-cs-high;
+
+            reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
+
+            backlight = <&backlight>;
+            power-supply = <&ldo6>;
+
+            port {
+                panel_input: endpoint {
+                    remote-endpoint = <&panel_output>;
+                };
+            };
+        };
+    };
+
+...
--
Quoted 2 lines

2.20.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw

Re: [PATCH v1 08/36] dt-bindings: display: convert feiyang,fy07024di26a30d to DT Schema

Hi Jagan.

Quoted 6 lines · Jagan Teki

Hi Sam Ravmborg,

I send the series for panels which I worked already [1], would like to send the next version for those. will that work for you?

[1] https://patchwork.kernel.org/cover/11315063/

That would be great. Please do.

Sam

maintainer
#23 lore raw

Re: [PATCH v1 07/36] dt-bindings: display: convert ilitek,ili9881c to DT Schema

In reply to Sam Ravnborg
Quoted 11 lines · Sam Ravnborg
Cc Maxime Ripard <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/ilitek,ili9881c.txt         | 20 --------
 .../display/panel/ilitek,ili9881c.yaml        | 50 +++++++++++++++++++
 2 files changed, 50 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/ilitek,ili9881c.yaml

My bot found errors running 'make dt_binding_check' on your patch:

/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.example.dt.yaml: panel@0: 'power-gpios' does not match any of the regexes: 'pinctrl-[0-9]+' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/allwinner,sun6i-a31-mipi-dsi.example.dt.yaml: panel@0: 'power-supply' is a required property

See https://patchwork.ozlabs.org/patch/1255018
Please check and re-submit.

maintainer
#14 lore raw

Re: [PATCH v1 03/36] dt-bindings: display: convert samsung,s6e63m0 to DT Schema

In reply to Sam Ravnborg
Quoted 84 lines · Sam Ravnborg

The binding for this panel is a SPI slave.
Reference spi-slave.yaml
to avoid duplicating all properties.

Cc Jonathan Bakker <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/samsung,s6e63m0.txt         | 33 -----------
 .../display/panel/samsung,s6e63m0.yaml        | 58 +++++++++++++++++++
 2 files changed, 58 insertions(+), 33 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt deleted +0 -33
deleted file mode 100644
index 9fb9ebeef8e4..000000000000
@@ -1,33 +0,0 @@
-Samsung s6e63m0 AMOLED LCD panel
-
-Required properties:
-  - compatible: "samsung,s6e63m0"
-  - reset-gpios: GPIO spec for reset pin
-  - vdd3-supply: VDD regulator
-  - vci-supply: VCI regulator
-
-The panel must obey rules for SPI slave device specified in document [1].
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [2]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[2]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-		s6e63m0: display@0 {
-			compatible = "samsung,s6e63m0";
-			reg = <0>;
-			reset-gpio = <&mp05 5 1>;
-			vdd3-supply = <&ldo12_reg>;
-			vci-supply = <&ldo11_reg>;
-			spi-max-frequency = <1200000>;
-
-			port {
-				lcd_ep: endpoint {
-					remote-endpoint = <&fimd_ep>;
-				};
-			};
-		};
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml new file +24 -0
new file mode 100644
index 000000000000..204ed76da84d
@@ -0,0 +1,58 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/samsung,s6e63m0.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung s6e63m0 AMOLED LCD panel
+
+maintainers:
+  - Jonathan Bakker <[email protected]>
+
+allOf:
+  - $ref: ../../spi/spi-slave.yaml#
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: samsung,s6e63m0
+
+  reg: true
+  reset-gpios: true
+  port: true
+
+  vdd3-supply:

Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml line 34

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml new file +10 -0
+    description: VDD regulator
+
+  vci-supply:
+    description: VCI regulator
+
+required:
+  - compatible
+  - reset-gpios
+  - vdd3-supply
+  - vci-supply

Shouldn't port be required? Not really clear in the binding doc, but in the driver it doesn't look like display data goes over spi.

Rob

Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml line 39

Quoted 5 lines
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml new file +5 -0
+
+examples:
+  - |
+    spi {
+        reg = <0xf00 0x20>;

Drop this or do 'spi@f00'. If it doesn't warn with W=1, it's only a matter of time.

Quoted 22 lines
Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml new file +19 -0
+        #address-cells = <1>;
+        #size-cells = <0>;
+        display@0 {
+            compatible = "samsung,s6e63m0";
+            reg = <0>;
+            reset-gpios = <&mp05 5 1>;
+            vdd3-supply = <&ldo12_reg>;
+            vci-supply = <&ldo11_reg>;
+            spi-max-frequency = <1200000>;
+
+            port {
+                lcd_ep: endpoint {
+                    remote-endpoint = <&fimd_ep>;
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#17 lore raw

Re: [PATCH v1 04/36] dt-bindings: display: convert arm,versatile-tft-panel to DT Schema

In reply to Sam Ravnborg
Quoted 84 lines · Sam Ravnborg
Cc Linus Walleij <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/arm,versatile-tft-panel.txt | 31 -----------
 .../panel/arm,versatile-tft-panel.yaml        | 51 +++++++++++++++++++
 2 files changed, 51 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.txt deleted +0 -31
deleted file mode 100644
index 0601a9e34703..000000000000
@@ -1,31 +0,0 @@
-ARM Versatile TFT Panels
-
-These panels are connected to the daughterboards found on the
-ARM Versatile reference designs.
-
-This device node must appear as a child to a "syscon"-compatible
-node.
-
-Required properties:
-- compatible: should be "arm,versatile-tft-panel"
-
-Required subnodes:
-- port: see display/panel/panel-common.yaml, graph.txt
-
-
-Example:
-
-sysreg@0 {
-	compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
-	reg = <0x00000 0x1000>;
-
-	panel: display@0 {
-		compatible = "arm,versatile-tft-panel";
-
-		port {
-			panel_in: endpoint {
-				remote-endpoint = <&foo>;
-			};
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml new file +30 -0
new file mode 100644
index 000000000000..8ad7305887b4
@@ -0,0 +1,51 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/arm,versatile-tft-panel.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM Versatile TFT Panels
+
+maintainers:
+  - Linus Walleij <[email protected]>
+
+description: |
+  These panels are connected to the daughterboards found on the
+  ARM Versatile reference designs.
+
+  This device node must appear as a child to a "syscon"-compatible
+  node.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: arm,versatile-tft-panel
+
+  port: true
+
+required:
+  - compatible
+  - port

Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml line 40

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml new file +10 -0
+
+additionalProperties: false
+
+examples:
+  - |
+    sysreg {
+        compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
+        reg = <0x00000 0x1000>;
+
+        panel: display@0 {

Drop the unit-address or add 'reg'.

Quoted 14 lines
Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml new file +11 -0
+            compatible = "arm,versatile-tft-panel";
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&foo>;
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#33 lore raw

Re: [PATCH v1 12/36] dt-bindings: display: convert jdi,lt070me05000 to DT Schema

In reply to Sam Ravnborg
Quoted 96 lines · Sam Ravnborg
Cc Vinay Simha BN <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/jdi,lt070me05000.txt        | 31 ---------
 .../display/panel/jdi,lt070me05000.yaml       | 69 +++++++++++++++++++
 2 files changed, 69 insertions(+), 31 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt deleted +0 -31
deleted file mode 100644
index 4989c91d505f..000000000000
@@ -1,31 +0,0 @@
-JDI model LT070ME05000 1200x1920 7" DSI Panel
-
-Required properties:
-- compatible: should be "jdi,lt070me05000"
-- vddp-supply: phandle of the regulator that provides the supply voltage
-  Power IC supply (3-5V)
-- iovcc-supply: phandle of the regulator that provides the supply voltage
-  IOVCC , power supply for LCM (1.8V)
-- enable-gpios: phandle of gpio for enable line
-  LED_EN, LED backlight enable, High active
-- reset-gpios: phandle of gpio for reset line
-  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
-  XRES, Reset, Low active
-- dcdc-en-gpios: phandle of the gpio for power ic line
-  Power IC supply enable, High active
-
-Example:
-
-	dsi0: qcom,mdss_dsi@4700000 {
-		panel@0 {
-			compatible = "jdi,lt070me05000";
-			reg = <0>;
-
-			vddp-supply = <&pm8921_l17>;
-			iovcc-supply = <&pm8921_lvs7>;
-
-			enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
-			reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
-			dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
-		};
-	};
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file +42 -0
new file mode 100644
index 000000000000..e0abf68ecb19
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/jdi,lt070me05000.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: JDI model LT070ME05000 1200x1920 7" DSI Panel
+
+maintainers:
+  - Vinay Simha BN <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: jdi,lt070me05000
+
+  enable-gpios: true
+  reg: true
+  reset-gpios: true
+
+  vddp-supply:
+    description: |
+      The regulator that provides the supply voltage Power IC supply (3-5V)
+
+  iovcc-supply:
+    description: |
+      The regulator that provides the supply voltage IOVCC,
+      power supply for LCM (1.8V)
+
+  dcdc-en-gpios:
+    description: |
+      phandle of the gpio for power ic line
+      Power IC supply enable, High active
+
+required:
+  - compatible
+  - reg
+  - vddp-supply
+  - iovcc-supply
+  - enable-gpios

Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml line 52

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file +10 -0
+  - reset-gpios
+  - dcdc-en-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi: qcom,mdss_dsi@4700000 {

dsi {

Quoted 20 lines
Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.yaml new file +17 -0
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "jdi,lt070me05000";
+            reg = <0>;
+
+            vddp-supply = <&pm8921_l17>;
+            iovcc-supply = <&pm8921_lvs7>;
+
+            enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
+            reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
+            dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#41 lore raw

Re: [PATCH v1 16/36] dt-bindings: display: convert lg,lg4573 to DT Schema

In reply to Sam Ravnborg
Quoted 62 lines · Sam Ravnborg
Cc Heiko Schocher <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/lg,lg4573.txt      | 19 ---------
 .../bindings/display/panel/lg,lg4573.yaml     | 41 +++++++++++++++++++
 2 files changed, 41 insertions(+), 19 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml
Documentation/devicetree/bindings/display/panel/lg,lg4573.txt deleted +0 -19
deleted file mode 100644
index 824441f4e95a..000000000000
@@ -1,19 +0,0 @@
-LG LG4573 TFT Liquid Crystal Display with SPI control bus
-
-Required properties:
-  - compatible: "lg,lg4573"
-  - reg: address of the panel on the SPI bus
-
-The panel must obey rules for SPI slave device specified in document [1].
-
-[1]: Documentation/devicetree/bindings/spi/spi-bus.txt
-
-Example:
-
-	lcd_panel: display@0 {
-		#address-cells = <1>;
-		#size-cells = <1>;
-		compatible = "lg,lg4573";
-		spi-max-frequency = <10000000>;
-		reg = <0>;
-	};
Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml new file +20 -0
new file mode 100644
index 000000000000..b5b475cf8406
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/lg,lg4573.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: LG LG4573 TFT Liquid Crystal Display with SPI control bus
+
+maintainers:
+  - Heiko Schocher <[email protected]>
+
+allOf:
+  - $ref: ../../spi/spi-slave.yaml#
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: lg,lg4573
+
+  reg: true

Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml line 30

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml new file +10 -0
+  spi-max-frequency: true
+
+required:
+  - compatible
+  - reg
+
+examples:
+  - |
+    spi {
+        compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";

Better to drop this or it's going to fail when there's a schema for this spi controller.

Quoted 14 lines
Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml new file +11 -0
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        lcd_panel: display@0 {
+            compatible = "lg,lg4573";
+            spi-max-frequency = <10000000>;
+            reg = <0>;
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#45 lore raw

Re: [PATCH v1 18/36] dt-bindings: display: convert raydium,rm67191 to DT Schema

In reply to Sam Ravnborg
Quoted 112 lines · Sam Ravnborg
Cc Robert Chiras <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/raydium,rm67191.txt         | 41 ----------
 .../display/panel/raydium,rm67191.yaml        | 75 +++++++++++++++++++
 2 files changed, 75 insertions(+), 41 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt deleted +0 -41
deleted file mode 100644
index 10424695aa02..000000000000
@@ -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>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +48 -0
new file mode 100644
index 000000000000..b78b66a4336f
@@ -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 <[email protected]>
+
+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

Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml line 58

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +10 -0
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel {

panel@0

I thought our dsi bus binding would catch this...

Quoted 20 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +17 -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>;
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#53 lore raw

Re: [PATCH v1 22/36] dt-bindings: display: convert samsung, ld9040 to DT Schema

In reply to Sam Ravnborg
Quoted 111 lines · Sam Ravnborg
Cc Andrzej Hajda <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/samsung,ld9040.txt |  66 ------------
 .../display/panel/samsung,ld9040.yaml         | 100 ++++++++++++++++++
 2 files changed, 100 insertions(+), 66 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml
Documentation/devicetree/bindings/display/panel/samsung,ld9040.txt deleted +0 -66
deleted file mode 100644
index 354d4d1df4ff..000000000000
@@ -1,66 +0,0 @@
-Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
-
-Required properties:
-  - compatible: "samsung,ld9040"
-  - reg: address of the panel on SPI bus
-  - vdd3-supply: core voltage supply
-  - vci-supply: voltage supply for analog circuits
-  - reset-gpios: a GPIO spec for the reset pin
-  - display-timings: timings for the connected panel according to [1]
-
-The panel must obey rules for SPI slave device specified in document [2].
-
-Optional properties:
-  - power-on-delay: delay after turning regulators on [ms]
-  - reset-delay: delay after reset sequence [ms]
-  - panel-width-mm: physical panel width [mm]
-  - panel-height-mm: physical panel height [mm]
-
-The device node can contain one 'port' child node with one child
-'endpoint' node, according to the bindings defined in [3]. This
-node should describe panel's video bus.
-
-[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt
-[2]: Documentation/devicetree/bindings/spi/spi-bus.txt
-[3]: Documentation/devicetree/bindings/media/video-interfaces.txt
-
-Example:
-
-	lcd@0 {
-		compatible = "samsung,ld9040";
-		reg = <0>;
-		vdd3-supply = <&ldo7_reg>;
-		vci-supply = <&ldo17_reg>;
-		reset-gpios = <&gpy4 5 0>;
-		spi-max-frequency = <1200000>;
-		spi-cpol;
-		spi-cpha;
-		power-on-delay = <10>;
-		reset-delay = <10>;
-		panel-width-mm = <90>;
-		panel-height-mm = <154>;
-
-		display-timings {
-			timing {
-				clock-frequency = <23492370>;
-				hactive = <480>;
-				vactive = <800>;
-				hback-porch = <16>;
-				hfront-porch = <16>;
-				vback-porch = <2>;
-				vfront-porch = <28>;
-				hsync-len = <2>;
-				vsync-len = <1>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <0>;
-				pixelclk-active = <0>;
-			};
-		};
-
-		port {
-			lcd_ep: endpoint {
-				remote-endpoint = <&fimd_dpi_ep>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +22 -0
new file mode 100644
index 000000000000..b6e7e87411e8
@@ -0,0 +1,100 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/samsung,ld9040.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Samsung LD9040 AMOLED LCD parallel RGB panel with SPI control bus
+
+maintainers:
+  - Andrzej Hajda <[email protected]>
+
+allOf:
+  - $ref: ../../spi/spi-slave.yaml#
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: samsung,ld9040
+
+  display-timings: true
+  port: true
+  reg: true

Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml line 32

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +10 -0
+  reset-gpios: true
+
+  vdd3-supply:
+    description: core voltage supply
+
+  vci-supply:
+    description: voltage supply for analog circuits
+
+  power-on-delay:
+    description: delay after turning regulators on [ms]

This shouldn't really be needed with a specific compatible...

It needs a type reference.

Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml line 35

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +3 -0
+
+  reset-delay:
+    description: delay after reset sequence [ms]

So does this.

Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml line 38

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +3 -0
+
+  panel-width-mm:
+    description: physical panel width [mm]

And this.

Quoted 65 lines
Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml new file +62 -0
+
+  panel-height-mm:
+    description: physical panel height [mm]
+
+required:
+  - compatible
+  - reg
+  - vdd3-supply
+  - vci-supply
+  - reset-gpios
+  - display-timings
+
+examples:
+  - |
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        lcd@0 {
+            compatible = "samsung,ld9040";
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            reg = <0>;
+            vdd3-supply = <&ldo7_reg>;
+            vci-supply = <&ldo17_reg>;
+            reset-gpios = <&gpy4 5 0>;
+            spi-max-frequency = <1200000>;
+            spi-cpol;
+            spi-cpha;
+            power-on-delay = <10>;
+            reset-delay = <10>;
+            panel-width-mm = <90>;
+            panel-height-mm = <154>;
+
+            display-timings {
+                timing {
+                    clock-frequency = <23492370>;
+                    hactive = <480>;
+                    vactive = <800>;
+                    hback-porch = <16>;
+                    hfront-porch = <16>;
+                    vback-porch = <2>;
+                    vfront-porch = <28>;
+                    hsync-len = <2>;
+                    vsync-len = <1>;
+                    hsync-active = <0>;
+                    vsync-active = <0>;
+                    de-active = <0>;
+                    pixelclk-active = <0>;
+                };
+            };
+
+            port {
+                lcd_ep: endpoint {
+                    remote-endpoint = <&fimd_dpi_ep>;
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#59 lore raw

Re: [PATCH v1 26/36] dt-bindings: display: convert sony, acx565akm to DT Schema

In reply to Sam Ravnborg
Quoted 80 lines · Sam Ravnborg
Cc Tomi Valkeinen <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../bindings/display/panel/sony,acx565akm.txt | 30 -----------
 .../display/panel/sony,acx565akm.yaml         | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 30 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml
Documentation/devicetree/bindings/display/panel/sony,acx565akm.txt deleted +0 -30
deleted file mode 100644
index e12333280749..000000000000
@@ -1,30 +0,0 @@
-Sony ACX565AKM SDI Panel
-========================
-
-Required properties:
-- compatible: "sony,acx565akm"
-
-Optional properties:
-- label: a symbolic name for the panel
-- reset-gpios: panel reset gpio
-
-Required nodes:
-- Video port for SDI input
-
-Example
--------
-
-acx565akm@2 {
-	compatible = "sony,acx565akm";
-	spi-max-frequency = <6000000>;
-	reg = <2>;
-
-	label = "lcd";
-	reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&sdi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +27 -0
new file mode 100644
index 000000000000..a0b1abb9f33d
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sony,acx565akm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony ACX565AKM SDI Panel
+
+maintainers:
+  - Tomi Valkeinen <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+  - $ref: ../../spi/spi-slave.yaml#
+
+properties:
+  compatible:
+    const: sony,acx565akm
+
+  label: true
+  reset-gpios: true
+  port: true
+
+required:
+  - compatible
+  - port
+

Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml line 37

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +10 -0
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    spi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        acx565akm@2 {

panel@2

Quoted 19 lines
Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml new file +16 -0
+            compatible = "sony,acx565akm";
+            spi-max-frequency = <6000000>;
+            reg = <2>;
+
+            label = "lcd";
+            reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
+
+            port {
+                lcd_in: endpoint {
+                    remote-endpoint = <&sdi_out>;
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#67 lore raw

Re: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

In reply to Sam Ravnborg
Quoted 89 lines · Sam Ravnborg
Cc Tony Lindgren <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/sharp,ls037v7dw01.txt       | 43 ------------
 .../display/panel/sharp,ls037v7dw01.yaml      | 66 +++++++++++++++++++
 2 files changed, 66 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.txt deleted +0 -43
deleted file mode 100644
index 0cc8981e9d49..000000000000
@@ -1,43 +0,0 @@
-SHARP LS037V7DW01 TFT-LCD panel
-===================================
-
-Required properties:
-- compatible: "sharp,ls037v7dw01"
-
-Optional properties:
-- label: a symbolic name for the panel
-- enable-gpios: a GPIO spec for the optional enable pin.
-  This pin is the INI pin as specified in the LS037V7DW01.pdf file.
-- reset-gpios: a GPIO spec for the optional reset pin.
-  This pin is the RESB pin as specified in the LS037V7DW01.pdf file.
-- mode-gpios: a GPIO
-  ordered MO, LR, and UD as specified in the LS037V7DW01.pdf file.
-
-Required nodes:
-- Video port for DPI input
-
-This panel can have zero to five GPIOs to configure to change configuration
-between QVGA and VGA mode and the scan direction. As these pins can be also
-configured with external pulls, all the GPIOs are considered optional with holes
-in the array.
-
-Example
--------
-
-Example when connected to a omap2+ based device:
-
-lcd0: display {
-	compatible = "sharp,ls037v7dw01";
-	power-supply = <&lcd_3v3>;
-	enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;	/* gpio152, lcd INI */
-	reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;	/* gpio155, lcd RESB */
-	mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH	/* gpio154, lcd MO */
-		      &gpio1 2 GPIO_ACTIVE_HIGH		/* gpio2, lcd LR */
-		      &gpio1 3 GPIO_ACTIVE_HIGH>;	/* gpio3, lcd UD */
-
-	port {
-		lcd_in: endpoint {
-			remote-endpoint = <&dpi_out>;
-		};
-	};
-};
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +23 -0
new file mode 100644
index 000000000000..56bd510ae398
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sharp,ls037v7dw01.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SHARP LS037V7DW01 TFT-LCD panel
+
+description: |
+  This panel can have zero to five GPIOs to configure to change configuration
+  between QVGA and VGA mode and the scan direction. As these pins can be also
+  configured with external pulls, all the GPIOs are considered optional with holes
+  in the array.
+
+maintainers:
+  - Tony Lindgren <[email protected]>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: sharp,ls037v7dw01

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 33

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +10 -0
+
+  label: true
+  enable-gpios: true
+  reset-gpios: true
+  port: true
+  power-supply: true
+
+  mode-gpios:
+    description: |
+      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf

3 or...

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 34

Quoted 1 line
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +1 -0
+      This panel can have zero to five GPIOs to configure to

5?

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 38

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+      change configuration between QVGA and VGA mode and the
+      scan direction. As these pins can be also configured
+      with external pulls, all the GPIOs are considered
+      optional with holes in the array.

minItems: 3
maxItems: 5

Quoted 31 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +28 -0
+
+required:
+  - compatible
+  - port
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    lcd0: display {
+        compatible = "sharp,ls037v7dw01";
+        power-supply = <&lcd_3v3>;
+        enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;    /* gpio152, lcd INI */
+        reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;     /* gpio155, lcd RESB */
+        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
+                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
+                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */
+
+        port {
+            lcd_in: endpoint {
+                remote-endpoint = <&dpi_out>;
+            };
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#83 lore raw

Re: [PATCH v1 36/36] dt-bindings: display: convert olimex,lcd-olinuxino to DT Schema

In reply to Sam Ravnborg
Quoted 112 lines · Sam Ravnborg
Cc Stefan Mavrodiev <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/olimex,lcd-olinuxino.txt    | 42 -----------
 .../display/panel/olimex,lcd-olinuxino.yaml   | 70 +++++++++++++++++++
 2 files changed, 70 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.txt deleted +0 -42
deleted file mode 100644
index a89f9c830a85..000000000000
@@ -1,42 +0,0 @@
-Binding for Olimex Ltd. LCD-OLinuXino bridge panel.
-
-This device can be used as bridge between a host controller and LCD panels.
-Currently supported LCDs are:
-  - LCD-OLinuXino-4.3TS
-  - LCD-OLinuXino-5
-  - LCD-OLinuXino-7
-  - LCD-OLinuXino-10
-
-The panel itself contains:
-  - AT24C16C EEPROM holding panel identification and timing requirements
-  - AR1021 resistive touch screen controller (optional)
-  - FT5x6 capacitive touch screnn controller (optional)
-  - GT911/GT928 capacitive touch screen controller (optional)
-
-The above chips share same I2C bus. The EEPROM is factory preprogrammed with
-device information (id, serial, etc.) and timing requirements.
-
-Touchscreen bingings can be found in these files:
-  - input/touchscreen/goodix.txt
-  - input/touchscreen/edt-ft5x06.txt
-  - input/touchscreen/ar1021.txt
-
-Required properties:
-  - compatible: should be "olimex,lcd-olinuxino"
-  - reg: address of the configuration EEPROM, should be <0x50>
-  - power-supply: phandle of the regulator that provides the supply voltage
-
-Optional properties:
-  - enable-gpios: GPIO pin to enable or disable the panel
-  - backlight: phandle of the backlight device attacked to the panel
-
-Example:
-&i2c2 {
-	panel@50 {
-		compatible = "olimex,lcd-olinuxino";
-		reg = <0x50>;
-		power-supply = <&reg_vcc5v0>;
-		enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>;
-		backlight = <&backlight>;
-	};
-};
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file +47 -0
new file mode 100644
index 000000000000..22d664abd552
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/olimex,lcd-olinuxino.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Binding for Olimex Ltd. LCD-OLinuXino bridge panel.
+
+maintainers:
+  - Stefan Mavrodiev <[email protected]>
+
+description: |
+  This device can be used as bridge between a host controller and LCD panels.
+  Currently supported LCDs are:
+    - LCD-OLinuXino-4.3TS
+    - LCD-OLinuXino-5
+    - LCD-OLinuXino-7
+    - LCD-OLinuXino-10
+
+  The panel itself contains:
+    - AT24C16C EEPROM holding panel identification and timing requirements
+    - AR1021 resistive touch screen controller (optional)
+    - FT5x6 capacitive touch screnn controller (optional)
+    - GT911/GT928 capacitive touch screen controller (optional)
+
+  The above chips share same I2C bus. The EEPROM is factory preprogrammed with
+  device information (id, serial, etc.) and timing requirements.
+
+  Touchscreen bingings can be found in these files:
+    - input/touchscreen/goodix.yaml
+    - input/touchscreen/edt-ft5x06.txt
+    - input/touchscreen/ar1021.txt
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: olimex,lcd-olinuxino
+
+  backlight: true
+  enable-gpios: true
+  power-supply: true
+  reg: true
+
+required:
+  - compatible

Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml line 57

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file +10 -0
+  - reg
+  - power-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c2 {

i2c {

Quoted 16 lines
Documentation/devicetree/bindings/display/panel/olimex,lcd-olinuxino.yaml new file +13 -0
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@50 {
+            compatible = "olimex,lcd-olinuxino";
+            reg = <0x50>;
+            power-supply = <&reg_vcc5v0>;
+            enable-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>;
+            backlight = <&backlight>;
+        };
+    };
+
+...
Signature · 1 line
2.20.1
maintainer
#65 lore raw

Re: [PATCH v1 31/36] dt-bindings: display: convert sharp, lq101r1sx01 to DT Schema

In reply to Sam Ravnborg
Quoted 9 lines · Sam Ravnborg

This bindings describes a panel with a secondary channel.

A few of the properties are only required for the
main (non-secondary) node.
This is properly described in the binding.

A few properties are only valid for the main node, this is not described in the binding.
I failed to find a way to describe it.

if:
required:
- link2
then:
not:
required:
- power-supply

Test that though as sometimes I still write crap for json-schema.

Rob

maintainer
#46 lore raw

Re: [PATCH v1 18/36] dt-bindings: display: convert raydium,rm67191 to DT Schema

In reply to Rob Herring
Quoted 126 lines · Rob Herring
Quoted 112 lines · Sam Ravnborg
Cc Robert Chiras <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Sam Ravnborg <[email protected]>
---
 .../display/panel/raydium,rm67191.txt         | 41 ----------
 .../display/panel/raydium,rm67191.yaml        | 75 +++++++++++++++++++
 2 files changed, 75 insertions(+), 41 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt deleted +0 -41
deleted file mode 100644
index 10424695aa02..000000000000
@@ -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>;
-			};
-		};
-	};
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +48 -0
new file mode 100644
index 000000000000..b78b66a4336f
@@ -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 <[email protected]>
+
+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

Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml line 58

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml new file +10 -0
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel {

panel@0

Quoted 1 line

I thought our dsi bus binding would catch this...

Uhhh, it's looking for dsi-controller(@.*)? which is not the common case found in dts files. We should fix that to dsi(@.*)?.

Rob

maintainer
#84 lore raw
In reply to Sam Ravnborg
Quoted 73 lines · Sam Ravnborg

Convert remaining(*) panel bindings to DT Schema.

To prepare for the migration a few preparations
patches was required:

- te-gpios is now added to panel-common - as this
property is used by a few bindings.

- The slave part of spi-controller.yaml was migrated to a new file spi-slave.yaml.
This was done so spi slaves in panel/ could include this file rather than duplicate property names. => Please review this carefully!

The original author of the panel bindings are listed as maintainer in the DT Schema. In the few cases the panel binding was also listed in MAINTAINERS I checked that there was a match. It was done manually so I may have missed someone.

All bindings pass dt_binding_check with no warnings.

- "dt-bindings: display: convert ilitek,ili9322 to DT" The .txt file listed some constrains that I did not manage to capture in the DT Schema.
And some properties looks like that could be dropped. => Please take a closer look.

- "dt-bindings: display: convert sharp,lq101r1sx01 to DT Schema" The .txt file describes some constrains, as some properties are mandatory for the main challen, but not allowed for the secondary channel.
These constraints are not matched in the DT Schema. => Any hints how to do this would be appreciated.

Patches made on top of drm-misc-next as of today with no other patches.

(*) Two .txt files reamins:
- display-timing.txt, points to display-timings.yaml
- panel-dsi-cm.txt, conversion is included in another patch-set

Sam

Sam Ravnborg (36):
dt-bindings: display: add te-gpios to panel-common
dt-bindings: spi: support non-spi bindings as SPI slaves
dt-bindings: display: convert samsung,s6e63m0 to DT Schema
dt-bindings: display: convert arm,versatile-tft-panel to DT Schema
dt-bindings: display: convert boe,himax8279d to DT Schema
dt-bindings: display: convert ilitek,ili9322 to DT Schema
dt-bindings: display: convert ilitek,ili9881c to DT Schema
dt-bindings: display: convert feiyang,fy07024di26a30d to DT Schema
dt-bindings: display: convert innolux,p079zca to DT Schema
dt-bindings: display: convert innolux,p097pfg to DT Schema
dt-bindings: display: convert innolux,p120zdg-bf1 to DT Schema
dt-bindings: display: convert jdi,lt070me05000 to DT Schema
dt-bindings: display: convert kingdisplay,kd035g6-54nt to DT Schema
dt-bindings: display: convert kingdisplay,kd097d04 to DT Schema
dt-bindings: display: convert simple lg panels to DT Schema
dt-bindings: display: convert lg,lg4573 to DT Schema
dt-bindings: display: convert osddisplays,osd101t2587-53ts to DT Schema
dt-bindings: display: convert raydium,rm67191 to DT Schema
dt-bindings: display: convert rocktech,jh057n00900 to DT Schema
dt-bindings: display: convert samsung AMOLED to DT Schema
dt-bindings: display: convert samsung,s6d16d0 to DT Schema
dt-bindings: display: convert samsung,ld9040 to DT Schema
dt-bindings: display: convert samsung,s6e8aa0 to DT Schema
dt-bindings: display: convert toppoly panels to DT Schema
dt-bindings: display: convert startek,startek-kd050c to DT Schema
dt-bindings: display: convert sony,acx565akm to DT Schema
dt-bindings: display: convert sitronix,st7701 to DT Schema
dt-bindings: display: convert sitronix,st7789v to DT Schema

Quoted 8 lines

dt-bindings: display: drop unused simple-panel.txt
dt-bindings: display: convert sharp,ls043t1le01 to DT Schema
dt-bindings: display: convert sharp,lq101r1sx01 to DT Schema
dt-bindings: display: convert sharp,ls037v7dw01 to DT Schema
dt-bindings: display: convert sharp,lq150x1lg11 to DT Schema
dt-bindings: display: convert seiko,43wvf1g to DT Schema
dt-bindings: display: convert lgphilips,lb035q02 to DT Schema
dt-bindings: display: convert olimex,lcd-olinuxino to DT Schema

I've gone rather quickly thru the series. Other than what I commented on, the rest look fine generally. There may be a couple with similar comments.

Rob

#85 lore raw

Hi Rob

Quoted 3 lines

I've gone rather quickly thru the series. Other than what I commented on, the rest look fine generally. There may be a couple with similar comments.

Thanks.
Some of this was trivial stuff I should have fixed while converting - great with an extra pair of eyes.

I will re-spin and try to spot similar issues in the other bindings when I do so.

Sam

#68 lore raw

Re: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

In reply to Rob Herring

Hi Rob.

Quoted 7 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 33

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+
+  mode-gpios:
+    description: |
+      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf

3 or...

Quoted 7 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 38

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+      change configuration between QVGA and VGA mode and the
+      scan direction. As these pins can be also configured
+      with external pulls, all the GPIOs are considered
+      optional with holes in the array.

minItems: 3
maxItems: 5

This binding can specify up to three GPIOs like this:

Quoted 3 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 57

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +3 -0
+        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
+                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
+                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

They are in the linux kernel driver accessed like this:

    devm_gpiod_get_index(&pdev->dev, "mode", 2, GPIOD_OUT_LOW);

The following is OK in the DT file:

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH
&gpio1 3 GPIO_ACTIVE_HIGH>;

But the following is not OK:

    mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>, <&gpio1 2 GPIO_ACTIVE_HIGH>;

Any hints how to specify the binding to prevent the above? I have tried a few combinations - but they do not catch this. So my binding attempts are not restrictive enough.

Any hints how to describe this properly?

Sam

maintainer
#69 lore raw

Re: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

Quoted 15 lines · Sam Ravnborg

Hi Rob.

Quoted 12 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 33

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+
+  mode-gpios:
+    description: |
+      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf

3 or...

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+      change configuration between QVGA and VGA mode and the
+      scan direction. As these pins can be also configured
+      with external pulls, all the GPIOs are considered
+      optional with holes in the array.
Quoted 4 lines
Quoted 2 lines

minItems: 3
maxItems: 5

This binding can specify up to three GPIOs like this:

So it should be:

minItems: 1
maxItems: 3

Quoted 10 lines
Quoted 3 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 57

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +3 -0
+        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
+                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
+                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

They are in the linux kernel driver accessed like this:

    devm_gpiod_get_index(&pdev->dev, "mode", 2, GPIOD_OUT_LOW);

The following is OK in the DT file:

Quoted 8 lines

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH
&gpio1 3 GPIO_ACTIVE_HIGH>;

With the above, the 2nd 2 should fail...

Quoted 2 lines

But the following is not OK:

    mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>, <&gpio1 2 GPIO_ACTIVE_HIGH>;

And this should pass. We want phandle+arg type properties to be bracketed like this.

If that's not working, then it's a bug in the tooling. Please confirm and I'll investigate.

Rob

#70 lore raw

Re: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

Hi Rob.

Quoted 45 lines · Rob Herring
Quoted 15 lines · Sam Ravnborg

Hi Rob.

Quoted 12 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 33

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+
+  mode-gpios:
+    description: |
+      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf

3 or...

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+      change configuration between QVGA and VGA mode and the
+      scan direction. As these pins can be also configured
+      with external pulls, all the GPIOs are considered
+      optional with holes in the array.
Quoted 4 lines
Quoted 2 lines

minItems: 3
maxItems: 5

This binding can specify up to three GPIOs like this:

So it should be:

minItems: 1
maxItems: 3

Quoted 10 lines
Quoted 3 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 57

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +3 -0
+        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
+                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
+                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

They are in the linux kernel driver accessed like this:

    devm_gpiod_get_index(&pdev->dev, "mode", 2, GPIOD_OUT_LOW);

The following is OK in the DT file:

Quoted 8 lines

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH
&gpio1 3 GPIO_ACTIVE_HIGH>;

Quoted 7 lines

With the above, the 2nd 2 should fail...

Quoted 2 lines

But the following is not OK:

    mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>, <&gpio1 2 GPIO_ACTIVE_HIGH>;

And this should pass. We want phandle+arg type properties to be bracketed like this.

OK, so if I get you right you say that we should accept the:
<phandle+arg>, <phandle+arg> ... syntax.

And then ignore that current DT files uses:
<phandle+arg phandle+arg>

A binding like this:
mode-gpios:
minItems: 1
maxItems: 3
description: |
GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf This panel can have zero to three GPIOs to configure to

Do not error out when the example looks like this:

        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

So if I get you right this is a bug in the tooling.
I have updated the tooling a few days ago, should be on the latest.

In the actual example I go for the snip you see above.

Sam

maintainer
#71 lore raw

Re: [PATCH v1 32/36] dt-bindings: display: convert sharp, ls037v7dw01 to DT Schema

Quoted 73 lines · Sam Ravnborg

Hi Rob.

Quoted 45 lines · Rob Herring
Quoted 15 lines · Sam Ravnborg

Hi Rob.

Quoted 12 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 33

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+
+  mode-gpios:
+    description: |
+      GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf

3 or...

Quoted 4 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +4 -0
+      change configuration between QVGA and VGA mode and the
+      scan direction. As these pins can be also configured
+      with external pulls, all the GPIOs are considered
+      optional with holes in the array.
Quoted 4 lines
Quoted 2 lines

minItems: 3
maxItems: 5

This binding can specify up to three GPIOs like this:

So it should be:

minItems: 1
maxItems: 3

Quoted 10 lines
Quoted 3 lines

Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml line 57

Quoted 3 lines
Documentation/devicetree/bindings/display/panel/sharp,ls037v7dw01.yaml new file +3 -0
+        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
+                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
+                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

They are in the linux kernel driver accessed like this:

    devm_gpiod_get_index(&pdev->dev, "mode", 2, GPIOD_OUT_LOW);

The following is OK in the DT file:

Quoted 8 lines

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH>;

mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH
&gpio1 2 GPIO_ACTIVE_HIGH
&gpio1 3 GPIO_ACTIVE_HIGH>;

Quoted 7 lines

With the above, the 2nd 2 should fail...

Quoted 2 lines

But the following is not OK:

    mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH>, <&gpio1 2 GPIO_ACTIVE_HIGH>;

And this should pass. We want phandle+arg type properties to be bracketed like this.

OK, so if I get you right you say that we should accept the:
<phandle+arg>, <phandle+arg> ... syntax.

And then ignore that current DT files uses:
<phandle+arg phandle+arg>

A binding like this:
mode-gpios:
minItems: 1
maxItems: 3
description: |
GPIO ordered MO, LR, and UD as specified in LS037V7DW01.pdf This panel can have zero to three GPIOs to configure to

Quoted 5 lines

Do not error out when the example looks like this:

        mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
                      &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
                      &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */

That's because we can't distinguish between this and 1 entry as the schema doesn't have visibility of what #gpio-cells value is. dtc does check that the cell sizes are correct. We'll need to somehow combine that and the schema to check this form correctly.

Quoted 2 lines

So if I get you right this is a bug in the tooling.

Limitation I guess. I thought you where saying the bracketed form was not working.

Rob