Home
last modified time | relevance | path

Searched +full:bled +full:- +full:ovp +full:- +full:shutdown (Results 1 – 2 of 2) sorted by relevance

/linux/Documentation/devicetree/bindings/leds/backlight/
H A Dmediatek,mt6370-backlight.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - ChiaEn Wu <chiaen_wu@richtek.com>
21 - $ref: common.yaml#
26 - mediatek,mt6370-backlight
27 - mediatek,mt6372-backlight
29 default-brightness:
32 max-brightness:
[all …]
/linux/drivers/video/backlight/
H A Dmt6370-backlight.c1 // SPDX-License-Identifier: GPL-2.0-only
82 brightness_val[0] = (brightness - 1) & priv->dim2_mask; in mt6370_bl_update_status()
83 brightness_val[1] = (brightness - 1) >> priv->dim2_shift; in mt6370_bl_update_status()
85 ret = regmap_raw_write(priv->regmap, MT6370_REG_BL_DIM2, in mt6370_bl_update_status()
91 gpiod_set_value(priv->enable_gpio, !!brightness); in mt6370_bl_update_status()
94 return regmap_update_bits(priv->regmap, MT6370_REG_BL_EN, in mt6370_bl_update_status()
105 ret = regmap_read(priv->regmap, MT6370_REG_BL_EN, &enable); in mt6370_bl_get_brightness()
112 ret = regmap_raw_read(priv->regmap, MT6370_REG_BL_DIM2, in mt6370_bl_get_brightness()
117 brightness = brightness_val[1] << priv->dim2_shift; in mt6370_bl_get_brightness()
118 brightness += brightness_val[0] & priv->dim2_mask; in mt6370_bl_get_brightness()
[all …]