Document how to use lg,sw49410 in a devicetree

Signed-off-by: Paul Sajna <sajatt...@postmarketos.org>
---
 .../bindings/display/panel/lg,sw49410.yaml         | 66 ++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/lg,sw49410.yaml 
b/Documentation/devicetree/bindings/display/panel/lg,sw49410.yaml
new file mode 100644
index 
0000000000000000000000000000000000000000..7e0db98687d9cfc4da7137e8781752e1401d5ed7
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/lg,sw49410.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/lg,sw49410.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: LG SW49410 MIPI-DSI panels
+
+maintainers:
+  - Paul Sajna <he...@paulsajna.com>
+
+description:
+  LG SW49410 6.1" 1440x3120  panel found in LG G7 ThinQ smartphone.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    items:
+      - const: lg,sw49410
+
+  reg:
+    maxItems: 1
+
+  backlight:
+    description: Backlight device reference
+
+  reset-gpios:
+    description: Reset pin reference
+
+required:
+  - compatible
+  - reg
+  - reset-gpios
+  - port
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        display_panel: panel@0 {
+            reg = <0>;
+            compatible = "lg,sw49410";
+
+            backlight = <&pmi8998_wled>;
+            reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
+
+            pinctrl-names = "default", "sleep";
+            pinctrl-0 = <&sde_dsi_active &sde_te_active>;
+            pinctrl-1 = <&sde_dsi_sleep &sde_te_sleep>;
+
+            port {
+                panel_in: endpoint {
+                    remote-endpoint = <&mdss_dsi0_out>;
+                };
+            };
+        };
+    };
+...

-- 
2.51.0

Reply via email to