Skip to content

Commit e065426

Browse files
committed
Merge tag 'backlight-next-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight
Pull backlight updates from Lee Jones: "Fix-ups: - Remove unused BACKLIGHT_LCD_SUPPORT symbol - Remove unused BACKLIGHT_CLASS_DEVICE dependencies - Add DT support to lm3630a_bl Bug Fixes: - Fix error path issues in lm3630a_bl" * tag 'backlight-next-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight: backlight: lm3630a: Add firmware node support dt-bindings: backlight: Add lm3630a bindings backlight: lm3630a: Return 0 on success in update_status functions video: lcd: Remove useless BACKLIGHT_CLASS_DEVICE dependencies video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol
2 parents ebcf5bb + 8fbce8e commit e065426

File tree

15 files changed

+293
-45
lines changed

15 files changed

+293
-45
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI LM3630A High-Efficiency Dual-String White LED
8+
9+
maintainers:
10+
- Lee Jones <[email protected]>
11+
- Daniel Thompson <[email protected]>
12+
- Jingoo Han <[email protected]>
13+
14+
description: |
15+
The LM3630A is a current-mode boost converter which supplies the power and
16+
controls the current in up to two strings of 10 LEDs per string.
17+
https://www.ti.com/product/LM3630A
18+
19+
properties:
20+
compatible:
21+
const: ti,lm3630a
22+
23+
reg:
24+
maxItems: 1
25+
26+
ti,linear-mapping-mode:
27+
description: |
28+
Enable linear mapping mode. If disabled, then it will use exponential
29+
mapping mode in which the ramp up/down appears to have a more uniform
30+
transition to the human eye.
31+
type: boolean
32+
33+
required:
34+
- compatible
35+
- reg
36+
37+
patternProperties:
38+
"^led@[01]$":
39+
type: object
40+
description: |
41+
Properties for a string of connected LEDs.
42+
43+
properties:
44+
reg:
45+
description: |
46+
The control bank that is used to program the two current sinks. The
47+
LM3630A has two control banks (A and B) and are represented as 0 or 1
48+
in this property. The two current sinks can be controlled
49+
independently with both banks, or bank A can be configured to control
50+
both sinks with the led-sources property.
51+
maxItems: 1
52+
minimum: 0
53+
maximum: 1
54+
55+
label:
56+
maxItems: 1
57+
58+
led-sources:
59+
allOf:
60+
- minItems: 1
61+
maxItems: 2
62+
items:
63+
minimum: 0
64+
maximum: 1
65+
66+
default-brightness:
67+
description: Default brightness level on boot.
68+
minimum: 0
69+
maximum: 255
70+
71+
max-brightness:
72+
description: Maximum brightness that is allowed during runtime.
73+
minimum: 0
74+
maximum: 255
75+
76+
required:
77+
- reg
78+
79+
additionalProperties: false
80+
81+
additionalProperties: false
82+
83+
examples:
84+
- |
85+
i2c {
86+
#address-cells = <1>;
87+
#size-cells = <0>;
88+
89+
led-controller@38 {
90+
compatible = "ti,lm3630a";
91+
reg = <0x38>;
92+
93+
#address-cells = <1>;
94+
#size-cells = <0>;
95+
96+
led@0 {
97+
reg = <0>;
98+
led-sources = <0 1>;
99+
label = "lcd-backlight";
100+
default-brightness = <200>;
101+
max-brightness = <255>;
102+
};
103+
};
104+
};
105+
- |
106+
i2c {
107+
#address-cells = <1>;
108+
#size-cells = <0>;
109+
110+
led-controller@38 {
111+
compatible = "ti,lm3630a";
112+
reg = <0x38>;
113+
114+
#address-cells = <1>;
115+
#size-cells = <0>;
116+
117+
led@0 {
118+
reg = <0>;
119+
default-brightness = <150>;
120+
ti,linear-mapping-mode;
121+
};
122+
123+
led@1 {
124+
reg = <1>;
125+
default-brightness = <225>;
126+
ti,linear-mapping-mode;
127+
};
128+
};
129+
};

arch/unicore32/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ config I2C_EEPROM_AT24
191191

192192
config LCD_BACKLIGHT
193193
tristate "LCD Backlight support"
194-
select BACKLIGHT_LCD_SUPPORT
195194
select BACKLIGHT_PWM
196195

197196
endmenu

drivers/gpu/drm/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ config DRM_RADEON
200200
select POWER_SUPPLY
201201
select HWMON
202202
select BACKLIGHT_CLASS_DEVICE
203-
select BACKLIGHT_LCD_SUPPORT
204203
select INTERVAL_TREE
205204
help
206205
Choose this option if you have an ATI Radeon graphics card. There
@@ -221,7 +220,6 @@ config DRM_AMDGPU
221220
select POWER_SUPPLY
222221
select HWMON
223222
select BACKLIGHT_CLASS_DEVICE
224-
select BACKLIGHT_LCD_SUPPORT
225223
select INTERVAL_TREE
226224
select CHASH
227225
help

drivers/gpu/drm/bridge/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ config DRM_PARADE_PS8622
7676
depends on OF
7777
select DRM_PANEL
7878
select DRM_KMS_HELPER
79-
select BACKLIGHT_LCD_SUPPORT
8079
select BACKLIGHT_CLASS_DEVICE
8180
---help---
8281
Parade eDP-LVDS bridge chip driver.

drivers/gpu/drm/fsl-dcu/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ config DRM_FSL_DCU
22
tristate "DRM Support for Freescale DCU"
33
depends on DRM && OF && ARM && COMMON_CLK
44
select BACKLIGHT_CLASS_DEVICE
5-
select BACKLIGHT_LCD_SUPPORT
65
select DRM_KMS_HELPER
76
select DRM_KMS_CMA_HELPER
87
select DRM_PANEL

drivers/gpu/drm/i915/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ config DRM_I915
1515
select IRQ_WORK
1616
# i915 depends on ACPI_VIDEO when ACPI is enabled
1717
# but for select to work, need to select ACPI_VIDEO's dependencies, ick
18-
select BACKLIGHT_LCD_SUPPORT if ACPI
1918
select BACKLIGHT_CLASS_DEVICE if ACPI
2019
select INPUT if ACPI
2120
select ACPI_VIDEO if ACPI

drivers/gpu/drm/nouveau/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ config DRM_NOUVEAU
55
select DRM_KMS_HELPER
66
select DRM_TTM
77
select BACKLIGHT_CLASS_DEVICE if DRM_NOUVEAU_BACKLIGHT
8-
select BACKLIGHT_LCD_SUPPORT if DRM_NOUVEAU_BACKLIGHT
98
select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && INPUT
109
select X86_PLATFORM_DEVICES if ACPI && X86
1110
select ACPI_WMI if ACPI && X86
1211
select MXM_WMI if ACPI && X86
1312
select POWER_SUPPLY
1413
# Similar to i915, we need to select ACPI_VIDEO and it's dependencies
15-
select BACKLIGHT_LCD_SUPPORT if ACPI && X86
1614
select BACKLIGHT_CLASS_DEVICE if ACPI && X86
1715
select INPUT if ACPI && X86
1816
select THERMAL if ACPI && X86

drivers/gpu/drm/shmobile/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ config DRM_SHMOBILE
44
depends on DRM && ARM
55
depends on ARCH_SHMOBILE || COMPILE_TEST
66
select BACKLIGHT_CLASS_DEVICE
7-
select BACKLIGHT_LCD_SUPPORT
87
select DRM_KMS_HELPER
98
select DRM_KMS_CMA_HELPER
109
select DRM_GEM_CMA_HELPER

drivers/gpu/drm/tilcdc/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ config DRM_TILCDC
88
select DRM_PANEL_BRIDGE
99
select VIDEOMODE_HELPERS
1010
select BACKLIGHT_CLASS_DEVICE
11-
select BACKLIGHT_LCD_SUPPORT
1211
help
1312
Choose this option if you have an TI SoC with LCDC display
1413
controller, for example AM33xx in beagle-bone, DA8xx, or

drivers/staging/olpc_dcon/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ config FB_OLPC_DCON
33
tristate "One Laptop Per Child Display CONtroller support"
44
depends on OLPC && FB
55
depends on I2C
6-
depends on BACKLIGHT_LCD_SUPPORT
76
depends on (GPIO_CS5535 || GPIO_CS5535=n)
87
select BACKLIGHT_CLASS_DEVICE
98
help

drivers/usb/misc/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ config USB_FTDI_ELAN
142142

143143
config USB_APPLEDISPLAY
144144
tristate "Apple Cinema Display support"
145-
select BACKLIGHT_LCD_SUPPORT
146145
select BACKLIGHT_CLASS_DEVICE
147146
help
148147
Say Y here if you want to control the backlight of Apple Cinema

drivers/video/backlight/Kconfig

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
# Backlight & LCD drivers configuration
33
#
44

5-
menuconfig BACKLIGHT_LCD_SUPPORT
6-
bool "Backlight & LCD device support"
7-
help
8-
Enable this to be able to choose the drivers for controlling the
9-
backlight and the LCD panel on some platforms, for example on PDAs.
10-
11-
if BACKLIGHT_LCD_SUPPORT
5+
menu "Backlight & LCD device support"
126

137
#
148
# LCD
@@ -199,7 +193,6 @@ config BACKLIGHT_IPAQ_MICRO
199193

200194
config BACKLIGHT_LM3533
201195
tristate "Backlight Driver for LM3533"
202-
depends on BACKLIGHT_CLASS_DEVICE
203196
depends on MFD_LM3533
204197
help
205198
Say Y to enable the backlight driver for National Semiconductor / TI
@@ -323,7 +316,7 @@ config BACKLIGHT_ADP5520
323316

324317
config BACKLIGHT_ADP8860
325318
tristate "Backlight Driver for ADP8860/ADP8861/ADP8863 using WLED"
326-
depends on BACKLIGHT_CLASS_DEVICE && I2C
319+
depends on I2C
327320
select NEW_LEDS
328321
select LEDS_CLASS
329322
help
@@ -335,7 +328,7 @@ config BACKLIGHT_ADP8860
335328

336329
config BACKLIGHT_ADP8870
337330
tristate "Backlight Driver for ADP8870 using WLED"
338-
depends on BACKLIGHT_CLASS_DEVICE && I2C
331+
depends on I2C
339332
select NEW_LEDS
340333
select LEDS_CLASS
341334
help
@@ -353,28 +346,28 @@ config BACKLIGHT_88PM860X
353346

354347
config BACKLIGHT_PCF50633
355348
tristate "Backlight driver for NXP PCF50633 MFD"
356-
depends on BACKLIGHT_CLASS_DEVICE && MFD_PCF50633
349+
depends on MFD_PCF50633
357350
help
358351
If you have a backlight driven by a NXP PCF50633 MFD, say Y here to
359352
enable its driver.
360353

361354
config BACKLIGHT_AAT2870
362355
tristate "AnalogicTech AAT2870 Backlight"
363-
depends on BACKLIGHT_CLASS_DEVICE && MFD_AAT2870_CORE
356+
depends on MFD_AAT2870_CORE
364357
help
365358
If you have a AnalogicTech AAT2870 say Y to enable the
366359
backlight driver.
367360

368361
config BACKLIGHT_LM3630A
369362
tristate "Backlight Driver for LM3630A"
370-
depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM
363+
depends on I2C && PWM
371364
select REGMAP_I2C
372365
help
373366
This supports TI LM3630A Backlight Driver
374367

375368
config BACKLIGHT_LM3639
376369
tristate "Backlight Driver for LM3639"
377-
depends on BACKLIGHT_CLASS_DEVICE && I2C
370+
depends on I2C
378371
select REGMAP_I2C
379372
select NEW_LEDS
380373
select LEDS_CLASS
@@ -383,20 +376,20 @@ config BACKLIGHT_LM3639
383376

384377
config BACKLIGHT_LP855X
385378
tristate "Backlight driver for TI LP855X"
386-
depends on BACKLIGHT_CLASS_DEVICE && I2C && PWM
379+
depends on I2C && PWM
387380
help
388381
This supports TI LP8550, LP8551, LP8552, LP8553, LP8555, LP8556 and
389382
LP8557 backlight driver.
390383

391384
config BACKLIGHT_LP8788
392385
tristate "Backlight driver for TI LP8788 MFD"
393-
depends on BACKLIGHT_CLASS_DEVICE && MFD_LP8788 && PWM
386+
depends on MFD_LP8788 && PWM
394387
help
395388
This supports TI LP8788 backlight driver.
396389

397390
config BACKLIGHT_OT200
398391
tristate "Backlight driver for ot200 visualisation device"
399-
depends on BACKLIGHT_CLASS_DEVICE && CS5535_MFGPT && GPIO_CS5535
392+
depends on CS5535_MFGPT && GPIO_CS5535
400393
help
401394
To compile this driver as a module, choose M here: the module will be
402395
called ot200_bl.
@@ -410,7 +403,7 @@ config BACKLIGHT_PANDORA
410403

411404
config BACKLIGHT_SKY81452
412405
tristate "Backlight driver for SKY81452"
413-
depends on BACKLIGHT_CLASS_DEVICE && MFD_SKY81452
406+
depends on MFD_SKY81452
414407
help
415408
If you have a Skyworks SKY81452, say Y to enable the
416409
backlight driver.
@@ -420,14 +413,14 @@ config BACKLIGHT_SKY81452
420413

421414
config BACKLIGHT_TPS65217
422415
tristate "TPS65217 Backlight"
423-
depends on BACKLIGHT_CLASS_DEVICE && MFD_TPS65217
416+
depends on MFD_TPS65217
424417
help
425418
If you have a Texas Instruments TPS65217 say Y to enable the
426419
backlight driver.
427420

428421
config BACKLIGHT_AS3711
429422
tristate "AS3711 Backlight"
430-
depends on BACKLIGHT_CLASS_DEVICE && MFD_AS3711
423+
depends on MFD_AS3711
431424
help
432425
If you have an Austrian Microsystems AS3711 say Y to enable the
433426
backlight driver.
@@ -466,4 +459,4 @@ config BACKLIGHT_RAVE_SP
466459

467460
endif # BACKLIGHT_CLASS_DEVICE
468461

469-
endif # BACKLIGHT_LCD_SUPPORT
462+
endmenu

0 commit comments

Comments
 (0)