Add the binding for the VIEWE panel backlight MCU on I2C.

Signed-off-by: Hefei <[email protected]>
---
 .../leds/backlight/viewe,i2c-backlight.yaml   | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 
Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml

diff --git 
a/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml 
b/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml
new file mode 100644
index 0000000..ab60c2c
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/backlight/viewe,i2c-backlight.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/backlight/viewe,i2c-backlight.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: VIEWE I2C panel backlight
+
+maintainers:
+  - Hefei <[email protected]>
+
+description: |
+  Simple I2C backlight used on VIEWE DSI modules. Default protocol is device
+  address 0x45, register 0x86, brightness 0..255.
+
+allOf:
+  - $ref: common.yaml#
+
+properties:
+  compatible:
+    const: viewe,i2c-backlight
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        backlight@45 {
+            compatible = "viewe,i2c-backlight";
+            reg = <0x45>;
+            default-brightness = <200>;
+        };
+    };
+...
-- 
2.55.0.windows.5

Reply via email to