0015-dt-bindings-display-Add-bindings-for-ClockworkPi-CWD.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. From a8e905fb3fd0d26f724646275b72a7363b2f03d8 Mon Sep 17 00:00:00 2001
  2. From: Max Fierke <[email protected]>
  3. Date: Wed, 1 Jun 2022 00:17:47 -0500
  4. Subject: [PATCH 015/117] dt-bindings: display: Add bindings for ClockworkPi
  5. CWD686
  6. The CWD686 is a 6.86" IPS LCD panel used as the primary
  7. display in the ClockworkPi DevTerm portable (all cores)
  8. Signed-off-by: Max Fierke <[email protected]>
  9. Reviewed-by: Krzysztof Kozlowski <[email protected]>
  10. Signed-off-by: Samuel Holland <[email protected]>
  11. ---
  12. .../display/panel/clockwork,cwd686.yaml | 62 +++++++++++++++++++
  13. 1 file changed, 62 insertions(+)
  14. create mode 100644 Documentation/devicetree/bindings/display/panel/clockwork,cwd686.yaml
  15. --- /dev/null
  16. +++ b/Documentation/devicetree/bindings/display/panel/clockwork,cwd686.yaml
  17. @@ -0,0 +1,62 @@
  18. +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  19. +%YAML 1.2
  20. +---
  21. +$id: http://devicetree.org/schemas/display/panel/clockwork,cwd686.yaml#
  22. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  23. +
  24. +title: Clockwork CWD686 6.86" IPS LCD panel
  25. +
  26. +maintainers:
  27. + - Max Fierke <[email protected]>
  28. +
  29. +description: |
  30. + The Clockwork CWD686 is a 6.86" ICNL9707-based IPS LCD panel used within the
  31. + Clockwork DevTerm series of portable devices. The panel has a 480x1280
  32. + resolution and uses 24 bit RGB per pixel.
  33. +
  34. +allOf:
  35. + - $ref: panel-common.yaml#
  36. +
  37. +properties:
  38. + compatible:
  39. + const: clockwork,cwd686
  40. +
  41. + reg:
  42. + description: DSI virtual channel used by that screen
  43. + maxItems: 1
  44. +
  45. + reset-gpios: true
  46. + rotation: true
  47. + backlight: true
  48. + iovcc-supply: true
  49. + vci-supply: true
  50. +
  51. +required:
  52. + - compatible
  53. + - reg
  54. + - backlight
  55. + - reset-gpios
  56. +
  57. +additionalProperties: false
  58. +
  59. +examples:
  60. + - |
  61. + #include <dt-bindings/gpio/gpio.h>
  62. +
  63. + backlight: backlight {
  64. + compatible = "gpio-backlight";
  65. + gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
  66. + };
  67. +
  68. + dsi {
  69. + #address-cells = <1>;
  70. + #size-cells = <0>;
  71. +
  72. + panel@0 {
  73. + compatible = "clockwork,cwd686";
  74. + reg = <0>;
  75. + backlight = <&backlight>;
  76. + reset-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
  77. + rotation = <90>;
  78. + };
  79. + };