Skip to content

Commit e681e3f

Browse files
author
Emil Dahl Juhl
committed
drivers: led: lp5569: enable auto-increment
The lp5569 controller supports auto-increment for its registers. This is by default enabled in the chip, but the driver actively disabled it. Since auto-increment is useful for writing multiple consecutive registers, enable the feature. The driver, however, doesn't perform such consecutive writes and thus the existing behavior is not altered. Signed-off-by: Emil Dahl Juhl <[email protected]> (cherry picked from commit 45744b4)
1 parent aa28bed commit e681e3f

File tree

2 files changed

+326
-1
lines changed

2 files changed

+326
-1
lines changed

doc/releases/release-notes-4.1.rst

Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,324 @@
1+
:orphan:
2+
3+
.. _zephyr_4.1:
4+
5+
Zephyr 4.1.0 (Working Draft)
6+
############################
7+
8+
We are pleased to announce the release of Zephyr version 4.1.0.
9+
10+
Major enhancements with this release include:
11+
12+
An overview of the changes required or recommended when migrating your application from Zephyr
13+
v4.0.0 to Zephyr v4.1.0 can be found in the separate :ref:`migration guide<migration_4.1>`.
14+
15+
The following sections provide detailed lists of changes by component.
16+
17+
Security Vulnerability Related
18+
******************************
19+
The following CVEs are addressed by this release:
20+
21+
More detailed information can be found in:
22+
https://docs.zephyrproject.org/latest/security/vulnerabilities.html
23+
24+
API Changes
25+
***********
26+
27+
Removed APIs in this release
28+
============================
29+
30+
* The deprecated Bluetooth HCI driver API has been removed. It has been replaced by a
31+
:c:group:`new API<bt_hci_api>` that follows the normal Zephyr driver model.
32+
33+
Deprecated in this release
34+
==========================
35+
36+
Architectures
37+
*************
38+
39+
* Common
40+
41+
* Introduced :kconfig:option:`CONFIG_ARCH_HAS_CUSTOM_CURRENT_IMPL`, which can be selected when
42+
an architecture implemented and enabled its own :c:func:`arch_current_thread` and
43+
:c:func:`arch_current_thread_set` functions for faster retrieval of the current CPU's thread
44+
pointer. When enabled, ``_current`` variable will be routed to the
45+
:c:func:`arch_current_thread` (:github:`80716`).
46+
47+
* ARC
48+
49+
* ARM
50+
51+
* ARM64
52+
53+
* RISC-V
54+
55+
* Implements :c:func:`arch_current_thread_set` & :c:func:`arch_current_thread`, which can be enabled
56+
by :kconfig:option:`CONFIG_RISCV_CURRENT_VIA_GP` (:github:`80716`).
57+
58+
* Xtensa
59+
60+
* native/POSIX
61+
62+
* :kconfig:option:`CONFIG_NATIVE_APPLICATION` has been deprecated.
63+
* For the native_sim target :kconfig:option:`CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT` has been
64+
switched to ``n`` by default, and this option has been deprecated.
65+
66+
Kernel
67+
******
68+
69+
Bluetooth
70+
*********
71+
72+
* Audio
73+
74+
* Host
75+
76+
* HCI Drivers
77+
78+
Boards & SoC Support
79+
********************
80+
81+
* Added support for these SoC series:
82+
83+
* Made these changes in other SoC series:
84+
85+
* Added support for these boards:
86+
87+
* Made these board changes:
88+
89+
* Added support for the following shields:
90+
91+
Build system and Infrastructure
92+
*******************************
93+
94+
Drivers and Sensors
95+
*******************
96+
97+
* ADC
98+
99+
* Battery
100+
101+
* CAN
102+
103+
* Charger
104+
105+
* Clock control
106+
107+
* Counter
108+
109+
* DAC
110+
111+
* Disk
112+
113+
* Display
114+
115+
* Added flag ``frame_incomplete`` to ``display_write`` that indicates whether a write is the last
116+
write of the frame, allowing display drivers to implement double buffering / tearing enable
117+
signal handling (:github:`81250`)
118+
* Added ``frame_incomplete`` handling to SDL display driver (:dtcompatible:`zephyr,sdl-dc`)
119+
(:github:`81250`)
120+
* Added transparency support to SDL display driver (:dtcompatible:`zephyr,sdl-dc`) (:github:`81184`)
121+
122+
* Ethernet
123+
124+
* Flash
125+
126+
* GNSS
127+
128+
* GPIO
129+
130+
* Hardware info
131+
132+
* I2C
133+
134+
* I2S
135+
136+
* I3C
137+
138+
* Input
139+
140+
* LED
141+
142+
* Added a new set of devicetree based LED APIs, see :c:struct:`led_dt_spec`.
143+
* lp5569: added use of auto-increment functionality.
144+
145+
* LED Strip
146+
147+
* LoRa
148+
149+
* Mailbox
150+
151+
* MDIO
152+
153+
* MFD
154+
155+
* Modem
156+
157+
* MIPI-DBI
158+
159+
* MSPI
160+
161+
* Pin control
162+
163+
* PWM
164+
165+
* Regulators
166+
167+
* Reset
168+
169+
* RTC
170+
171+
* RTIO
172+
173+
* SDHC
174+
175+
* Sensors
176+
177+
* Serial
178+
179+
* SPI
180+
181+
* USB
182+
183+
* Video
184+
185+
* Watchdog
186+
187+
* Wi-Fi
188+
189+
Networking
190+
**********
191+
192+
* ARP:
193+
194+
* CoAP:
195+
196+
* Connection manager:
197+
198+
* DHCPv4:
199+
200+
* DHCPv6:
201+
202+
* DNS/mDNS/LLMNR:
203+
204+
* gPTP/PTP:
205+
206+
* HTTP:
207+
208+
* IPSP:
209+
210+
* IPv4:
211+
212+
* IPv6:
213+
214+
* LwM2M:
215+
216+
* Misc:
217+
218+
* MQTT:
219+
220+
* Network Interface:
221+
222+
* OpenThread
223+
224+
* PPP
225+
226+
* Shell:
227+
228+
* Sockets:
229+
230+
* Syslog:
231+
232+
* TCP:
233+
234+
* Websocket:
235+
236+
* Wi-Fi:
237+
238+
* zperf:
239+
240+
USB
241+
***
242+
243+
Devicetree
244+
**********
245+
246+
Kconfig
247+
*******
248+
249+
Libraries / Subsystems
250+
**********************
251+
252+
* Debug
253+
254+
* Demand Paging
255+
256+
* Formatted output
257+
258+
* Management
259+
260+
* Logging
261+
262+
* Modem modules
263+
264+
* Power management
265+
266+
* Crypto
267+
268+
* CMSIS-NN
269+
270+
* FPGA
271+
272+
* Random
273+
274+
* SD
275+
276+
* State Machine Framework
277+
278+
* Storage
279+
280+
* Task Watchdog
281+
282+
* POSIX API
283+
284+
* LoRa/LoRaWAN
285+
286+
* ZBus
287+
288+
HALs
289+
****
290+
291+
* Nordic
292+
293+
* STM32
294+
295+
* ADI
296+
297+
* Espressif
298+
299+
MCUboot
300+
*******
301+
302+
OSDP
303+
****
304+
305+
Trusted Firmware-M
306+
******************
307+
308+
LVGL
309+
****
310+
311+
* Added ``frame_incomplete`` support to indicate whether a write is the last
312+
write of the frame (:github:`81250`)
313+
314+
Tests and Samples
315+
*****************
316+
317+
* Fixed incorrect alpha values in :zephyr_file:`samples/drivers/display`. (:github:`81184`)
318+
* Added :zephyr_file:`samples/modules/lvgl/screen_transparency`. (:github:`81184`)
319+
320+
Issue Related Items
321+
*******************
322+
323+
Known Issues
324+
============

drivers/led/lp5569.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ LOG_MODULE_REGISTER(lp5569, CONFIG_LED_LOG_LEVEL);
3131

3232
#define LP5569_MISC 0x2F
3333
#define LP5569_POWERSAVE_EN BIT(5)
34+
#define LP5569_EN_AUTO_INCR BIT(6)
3435
#define LP5569_CP_MODE_SHIFT 3
3536

3637
/* PWM base Register for controlling the duty-cycle */
@@ -110,7 +111,7 @@ static int lp5569_enable(const struct device *dev)
110111
}
111112

112113
ret = i2c_reg_write_byte_dt(&config->bus, LP5569_MISC,
113-
LP5569_POWERSAVE_EN |
114+
LP5569_POWERSAVE_EN | LP5569_EN_AUTO_INCR |
114115
(config->cp_mode << LP5569_CP_MODE_SHIFT));
115116
if (ret < 0) {
116117
LOG_ERR("LED reg update failed");

0 commit comments

Comments
 (0)