forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add documentation for rohm,bd65b60 bindings
Added documentation of the devicetree bindings for the rohm,bd65b60 led driver. Signed-off-by: Bogdan Ionescu <[email protected]>
- Loading branch information
1 parent
69290dd
commit 5bf4ff8
Showing
1 changed file
with
77 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
Documentation/devicetree/bindings/leds/rohm,bd65b60-leds.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/leds/rohm,bd65b60-leds.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: ROHM BD65B60 device tree bindings | ||
|
||
maintainers: | ||
- Bogdan Ionescu <[email protected]> | ||
|
||
description: | | ||
BD65B60 is a white LED driver IC that integrates PWM | ||
step-up DC/DC converter with boost-capability of up to | ||
maximum 28.5V and current driver with drive capability of up | ||
to 25mA(Typ.) maximum setting. Precise brightness can be | ||
controlled at wide ranges through the external PWM pulse | ||
input. | ||
properties: | ||
compatible: | ||
const: rohm,bd65b60 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
led: | ||
type: object | ||
$ref: common.yaml# | ||
unevaluatedProperties: false | ||
|
||
properties: | ||
rohm,enable-outputs: | ||
description: | ||
Select which leds are being controlled. | ||
Values defined in <dt-bindings/leds/leds-bd65b60.h> | ||
$ref: "/schemas/types.yaml#/definitions/uint32" | ||
enum: [ 0, 1, 4, 5 ] | ||
|
||
rohm,ovp: | ||
description: | ||
Select Over-Voltage-Portection level. | ||
Values defined in <dt-bindings/leds/leds-bd65b60.h> | ||
$ref: "/schemas/types.yaml#/definitions/uint32" | ||
enum: [ 0, 8, 16 ] | ||
default: 16 | ||
|
||
required: | ||
- rohm,enable-outputs | ||
|
||
required: | ||
- compatible | ||
- reg | ||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/leds/common.h> | ||
#include <dt-bindings/leds/leds-bd65b60.h> | ||
i2c { | ||
led_controler@64 { | ||
compatible = "rohm,bd65b60"; | ||
reg = <0x64>; | ||
backlight_led: led { | ||
function = LED_FUNCTION_BACKLIGHT; | ||
color = <LED_COLOR_ID_WHITE>; | ||
rohm,enable-outputs = <BD65B60_ENABLE_LED1>; | ||
default-state = "keep"; | ||
linux,default-trigger = "backlight"; | ||
}; | ||
}; | ||
}; | ||
... |