/openbmc/linux/drivers/video/backlight/ |
H A D | Kconfig | 3 # Backlight & LCD drivers configuration 6 menu "Backlight & LCD device support" 17 (contrast and applying power to the LCD (not to the backlight!)). 134 # Backlight 137 tristate "Lowlevel Backlight controls" 140 backlight. This includes support for brightness and power. 148 bool "Atmel LCDC Contrast-as-Backlight control" 151 This provides a backlight control internal to the Atmel LCDC 153 so it controls the backlight brightness, select this option to 154 export this as a PWM-based backlight control. [all …]
|
H A D | backlight.c | 3 * Backlight Lowlevel Control Abstraction 14 #include <linux/backlight.h> 22 #include <asm/backlight.h> 28 * The backlight core supports implementing backlight drivers. 30 * A backlight driver registers a driver using 31 * devm_backlight_device_register(). The properties of the backlight 34 * the update_status() operation is called. The backlight driver shall 35 * implement this operation and use it to adjust backlight. 37 * Several sysfs attributes are provided by the backlight core:: 43 * See Documentation/ABI/stable/sysfs-class-backlight for the full list. [all …]
|
H A D | lv5207lp.c | 10 #include <linux/backlight.h> 37 struct backlight_device *backlight; member 46 static int lv5207lp_backlight_update_status(struct backlight_device *backlight) in lv5207lp_backlight_update_status() argument 48 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_update_status() 49 int brightness = backlight_get_brightness(backlight); in lv5207lp_backlight_update_status() 65 static int lv5207lp_backlight_check_fb(struct backlight_device *backlight, in lv5207lp_backlight_check_fb() argument 68 struct lv5207lp *lv = bl_get_data(backlight); in lv5207lp_backlight_check_fb() 82 struct backlight_device *backlight; in lv5207lp_probe() local 112 backlight = devm_backlight_device_register(&client->dev, in lv5207lp_probe() 115 if (IS_ERR(backlight)) { in lv5207lp_probe() [all …]
|
H A D | bd6107.c | 10 #include <linux/backlight.h> 72 struct backlight_device *backlight; member 82 static int bd6107_backlight_update_status(struct backlight_device *backlight) in bd6107_backlight_update_status() argument 84 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status() 85 int brightness = backlight_get_brightness(backlight); in bd6107_backlight_update_status() 102 static int bd6107_backlight_check_fb(struct backlight_device *backlight, in bd6107_backlight_check_fb() argument 105 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_check_fb() 119 struct backlight_device *backlight; in bd6107_probe() local 162 backlight = devm_backlight_device_register(&client->dev, in bd6107_probe() 166 if (IS_ERR(backlight)) { in bd6107_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_backlight.c | 6 #include <linux/backlight.h> 68 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw() 69 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw() 80 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user() 89 drm_WARN_ON(&i915->drm, panel->backlight.pwm_level_max == 0); in intel_backlight_invert_pwm_level() 96 return panel->backlight.pwm_level_max - val + panel->backlight.pwm_level_min; in intel_backlight_invert_pwm_level() 108 drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] set backlight PWM = %d\n", in intel_backlight_set_pwm_level() 110 panel->backlight.pwm_funcs->set(conn_state, val); in intel_backlight_set_pwm_level() 119 panel->backlight.max == 0 || panel->backlight.pwm_level_max == 0); in intel_backlight_level_to_pwm() 121 val = scale(val, panel->backlight.min, panel->backlight.max, in intel_backlight_level_to_pwm() [all …]
|
H A D | intel_dp_aux_backlight.c | 27 * backlight through DP AUX can actually use two different interfaces: Intel's 28 * proprietary DP AUX backlight interface, and the standard VESA backlight 30 * advertise support for the standard VESA backlight interface when they 31 * don't properly support it. However, on these systems the Intel backlight 33 * usually just indicate that they use PWM backlight controls in their VBIOS 49 * DP AUX registers for Intel's proprietary HDR backlight interface. We define 113 /* Intel EDP backlight callbacks */ 133 drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] Detected %s HDR backlight interface version %d\n", in intel_dp_aux_supports_hdr_backlight() 143 * do not use Intel proprietary eDP backlight control if we in intel_dp_aux_supports_hdr_backlight() 153 …DR static metadata. Possible support for Intel HDR backlight interface is not used. If your backli… in intel_dp_aux_supports_hdr_backlight() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-backlight | 1 What: /sys/class/backlight/<backlight>/scale 28 What: /sys/class/backlight/<backlight>/ambient_light_level 49 What: /sys/class/backlight/<backlight>/ambient_light_zone 57 backlight operates. 64 0 Off: Backlight set to 0 mA 73 0 Off: Backlight set to 0 mA 85 /sys/class/backlight/<backlight>/max_brightness to 86 /sys/class/backlight/<backlight>/brightness. 88 What: /sys/class/backlight/<backlight>/<ambient light zone>_max 94 on this <backlight>. Values are between 0 and 127. This file [all …]
|
H A D | sysfs-class-backlight-driver-lm3533 | 1 What: /sys/class/backlight/<backlight>/als_channel 10 0 out_current0 (backlight 0) 11 1 out_current1 (backlight 1) 14 What: /sys/class/backlight/<backlight>/als_en 21 What: /sys/class/backlight/<backlight>/id 26 Get the id of this backlight (0, 1). 28 What: /sys/class/backlight/<backlight>/linear 40 What: /sys/class/backlight/<backlight>/pwm
|
/openbmc/linux/include/linux/ |
H A D | backlight.h | 3 * Backlight Lowlevel Control Abstraction 18 * enum backlight_update_reason - what method was used to update backlight 20 * A driver indicates the method (reason) used for updating the backlight 25 * @BACKLIGHT_UPDATE_HOTKEY: The backlight was updated using a hot-key. 30 * @BACKLIGHT_UPDATE_SYSFS: The backlight was updated using sysfs. 36 * enum backlight_type - the type of backlight control 38 * The type of interface used to control the backlight. 44 * The backlight is controlled using hardware registers. 51 * The backlight is controlled using a platform-specific interface. 58 * The backlight is controlled using a standard firmware interface. [all …]
|
/openbmc/linux/drivers/gpu/drm/renesas/shmobile/ |
H A D | shmob_drm_backlight.c | 3 * shmob_drm_backlight.c -- SH Mobile DRM Backlight 10 #include <linux/backlight.h> 20 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update() 30 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness() 43 if (scon->backlight == NULL) in shmob_drm_backlight_dpms() 46 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms() 48 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms() 54 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init() 57 struct backlight_device *backlight; in shmob_drm_backlight_init() local 62 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init() [all …]
|
/openbmc/linux/Documentation/ABI/stable/ |
H A D | sysfs-class-backlight | 1 What: /sys/class/backlight/<backlight>/bl_power 6 Control BACKLIGHT power, values are FB_BLANK_* from fb.h 12 What: /sys/class/backlight/<backlight>/brightness 17 Control the brightness for this <backlight>. Values 23 What: /sys/class/backlight/<backlight>/actual_brightness 31 What: /sys/class/backlight/<backlight>/max_brightness 36 Maximum brightness for <backlight>. 39 What: /sys/class/backlight/<backlight>/type 44 The type of interface controlled by <backlight>. 49 In the general case, when multiple backlight [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/backlight/ |
H A D | mediatek,mt6370-backlight.yaml | 4 $id: http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml# 7 title: MediaTek MT6370 Backlight 14 The MT6370 Backlight WLED driver supports up to a 29V output voltage for 26 - mediatek,mt6370-backlight 27 - mediatek,mt6372-backlight 36 description: External backlight 'enable' pin 41 Enable external PWM input for backlight dimming 46 Enable the backlight input-hysteresis for PWM mode 53 The selection of the upper and lower bounds threshold of backlight 59 Enable the backlight shutdown when OVP level triggered [all …]
|
H A D | richtek,rt4831-backlight.yaml | 4 $id: http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml# 7 title: Richtek RT4831 Backlight 14 and LCD backlight. 16 For the LCD backlight, it can provide four channel WLED driving capability. 27 const: richtek,rt4831-backlight 39 Specify the backlight dimming following by PWM duty or by SW control. 44 Backlight OVP level selection, currently support 17V/21V/25V/29V. 52 Backlight over current protection level. 57 Backlight LED channel to be used.
|
H A D | gpio-backlight.yaml | 4 $id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml# 7 title: gpio-backlight 16 const: gpio-backlight 19 description: The gpio that is used for enabling/disabling the backlight. 23 description: enable the backlight at boot. 35 backlight { 36 compatible = "gpio-backlight";
|
H A D | pwm-backlight.yaml | 4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml# 7 title: pwm-backlight 16 const: pwm-backlight 29 the backlight. 35 backlight using GPIO. 39 Delay in ms between disabling the backlight using GPIO and setting PWM 76 backlight { 77 compatible = "pwm-backlight"; 91 backlight { 92 compatible = "pwm-backlight";
|
H A D | led-backlight.yaml | 4 $id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml# 7 title: led-backlight 15 This binding is used to describe a basic backlight device made of LEDs. It 16 can also be used to describe a backlight device controlled by the output of 21 const: led-backlight 33 backlight brightness level into a LED brightness level. If it is not 51 backlight { 52 compatible = "led-backlight";
|
H A D | sky81452-backlight.txt | 1 SKY81452-backlight bindings 4 - compatible : Must be "skyworks,sky81452-backlight" 7 - name : Name of backlight device. Default is 'lcd-backlight'. 22 backlight { 23 compatible = "skyworks,sky81452-backlight"; 24 name = "pwm-backlight";
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | ti-lmu.txt | 7 LM3631 Backlight and regulator 8 LM3632 Backlight and regulator 9 LM3633 Backlight, LED and fault monitor 10 LM3695 Backlight 11 LM36274 Backlight and regulator 47 - backlight: All LMU devices have backlight child nodes. 60 [1] ../leds/backlight/ti-lmu-backlight.txt 106 backlight { 107 compatible = "ti,lm3631-backlight"; 148 backlight { [all …]
|
H A D | sky81452.txt | 8 - backlight : container node for backlight following the binding 9 in leds/backlight/sky81452-backlight.txt 19 backlight { 20 compatible = "skyworks,sky81452-backlight"; 21 name = "pwm-backlight";
|
H A D | richtek,rt4831.yaml | 7 title: Richtek RT4831 DSV and Backlight Integrated IC 14 and LCD backlight. 19 For the LCD backlight, it can provide four channel WLED driving capability. 42 backlight: 43 $ref: ../leds/backlight/richtek,rt4831-backlight.yaml 53 #include <dt-bindings/leds/rt4831-backlight.h> 82 backlight { 83 compatible = "richtek,rt4831-backlight";
|
/openbmc/u-boot/doc/device-tree-bindings/video/ |
H A D | intel-gma.txt | 20 - intel,panel-power-backlight-on-delay : T5 time sequence 21 - intel,panel-power-backlight-off-delay : Tx time sequence 23 - intel,cpu-backlight : Value for CPU Backlight PWM 24 - intel,pch-backlight : Value for PCH Backlight PWM 36 intel,panel-power-backlight-on-delay = <2000>; 37 intel,panel-power-backlight-off-delay = <2000>; 38 intel,cpu-backlight = <0x00000200>; 39 intel,pch-backlight = <0x04000000>;
|
/openbmc/u-boot/drivers/video/ |
H A D | simple_panel.c | 8 #include <backlight.h> 16 struct udevice *backlight; member 25 debug("%s: start, backlight = '%s'\n", __func__, priv->backlight->name); in simple_panel_enable_backlight() 27 ret = backlight_enable(priv->backlight); in simple_panel_enable_backlight() 40 debug("%s: start, backlight = '%s'\n", __func__, priv->backlight->name); in simple_panel_set_backlight() 42 ret = backlight_set_brightness(priv->backlight, percent); in simple_panel_set_backlight() 66 "backlight", &priv->backlight); in simple_panel_ofdata_to_platdata() 68 debug("%s: Cannot get backlight: ret=%d\n", __func__, ret); in simple_panel_ofdata_to_platdata()
|
/openbmc/u-boot/include/ |
H A D | panel.h | 12 * enable_backlight() - Enable the panel backlight 14 * @dev: Panel device containing the backlight to enable 20 * set_backlight - Set panel backlight brightness 22 * @dev: Panel device containing the backlight to update 42 * panel_enable_backlight() - Enable/disable the panel backlight 44 * @dev: Panel device containing the backlight to enable 45 * @enable: true to enable the backlight, false to dis 51 * panel_set_backlight - Set brightness for the panel backlight 53 * @dev: Panel device containing the backlight to update
|
/openbmc/linux/Documentation/firmware-guide/acpi/ |
H A D | video_extension.rst | 14 The ACPI video driver does 3 things regarding backlight control. 16 Export a sysfs interface for user space to control backlight level 20 command line is not present, the driver will register a backlight device 21 and set the required backlight operation structure for it for the sysfs 23 directory named acpi_videoX under /sys/class/backlight. 25 The backlight sysfs interface has a standard definition here: 26 Documentation/ABI/stable/sysfs-class-backlight. 42 Note that ACPI video backlight driver will always use index for 108 Once user space tool receives this event, it can modify the backlight 111 Change backlight level in the kernel [all …]
|
/openbmc/linux/drivers/gpu/drm/tilcdc/ |
H A D | tilcdc_panel.c | 7 #include <linux/backlight.h> 29 struct backlight_device *backlight; member 48 struct backlight_device *backlight = panel_encoder->mod->backlight; in panel_encoder_dpms() local 51 if (backlight) { in panel_encoder_dpms() 52 backlight->props.power = mode == DRM_MODE_DPMS_ON ? in panel_encoder_dpms() 54 backlight_update_status(backlight); in panel_encoder_dpms() 308 struct backlight_device *backlight; in panel_probe() local 324 backlight = devm_of_find_backlight(&pdev->dev); in panel_probe() 325 if (IS_ERR(backlight)) in panel_probe() 326 return PTR_ERR(backlight); in panel_probe() [all …]
|