1.The color_coding in mipi_dbi_config shall not be extracting it from
the bus_type field and shall have dedicated color_coding field.
2.Update device tree binding to include pinctrl support and
declare mipi-dbi bus compatibility.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Removed the driver knowing anything about what color each channel is.
When you output to an LED with a buffer it simply writes the
channels out with buffer.
Also removed the assumptions that the leds are either
a) RGB or b) 3 channels and instead use them the way they are defined.
That is for example if we have 4 channels, we could define an LED
with just one color in it and we could define another with three.
The user can define 4 leds each with color yellow.
For each LED it counts how many buffers were used by previous LEDs and
starts there and outputs N channels.
Decided it looked cleaner to use helper function write channels, so
implemented it and added it to the call table.
Updated sample:
It manually computes which channel maps to red, green and blue and then
uses those indexes to map the table of colors to the right channels.
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com>
Add device tree binding for the NXP TSI (Touch Sensing Input)
peripheral. The binding supports configurable channel selection,
touch/release thresholds, scan periods, and input event code mapping.
Also add TSI0 device node to the MCXN94x common device tree include
file.
Signed-off-by: Qiang Zhang <qiang.zhang_6@nxp.com>
Add display driver for NXP i.MX LCDIFV2 controller.
The driver supports:
- RGB565, RGB888, and ARGB8888 pixel formats
- Configurable framebuffer allocation (0-2 buffers)
- Partial display updates when driver framebuffers are enabled
- Display blanking control
- Backlight GPIO control
- Pinctrl integration
- Cache coherency support via MCUX cache API
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Adds a generic 'channels' property to the base PWM controller
binding. This allows generic subsystems to dynamically query the
number of supported channels at compile time via devicetree macros,
removing the need for hardcoded channel limits.
This also removes redundant 'channels' type and description definitions
from specific device bindings, migrating them to inherit from the base.
Signed-off-by: Pavithra CP <cppavithra05@gmail.com>
This change is being reverted as devices should be updated to use
the new zephyr,mapped-partitions binding instead in which the
ranges property should be used
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Updates the dts nodes to move the flash devices to the top level
soc node and switches partitions to use the new
zephyr,mapped-partition compatible.
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Updates the dts nodes to move the flash0 device to the top level
soc node and switches partitions to use the new
zephyr,mapped-partition compatible. Also includes an MCUboot
update to update to the new binding:
west.yml: MCUboot synchronization from upstream
Update Zephyr fork of MCUboot to revision:
9eac8cb5f4fedb3500986c5877277ef80606c4b0
Brings following Zephyr relevant fixes:
- 2750a58c boot: zephyr: Remove invalid RISCV copying swap image
to RAM code
- 1d627c05 boot: bootutil: Include ih_protect_tlv_size in size
validation
- a4b43f26 boot: zephyr: cmake: handle devicetree compatible
properties as lists
- 15da362b boot: zephyr: Switch to partition macros without
FIXED_ prefix
- 302563c6 boot: zephyr: boards: Update nrf52840-board overlay
bindings
- ab12e5a0 boot: zephyr: use DT_REG_*() macros
- fd6b7c9d boot: zephyr: remove forced sector max
- f84b9d3f boot: zephyr: call LOG_PANIC before jumping to app
to flush in flight logs
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Adds a binding which is used to specify memory mapped NVM
partitions, this offers much simpler understanding than the
existing fixed-partitions compatible and vastly simplifies build
system/linker logic, and also allows for multiple nested layers of
partitions without needing macros updated to parse through each
layer to find the nodes to work out the offsets to add
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
Set zephyr,system-timer = &lptmr0 in the MCX-W7x and MCX-W70 DTSI
/chosen nodes. lptmr1 remains available for use by the counter driver.
Both drivers can be active simultaneously since they use separate
hardware instances.
Update SYS_CLOCK_HW_CYCLES_PER_SEC in the MCX-W7xx SoC defconfig to
resolve the clock frequency from the chosen node path instead of the
lptmr0 nodelabel.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Set zephyr,system-timer = &lptmr1 in the i.MX95 DTSI /chosen node.
lptmr2 remains available for use by the counter driver. Both drivers
can be active simultaneously since they use separate hardware instances.
Default MCUX_LPTMR_TIMER to y in the i.MX95 SoC defconfig and resolve
SYS_CLOCK_HW_CYCLES_PER_SEC from the chosen node path instead of a
hard-coded node address.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Adding a specific stm32wba power controller defining
an interface to manage the ram retention in s2ram power state.
Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
Use the common touchscreen configuration and replace manual ABS
reporting with input_touchscreen_report_pos() to align with the
Zephyr input subsystem helpers.
Add the touchscreen-common devicetree properties screen-width and
screen-height to in-tree nodes using this controller.
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
Add devicetree binding for the Sensirion STCC4, a miniature CO2 sensor
based on thermal conductivity. The sensor communicates via I2C and
provides CO2, temperature, and humidity readings.
The binding supports a required "mode" property (int enum) to select
between continuous and single-shot measurement modes, using constants
from dt-bindings/sensor/stcc4.h.
Signed-off-by: William Markezana <william.markezana@gmail.com>
This adds the CC1312R SoC by Texas Instruments, this requires virtually
no changes since the cc13x2_c26x2 family of SoCs already implement
everything.
One thing not yet enabled is the IEEE 802.15.4g Sub-GHz
driver for this SoC because I can't download SmartRF Studio
due to access constraints from TI.
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
Add DMA controller node to PSOC 4100SMAX device tree and introduce
the corresponding binding file `infineon,dmac.yaml`.
Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
This adds a new sensor driver (with custom channels) for the S3KM1110, a
24GHz mmWave radar sensor from Iclegend that uses a UART interface.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
A lot of BeagleBoard.org boards contain SOCs with co-processors such as
M4F in AM62x (PocketBeagle 2 [0]), R5s in AM67A (BeagleY-AI [1]). In such
targets, the application is normally loaded by the Linux host using
remoteproc.
There have been some out of tree patches to have micropython and other
Zephyr applications output to allow having a console without requiring
manual connections. This patch attempts to provide a more concrete and
upstream way to have that functionality.
The implementation uses existing rpmsg service subsystem.
Only implemented poll_out
Tested on PocketBeagle 2 M4F core.
[0]: https://docs.zephyrproject.org/latest/boards/beagle/pocketbeagle_2/doc/index.html
[1]: https://docs.zephyrproject.org/latest/boards/beagle/beagley_ai/doc/index.html
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Implements PWM driver support for the MAX22216/MAX22217 device.
This driver integrates with the Zephyr PWM API and uses the parent
MFD device to perform register access.
Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
Add MISC driver support for the MAX22216/MAX22217 device.
The driver provides miscellaneous functions and uses the parent
MFD device for register access.
Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
Signed-off-by: Cherrence Sarip <cherrence.sarip@analog.com>
1. enable nxp_t1s_phy support
2. add board variant frdm_mcxa577_mcxa577_t1s using nxp_t1s_phy
3. verified using samples/net/zperf
Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
1. adjusted enet_qos driver to cope with features missing on mcxa577
2. enabled enet_qos support
3. verified samples/net/zperf
Signed-off-by: Stanislav Poboril <stanislav.poboril@nxp.com>
ltdc controller is also available in stm32l4r5 and stm32l4q5
so add it within stm32l4p5. It is not available in stm32l4r5
hence delete the node for this platform.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
As done with ST MCU boards, enable all gpios at SoC level to avoid
to handle them at board level.
Signed-off-by: Christophe Guibout <christophe.guibout@st.com>
Add the stm32mp21x initial device tree source based on stm32mp2_m33.dtsi
stm32mp21 series boards, covering non-secure configuration for zephyr on
the Cortex-M33 core.
These files provide the basic hardware description, including CPU
(Cortex-M33), memory, and RCC clock controller.
Also factorize stm32mp2_m33.dtsi where some definitions were only dedicated
to stm32mp25x, split IRQ number declaration which are different
between stm32mp25x and stm32mp21x.
Signed-off-by: Christophe Guibout <christophe.guibout@st.com>
Add devicetree nodes for the UDP peripheral on SAM4S and SAM4E SoCs,
along with the corresponding devicetree binding.
The UDP controller is present at:
- SAM4S: 0x40034000, IRQ 34
- SAM4E: 0x40084000, IRQ 35
Both variants share the same compatible "atmel,sam-udp" and feature:
- 8 hardware endpoints (EP0-EP7)
- 1 bidirectional endpoint (EP0 for control)
- 5 IN endpoints, 4 OUT endpoints
- Full-speed USB 2.0 (12 Mbps)
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
The bits cell for KINETIS_SIM_DMA_CLK and KINETIS_SIM_DMAMUX_CLK was
incorrectly set to 0x00000002 (a bitmask), but the driver passes this
value directly as the bit-shift index to CLK_GATE_DEFINE(). The HAL
defines:
kCLOCK_Dma0 = CLK_GATE_DEFINE(0x1040U, 1U)
kCLOCK_Dmamux0 = CLK_GATE_DEFINE(0x103CU, 1U)
Fix the bit index to 1 in both nxp_k6x.dtsi and nxp_k8x.dtsi.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Update the clock-cells documentation to describe the 32-bit `name` (id)
cell encoding produced by KINETIS_SIM_CLOCK(). The explicit offset and
bits cells are retained with a note that they exist for consumers such as
the ADC16 driver that read them directly rather than via clock_control.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Replace all raw 3-cell clock specifiers in nxp_mcxc_common.dtsi with
KINETIS_SIM_CLOCK() macro calls. CMP and VREF legacy alias specifiers
are replaced with their real SCGC4 gate addresses (bits 19 and 20);
DMA and DMAMUX are replaced with their SCGC7/SCGC6 gate addresses.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Replace all raw 3-cell <&sim KINETIS_SIM_FOO 0xOFFSET BIT> specifiers
with the new KINETIS_SIM_CLOCK() macro. The macro encodes gate offset,
gate bit, and clock name into the first (id) cell while keeping the
explicit offset/bits as the 2nd and 3rd cells for ADC16 and other
consumers that read them directly.
ENET and ENET_1588 legacy alias specifiers (which used invalid out-of-range
clock-name values) are replaced with their real SCGC2 gate register
addresses (offset 0x1028, bit 26).
Signed-off-by: Holt Sun <holt.sun@nxp.com>
Split interrupt configuration from am64x_r5.dtsi into individual
R5F core files (am64x_r5f0_0.dtsi, am64x_r5f0_1.dtsi,
am64x_r5f1_0.dtsi, am64x_r5f1_1.dtsi) as each core uses
different mailbox channels and VIM interrupt line mappings.
Signed-off-by: Dave Joseph <d-joseph@ti.com>