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