Home
last modified time | relevance | path

Searched +full:pwm +full:- +full:backlight (Results 1 – 25 of 536) sorted by relevance

12345678910>>...22

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/leds/backlight/
H A Dpwm-backlight.yaml1 # 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 bindings
10 - Lee Jones <lee.jones@linaro.org>
11 - Daniel Thompson <daniel.thompson@linaro.org>
12 - Jingoo Han <jingoohan1@gmail.com>
16 const: pwm-backlight
21 pwm-names: true
[all …]
H A Dsky81452-backlight.txt1 SKY81452-backlight bindings
4 - compatible : Must be "skyworks,sky81452-backlight"
7 - name : Name of backlight device. Default is 'lcd-backlight'.
8 - gpios : GPIO to use to EN pin.
10 - led-sources : List of enabled channels from 0 to 5.
12 - skyworks,ignore-pwm : Ignore both PWM input
13 - skyworks,dpwm-mode : Enable DPWM dimming mode, otherwise Analog dimming.
14 - skyworks,phase-shift : Enable phase shift mode
15 - skyworks,short-detection-threshold-volt
17 - skyworks,current-limit-mA
[all …]
H A D88pm860x.txt1 88pm860x-backlight bindings
4 - marvell,88pm860x-iset: Current supplies on backlight device.
5 - marvell,88pm860x-pwm: PWM frequency on backlight device.
10 backlight-0 {
11 marvell,88pm860x-iset = <4>;
12 marvell,88pm860x-pwm = <3>;
14 backlight-2 {
H A Dlp855x.txt4 - compatible: "ti,lp8550", "ti,lp8551", "ti,lp8552", "ti,lp8553",
6 - reg: I2C slave address (u8)
7 - dev-ctrl: Value of DEVICE CONTROL register (u8). It depends on the device.
10 - bl-name: Backlight device name (string)
11 - init-brt: Initial value of backlight brightness (u8)
12 - pwm-period: PWM period value. Set only PWM input mode used (u32)
13 - rom-addr: Register address of ROM area to be updated (u8)
14 - rom-val: Register value to be updated (u8)
15 - power-supply: Regulator which controls the 3V rail
16 - enable-supply: Regulator which controls the EN/VDDIO input
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/pwm/
H A Dpwm.txt1 Specifying PWM information for devices
4 1) PWM user nodes
5 -----------------
7 PWM users should specify a list of PWM devices that they want to use
8 with a property containing a 'pwm-list':
10 pwm-list ::= <single-pwm> [pwm-list]
11 single-pwm ::= <pwm-phandle> <pwm-specifier>
12 pwm-phandle : phandle to PWM controller node
13 pwm-specifier : array of #pwm-cells specifying the given PWM
16 PWM properties should be named "pwms". The exact meaning of each pwms
[all …]
H A Dpwm-lp3943.txt1 TI/National Semiconductor LP3943 PWM controller
4 - compatible: "ti,lp3943-pwm"
5 - #pwm-cells: Should be 2. See pwm.yaml in this directory for a
9 - ti,pwm0 or ti,pwm1: Output pin number(s) for PWM channel 0 or 1.
17 PWM 0 is for RGB LED brightness control
18 PWM 1 is for brightness control of LP8557 backlight device
26 * PWM 0 : output 8, 9 and 10
27 * PWM 1 : output 15
29 pwm3943: pwm {
30 compatible = "ti,lp3943-pwm";
[all …]
H A Dpxa-pwm.txt1 Marvell PWM controller
4 - compatible: should be one or more of:
5 - "marvell,pxa250-pwm"
6 - "marvell,pxa270-pwm"
7 - "marvell,pxa168-pwm"
8 - "marvell,pxa910-pwm"
9 - reg: Physical base address and length of the registers used by the PWM channel
10 Note that one device instance must be created for each PWM that is used, so the
11 length covers only the register window for one PWM output, not that of the
12 entire PWM controller. Currently length is 0x10 for all supported devices.
[all …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/pwm/
H A Dpwm.txt1 Specifying PWM information for devices
4 1) PWM user nodes
5 -----------------
7 PWM users should specify a list of PWM devices that they want to use
8 with a property containing a 'pwm-list':
10 pwm-list ::= <single-pwm> [pwm-list]
11 single-pwm ::= <pwm-phandle> <pwm-specifier>
12 pwm-phandle : phandle to PWM controller node
13 pwm-specifier : array of #pwm-cells specifying the given PWM
16 PWM properties should be named "pwms". The exact meaning of each pwms
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_backlight.c3 * Author:Mark Yao <mark.yao@rock-chips.com>
29 #include <linux/pwm.h>
37 struct pwm_device *pwm; member
56 unsigned int lth = bl->lth_brightness; in compute_duty_cycle()
59 duty_cycle = bl->levels[brightness]; in compute_duty_cycle()
61 return (duty_cycle * (period - lth) / bl->scale) + lth; in compute_duty_cycle()
65 struct pwm_device *pwm, int brightness) in rockchip_pwm_power_on() argument
70 pwm_get_args(pwm, &pargs); in rockchip_pwm_power_on()
72 pwm_config(pwm, duty_cycle, pargs.period); in rockchip_pwm_power_on()
73 pwm_enable(pwm); in rockchip_pwm_power_on()
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dsysfs-class-backlight-driver-lm35331 What: /sys/class/backlight/<backlight>/als_channel
7 ALS-current-control mode (0, 1), where:
10 0 out_current0 (backlight 0)
11 1 out_current1 (backlight 1)
14 What: /sys/class/backlight/<backlight>/als_en
19 Enable ALS-current-control mode (0, 1).
21 What: /sys/class/backlight/<backlight>/id
26 Get the id of this backlight (0, 1).
28 What: /sys/class/backlight/<backlight>/linear
33 Set the brightness-mapping mode (0, 1), where:
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/rockchip/
H A Drockchip-backlight.txt1 Rockchip DRM backlight device
5 and the CABC function required using VOP self pwm to control backlight,
6 This backlight device manager the backlight PWM, auto select correct
7 PWM for backlight.
10 - compatible: Should be "rockchip,drm-backlight"
12 Other properties are same to commom PWM backlight bindings[1].
14 [0]: Documentation/devicetree/bindings/display/rockchip/rockchip-vop.txt
15 [1]: Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt
19 backlight {
20 compatible = "rockchip,drm-backlight";
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_panel.c2 * Copyright © 2006-2010 Intel Corporation
28 * Chris Wilson <chris@chris-wilson.co.uk>
35 #include <linux/pwm.h>
59 downclock_mode->clock < fixed_mode->clock; in is_downclock_mode()
66 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_panel_edid_downclock_mode()
69 int best_clock = fixed_mode->clock; in intel_panel_edid_downclock_mode()
71 list_for_each_entry(scan, &connector->base.probed_modes, head) { in intel_panel_edid_downclock_mode()
80 scan->clock < best_clock) { in intel_panel_edid_downclock_mode()
85 best_clock = scan->clock; in intel_panel_edid_downclock_mode()
93 downclock_mode = drm_mode_duplicate(&dev_priv->drm, best_mode); in intel_panel_edid_downclock_mode()
[all …]
/OK3568_Linux_fs/kernel/drivers/video/backlight/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # Backlight & LCD drivers configuration
6 menu "Backlight & LCD device support"
14 This framework adds support for low-level control of LCD.
15 Some framebuffer devices connect to platform-specific LCD modules
16 in order to have a platform-specific way to control the flat panel
17 (contrast and applying power to the LCD (not to the backlight!)).
90 This driver provides a platform-device registered LCD power
94 tristate "Sharp SL-6000 LCD Driver"
97 If you have an Sharp SL-6000 Zaurus say Y to enable a driver
[all …]
H A Dlp8788_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * TI LP8788 MFD - backlight driver
10 #include <linux/backlight.h>
15 #include <linux/pwm.h>
32 #define DEFAULT_BL_NAME "lcd-backlight"
48 struct pwm_device *pwm; member
73 struct lp8788_backlight_platform_data *pdata = bl->pdata; in lp8788_backlight_configure()
83 cfg->bl_mode = pdata->bl_mode; in lp8788_backlight_configure()
84 cfg->dim_mode = pdata->dim_mode; in lp8788_backlight_configure()
85 cfg->full_scale = pdata->full_scale; in lp8788_backlight_configure()
[all …]
H A Dpwm_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Simple PWM based backlight control, board code has to setup
4 * 1) pin configuration so PWM waveforms can output
15 #include <linux/backlight.h>
17 #include <linux/pwm.h>
25 "pwm bl quiescent when reboot quiescent [default=false]");
28 struct pwm_device *pwm; member
52 pwm_get_state(pb->pwm, &state); in pwm_backlight_power_on()
53 if (pb->enabled) in pwm_backlight_power_on()
56 err = regulator_enable(pb->power_supply); in pwm_backlight_power_on()
[all …]
H A D88pm860x_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Backlight driver for Marvell Semiconductor 88PM8606
16 #include <linux/backlight.h>
30 int pwm; member
40 int ret = -EINVAL; in backlight_power_set()
62 struct pm860x_chip *chip = data->chip; in pm860x_backlight_set()
72 backlight_power_set(chip, data->port, 1); in pm860x_backlight_set()
74 ret = pm860x_reg_write(data->i2c, data->reg_duty_cycle, value); in pm860x_backlight_set()
78 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
79 if (data->iset) { in pm860x_backlight_set()
[all …]
H A Dpandora_bl.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Backlight driver for Pandora handheld.
4 * Pandora uses TWL4030 PWM0 -> TPS61161 combo for control backlight.
15 #include <linux/backlight.h>
33 #define MAX_USER_VALUE (MAX_VALUE - MIN_VALUE)
42 int brightness = bl->props.brightness; in pandora_backlight_update_status()
46 if (bl->props.power != FB_BLANK_UNBLANK) in pandora_backlight_update_status()
48 if (bl->props.state & BL_CORE_FBBLANK) in pandora_backlight_update_status()
50 if (bl->props.state & BL_CORE_SUSPENDED) in pandora_backlight_update_status()
57 if (priv->old_state == PANDORABL_WAS_OFF) in pandora_backlight_update_status()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-s3c/
H A Ddev-backlight-s3c64xx.c1 // SPDX-License-Identifier: GPL-2.0
6 // Common infrastructure for PWM Backlight for Samsung boards
15 #include "gpio-cfg.h"
17 #include "backlight-s3c64xx.h"
27 struct platform_pwm_backlight_data *pdata = dev->platform_data; in samsung_bl_init()
30 struct samsung_bl_gpio_info *bl_gpio_info = drvdata->gpio_info; in samsung_bl_init()
32 ret = gpio_request(bl_gpio_info->no, "Backlight"); in samsung_bl_init()
34 printk(KERN_ERR "failed to request GPIO for LCD Backlight\n"); in samsung_bl_init()
38 /* Configure GPIO pin with specific GPIO function for PWM timer */ in samsung_bl_init()
39 s3c_gpio_cfgpin(bl_gpio_info->no, bl_gpio_info->func); in samsung_bl_init()
[all …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/video/
H A Dtegra20-dc.txt2 ------------------
5 U-Boot, and may change based on Linux activity)
12 - compatible : Should be "nvidia,tegra20-dc"
17 - nvidia,panel : phandle of LCD panel information
24 - nvidia,bits-per-pixel: number of bits per pixel (depth)
25 - nvidia,pwm : pwm to use to set display contrast (see tegra20-pwm.txt)
26 - nvidia,panel-timings: 4 cells containing required timings in ms:
28 * delay between panel_vdd-rise and data-rise
29 * delay between data-rise and backlight_vdd-rise
30 * delay between backlight_vdd and pwm-rise
[all …]
/OK3568_Linux_fs/kernel/include/linux/platform_data/
H A Dlp855x.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * LP855x Backlight Driver
15 /* Enable backlight. Only valid when BRT_MODE=10(I2C only) */
22 /* DEVICE CONTROL register - LP8550 */
27 /* DEVICE CONTROL register - LP8551 */
31 /* DEVICE CONTROL register - LP8552 */
35 /* DEVICE CONTROL register - LP8553 */
39 /* CONFIG register - LP8555 */
43 when the backlight turns on */
50 /* DEVICE CONTROL register - LP8556 */
[all …]
/OK3568_Linux_fs/kernel/include/linux/mfd/
H A Dlp8788.h1 /* SPDX-License-Identifier: GPL-2.0-only */
15 #include <linux/pwm.h>
18 #define LP8788_DEV_BUCK "lp8788-buck"
19 #define LP8788_DEV_DLDO "lp8788-dldo"
20 #define LP8788_DEV_ALDO "lp8788-aldo"
21 #define LP8788_DEV_CHARGER "lp8788-charger"
22 #define LP8788_DEV_RTC "lp8788-rtc"
23 #define LP8788_DEV_BACKLIGHT "lp8788-backlight"
24 #define LP8788_DEV_VIBRATOR "lp8788-vibrator"
25 #define LP8788_DEV_KEYLED "lp8788-keyled"
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3588-vehicle-maxim-serdes.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 #include <dt-bindings/display/media-bus-format.h>
13 backlight {
14 compatible = "simple-bus";
15 #address-cells = <1>;
16 #size-cells = <0>;
18 i2c2_max96755f_backlight: backlight@0 {
19 compatible = "pwm-backlight";
22 brightness-levels = <0 4 8 16 32 64 128 255>;
23 default-brightness-level = <6>;
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/backlight/
H A Dlp855x-driver.rst5 Backlight driver for LP855x ICs
15 -----------
19 Brightness can be controlled by the pwm input or the i2c command.
26 Backlight control mode.
28 Value: pwm based or register based
37 ------------------------
42 Backlight driver name. If it is not defined, default name is set.
46 Initial value of backlight brightness.
48 Platform specific PWM period value. unit is nano.
49 Only valid when brightness is pwm input mode.
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/nvidia/
H A Dtegra210-p2371-2180.dts1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include "tegra210-p2180.dtsi"
5 #include "tegra210-p2597.dtsi"
9 compatible = "nvidia,p2371-2180", "nvidia,tegra210";
14 avdd-pll-uerefe-supply = <&avdd_1v05_pll>;
15 hvddio-pex-supply = <&vdd_1v8>;
16 dvddio-pex-supply = <&vdd_pex_1v05>;
17 dvdd-pex-pll-supply = <&vdd_pex_1v05>;
18 hvdd-pex-pll-e-supply = <&vdd_1v8>;
[all …]
/OK3568_Linux_fs/u-boot/drivers/video/exynos/
H A Dexynos_pwm_bl.c2 * PWM BACKLIGHT driver for Board based on EXYNOS.
6 * Derived from linux/drivers/video/backlight/pwm_backlight.c
8 * SPDX-License-Identifier: GPL-2.0+
12 #include <pwm.h>
17 #include <asm/arch/pwm.h>
20 static struct pwm_backlight_data *pwm; variable
24 int brightness = pwm->brightness; in exynos_pwm_backlight_update_status()
25 int max = pwm->max_brightness; in exynos_pwm_backlight_update_status()
28 pwm_config(pwm->pwm_id, 0, pwm->period); in exynos_pwm_backlight_update_status()
29 pwm_disable(pwm->pwm_id); in exynos_pwm_backlight_update_status()
[all …]

12345678910>>...22