-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: leds: Convert is31fl319x to dtschema
Convert leds-is31fl319x.txt to dtschema. Set license to the one recommended by DT project and set myself as maintainer. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220712100841.1538395-2-vincent.knecht@mailoo.org
- Loading branch information
Vincent Knecht
authored and
Rob Herring
committed
Jul 21, 2022
1 parent
3ed4b59
commit dbc801b
Showing
2 changed files
with
113 additions
and
61 deletions.
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
Documentation/devicetree/bindings/leds/issi,is31fl319x.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,113 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/leds/issi,is31fl319x.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: ISSI LED controllers bindings for IS31FL319{0,1,3,6,9} | ||
|
||
maintainers: | ||
- Vincent Knecht <vincent.knecht@mailoo.org> | ||
|
||
description: | | ||
The IS31FL319X are LED controllers with I2C interface. | ||
Previously known as Si-En SN319{0,1,3,6,9}. | ||
For more product information please see the links below: | ||
https://lumissil.com/assets/pdf/core/IS31FL3190_DS.pdf | ||
https://lumissil.com/assets/pdf/core/IS31FL3191_DS.pdf | ||
https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf | ||
https://lumissil.com/assets/pdf/core/IS31FL3196_DS.pdf | ||
https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf | ||
properties: | ||
compatible: | ||
enum: | ||
- issi,is31fl3190 | ||
- issi,is31fl3191 | ||
- issi,is31fl3193 | ||
- issi,is31fl3196 | ||
- issi,is31fl3199 | ||
- si-en,sn3199 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
shutdown-gpios: | ||
maxItems: 1 | ||
description: GPIO attached to the SDB pin. | ||
|
||
audio-gain-db: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
default: 0 | ||
description: Audio gain selection for external analog modulation input. | ||
enum: [0, 3, 6, 9, 12, 15, 18, 21] | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 0 | ||
|
||
patternProperties: | ||
"^led@[1-9]$": | ||
type: object | ||
$ref: common.yaml# | ||
|
||
properties: | ||
reg: | ||
description: Index of the LED. | ||
minimum: 1 | ||
maximum: 9 | ||
|
||
led-max-microamp: | ||
default: 20000 | ||
enum: [5000, 10000, 15000, 20000, 25000, 30000, 35000, 40000] | ||
description: | ||
Note that a driver will take the lowest of all LED limits | ||
since the chip has a single global setting. The lowest value | ||
will be chosen due to the PWM specificity, where lower | ||
brightness is achieved by reducing the duty-cycle of pulses | ||
and not the current, which will always have its peak value | ||
equal to led-max-microamp. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/leds/common.h> | ||
i2c0 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
led-controller@65 { | ||
compatible = "issi,is31fl3196"; | ||
reg = <0x65>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; | ||
led@1 { | ||
reg = <1>; | ||
label = "red:aux"; | ||
led-max-microamp = <10000>; | ||
}; | ||
led@5 { | ||
reg = <5>; | ||
label = "green:power"; | ||
linux,default-trigger = "default-on"; | ||
}; | ||
}; | ||
}; | ||
... | ||
|
61 changes: 0 additions & 61 deletions
61
Documentation/devicetree/bindings/leds/leds-is31fl319x.txt
This file was deleted.
Oops, something went wrong.