Home
last modified time | relevance | path

Searched full:backlight (Results 1 – 25 of 808) sorted by relevance

12345678910>>...33

/Linux-v5.10/drivers/video/backlight/
DKconfig3 # Backlight & LCD drivers configuration
6 menu "Backlight & LCD device support"
17 (contrast and applying power to the LCD (not to the backlight!)).
141 # Backlight
144 tristate "Lowlevel Backlight controls"
147 backlight. This includes support for brightness and power.
155 bool "Atmel LCDC Contrast-as-Backlight control"
158 This provides a backlight control internal to the Atmel LCDC
160 so it controls the backlight brightness, select this option to
161 export this as a PWM-based backlight control.
[all …]
Dbacklight.c3 * 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 …]
Dlv5207lp.c10 #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()
83 struct backlight_device *backlight; in lv5207lp_probe() local
113 backlight = devm_backlight_device_register(&client->dev, in lv5207lp_probe()
116 if (IS_ERR(backlight)) { in lv5207lp_probe()
[all …]
Dbd6107.c10 #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()
120 struct backlight_device *backlight; in bd6107_probe() local
163 backlight = devm_backlight_device_register(&client->dev, in bd6107_probe()
167 if (IS_ERR(backlight)) { in bd6107_probe()
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-class-backlight-driver-adp88701 See also /sys/class/backlight/<backlight>/ambient_light_level and
2 /sys/class/backlight/<backlight>/ambient_light_zone.
4 What: /sys/class/backlight/<backlight>/<ambient light zone>_max
5 What: /sys/class/backlight/<backlight>/l1_daylight_max
6 What: /sys/class/backlight/<backlight>/l2_bright_max
7 What: /sys/class/backlight/<backlight>/l3_office_max
8 What: /sys/class/backlight/<backlight>/l4_indoor_max
9 What: /sys/class/backlight/<backlight>/l5_dark_max
15 on this <backlight>. Values are between 0 and 127. This file
19 What: /sys/class/backlight/<backlight>/<ambient light zone>_dim
[all …]
Dsysfs-class-backlight-adp88601 sysfs interface for analog devices adp8860 backlight driver
4 The backlight brightness control operates at three different levels for the
9 See also /sys/class/backlight/<backlight>/ambient_light_level and
10 /sys/class/backlight/<backlight>/ambient_light_zone.
13 What: /sys/class/backlight/<backlight>/l1_daylight_max
14 What: /sys/class/backlight/<backlight>/l2_office_max
15 What: /sys/class/backlight/<backlight>/l3_dark_max
20 (RW) Maximum current setting for the backlight when brightness
27 What: /sys/class/backlight/<backlight>/l1_daylight_dim
28 What: /sys/class/backlight/<backlight>/l2_office_dim
[all …]
Dsysfs-class-backlight-adp55201 sysfs interface for analog devices adp5520(01) backlight driver
4 The backlight brightness control operates at three different levels for the
8 What: /sys/class/backlight/<backlight>/daylight_max
9 What: /sys/class/backlight/<backlight>/office_max
10 What: /sys/class/backlight/<backlight>/dark_max
15 (RW) Maximum current setting for the backlight when brightness
21 What: /sys/class/backlight/<backlight>/daylight_dim
22 What: /sys/class/backlight/<backlight>/office_dim
23 What: /sys/class/backlight/<backlight>/dark_dim
28 (RW) Dim current setting for the backlight when brightness is at
Dsysfs-class-backlight-driver-lm35331 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
Dsysfs-class-backlight1 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.
/Linux-v5.10/drivers/gpu/drm/i915/display/
Dintel_panel.c498 hw_level = scale(user_level, 0, user_max, 0, panel->backlight.max); in clamp_user_to_hw()
499 hw_level = clamp(hw_level, panel->backlight.min, panel->backlight.max); in clamp_user_to_hw()
510 return scale(hw_level, panel->backlight.min, panel->backlight.max, in scale_hw_to_user()
520 drm_WARN_ON(&dev_priv->drm, panel->backlight.max == 0); in intel_panel_compute_brightness()
527 return panel->backlight.max - val + panel->backlight.min; in intel_panel_compute_brightness()
557 if (panel->backlight.combination_mode) { in i9xx_get_backlight()
589 BXT_BLC_PWM_DUTY(panel->backlight.controller)); in bxt_get_backlight()
597 pwm_get_state(panel->backlight.pwm, &state); in pwm_get_backlight()
627 drm_WARN_ON(&dev_priv->drm, panel->backlight.max == 0); in i9xx_set_backlight()
629 if (panel->backlight.combination_mode) { in i9xx_set_backlight()
[all …]
Dintel_dp_aux_backlight.c33 /* Early return when display use other mechanism to enable backlight. */ in set_aux_backlight_enable()
50 drm_dbg_kms(&i915->drm, "Failed to %s aux backlight\n", in set_aux_backlight_enable()
75 * Read the current backlight value from DPCD register(s) based
90 return connector->panel.backlight.max; in intel_dp_aux_get_backlight()
106 * Sends the current backlight level over the aux channel, checking if its using
127 "Failed to write aux backlight level\n"); in intel_dp_aux_set_backlight()
144 const u8 pn = connector->panel.backlight.pwmgen_bit_count; in intel_dp_aux_set_pwm_freq()
147 freq = dev_priv->vbt.backlight.pwm_freq_hz; in intel_dp_aux_set_pwm_freq()
150 "Use panel default backlight frequency\n"); in intel_dp_aux_set_pwm_freq()
170 "Failed to write aux backlight freq\n"); in intel_dp_aux_set_pwm_freq()
[all …]
/Linux-v5.10/include/linux/
Dbacklight.h3 * 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 …]
/Linux-v5.10/drivers/gpu/drm/shmobile/
Dshmob_drm_backlight.c3 * 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()
34 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness()
47 if (scon->backlight == NULL) in shmob_drm_backlight_dpms()
50 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
52 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms()
58 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init()
61 struct backlight_device *backlight; in shmob_drm_backlight_init() local
66 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
[all …]
/Linux-v5.10/Documentation/ABI/stable/
Dsysfs-class-backlight1 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 …]
/Linux-v5.10/Documentation/devicetree/bindings/mfd/
Dti-lmu.txt7 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 …]
Dsky81452.txt8 - 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";
/Linux-v5.10/Documentation/devicetree/bindings/leds/backlight/
Dled-backlight.yaml4 $id: http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#
7 title: led-backlight bindings
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
31 backlight brightness level into a LED brightness level. If it is not
49 backlight {
50 compatible = "led-backlight";
Dgpio-backlight.yaml4 $id: http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml#
7 title: gpio-backlight bindings
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";
Dpwm-backlight.yaml4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml#
7 title: pwm-backlight bindings
16 const: pwm-backlight
29 the backlight.
35 backlight using GPIO.
39 Delay in ms between disabling the backlight using GPIO and setting PWM
77 backlight {
78 compatible = "pwm-backlight";
92 backlight {
93 compatible = "pwm-backlight";
Dkinetic,ktd253.yaml4 $id: http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#
7 title: Kinetic Technologies KTD253 one-wire backlight
13 The Kinetic Technologies KTD253 is a white LED backlight that is
14 controlled by a single GPIO line. If you just turn on the backlight
15 it goes to maximum backlight then you can set the level of backlight
27 description: GPIO to use to enable/disable and dim the backlight.
42 backlight {
Dsky81452-backlight.txt1 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";
/Linux-v5.10/Documentation/firmware-guide/acpi/
Dvideo_extension.rst14 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 …]
/Linux-v5.10/drivers/gpu/drm/
Ddrm_panel.c24 #include <linux/backlight.h>
146 * and the backlight to be enabled. Content will be visible on screen after
164 ret = backlight_enable(panel->backlight); in drm_panel_enable()
166 DRM_DEV_INFO(panel->dev, "failed to enable backlight: %d\n", in drm_panel_enable()
177 * This will typically turn off the panel's backlight or disable the display
190 ret = backlight_disable(panel->backlight); in drm_panel_disable()
192 DRM_DEV_INFO(panel->dev, "failed to disable backlight: %d\n", in drm_panel_disable()
310 * drm_panel_of_backlight - use backlight device node for backlight
313 * Use this function to enable backlight handling if your panel
314 * uses device tree and has a backlight phandle.
[all …]
/Linux-v5.10/drivers/hid/
Dhid-picolcd_backlight.c13 #include <linux/backlight.h>
72 dev_err(dev, "failed to register backlight\n"); in picolcd_init_backlight()
77 data->backlight = bdev; in picolcd_init_backlight()
84 struct backlight_device *bdev = data->backlight; in picolcd_exit_backlight()
86 data->backlight = NULL; in picolcd_exit_backlight()
92 if (!data->backlight) in picolcd_resume_backlight()
94 return picolcd_set_brightness(data->backlight); in picolcd_resume_backlight()
101 if (!data->backlight) in picolcd_suspend_backlight()
104 data->backlight->props.power = FB_BLANK_POWERDOWN; in picolcd_suspend_backlight()
105 picolcd_set_brightness(data->backlight); in picolcd_suspend_backlight()
[all …]
/Linux-v5.10/Documentation/gpu/
Dbacklight.rst2 Backlight support
5 .. kernel-doc:: drivers/video/backlight/backlight.c
8 .. kernel-doc:: include/linux/backlight.h
11 .. kernel-doc:: drivers/video/backlight/backlight.c

12345678910>>...33