Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Richtek RT4831 Backlight |
| 8 | |
| 9 | maintainers: |
| 10 | - ChiYuan Huang <cy_huang@richtek.com> |
| 11 | |
| 12 | description: | |
| 13 | RT4831 is a mutifunctional device that can provide power to the LCD display |
| 14 | and LCD backlight. |
| 15 | |
| 16 | For the LCD backlight, it can provide four channel WLED driving capability. |
| 17 | Each channel driving current is up to 30mA |
| 18 | |
| 19 | Datasheet is available at |
| 20 | https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf |
| 21 | |
| 22 | allOf: |
| 23 | - $ref: common.yaml# |
| 24 | |
| 25 | properties: |
| 26 | compatible: |
| 27 | const: richtek,rt4831-backlight |
| 28 | |
| 29 | default-brightness: |
| 30 | minimum: 0 |
| 31 | maximum: 2048 |
| 32 | |
| 33 | max-brightness: |
| 34 | minimum: 0 |
| 35 | maximum: 2048 |
| 36 | |
| 37 | richtek,pwm-enable: |
| 38 | description: | |
| 39 | Specify the backlight dimming following by PWM duty or by SW control. |
| 40 | type: boolean |
| 41 | |
| 42 | richtek,bled-ovp-sel: |
| 43 | description: | |
| 44 | Backlight OVP level selection, currently support 17V/21V/25V/29V. |
| 45 | $ref: /schemas/types.yaml#/definitions/uint8 |
| 46 | default: 1 |
| 47 | minimum: 0 |
| 48 | maximum: 3 |
| 49 | |
| 50 | richtek,bled-ocp-microamp: |
| 51 | description: | |
| 52 | Backlight over current protection level. |
| 53 | enum: [900000, 1200000, 1500000, 1800000] |
| 54 | |
| 55 | richtek,channel-use: |
| 56 | description: | |
| 57 | Backlight LED channel to be used. |
| 58 | BIT 0/1/2/3 is used to indicate led channel 1/2/3/4 enable or disable. |
| 59 | $ref: /schemas/types.yaml#/definitions/uint8 |
| 60 | minimum: 1 |
| 61 | maximum: 15 |
| 62 | |
| 63 | required: |
| 64 | - compatible |
| 65 | - richtek,channel-use |
| 66 | |
| 67 | additionalProperties: false |