FILE
awinic,aw99706.yaml
File preview with syntax highlighting.
linux-6.19.14/Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/leds/backlight/awinic,aw99706.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Awinic AW99706 6-channel WLED Backlight Driver 8 9maintainers: 10 - Junjie Cao <caojunjie650@gmail.com> 11 12allOf: 13 - $ref: common.yaml# 14 15properties: 16 compatible: 17 const: awinic,aw99706 18 19 reg: 20 maxItems: 1 21 22 enable-gpios: 23 description: GPIO to use to enable/disable the backlight (HWEN pin). 24 maxItems: 1 25 26 awinic,dim-mode: 27 $ref: /schemas/types.yaml#/definitions/uint32 28 description: > 29 Select dimming mode of the device. 30 0 = Bypass mode. 31 1 = DC mode. 32 2 = MIX mode(PWM at low brightness and DC at high brightness). 33 3 = MIX-26k mode(MIX mode with different PWM frequency). 34 enum: [ 0, 1, 2, 3 ] 35 default: 1 36 37 awinic,sw-freq-hz: 38 description: Boost switching frequency in Hz. 39 enum: [ 300000, 400000, 500000, 600000, 660000, 750000, 850000, 1000000, 40 1200000, 1330000, 1500000, 1700000 ] 41 default: 750000 42 43 awinic,sw-ilmt-microamp: 44 description: Switching current limitation in uA. 45 enum: [ 1500000, 2000000, 2500000, 3000000 ] 46 default: 3000000 47 48 awinic,iled-max-microamp: 49 description: Maximum LED current setting in uA. 50 minimum: 5000 51 maximum: 50000 52 multipleOf: 500 53 default: 20000 54 55 awinic,uvlo-thres-microvolt: 56 description: UVLO(Under Voltage Lock Out) in uV. 57 enum: [ 2200000, 5000000 ] 58 default: 2200000 59 60 awinic,ramp-ctl: 61 $ref: /schemas/types.yaml#/definitions/uint32 62 description: > 63 Select ramp control and filter of the device. 64 0 = Fade in/fade out. 65 1 = Light filter. 66 2 = Medium filter. 67 3 = Heavy filter. 68 enum: [ 0, 1, 2, 3 ] 69 default: 2 70 71required: 72 - compatible 73 - reg 74 - enable-gpios 75 76unevaluatedProperties: false 77 78examples: 79 - | 80 #include <dt-bindings/gpio/gpio.h> 81 82 i2c { 83 #address-cells = <1>; 84 #size-cells = <0>; 85 86 backlight@76 { 87 compatible = "awinic,aw99706"; 88 reg = <0x76>; 89 enable-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>; 90 default-brightness = <2047>; 91 max-brightness = <4095>; 92 awinic,dim-mode = <1>; 93 awinic,sw-freq-hz = <750000>; 94 awinic,sw-ilmt-microamp = <3000000>; 95 awinic,uvlo-thres-microvolt = <2200000>; 96 awinic,iled-max-microamp = <20000>; 97 awinic,ramp-ctl = <2>; 98 }; 99 }; 100 101...
~/
Read-only file preview.