Lines Matching +full:default +full:- +full:brightness +full:- +full:level

1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: pwm-backlight
10 - Lee Jones <lee@kernel.org>
11 - Daniel Thompson <daniel.thompson@linaro.org>
12 - Jingoo Han <jingoohan1@gmail.com>
16 const: pwm-backlight
21 pwm-names: true
23 power-supply:
26 enable-gpios:
32 post-pwm-on-delay-ms:
34 Delay in ms between setting an initial (non-zero) PWM and enabling the
37 pwm-off-delay-ms:
42 brightness-levels:
44 Array of distinct brightness levels. Typically these are in the range
45 from 0 to 255, but any range starting at 0 will do. The actual brightness
46 level (PWM duty cycle) will be interpolated from these values. 0 means a
49 $ref: /schemas/types.yaml#/definitions/uint32-array
51 default-brightness-level:
53 The default brightness level (index into the array defined by the
54 "brightness-levels" property).
57 num-interpolated-steps:
59 Number of interpolated steps between each value of brightness-levels
61 having to list out every possible value in the brightness-level array.
65 default-brightness-level: [brightness-levels]
66 num-interpolated-steps: [brightness-levels]
69 - compatible
70 - pwms
75 - |
77 compatible = "pwm-backlight";
80 brightness-levels = <0 4 8 16 32 64 128 255>;
81 default-brightness-level = <6>;
83 power-supply = <&vdd_bl_reg>;
84 enable-gpios = <&gpio 58 0>;
85 post-pwm-on-delay-ms = <10>;
86 pwm-off-delay-ms = <10>;
89 - |
90 // Example using num-interpolation-steps:
92 compatible = "pwm-backlight";
95 brightness-levels = <0 2048 4096 8192 16384 65535>;
96 num-interpolated-steps = <2048>;
97 default-brightness-level = <4096>;
99 power-supply = <&vdd_bl_reg>;
100 enable-gpios = <&gpio 58 0>;