Add device tree bindings for the Orient Chip OCP8178 LED backlight
driver.
Signed-off-by: Wim de With <redacted>
---
.../bindings/leds/backlight/ocs,ocp8178.yaml | 46 +++++++++++++++++++
MAINTAINERS | 5 ++
2 files changed, 51 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml
diff --git a/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml
new file mode 100644
index 0000000000000..9a4df1ef91edd
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/backlight/ocs,ocp8178.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Orient Chip OCP8178 backlight
+
+maintainers:
+ - Wim de With <wf@dewith.io>
+
+description: |
+ The Orient Chip OCP8178 is a white LED backlight driver controlled by a single
+ GPIO line with a vendor-specific onewire protocol.
+
+allOf:
+ - $ref: common.yaml#
+
+properties:
+ compatible:
+ const: ocs,ocp8178
+
+ enable-gpios:
+ description: GPIO to use to enable/disable and dim the backlight.
+ maxItems: 1
+
+ default-brightness:
+ maximum: 31
+ max-brightness:
+ maximum: 31
+
+required:
+ - compatible
+ - enable-gpios
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+ backlight {
+ compatible = "ocs,ocp8178";
+ enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
+ default-brightness = <13>;
+ max-brightness = <31>;
+ };diff --git a/MAINTAINERS b/MAINTAINERS
index cfee5d47b214d..3ca99d9c32ef1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -19678,6 +19678,11 @@ F: drivers/mfd/ocelot*
F: drivers/net/dsa/ocelot/ocelot_ext.c
F: include/linux/mfd/ocelot.h
+OCP8178 BACKLIGHT DRIVER
+M: Wim de With <wf@dewith.io>
+S: Maintained
+F: Documentation/devicetree/bindings/leds/backlight/ocs,ocp8178.yaml
+
OCXL (Open Coherent Accelerator Processor Interface OpenCAPI) DRIVER
M: Mahesh J Salgaonkar <mahesh@linux.ibm.com>
R: Andrew Donnellan <andrew+kernel@donnellan.id.au>
--
2.55.0