diff mbox series

[1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel

Message ID 20210808035053.58074-1-dmitry.baryshkov@linaro.org
State New
Headers show
Series [1/2] dt-bindings: add bindings for the Sharp LS060T1SX01 panel | expand

Commit Message

Dmitry Baryshkov Aug. 8, 2021, 3:50 a.m. UTC
Add devicetree bindings for the Sharp LS060T1SX01 6.0" FullHD panel
using NT35695 driver. This panel can be found i.e. in the Dragonboard
Display Adapter bundle.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

---
 .../display/panel/sharp,ls060t1sx01.yaml      | 51 +++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml

-- 
2.30.2

Comments

Sam Ravnborg Oct. 9, 2021, 5:10 p.m. UTC | #1
On Sat, Oct 09, 2021 at 07:07:46PM +0200, Sam Ravnborg wrote:
> Applied this but forgot to commit the build fix:

> 

> commit 1ae669fe083fda99e465ae6ab2c533658bdb846e

> Author: Sam Ravnborg <sam@ravnborg.org>

> Date:   Sat Oct 9 19:02:48 2021 +0200

> 

>     drm/panel: sharp-ls060t1sx01: fix build

>     

>     Update MIPI_DSI_MODE_EOT_PACKET to the new MIPI_DSI_MODE_NO_EOT_PACKET

>     variant.

>     This fixes the build - I had not committed the fix (blush).

>     

>     Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

>     Fixes: 223cce88a926 ("drm/panel: Add support for Sharp LS060T1SX01 panel")

>     Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

> 

> diff --git a/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c

> index 1049810d1f10..ed5f28c8c90b 100644

> --- a/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c

> +++ b/drivers/gpu/drm/panel/panel-sharp-ls060t1sx01.c

> @@ -275,7 +275,7 @@ static int sharp_ls060_probe(struct mipi_dsi_device *dsi)

>  	dsi->lanes = 4;

>  	dsi->format = MIPI_DSI_FMT_RGB888;

>  	dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |

> -			  MIPI_DSI_MODE_EOT_PACKET |

> +			  MIPI_DSI_MODE_NO_EOT_PACKET |

>  			  MIPI_DSI_CLOCK_NON_CONTINUOUS;

>  

>  	drm_panel_init(&ctx->panel, dev, &sharp_ls060_panel_funcs,


Seems I need more coffee, this patch should never have hit
drm-misc-next. I will revert it.

	Sam
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml b/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml
new file mode 100644
index 000000000000..e749f20d34aa
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/sharp,ls060t1sx01.yaml
@@ -0,0 +1,51 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/sharp,ls043t1le01.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sharp Microelectronics 6.0" FullHD TFT LCD panel
+
+maintainers:
+  - Dmitry Baryskov <dmitry.baryshkov@linaro.org>
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: sharp,ls060t1sx01
+
+  reg: true
+  backlight: true
+  reset-gpios: true
+  port: true
+
+  avdd-supply:
+    description: handle of the regulator that provides the supply voltage
+
+required:
+  - compatible
+  - reg
+  - avdd-supply
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "sharp,ls060t1sx01";
+            reg = <0>;
+            avdd-supply = <&pm8941_l22>;
+            backlight = <&backlight>;
+            reset-gpios = <&pm8916_gpios 25 GPIO_ACTIVE_LOW>;
+        };
+    };
+
+...