Commit graph

669 commits

Author SHA1 Message Date
Tim Lin
77be4b2126 drivers/rtc: ite: Add RTC driver for ITE IT8XXX2 series
The driver provides basic RTC functionality including time read and
write, alarm configuration(alarm1 and alarm2), and daylight saving
time (DST) support.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2026-04-14 22:38:09 -04:00
Jacob Schloss
47b3a16e4a soc: espressif: fix lp periph reg size
Region size defined for lp_uart and lp_gpio on c5/c6 does not match TRM.
Reduce to 1kB per TRM.

Signed-off-by: Jacob Schloss <jacob.schloss@suburbanmarine.io>
2026-04-14 22:32:06 -04:00
Kyle Bonnici
45c6182b39 dts: Remove unnecessary node referances
Clean up node referances that have no code or comments between `{ ... }`

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2026-04-14 22:24:36 -04:00
Paweł Pelikan
be316c0f51 boards: nordic: nrf54h20: enable GPIO support for FLPR core
Enable the GPIO peripheral for the nRF54H20 FLPR core.
Add the corresponding test overlays so that the
tests run correctly under Twister for the FLPR core.

Signed-off-by: Paweł Pelikan <pawel.pelikan@nordicsemi.no>
2026-04-14 22:21:36 -04:00
Sylvio Alves
53c8eccf91 soc: espressif: fix ulp_shm memory region overlap
The ulp_shm DTS node at 0x3bf0 overlapped with the last
16 bytes of the ulp_ram region (0x0..0x3c00) on both
ESP32-C5 and ESP32-C6.

Move ulp_shm to 0x3c00, right after ulp_ram, and shift
lp_rtc from 0x3c00 to 0x3c10 (shrinking it by 16 bytes
from 0xf8 to 0xe8) to make room. All other regions
(retainedmem, ipc_shm, mbox0) keep their addresses.

Update LP core linker scripts to stop subtracting
shared mem size from the ram segment length, since
ulp_shm is now outside the coprocessor reservation.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-31 10:29:02 -05:00
William Markezana
1d4083551b dts: bflb: add BL70x USB device controller binding and node
Add devicetree binding for the Bouffalo Lab BL70x USB 1.1 Full-Speed
device controller and define the USB peripheral node in bl70x.dtsi.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-20 12:33:43 -05:00
William Markezana
51d58642f6 drivers: usb: add proper bl70x cpu buffer alignment
Set cpu-buffer-stall property on the BL70x USB peripheral node to
ensure proper buffer alignment for DMA transfers.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-20 12:33:43 -05:00
Sylvio Alves
cd94302773 dts: espressif: add esp32c5 devicetree and bindings
Add devicetree source files, clock definitions, interrupt mapping,
GPIO signal map, and pin control bindings for ESP32-C5.

Also add 8 MB flash partition layout with 0x2000 offset and extend
the espressif,riscv CPU binding to accept 48 MHz XTAL frequency.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-19 14:53:05 -05:00
William Markezana
00e5796acf drivers: bluetooth: hci: add Bouffalo Lab BL70X HCI driver
Add an HCI driver for the BL702 on-chip BLE controller. The controller
is a precompiled binary blob communicating via vendor on-chip HCI
functions (bt_onchiphci_send/bt_onchiphci_interface_init).

The driver:
- Translates between Zephyr HCI net_buf and the vendor's internal
  packet structures for both TX (commands, ACL data) and RX (events,
  ACL data)
- Uses a dedicated RX thread with FIFO+semaphore to dequeue messages
  from the controller callback (which may run in ISR context)
- Reads the BLE MAC address from eFuse during initialization
- Supports multiple controller binary variants via Kconfig choice
  (peripheral-only, multi-role, observer, etc.)
- Provides proper open/close lifecycle with RX queue draining

Also adds the DT binding (bflb,bl70x-bt-hci) and a bt-hci node in
the BL70X SoC dtsi (disabled by default).

Signed-off-by: William Markezana <william.markezana@gmail.com>

# Conflicts:
#	drivers/bluetooth/hci/CMakeLists.txt
2026-03-19 14:47:46 -05:00
Adam Kondraciuk
df2f7cb16c dts: nordic: nrf54l: Add FLPR core support for nrf54L targets
Added FLPR support for nRF54L05 and nRF54L10 targets.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2026-03-19 11:43:29 +00:00
Adam Kondraciuk
1d04623b90 dts: nordic: nrf54lm20: Remove cpuflpr resource reservations
Removes resource reservation for cpuflpr from the cpuapp build and
only applies it when either of the flpr snippets are used

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2026-03-19 11:43:29 +00:00
William Markezana
c5c47ccc75 dts: bflb: Add BL70xL dts
Add DTS for BL70xL

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-18 17:40:26 -05:00
William Markezana
a4a56726df drivers: clock_control: Update BL70x clock_control to BL70x/L
Handle BL70xL in BL70x driver

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-18 17:40:26 -05:00
Camille BAUD
1052fdd247 dts: bflb: Fix TRNG addresses
Addresses were changed but only in the name and not the reg property,
breaking the entries.

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-18 11:01:59 +09:00
William Markezana
0ec1e84da0 dts: riscv: bflb: add timer and rtc nodes
Add timer0, timer1, and rtc0 nodes to BL60x, BL61x, and BL70x
devicetree includes.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-16 08:59:13 +01:00
Camille BAUD
a393449803 clock_control: bflb: Add support for F32K
Allow configuring and using F32K 32768Hz Clock

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-16 08:58:06 +01:00
Camille BAUD
04de88ea93 clock_control: bflb: Add support for flash clock settings on BL60x & BL70x
Adds ability to configure flash clocks for those SoCs

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-16 08:58:06 +01:00
Camille BAUD
71f53e3f50 clock_control: bflb: Harmonize PLL and root clock control
Make PLL settings easier and more shared

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-16 08:58:06 +01:00
James Bennion-Pedley
27821b8ea5 drivers: ethernet: Support CH32V Ethernet Peripheral
This adds initial support for the CH32V ethernet peripheral.
The driver supports both internal and external PHY configurations.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2026-03-16 07:17:30 +01:00
James Bennion-Pedley
58b6a6f907 drivers: rng: Add RNG Peripheral driver
This adds RNG support for the CH32V20x_30x family.
Driver required for network stack support.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2026-03-16 07:17:30 +01:00
William Markezana
c912bdb790 dts: bflb: add SEC_ENG sub-block nodes and bindings
Add device tree nodes for the Bouffalo Lab SEC Engine sub-blocks
(SHA, AES, GMAC) across all three SoC families:

- bl60x/bl70x: individual IRQs per sub-block (SHA=30, AES=29,
  GMAC=25), peripherals at 0x40004xxx
- bl61x: shared IRQ 26 for all crypto sub-blocks
  (SEC_ENG_ID0_SHA_AES_TRNG_PKA_GMAC_IRQn), peripherals at
  0x20004xxx

Add corresponding DT binding YAML files for each compatible.

Enable SEC_ENG AES and SHA nodes on ai_m62_12f_kit,
ai_wb2_12f_kit, and dt_xt_zb1_devkit boards.

Signed-off-by: William Markezana <william.markezana@gmail.com>

# Conflicts:
#	dts/riscv/bflb/bl60x.dtsi
#	dts/riscv/bflb/bl61x.dtsi
#	dts/riscv/bflb/bl70x.dtsi
2026-03-11 20:53:43 -04:00
Dhanoo Surasarang
3445ec3b86 dts: riscv: nordic: nrf7120: Fix cpuflpr_mram address/size cells
Add ranges, #address-cells and #size-cells to cpuflpr_mram to
match the cpuapp_mram pattern. Without these the fixed-partitions
child node causes dtc warnings about mismatched address-cells and
default addr/size reliance.

Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
2026-03-11 17:49:34 +00:00
Camille BAUD
358b954dda drivers: gpios: Various BL61x improvement and support GPIO > 31
Various BL61x GPIO improvements

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-03-10 22:20:46 +01:00
William Markezana
27f97c132b drivers: entropy: add BFLB SEC engine TRNG driver
Add an entropy driver for Bouffalo Lab BL70X that reads
random data from the SEC TRNG block and wires it into
Zephyr's entropy API.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-03-10 14:18:36 -05:00
Raffael Rostagno
046346905a dts: soc: pm: esp32: Adjust power states
Adjust PM residency times to more realistic values. Add power
states to ESP32-C2. Mark soft-off state as disabled, as it must
be called explicitly by application.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
2026-03-10 15:09:30 +01:00
Sylvio Alves
1f672c777a soc: esp32c6: lp core gpio driver fixes and improvements
- Fix lp_gpio Kconfig dependency to use proper
  DT_HAS_ESPRESSIF_ESP32_LPGPIO_ENABLED symbol instead of
  SOC_ESP32C6_LPCORE, and separate GPIO_ESP32 from LPGPIO_ESP32

- fix lp_gpio compatible string to espressif,esp32-lpgpio to
  match the corrected Kconfig dependency

- enable global LP core interrupts at startup via
  ulp_lp_core_intr_enable() in lp_core_startup(); the LP core
  has no interrupt allocator so this must be done once for any
  peripheral using the single interrupt vector

- enable lp_gpio in gpio_wakeup sample overlay

- fix ESP_CONSOLE_UART_NUM default for LP HP UART console

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-05 04:51:18 +01:00
Sylvio Alves
8f786f505b dts: espressif: esp32c6: allow fixed ULP code memory region
Organize ESP32-C6 memory layout to allow additional ULP code
sample codes.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-25 18:05:16 -06:00
Sylvio Alves
6caf9f6f37 dts: espressif: esp32c6: reorganize lp sram memory layout
Reorganize ESP32-C6 LP SRAM into dedicated memory regions:
- ulp_shm: ULP shared memory for LP core communication
- ipc_shm: IPC shared memory for mbox driver
- lp_rtc: RTC data section for deep sleep persistence
- retainedmem: retained memory region with zephyr,retained-ram

Reduce main LP SRAM from 16K to 15K to accommodate the new
dedicated regions in upper LP SRAM. Update mbox overlay
references from shmlp to ipc_shm nodelabel.

Remove deep_sleep and retained_mem board overlays that are no
longer needed with the updated base DTS.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 16:04:32 -06:00
Egon Carusi
3f90fed794 dts: cva6: cva6.dtsi contains wrong reg for gpio and eth
The cva6.dtsi contains bad reg values for eth and gpio peripherals.
The form reg=<0x0 base 0x0 size> has been replaced with expected
reg=<base size>.

Signed-off-by: Egon Carusi <egon.carusi@swhard.it>
2026-02-24 10:42:41 +01:00
William Markezana
03286aad00 drivers: watchdog: add Bouffalo Lab BL70x watchdog driver
Add a watchdog timer driver for all Bouffalo Lab SoC families.

Tested on Sipeed M0Sense (BL702) with tests/drivers/watchdog/wdt_basic_api.

Signed-off-by: William Markezana <william.markezana@gmail.com>
2026-02-23 08:52:12 +01:00
Robert Robinson
ec3b856c2f dts: nordic: nrf7120: Update MRAM partitions
MRAM sizes were wrongly defined in .dtsi files and
so required updating.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-16 09:02:34 -06:00
Jamie McCrae
6a6983b507 dts: nordic: nrf54l15: Remove cpuflpr resource reservations
Removes resource reservation for cpuflpr from the cpuapp build and
only applies it when either of the flpr snippets are used

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-02-13 09:49:06 -06:00
Michał Stasiak
c89c73d316 dts: nordic: add nRF54LM20B
Added dts for nRF54LM20B, using common nRF54LM20.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-02-12 14:26:44 +00:00
Michał Stasiak
145e0d75e3 manifest: update hal_nordic revision to integrate nrfx 4.1.0
Updated hal_nordic manifest and trusted-firmware-m manifest
with alignment.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2026-02-12 14:26:44 +00:00
Sven Ginka
e39ca0be3d dts: sy1xx: add support for spi
adding spi nodes to sensry soc sy1xx.

Signed-off-by: Sven Ginka <s.ginka@sensry.de>
2026-02-06 13:43:45 -06:00
Erdem Simsek
1e013350b9 dts: riscv: nordic: add definitions for vevif_rx for nRF7120
Add cpuflpr_vevif_rx for mailbox for nRF7120

Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
2026-02-06 08:56:32 -06:00
Kyle Bonnici
f55358bcbf dts: use lowercase hex values in DTS files.
Apply chnages from dts-linter 0.3.9.

Improve compliance with DTS Coding Style which says that:

4) Hex values in properties, e.g. “reg”, shall use lowercase hex.
   The address part can be padded with leading zeros.

Signed-off-by: Kyle Bonnici <kylebonnici@hotmail.com>
2026-02-04 13:49:43 +01:00
James Bennion-Pedley
4b7ef1878d dts: wch: Add missing 20x/30x SPI and I2C nodes
Adds some missing peripheral bindings for the CH32V20x/30x SOCs.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2026-02-02 12:56:20 +01:00
Camille BAUD
8edddc5ab2 drivers: clock_control: Improve overclock support for bl61x
Add more description, and a new overclock setting

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Camille BAUD
2d2bc6af01 drivers: regulator: driver for BFLB internal regulators
Drivers to manage BFLB SoC internal LDO11 regulators

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Camille BAUD
5d01941e32 bflb: soc: Consolidate brown out controls
Create a new binding and associated soc-level driver to set brown-out

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-30 05:56:02 -06:00
Ren Chen
88688aee93 drivers: ps2: add it51xxx ps2 support
as title.

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-01-30 09:18:29 +01:00
Andy Lin
449fe27eb8 dts: raspberrypi: riscv: add support for Zbb and Zbkb ISA extensions
Add support for Zbb and Zbkb ISA extensions. They are used
by some pico-sdk library code.

Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
2026-01-29 14:24:29 +00:00
James Bennion-Pedley
69d1b144ca soc: wch: Add idle gating functionality to fix hardware bug
In WCH chips entering idle via `wfi` will break ongoing DMA
transactions. This adds PM state to prevent `wfi` idle in specific drivers.

Signed-off-by: James Bennion-Pedley <james@bojit.org>
2026-01-29 14:24:11 +00:00
Fin Maaß
869845d6ab aesc: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00
Fin Maaß
ed6a969849 andestech: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00
Fin Maaß
01bc8b2351 egis: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00
Fin Maaß
8f69f66059 gd: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00
Fin Maaß
fb1aeeb346 intel: niosv: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00
Fin Maaß
5b0a847098 ite: riscv: use riscv,isa-extensions dt prop
use riscv,isa-extensions dt prop for riscv cpus.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-01-26 14:15:18 +01:00