Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Richtek RT4831 Backlight
0008 
0009 maintainers:
0010   - ChiYuan Huang <cy_huang@richtek.com>
0011 
0012 description: |
0013   RT4831 is a mutifunctional device that can provide power to the LCD display
0014   and LCD backlight.
0015 
0016   For the LCD backlight, it can provide four channel WLED driving capability.
0017   Each channel driving current is up to 30mA
0018 
0019   Datasheet is available at
0020   https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf
0021 
0022 allOf:
0023   - $ref: common.yaml#
0024 
0025 properties:
0026   compatible:
0027     const: richtek,rt4831-backlight
0028 
0029   default-brightness:
0030     minimum: 0
0031     maximum: 2048
0032 
0033   max-brightness:
0034     minimum: 0
0035     maximum: 2048
0036 
0037   richtek,pwm-enable:
0038     description: |
0039       Specify the backlight dimming following by PWM duty or by SW control.
0040     type: boolean
0041 
0042   richtek,bled-ovp-sel:
0043     description: |
0044       Backlight OVP level selection, currently support 17V/21V/25V/29V.
0045     $ref: /schemas/types.yaml#/definitions/uint8
0046     default: 1
0047     minimum: 0
0048     maximum: 3
0049 
0050   richtek,bled-ocp-microamp:
0051     description: |
0052       Backlight over current protection level.
0053     enum: [900000, 1200000, 1500000, 1800000]
0054 
0055   richtek,channel-use:
0056     description: |
0057       Backlight LED channel to be used.
0058       BIT 0/1/2/3 is used to indicate led channel 1/2/3/4 enable or disable.
0059     $ref: /schemas/types.yaml#/definitions/uint8
0060     minimum: 1
0061     maximum: 15
0062 
0063 required:
0064   - compatible
0065   - richtek,channel-use
0066 
0067 additionalProperties: false