mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-05 11:53:41 +00:00

- Add lots of Device Tree bindings / support - Turn off LED strings when display is blank - Switch I2C drivers from .probe_new() to .probe() - Remove superfluous NULL checks - Only obtain PWM information once and do it in .probe() - Fix-ups - Ensure locks are obtained and held when required -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEdrbJNaO+IJqU8IdIUa+KL4f8d2EFAmSinqoACgkQUa+KL4f8 d2HvRQ//XGzNTwl3T67PJCbNjsmgYGZ7ilfsilblNtkaQVO832uv9/qT24a/EbHC +tBPoMJ5KeOWhqyn03Whafl375BLbjWRpzeHM7haVgG97lQLpEpfQpKlFq7GtyGm Bsp2Cc87mvws6XDltTyLuegOexYT8JRuqFUkUA+t1sU7sHkm4XIGOx12r2mKCA8k JRw7qHn39JaKcd7TYbRJ51h7jPZ24HU5Ve5toITL8W6Qi6xI3vNJU8CqxbCa7nKu OKsJ7o/yp2oOacVFK/vfT79A4r7j2nXIdF4DWHi5CGdH/SJi4c5Bpw8zixtGO+gh A7f0nkdIWkJyXUKSa8YWXoXQuLfT5ZjZTr+q6TtfzLly1g/CMtKRIieEZCIhkSyg P4OnsgV5HrMeHzIrYupO2j9Dvb7N/PsRCR4bM6l+osS9b4sbXixCqw2tGhIcPhka jq/d9Zbtxg8gSlhz25HeHa/q4MEWUj8ITpYfgov/wBmHW/CLf4k7be7zOjvMfy1T 8oj03fVnCQwzYggcxQknRUND8mnueJHFoQXGbc8iYLcPQ0kiRGp52/PyzJwLJKCP Def4uUtJ9+9M6OCCBO2JuHT//waz+I5TJ2hiRhjz4AeDFxV/SBsgpDKKYnwzKaZm 6J5p+dYUsc/VW995QrEt199g9lMRaBI1raSxIBBEAV6Hd10Ju2g= =pKT7 -----END PGP SIGNATURE----- Merge tag 'backlight-next-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight Pull backlight updates from Lee Jones: "New Functionality: - Add lots of Device Tree bindings / support - Turn off LED strings when display is blank - Switch I2C drivers from .probe_new() to .probe() - Remove superfluous NULL checks - Only obtain PWM information once and do it in .probe() Fix-ups: - Ensure locks are obtained and held when required" * tag 'backlight-next-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight: backlight: led_bl: Take led_access lock when required video: backlight: lp855x: Get PWM for PWM mode during probe dt-bindings: backlight: lp855x: Convert to YAML and modernize dt-bindings: backlight: pwm: Make power-supply not required backlight: pwm_bl: Remove unneeded checks for valid GPIOs backlight: Switch i2c drivers back to use .probe() backlight: lm3630a: Turn off both led strings when display is blank dt-bindings: leds: backlight: ktz8866: Add reg property and update example
87 lines
2.2 KiB
YAML
87 lines
2.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/leds/backlight/kinetic,ktz8866.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Kinetic Technologies KTZ8866 backlight
|
|
|
|
maintainers:
|
|
- Jianhua Lu <lujianhua000@gmail.com>
|
|
|
|
description: |
|
|
The Kinetic Technologies KTZ8866 is a high efficiency 6-channels-current-sinks
|
|
led backlight with dual lcd bias power.
|
|
https://www.kinet-ic.com/ktz8866/
|
|
|
|
allOf:
|
|
- $ref: common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: kinetic,ktz8866
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
vddpos-supply:
|
|
description: positive boost supply regulator.
|
|
|
|
vddneg-supply:
|
|
description: negative boost supply regulator.
|
|
|
|
enable-gpios:
|
|
description: GPIO to use to enable/disable the backlight (HWEN pin).
|
|
maxItems: 1
|
|
|
|
current-num-sinks:
|
|
description: number of the LED current sinks' channels.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
enum: [1, 2, 3, 4, 5, 6]
|
|
|
|
kinetic,current-ramp-delay-ms:
|
|
description: |
|
|
LED current ramping delay time in milliseconds, note that the
|
|
case 1 will be mapped to 1μs.
|
|
enum: [1, 2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640]
|
|
|
|
kinetic,led-enable-ramp-delay-ms:
|
|
description: |
|
|
LED on/off ramping delay time in milliseconds, note that the case 0 will be
|
|
mapped to 512μs because ktz8866 can't ramp faster than it.
|
|
enum: [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
|
|
|
|
kinetic,enable-lcd-bias:
|
|
description: Set if we want to output bias power supply for LCD.
|
|
type: boolean
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- vddpos-supply
|
|
- vddneg-supply
|
|
- enable-gpios
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
backlight@11 {
|
|
compatible = "kinetic,ktz8866";
|
|
reg = <0x11>;
|
|
vddpos-supply = <&bl_vddpos_5p5>;
|
|
vddneg-supply = <&bl_vddneg_5p5>;
|
|
enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
|
|
current-num-sinks = <5>;
|
|
kinetic,current-ramp-delay-ms = <128>;
|
|
kinetic,led-enable-ramp-delay-ms = <1>;
|
|
kinetic,enable-lcd-bias;
|
|
};
|
|
};
|