The MRT channel nodes do not name their module as a power domain. The
module is not attached to core_domain, and the channels declare no
disabling-power-states.
Per MCX N23x RM Rev. 4_RC2 Table 218 ("Power domain assignments for
modules"), MRT0 belongs to CORE_MAIN, which is powered off in Deep Power
Down. Table 220 ("Module operation in low-power modes") lists MRT as On in
Sleep, Static in Deep Sleep and Power Down, and Off in Deep Power Down.
Static means the module is not active in state retention.
Name the module as each channel's power domain, declare its zero power-
domain cells and attach it to core_domain. Give each channel the deepsleep,
powerdown and deeppowerdown constraints used by the driver's per-channel
policy locks.
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Deep Power Down gates the CORE power domain, so an OPAMP comes back
from it with its registers at reset values, but none of the three
nodes declared a power domain, so TURN_OFF never arrives and TURN_ON
arrives exactly once, from device init, where the registers were at
reset values anyway. None of the three declared
zephyr,disabling-power-states either, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter a
state that powers the amplifier off while a consumer still had it
enabled.
Point all three at the core_domain this SoC devicetree already
declares via nxp_mcxnx4x_common.dtsi; its onoff list is
&deeppowerdown, which the SoC devicetree leaves disabled, so this
stays inert until an application opts into that state.
Per MCX Nx4x RM Rev. 6 Table 336 ("Module operation in low-power
modes"), the OPAMP0-2 analog core is "On/Off" in both Sleep and Deep
Sleep mode, i.e. the mode leaves its enabled state to software, and
"Off" in Power Down, Deep Power Down and VBAT. List powerdown and
deeppowerdown as disabling states to match.
OPAMP0-2 are declared in nxp_mcxn94x_common.dtsi, so the change is
confined to the N94x family.
Covers N947 and N946.
Assisted-by: Vero Coder:Sonnet 4.6
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Deep Power Down gates the CORE power domain, so an OPAMP comes back
from it with its registers at reset values, but none of the four
nodes declared a power domain, so TURN_OFF never arrives and TURN_ON
arrives exactly once, from device init, where the registers were at
reset values anyway. None of the four declared
zephyr,disabling-power-states either, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter a
state that powers the amplifier off while a consumer still had it
enabled.
Point all four at the core_domain this SoC devicetree already
declares; its onoff list is &deeppowerdown, which the SoC devicetree
leaves disabled, so this stays inert until an application opts into
that state.
Per the MCXA16xx/MCXA17xx/MCXA27xx RM Rev. 1, Section 24.5 ("Module
operation in low power modes"), the OpAMP 0/1/2/3 analog core is
"On/Off" in both Sleep and Deep Sleep mode, i.e. the mode leaves its
enabled state to software, and "Off" in both Power Down and Deep
Power Down. List powerdown and deeppowerdown as disabling states to
match.
Covers A266, A346 and A366.
Assisted-by: Vero Coder:Sonnet 4.6
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Deep Power Down gates the CORE power domain, so an OPAMP comes back
from it with its registers at reset values, but none of the three
nodes declared a power domain, so TURN_OFF never arrives and TURN_ON
arrives exactly once, from device init, where the registers were at
reset values anyway. None of the three declared
zephyr,disabling-power-states either, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter a
state that powers the amplifier off while a consumer still had it
enabled.
Point all three at the core_domain this SoC devicetree already
declares; its onoff list is &deeppowerdown, which the SoC devicetree
leaves disabled, so this stays inert until an application opts into
that state.
Per the MCX A343 and MCX A344 RM Rev. 1, Section 24.5 ("Module
operation in low power modes"), the OpAMP 0/1/2 analog core is
"On/Off" in both Sleep and Deep Sleep mode, i.e. the mode leaves its
enabled state to software, and "Off" in both Power Down and Deep
Power Down. List powerdown and deeppowerdown as disabling states to
match.
Assisted-by: Vero Coder:Sonnet 4.6
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Deep Power Down gates the CORE power domain, so OPAMP0 comes back from
it with its registers at reset values, but the node declared no power
domain, so TURN_OFF never arrives and TURN_ON arrives exactly once,
from device init, where the registers were at reset values anyway. The
node also declared no zephyr,disabling-power-states, so with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy was free to enter a
state that powers the amplifier off while a consumer still had it
enabled.
Point the node at the core_domain this SoC devicetree already
declares; its onoff list is &deeppowerdown, which the SoC devicetree
leaves disabled, so this stays inert until an application opts into
that state.
Per the MCX A156/A155/A154/A146/A145/A144 RM Rev. 7, Section 23.5
("Module operation in low power modes"), OPAMP0 is "Optional" in both
Sleep and Deep Sleep mode, i.e. the mode leaves its enabled state to
software, and "Off" in both Power Down and Deep Power Down. List
powerdown and deeppowerdown as disabling states to match.
Listing the states makes the constraint visible to applications: with
CONFIG_PM_POLICY_DEVICE_CONSTRAINTS the policy no longer selects Power
Down or Deep Power Down while the amplifier is active, and without
device runtime PM the device is active from init onwards. The
migration guide spells that out and names device runtime PM as the way
to get those states back.
Assisted-by: Vero Coder:Sonnet 4.6
Signed-off-by: Zhaoxiang Jin <Zhaoxiang.Jin_1@nxp.com>
Add ADC_GAIN_15_32 for converters that scale their inputs by 15/32,
as the NXP LPADC does with its partial scale of 30/64. Without it,
the LPADC driver selects that scale for the 1/2 gain, and the
conversions of the ADC API are then 6.25% too low.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add a cryptolite0 DTS node for the MXCRYPTOLITE hardware block on the
PSC3M6 SoC at address 0x52230000 with compatible infineon,mxcryptolite.
The TRNG and crypto child nodes are disabled by default and have to be
enabled at the board level.
Signed-off-by: Niranjan M <niranjan@aerlync.com>
The interrupt value was set to 32, which is the ARM vector table
position for EUSCI_A0 (IRQn + 16 = 16 + 16 = 32), not the CMSIS
IRQn that Zephyr device tree expects. This caused the interrupt
enable to target the wrong NVIC bit, so the UART ISR was never
invoked and interrupt-driven reception was silently broken.
Change the value to 16, which is the correct CMSIS IRQn for EUSCI_A0
as defined in the device header.
Signed-off-by: Gail Rojas <gailroco@gmail.com>
Assisted-by: Claude
The init function rejected any ngpios above 4 with -EINVAL, so a wider
GPIO block failed to initialise. The Sapphire IP offers widths of 1, 2,
4, 8, 16 or 32.
Restrict ngpios to those values in the binding, drop BIT_MASK() from
the latch read-modify-write as BIT_MASK(32) shifts by 32, and remove the
empty init function.
Not tested on silicon.
Assisted-by: Claude:claude-sonnet-5-5
Signed-off-by: Arkadiusz Grzelka <devitwise@gmail.com>
The datasheet gives P1.05 as ANT_SW, the supply for the RF switch, and
leaves the switching itself to DIO2. It was described as rx-enable
instead, which the driver drives only while the radio receives, so the
switch lost its supply as soon as the radio transmitted. Describe it as
the antenna enable, which the driver holds asserted whenever the radio
is out of sleep.
The pin turns the switch on when it is high, so the flag is active high.
Measured on a RAK4631, receiving from a RAK3372 at 922.1 MHz SF10 BW125,
35 frames per run:
rx-enable, pin left high RSSI -13 dBm, spread -23 to -11
antenna-enable, active low RSSI -34 dBm
antenna-enable, active high RSSI -10 dBm, spread -11 to -10
Driving the pin low costs 21 dB. A carrier from lora_test_cw() behaves
the same way, 14 dB down on an RTL-SDR with the pin low.
rak11720 and rak11160 already describe the same signal as an antenna
enable.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
The comment put LED1 and LED2 on P0.03 and P0.04, which the datasheet
gives to QSPI_CLK on pin 29 and to AIN2 on pin 41. Pins 27 and 28 carry
P1.03 and P1.04, which is what rak4631 already describes its LEDs with.
Signed-off-by: JaeHwan Jin <jaehwan.jin@rakwireless.com>
XIAO Plus boards, such as the XIAO nRF52840 Plus and the XIAO ESP32S3
Plus, add nine pads, D11 to D19, on the bottom side of the XIAO form
factor, between the castellated pins. Carrier boards solder the module
on these pads.
Add the seeed,xiao-plus-gpio nexus binding for these pads. It is
separate from seeed,xiao-gpio so that shields written for the standard
XIAO pinout are not affected, and the parent pins use the D numbers of
the pads.
The positions of D17 and D19 are swapped between the nRF52840 and the
ESP32S3 modules, while their names and functions (SCK1 and MOSI1) are
the same, and Seeed Studio routes the carrier boards of each module by
pad name. The nexus follows the pad names, which the binding documents.
Document the xiao_plus_d, xiao_plus_spi and xiao_plus_serial node
labels in the shield porting guide.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
The NXP HCI setup driver already handles sdio-reset-gpios and
w-disable-gpios as optional: all uses are guarded by
DT_NODE_HAS_PROP() and the power-on reset sequence is simply skipped
when they are not defined.
Marking them as required in the binding breaks shields that
intentionally delete them.
Signed-off-by: Baptiste Coffin <baptiste.coffin_1@nxp.com>
Most of these DTSI files are under dts/<arch>/ or dts/vendor/<vendor>/,
but this one file was looking kinda out of place under dts/<vendor>/.
Move it to the directory with the rest of the AM13 DTSI files.
No files including this need updated as they all use relative addresses
and both directories are already in the DTS search path.
Signed-off-by: Andrew Davis <afd@ti.com>
The OV7670 and OV7675 need XCLK running before they answer on SCCB.
On boards where XCLK comes from a clock controller that is off at
boot, such as a pwm-clock node, the product ID read in init fails.
Add an optional clocks property to both bindings. When it is set,
the driver enables the clock before touching the sensor and waits
1 ms, the minimum time the datasheet asks for before the first SCCB
access. The clock specifier is passed as the clock_control subsystem,
taken from the id cell as for pwm-clock.
Tested on an ESP32-DevKitC with an OV7675, XCLK from a pwm-clock node
on LEDC: the sensor probes at boot without deferred init.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Wojciech Jakubiszyn <wojtekjakubiszyn@gmail.com>
A fetch triggers a conversion and sleeps until it completes, for as
long as the configured conversion times and averaging take. Add a
continuous-mode property, with which the device converts continuously
and a fetch reads the last conversions without waiting.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Add the temp0 node (nxp,lpadc-temp40) to the MCXL255 cm33 common
SoC dtsi file. The node sits disabled by default and is wired to
the existing LPADC1 instance (lpadc0) already present on the main
SYSCON domain; it reuses the current clock setup and requires no
changes to clock_control or any other driver.
Signed-off-by: Samuel Slesar <samuel.slesar@nxp.com>
The ICM-456xx has an FIR anti-alias filter on the ADC output in
low-noise mode. It is off at power-up, and the driver had no way to
turn it on, so vibration above the output bandwidth can alias into the
data.
Add the accel-aaf and gyro-aaf properties to enable it. The
interpolator, set by the same register fields, stays off: it is only
needed with an external clock or in I3C synchronous mode.
Assisted-by: Claude:opus-5.5
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Add support for the DSD TECH SH-C31A, an STM32G431-based USB to CAN FD
adapter derived from the CANable 2.0 design.
The board has no crystal and runs from HSI16 and HSI48, with FDCAN1 on
PB8/PB9, a SIT1051T transceiver without MCU-controlled mode pins, two
active-low LEDs on PA15 and PA0, a BOOT switch and an SWD header.
The pin assignments follow the vendor's published schematic and PCB
netlist (board revision V1.1).
Assisted-by: Amp:claude-opus-5.5
Signed-off-by: Eric Bradley <eric@basepowercompany.com>
Add the MCXC243 (MCXC243VFT, 48QFN) to the MCX C family. It has 128 KB
flash, 32 KB SRAM, a DAC and an I2S module, and no CRC module, so the
new dtsi overrides the memory nodes and deletes the crc node. The NXP
HAL already provides the device files and pin control header.
Tested by building and flashing a GPIO blink application on an
out-of-tree MCXC243VFT board. Flash size (128 KiB) and RAM (32 KiB at
0x1fffe000) were also read back from the chip's ROM bootloader.
Signed-off-by: Shubham Patel <shubham0x13@gmail.com>
Add GPIO driver and devicetree bindings for the ITE IT8300 GPIO
expander.
The IT8300 provides 34 GPIO pins divided into five GPIO groups. Each
group is represented by an ite,it8300-gpio child node, while the parent
ite,it8300 node manages the shared I2C connection and optional active-low
ALERT# interrupt.
The device only reports that a pin has changed and does not provide
per-pin edge polarity information. Cache the previous input state and
filter the latched changes in the alert work handler to provide rising,
falling, and both-edge interrupt support.
The driver was tested with the IT8300 connected to it51xxx_evb and
passed the following Zephyr GPIO test suites:
- drivers/gpio/basic_api
- drivers/gpio/get_direction
- drivers/gpio/gpio_hogs
Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
Add the JPEG decoder node, disabled until a board enables it. The
video capture sample's NXP JPEG decoder transform needs it.
Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
Switch the Zynq-7000 SDHC nodes from "xlnx,versal-8.9a" to
"arasan,sdhci-8.9a", the compatible the Linux zynq-7000.dtsi uses, so
that they bind to the Zynq-7000 configuration of the Xilinx SDHC driver.
The Versal configuration does not work on Zynq-7000 silicon: when the
card is switched to High Speed it programs the Versal-only SD tap-delay
registers, which lie outside the 4 KB Zynq-7000 register window, and it
transfers data with ADMA2, which is not supported on Zynq-7000 yet.
QEMU models neither limitation.
Tested with tests/subsys/sd/sdmmc on qemu_cortex_a9 (all six cases
pass, as with the Versal compatible) and on a Trenz TE0726, whose
microSD slot is on sdhc1.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: David Paul-Beier <david@paul-beier.de>
Teach the Xilinx SDHC driver to also drive the Zynq-7000 PS SD/SDIO
controller (same Arasan 8.9a IP, one generation older). It binds to
"arasan,sdhci-8.9a", the compatible the Linux Zynq-7000 devicetree uses
for this controller.
The data transfer path is selected with Kconfig: XLNX_SDHC_ADMA2 or
XLNX_SDHC_PIO, which moves the data through the Buffer Data Port; the
unused path is compiled out. PIO is the default when a Zynq-7000
controller is enabled, as ADMA2 is not yet supported there. In PIO mode
the buffer-ready and transfer-complete events are taken from the
interrupt handler when the node has an interrupt, as the handler
acknowledges those status bits, and polled otherwise. The handler and
the signal-enable mask now also cover Buffer Write Ready.
Per-SoC differences come from the compatible:
- maximum SD clock: 208 MHz on Versal; 50 MHz on Zynq-7000, which has no
PHY/tap-delay block and therefore no UHS modes.
- tap delay: the SD input/output tap-delay registers exist only on
Versal. They lie outside the Zynq-7000 register window, so they are
not programmed there when switching to High Speed.
- broken slot type: the Zynq-7000 Capabilities register reports an
embedded slot although carriers wire a removable SD slot. The SD slot
type is forced so the eMMC command-framing and power paths (which
reject CMD8/R7 and assert the eMMC reset) are not taken.
A command without a data phase now writes Transfer Mode 0 rather than
leaving the data-transfer bits set. Zynq-7000 rejects the command
otherwise, and 0 is the spec-correct value.
struct reg_base is no longer __packed. A packed struct makes GCC split
the 16-bit interrupt-enable writes into byte stores, which the Zynq-7000
controller drops: status-enable stays 0, so Command-Complete never
latches. Every register is naturally aligned, so the layout does not
change; BUILD_ASSERTs check the offsets. The register interface is
32 bits wide and discards 64-bit accesses, so the three 64-bit registers
(Capabilities, Max Current Capabilities, ADMA System Address) are split
into lower and upper words that are accessed separately.
Tested on a Trenz TE0726 (Zynq-7000, PIO) with a 7.7 GB SDHC card, with
and without the interrupt line. The card comes up at 4-bit High Speed
(50 MHz). Single- and multi-block reads of several sectors, in
alternating order, match reference data written by independent code.
Single-block raw writes read back correctly, and a 66536-byte file
written through FatFs (single- and multi-block writes) reads back intact
after a remount and through an independent SD/FatFs implementation; the
other files on the card are unchanged. The Versal configuration was
built but not run on hardware.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: David Paul-Beier <david@paul-beier.de>
The led-strip-cache driver exposes a virtual LED device composed of
one or more LED strip devices. It bridges the LED and LED strip APIs
and provides a cache for all pixels of the underlying strips. It allows
users to configure individual LEDs via the ->set_color() method of the
LED API.
If multiple LED strips are specified, they are concatenated in phandle
order in the same LED device.
led-strips = <&led_strip_0>, <&led_strip_1>;
strip 0 (M pixels) strip 1 (N pixels)
/ \ / \
LEDs = [ 0 ... M-1 ] [ M ... M+N-1 ]
When an LED is updated, the corresponding pixel in the cache is modified
and the cached pixels are passed to the underlying LED strip device.
The cache uses one struct led_rgb per LED, so its memory footprint is
three bytes per LED (four if CONFIG_LED_STRIP_RGB_SCRATCH is enabled).
Signed-off-by: Simon Guinot <simon.guinot@sequanux.org>
Added entropy device node support for the PIC32CZ CA devices.
Documented the PIC32CZ CA80/CA90 TRNG IP id and version in the
microchip,trng-g1-entropy binding.
Signed-off-by: Santhosh Easwaramoorthy <santhosh.easwaramoorthy@microchip.com>
Add an optional rfparams phandle to identify the memory region
containing RF parameters for the Wi-Fi Core.
Signed-off-by: Dhanoo Surasarang <dhanoo.surasarang@nordicsemi.no>
Add an optional xtal-capcode property to the BL808 clock controller and
program it into the AON crystal capacitor codes before powering the
crystal. Boards keep the reset default when the property is absent.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add the wifi4 MAC node with its MAC and IPC interrupts and the TX power
tables of the vendor BL606P board configurations, and a snippet that
carves WIFI_RAM out of WRAM below the 32 KB BLE exchange memory. The
binding's rf-top interrupts are BL60x-only.
Signed-off-by: William Markezana <william.markezana@gmail.com>
Add the windowed watchdog: one WWDT instance at 0x4000c000 on interrupt
0, clocked by the watchdog oscillator through MCUX_WWDT0_CLK. The
binding requires clk-divider; the series has no WDTCLKDIV register, so
the value is unused. Disabled by default so boards opt in.
Assisted-by: Claude:claude-opus-5
Signed-off-by: Marvin Gnad <marvin.gnad@gmail.com>
The device tree binding for the rpi_pico dma driver describes three
channel configuration flags (high-prio, byte swap and quiet irq) of
which only one (high-priority) is used in the driver.
This patch defines a set of macros to allow users to enable these flags
in the device tree dma channel specification, as described in the
binding, proposes a way to encode them into struct dma_config fields
that aren't used by the driver, and applies the configuration flags in
the config dma driver callback.
The main purpose of this change is to allow multiple word-sizes in
scenarios where byte swapping is required.
Signed-off-by: Ricardo Cañuelo Navarro <rcn@igalia.com>
This commit uses the IRQ pin's GPIO_ACTIVE_HIGH / GPIO_ACTIVE_LOW to set
the polarity in the LSM6DSO. It also introduces a device tree property
to control whether that pin is push-pull or open-drain.
Signed-off-by: Dan Collins <dan@collinsnz.com>
Add support for configuring the i2c bus speed at runtime.
Fixes issue #120271.
Tested with: $i2c speed i3c@f03c00 1
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
Add an option of reading the SFDP data from flash chips and processing
it at runtime instead of requiring it to be provided in dts arrays.
Selection of the MSPI NOR flash instances for which the runtime SFDP
processing should be performed is done by setting the `use-runtime-sfdp`
property in their devicetree nodes.
Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
The magnetometer of the ICM-20948 is a separate die with its own I2C
address, reachable only through the auxiliary I2C master of the part.
Bring that master up and use slave 4, the only channel that reports
completion and failure, to identify and start the magnetometer. Then arm
slave 0 to copy its output registers into the external sensor registers
on every cycle, so that keeping them current costs the host nothing.
Those registers directly follow the temperature registers, which lets a
single burst read collect every sensor on the part.
The readout starts at ST1 and so ends on ST2. Reading ST2 is what tells
the magnetometer that the sample was taken, and a readout that leaves it
out returns the same measurement forever.
Those mirrored registers keep their last contents when the auxiliary bus
stops answering, which would make a stale sample indistinguishable from
a fresh one. Read the master status alongside them and report the
magnetometer channels as failed while slave 0 is going unacknowledged.
The magnetometer die is mounted turned half a turn about X with respect
to the rest of the part, so Y and Z are inverted to bring it into the
frame the accelerometer and the gyroscope report in.
Select the SPI interface explicitly while doing all this. The part picks
its host interface by watching the bus and the reset in the init
function throws that choice away, and the primary I2C slave holds pins
that the auxiliary master needs.
The magnetometer can be left out with CONFIG_ICM20948_MAGN_EN.
Signed-off-by: Ali Talha Yurtseven <alitqlhq@gmail.com>
The ICM-20948 is a nine-axis motion tracking device. The accelerometer
and the gyroscope sit behind the primary SPI interface, while the
magnetometer is reached through an auxiliary I2C bus of the device.
Add support for the accelerometer, the gyroscope and the die
temperature over SPI. The magnetometer is left for later.
The registers of the part are spread over four user banks that are
paged in through a select register. Encode the bank in the high byte
of every register constant and let the bus layer page it in when it
differs from the last one selected, so that the body of the driver
never deals with banks.
The full scale range and the bandwidth of the low pass filter of both
sensors are taken from the devicetree.
Signed-off-by: Ali Talha Yurtseven <alitqlhq@gmail.com>
Add a driver for the ChipSourceTek AXS5106L self-capacitive touch
controller, used on 172x320 1.47" touch displays such as the Seeed
Studio XIAO 1.47" IPS Touch Display.
The touch report starts at register 0x01 with a gesture byte and the
number of touch points, followed by 6 bytes per point starting with the
12-bit X and Y positions. The register address must be written in its
own I2C transfer, at least 45 us before the data is read, so the driver
does not use a repeated start.
The touch data is read when the interrupt line is asserted, then every
CONFIG_INPUT_AXS5106L_PERIOD_MS while the panel is touched, to report
movement and release as the vendor reference code does, and while the
interrupt line stays asserted, as the controller keeps it asserted until
the touch data is read. The first read happens once the controller is
ready after reset. Without an interrupt line, the touch data is read
periodically. A failed read reports a release, and only the first of
consecutive failures is logged. The reset line is optional, as some
displays share it between the LCD and the touch controller, in which
case the display driver resets both. Only the first touch point is
reported.
The I2C read sequence and its 45 us delay come from the AXS5106
datasheet. The register address, the report format and the reset
timings come from the Seeed Studio reference code, the Seeed_GFX2
library and the examples of the XIAO display gadgets, as the datasheet
does not document them.
Tested with the drivers.input build_all test, and with the
draw_touch_events sample on a Seeed Studio XIAO 1.47" IPS Touch Display
with a XIAO nRF52840 Plus.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Add the vendor prefix of ShenZhen ChipSourceTek Technology Co., Ltd.,
which makes the AXS5106L capacitive touch controller.
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Assisted-by: Claude:opus-5.5
Add the Devicetree description for the TI TM4C129ENCPDT
microcontroller.
Describe the CPU, memory, clocking, UART, and pinctrl resources
required by the initial EK-TM4C129EXL board support.
This implementation is based on the existing TM4C123x support and
adapts it for the TM4C129x family.
Signed-off-by: Luciano Carricart <carricartluciano@gmail.com>
Assisted-by: ChatGPT:sol-6
Driver for the TI ADS8684 (4 channels) and ADS8688 (8 channels) 16-bit
SAR ADCs with a per-channel input range, attached over SPI.
Channels are read in manual mode, one MAN_Ch_n command per channel of
the sequence, pipelined since a frame returns the result of the channel
selected in the previous frame.
The input range of a channel is selected with the standard channel
configuration: the gain selects the span relative to the 4.096 V
reference (ADC_GAIN_2_5 for 2.5 x Vref, ADC_GAIN_4_5 for 1.25 x Vref)
and "differential" its bipolar variant, whose samples are returned as
signed values so that adc_raw_to_millivolts_dt() applies unchanged.
Tested on an i.MX8MP Cortex-M7 (ECSPI) with an ADS8688.
Signed-off-by: Ryomei Osaki <o.ryomei1020@gmail.com>
Add the PCIe controller at 0xfd500000. The 1 GB outbound window at
CPU address 0x6_0000_0000 (PCIe 0xc0000000) is split into a 32-bit and
a 64-bit region as the driver programs two outbound windows. The
inbound DMA window covers the first 3 GB of memory, the limit of the
BCM2711 PCIe wrapper.
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Muhammad Waleed Badar <walid.badar@gmail.com>
The antsw compatible and node were already renamed to be
radio-generic, but the property and local variable steering the
switch were still called wlan-gpios/wlan_psel. Rename them to
sel-gpios/sel_psel and document what each level of the line
selects. No functional change.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Cursor:Auto
antsw_setup() always steered towards WLAN, so a BLE-only build
would still start with the antenna pointed at Wi-Fi.
Add the SOC_SERIES_NRF71_ANTSW_DEFAULT choice: default to Wi-Fi if
SOC_NRF71_WIFI_BOOT is enabled, else to BLE if a link layer
controller is present (HAS_BT_CTLR), else Wi-Fi. Wi-Fi wins when
both are enabled, matching the previous behavior for Wi-Fi-only
builds. MPSL is not available in upstream Zephyr (it ships only
via the nrf module in nRF Connect SDK), so HAS_BT_CTLR is used
instead: it is the symbol Zephyr's own link layer selects and is
already the Bluetooth indicator boards/nordic/nrf7120dk wires up
for this SoC. The choice uses the SOC_SERIES_ prefix because it
applies to the whole nRF71 series (NRF7120 and NRF7120E), not one
specific SoC.
Tested by building samples/hello_world for nrf7120dk/nrf7120/cpuapp
with each of the four Kconfig combinations (neither, Wi-Fi only,
BLE only, both) and confirming the resolved .config picks the
expected antsw default in each case. Not tested on hardware.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Cursor:Auto
The antenna switch (ANTSW) also serves the on-chip Bluetooth LE
radio, but the nordic,nrf71-wifi-antsw compatible and wifi_antsw
node name it after Wi-Fi only. Rename the compatible to
nordic,nrf71-antsw and the node label to antsw, and update soc.c
to match. No functional change.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Assisted-by: Cursor:Auto
Introduce binding for the Microchip Group G2 ADC: The listed properties
register block, clocks, and num-cores are common and hence are implemented
as properties, and child-binding is used for individual SAR core instances
(core-id, adc-div-ratio, num-channels, #io-channel-cells) properties.
Add ADC input selection macros (MCHP_ADC_AIN0..AIN15), per-core bit
macros, and internal channel mappings to
include/zephyr/dt-bindings/adc/mchp_pic32cz_ca_adc.h.
Signed-off-by: Sunil Abraham <Sunil.Abraham@microchip.com>
Signed-off-by: Syed Maaz <Syed.Maaz@microchip.com>
Add a calibration mode property that unseals the gauge and enables data
flash access, a reset property and buffer properties for single data
flash blocks, the manufacturer info blocks A, B and C and for programming
and verifying a configuration image. The configuration image handling
skips the blocks holding device specific calibration data and preserves
the device specific bytes of the shared block, so the caller does not
need to know the image layout.
The unseal keys come from the unseal-keys devicetree property, which
defaults to the factory keys, so a gauge programmed with vendor specific
keys can be used as well.
Leaving calibration mode resets the gauge and waits for
CONFIG_HY4245_RESET_SETTLE_TIME_MS before returning, as the gauge does
not deliver valid data until its algorithm has restarted.
Assisted-by: Claude:claude-fable-5-1
Signed-off-by: Johannes Schuler <jschuler@testo.de>
Split the ICM42605 devicetree binding into common, I2C, and SPI
bindings.
Add bus-specific bindings for configuring the ICM42605 sensor over
I2C and SPI while keeping shared sensor properties in a common
binding.
Signed-off-by: Ahmed Ashraf NourEldeen <a.programmer55559@gmail.com>
- Added support for pseudo SPI and round-robin DVS source
- Added DT properties for default DVS source
- Exposed APIs needed as per request for runtime usage
Signed-off-by: Anthony Raterta <Anthony.Raterta@analog.com>