Add DTS definitions and bindings to enable the GPIO controllers
for Allwinner H618 SoC on the Orange Pi Zero 2W board.
Signed-off-by: Khai Do <dovankhai97@gmail.com>
- systick: split multi-statement lines into one per line (Zephyr style)
- ch32v103.dtsi: add missing reg property alongside ranges in flash0 node
Signed-off-by: Lucy Wong <mova845@outlook.com>
Add initial DeviceTree support for the Microchip SmartFusion2
M2S010 microcontroller family.
This commit introduces the base SoC description for the M2S010
platform together with the required Devicetree bindings used by
the SmartFusion2 architecture. The newly added bindings cover
clock configuration, flash controller support, interrupt
controller handling, and common SmartFusion2-specific properties.
Signed-off-by: Anton Vynohradov <vynohradov.external@bavariamatic.com>
After this commit, enabling CONFIG_PM=y will let the device enter EM2 (deep
sleep), which drops the power consumption from multiple mA into tens of uA.
While the chip may also support EM3 and EM4, EM0-EM2 are the only ones I've
tested successfully, so let's stick to those for now.
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
Combined with future commits, this allows decreasing power consumption. The
rtcc0 device can still be used a counter driver, it's just provided by a
different driver now (CONFIG_COUNTER_GECKO_STIMER).
Signed-off-by: Michael Zimmermann <michael.zimmermann@sevenlab.de>
The NXP MCXE31x Wake-up Unit (WKPU) is register-compatible with the
S32K3 WKPU already supported by the intc_wkpu_nxp_s32 driver: same
register map, base address 0x402B4000, IRQ 83, and 64 wake-up
sources. Bind the MCXE31x WKPU node to that driver by switching its
compatible from the placeholder "nxp,wkpu" (which had no binding or
driver behind it) to "nxp,s32-wkpu".
Every SoC that instantiates this controller exposes 64 wake-up
sources, so generalise NXP_S32_WKPU_SOURCES_MAX to a plain
"default 64" instead of a per-SoC-series default; the range 32-64
still lets a future 32-source part override it.
The node lives in the shared nxp_mcxe31x_common.dtsi, so this enables
the WKPU on MCXE315/316/317/31B. The driver source itself is not
modified.
Verified on frdm_mcxe31b: the WKPU device binds and initializes, and
an RTC-timeout event (WKPU internal source 1) triggers the WKPU ISR.
Signed-off-by: Holt Sun <holt.sun@nxp.com>
The ADTM is a superset of the GPTM and has the same core register
layout. See section 11.2.2 of the CH32V003RM for details on the
differences.
Use the same technique as the GD32 driver, i.e. use the same basic
driver with tweaks based on the features.
Add the common 3x GTPM and 1x ADTM Devicetree and pinctrl entries for
the 20x and 30x series and the extra 1x GPTM for the CH32V208 used in
linkw. I can follow up with the other chips in a separate PR.
Tested on the ch32v006evt and linkw by running
`samples/basic/blinky_pwm` and `tests/drivers/pwm/pwm_api` and
checking the output with a logic analyser.
Signed-off-by: Michael Hope <michaelh@juju.nz>
Wire the gdma driver to the esp32p4 AXI and AHB DMA instances,
selecting the per-bus LL calls and 8-byte aligned descriptors so
both buses work through the common driver.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Add a PWM trigger-source backend that drives the capture pad with a
static duty and loops it back to the capture input, so the loopback
test runs with no external wire on any board that provides a PWM
routed to its capture pad.
Signed-off-by: Sylvio Alves <sylviojalves@gmail.com>
Add counter capture support to the GP-Timer driver. A GPIO edge is
routed through the ETM to the timer capture task, latching the counter
value in hardware. Only available on ETM capable SoCs.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Some drivers or Kconfig item (for example: CONFIG_SDHC_BUFFER_ALIGNMENT
for imx_usdhc) depends on CONFIG_DCACHE_LINE_SIZE, but if the board use
CONFIG_DCACHE_LINE_SIZE_DETECT is enabled to detect cache size at runtime,
the value of CONFIG_DCACHE_LINE_SIZE will be NULL and will have some
building issue, in order to fix this issue, change all the boards of
i.MX 91 and i.MX93 to use fixed cache line size which is got from
dts property.
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Add the inputmux@40001000 and eqdc@400a7000 nodes to the MCXA SoCs that
provide the Enhanced Quadrature Decoder: MCXA153, MCXA156, MCXA344 and
the MCXA-xx6 common dtsi (MCXA266/346/366). A second eqdc@400a8000
instance is added on the parts that expose two EQDCs (MCXA156, MCXA344
and MCXA266/346/366); MCXA153 has a single instance. The eqdc nodes are
disabled by default and enabled through board overlays.
Co-authored-by: bnina-ayoub <ouba.bnina@gmail.com>
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
Add a sensor driver for the NXP MCUX Enhanced Quadrature Decoder (EQDC)
using the fsl_eqdc HAL. The PHASEA/PHASEB decoder inputs are routed
through the on-chip INPUTMUX, described by an "inputmux-connections"
phandle-array following the nxp,inputmux convention.
The driver exposes SENSOR_CHAN_ROTATION, SENSOR_CHAN_RPM,
SENSOR_CHAN_ENCODER_COUNT and SENSOR_CHAN_ENCODER_REVOLUTIONS; the last
channel is added to the sensor API. Velocity uses the EQDC period
measurement (POSDH/POSDPERH), so a prescaler keeps the 16-bit period
counter from saturating at the sample rate.
A single-phase-mode property selects single-phase decode (one count per
PHASEA pulse, with the direction taken from PHASEB) instead of the
default quadrature X4 decoding, with the counts-per-revolution scaling
adjusted accordingly.
Co-authored-by: bnina-ayoub <ouba.bnina@gmail.com>
Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
The LPC55S2x, LPC55S3x, and LPC55S0x SoC families carry the same
CTIMER peripheral IP as LPC55S6x and LPC55S1x: five instances at
identical base addresses (CTIMER0-4: 0x40008000-0x4002A000) with
the same IRQ numbers (10, 11, 36, 13, 37). Their SoC common dtsi
files were missing ctimer node definitions entirely; add ctimer0-4
to nxp_lpc55S2x_common.dtsi, nxp_lpc55S3x_common.dtsi, and
nxp_lpc55S0x_common.dtsi.
Enable ctimer0-4 on lpcxpresso55s28, lpcxpresso55s36, and
lpcxpresso55s06, and add counter to each board's supported
feature list.
Tested by building samples/hello_world and
tests/drivers/counter/counter_basic_api for all three boards.
Signed-off-by: Peter Wang <chaoyi.wang@nxp.com>
- The TRNG frequency range as stated in mspm0l1117 datasheet is 9.5 to 25
MHz. Since the input is 32 MHz, the only divider that lies in the range
is 2. Also 2 is the clock divider that is used in the TI example.
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
Based on the DS18B20 driver. Only the temperature sensor functionality is
exposed by this driver, not eeprom access nor parasite power configuration.
Signed-off-by: Tomas Groth Christensen <tgc@foss.dk>
Add DT binding for Hall-effect pulse-output flow meters.
Supports a required pulse GPIO, an optional power GPIO, and a
pulses-per-liter integer property for calibration.
Signed-off-by: Nicolas Belin <nbelin@baylibre.com>
Add a controller and PHY driver for the BL808 UHS PSRAM. The PHY read/write
eye is calibrated at boot by sweeping the DQS/DQ delay taps and latency, so
any supported rate works without per-rate constants. Add the devicetree
nodes and enable on the M1S Dock.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add the UHS PLL, a dedicated PLL that feeds only the UHS PSRAM PHY. It is
outside the system clock tree and brought up on demand; the output
frequency comes from the clk_uhspll devicetree node.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add Zephyr memory region attributes to SRAM and TCMSRAM.
Mark F4xx backup SRAM (BKPSRAM) as non-volatile.
Signed-off-by: Egill Sigurdur <egill@egill.xyz>
Describe the switchable GD32A50x shared SRAM block as a separate memory
region, since the block can be used as a fast program buffer.
Signed-off-by: Egill Sigurdur <egill@egill.xyz>
- Adds correct SRAM region sizes for each sub-variant.
- For consistency: Drops the separate sram1 region some variants
used since these are contiguous regions.
Signed-off-by: Egill Sigurdur <egill@egill.xyz>
The package letter ("i" or "v") only affects pinout, while all "k" variants
share the same memory configuration.
Signed-off-by: Egill Sigurdur <egill@egill.xyz>
Disable the I2C1 node in the CH32V003 SoC devicetree.
Boards which use I2C1 should enable it explicitly in their board devicetree
or overlay. This keeps the SoC dtsi from enabling unused devices by
default.
Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
Add support for scanning PCIe buses beyond bus 0 using a devicetree
property. Some platforms have PCIe devices on
non-zero buses that are not reachable through bridge
enumeration from bus 0.
Signed-off-by: Bindu S <bindu.s@intel.com>
Add devicetree node for the MXCRYPTOLITE crypto engine and
TRNG to the 20829 SoC DTS includes. This node references the
new infineon,mxcrptolite, infineon,mxcryptolite-crypto, and
infineon,mxcryptolite-trng bindings.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
Add devicetree node for the MXCRYPTOLITE crypto engine and
TRNG to the PSC3 SoC DTS includes. This node references the
new infineon,mxcrptolite, infineon,mxcryptolite-crypto, and
infineon,mxcryptolite-trng bindings.
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
- infineon,mxcryptolite: mfd parent for crypto and trng nodes
- infineon,mxcryptolite-crypto: main crypto engine with AES support
- infineon,mxcryptolite-trng: true random number generator
These bindings describe the register base address and interrupt
configuration for the MXCRYPTOLITE IP block found in several
Infineon SoCs, including PSC3M5 and CYW20829
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: McAtee Maxwell <maxwell.mcatee@infineon.com>
Add default partitions dts files for rp2350 based socs similar to how
espressif includes the partition dtsi for specific boards.
Update rp2350 based board files to use the new paritions for the
zephyr,code-partition chosen node. This is the first step to update the
raspi pico snippets to include flash size variants.
Signed-off-by: Andrew Fantino <fantino@qti.qualcomm.com>
We standardize the eSPI V2 driver device tree properties for MEC172x,
MEC174x, MEC175x, and MEC165xB.
Signed-off-by: scott worley <scott.worley@microchip.com>
Microchip XEC V2 eSPI hardware changes Host address BARs. Host address
bits [47:32] are now common to all peripheral channel device memory
BARs and the SRAM BARs. Two registers contain these upper address bits.
We add optional device tree properties to specify these values. If not
present bits [47:32] of host address in all BARs are 0.
Signed-off-by: scott worley <scott.worley@microchip.com>
Transition the driver over to one-shot operation by default unless
`CONFIG_LPS22HH_TRIGGER` is enabled to actually make use of periodic
measurements. By using one-shot mode and polling on the status register,
this fixes the following code flow, which is currently broken due to
no periodic samples being available immediately after resuming.
```
pm_device_runtime_get(dev);
sensor_sample_fetch(dev);
sensor_channel_get(dev, ...);
pm_device_runtime_put(dev);
```
Signed-off-by: Jordan Yates <jordan@embeint.com>
Add SD host controller nodes and also assign them interrupts and power
domains.
Additionally also setup eMMC and SD card as disks, and set up a node for
the SDIO instance.
Signed-off-by: Amneesh Singh <amneesh@ti.com>
Add SD host controller nodes t and also assign them interrupts.
Additionally also setup eMMC and SD card as disks, and set up a node for
the SDIO instance.
Signed-off-by: Amneesh Singh <amneesh@ti.com>
Add SD host controller nodes and also assign them interrupts and power
domains. Additionally also setup eMMC and SD card as disks.
Signed-off-by: Amneesh Singh <amneesh@ti.com>
Add the driver for TI's interrupt based AM654 SD Host Controller that can
be used with both eMMC and SD cards.
Signed-off-by: Amneesh Singh <amneesh@ti.com>
There are three DMA cells but the binding sets the `dma-cells` property
to `const: 4`. Fix the value in the binding and update DTSI accordingly
so that `dma-cells` matches the number of DMA cells.
Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.
This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find dts/xtensa -type f -exec \
./scripts/check_quoted_includes.py -w {} \;
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.
This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find dts/x86 -type f -exec ./scripts/check_quoted_includes.py -w {} \;
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.
This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find dts/sparc -type f -exec ./scripts/check_quoted_includes.py -w {} \;
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
Use #include <> instead of #include "" to include a header file which path
is not relative to the directory path of the file emitting the #include
directive.
This change was made running scripts/check_quoted_includes.py script
proposed in https://github.com/zephyrproject-rtos/zephyr/pull/112135
with the Linux shell command below and manually selecting the applicable
changes:
$ find dts/riscv/ -type f \
-exec ./scripts/check_quoted_includes.py -w {} \;
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>