1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 2 %YAML 1.2 3 --- 4 $id: http://devicetree.org/schemas/leds/richte 5 $schema: http://devicetree.org/meta-schemas/co 6 7 title: Richtek RT8515 1.5A dual channel LED dr 8 9 maintainers: 10 - Linus Walleij <linus.walleij@linaro.org> 11 12 description: | 13 The Richtek RT8515 is a dual channel (two mo 14 supports driving a white LED in flash or tor 15 current for each mode is defined in hardware 16 RFS and RTS. 17 18 properties: 19 compatible: 20 const: richtek,rt8515 21 22 enf-gpios: 23 maxItems: 1 24 description: A connection to the 'ENF' (en 25 26 ent-gpios: 27 maxItems: 1 28 description: A connection to the 'ENT' (en 29 30 richtek,rfs-ohms: 31 minimum: 7680 32 maximum: 367000 33 description: The resistance value of the R 34 resistors limits the maximum flash curre 35 for the property flash-max-microamp to w 36 defines the range of the dimmer setting 37 flash LED. 38 39 richtek,rts-ohms: 40 minimum: 7680 41 maximum: 367000 42 description: The resistance value of the R 43 resistors limits the maximum torch curre 44 for the property torch-max-microamp to w 45 defines the range of the dimmer setting 46 torch LED. 47 48 led: 49 type: object 50 $ref: common.yaml# 51 properties: 52 function: true 53 color: true 54 flash-max-timeout-us: true 55 56 flash-max-microamp: 57 maximum: 700000 58 description: The maximum current for f 59 is hardwired to the component using 60 ground. The maximum hardware current 61 according to the formula Imax = 5500 62 allowed resistance value is 7.86 kOh 63 maximum current of 700mA. By setting 64 the device tree, you can further res 65 current below the hardware limit. Th 66 to be defined as it defines the maxi 67 68 led-max-microamp: 69 maximum: 700000 70 description: The maximum current for t 71 is hardwired to the component using 72 ground. The maximum hardware current 73 according to the formula Imax = 5500 74 allowed resistance value is 7.86 kOh 75 maximum current of 700mA. By setting 76 the device tree, you can further res 77 current below the hardware limit. Th 78 to be defined as it defines the maxi 79 80 additionalProperties: false 81 82 required: 83 - compatible 84 - ent-gpios 85 - enf-gpios 86 - led 87 88 additionalProperties: false 89 90 examples: 91 - | 92 #include <dt-bindings/gpio/gpio.h> 93 #include <dt-bindings/leds/common.h> 94 95 led-controller { 96 compatible = "richtek,rt8515"; 97 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIG 98 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIG 99 richtek,rfs-ohms = <16000>; 100 richtek,rts-ohms = <100000>; 101 102 led { 103 function = LED_FUNCTION_FLASH; 104 color = <LED_COLOR_ID_WHITE>; 105 flash-max-timeout-us = <250000>; 106 flash-max-microamp = <150000>; 107 led-max-microamp = <25000>; 108 }; 109 }; 110 111 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.