Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0a859b0
staging: iio: ad9832: remove platform_data support
TomasBorquez Dec 5, 2025
59ad8e6
iio: adc: ad9467: support write/read offset via _calibbias
vai-tomme Dec 3, 2025
e0ffaa1
iio: imu: st_lsm6dsx: make event_settings more generic
Dec 1, 2025
fdec931
iio: imu: st_lsm6dsx: move wakeup event enable mask to event_src
Dec 1, 2025
b82150a
iio: imu: st_lsm6dsx: rework code to check for enabled events
Dec 1, 2025
2f87d49
iio: imu: st_lsm6dsx: remove event_threshold field from hw struct
Dec 1, 2025
2151990
iio: imu: st_lsm6dsx: make event management functions generic
Dec 1, 2025
1680c41
iio: imu: st_lsm6dsx: add event configurability on a per axis basis
Dec 1, 2025
6446f38
iio: imu: st_lsm6dsx: add event spec parameter to iio_chan_spec initi…
Dec 1, 2025
71b6ff6
iio: imu: st_lsm6dsx: add tap event detection
Dec 1, 2025
04662b5
iio: light: isl29018: replace sprintf() with safer alternatives
TomasBorquez Nov 26, 2025
df74a11
iio: imu: smi330: remove redundant assignment in smi330_read_avail
m-pellizzer Nov 25, 2025
02d1af1
bindings: iio: adc: Add bindings for TI ADS131M0x ADCs
olerem Nov 18, 2025
daea3a3
iio: adc: Add TI ADS131M0x ADC driver
yope Nov 18, 2025
5fc3d14
dt-bindings: iio: frequency: add adf41513
rodrigo455 Nov 20, 2025
3d56d38
iio: frequency: adf41513: driver implementation
rodrigo455 Dec 1, 2025
1c14b1e
iio: frequency: adf41513: handle LE synchronization feature
rodrigo455 Dec 12, 2025
6126091
iio: frequency: adf41513: features on frequency change
rodrigo455 Dec 1, 2025
64864ee
docs: iio: add documentation for adf41513 driver
rodrigo455 Dec 4, 2025
b2c782a
Documentation: ABI: testing: add support for ADF41513
rodrigo455 Dec 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-iio-frequency-adf41513
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency_resolution
KernelVersion: 6.20
Contact: linux-iio@vger.kernel.org
Description:
Stores channel Y frequency resolution/channel spacing in Hz.
The value given directly influences the choice of operation:

- integer-N: requested frequency is a multiple of the Phase Detector
frequency.
- fixed modulus: fractional-N mode with fixed modulus.
- variable modulus: dual-modulus fractional-N mode with extra variable
modulus added on top of the fixed one.

It is assumed that the algorithm that is used to compute the various
dividers, is able to generate proper values for multiples of channel
spacing.

What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_refin_frequency
KernelVersion: 6.20
Contact: linux-iio@vger.kernel.org
Description:
Sets channel Y REFin frequency in Hz. In some clock chained
applications, the reference frequency used by the PLL may change during
runtime. This attribute allows the user to adjust the reference
frequency accordingly.
To avoid glitches in the RF output, consider using out_altvoltageY_powerdown
to power down the PLL and its RFOut buffers during REFin changes.
208 changes: 208 additions & 0 deletions Documentation/devicetree/bindings/iio/adc/ti,ads131m02.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/adc/ti,ads131m02.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments ADS131M0x 2-, 3-, 4-, 6- and 8-Channel ADCs

maintainers:
- Oleksij Rempel <o.rempel@pengutronix.de>

description: |
The ADS131M0x are a family of multichannel, simultaneous sampling,
24-bit, delta-sigma, analog-to-digital converters (ADCs) with a
built-in programmable gain amplifier (PGA) and internal reference.
Communication with the ADC chip is via SPI.

Datasheets:
- ADS131M02: https://www.ti.com/lit/ds/symlink/ads131m02.pdf
- ADS131M03: https://www.ti.com/lit/ds/symlink/ads131m03.pdf
- ADS131M04: https://www.ti.com/lit/ds/symlink/ads131m04.pdf
- ADS131M06: https://www.ti.com/lit/ds/symlink/ads131m06.pdf
- ADS131M08: https://www.ti.com/lit/ds/symlink/ads131m08.pdf

properties:
compatible:
enum:
- ti,ads131m02
- ti,ads131m03
- ti,ads131m04
- ti,ads131m06
- ti,ads131m08

reg:
description: SPI chip select number.

clocks:
description:
Phandle to the external clock source required by the ADC's CLKIN pin.
The datasheet recommends specific frequencies based on the desired power
mode (e.g., 8.192 MHz for High-Resolution mode).
maxItems: 1

avdd-supply:
description: Analog power supply (AVDD).

dvdd-supply:
description: Digital power supply (DVDD).

interrupts:
description: DRDY (Data Ready) output signal.
maxItems: 1

reset-gpios:
description: Optional RESET signal.
maxItems: 1

clock-names:
description:
Indicates if a crystal oscillator (XTAL) or CMOS signal is connected
(CLKIN). Note that XTAL mode is only supported on ADS131M06 and ADS131M08.
enum: [xtal, clkin]

refin-supply:
description: Optional external reference supply (REFIN).

'#address-cells':
const: 1

'#size-cells':
const: 0

required:
- compatible
- reg
- clocks
- clock-names
- avdd-supply
- dvdd-supply

patternProperties:
"^channel@[0-7]$":
type: object
$ref: /schemas/iio/adc/adc.yaml#
description: Properties for a single ADC channel.

properties:
reg:
description: The channel index (0-7).
minimum: 0
maximum: 7 # Max channels on ADS131M08

label: true

required:
- reg

unevaluatedProperties: false

allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#

- if:
# 20-pin devices: M02, M03, M04
# These do not support XTAL or REFIN.
properties:
compatible:
enum:
- ti,ads131m02
- ti,ads131m03
- ti,ads131m04
then:
properties:
clock-names:
const: clkin
refin-supply: false

- if:
# ADS131M02: 2 channels max (0-1)
properties:
compatible:
contains:
const: ti,ads131m02
then:
patternProperties:
"^channel@[0-1]$":
properties:
reg:
maximum: 1
"^channel@[2-7]$": false

- if:
# ADS131M03: 3 channels max (0-2)
properties:
compatible:
contains:
const: ti,ads131m03
then:
patternProperties:
"^channel@[0-2]$":
properties:
reg:
maximum: 2
"^channel@[3-7]$": false

- if:
# ADS131M04: 4 channels max (0-3)
properties:
compatible:
contains:
const: ti,ads131m04
then:
patternProperties:
"^channel@[0-3]$":
properties:
reg:
maximum: 3
"^channel@[4-7]$": false

- if:
# ADS131M06: 6 channels max (0-5)
properties:
compatible:
contains:
const: ti,ads131m06
then:
patternProperties:
"^channel@[0-5]$":
properties:
reg:
maximum: 5
"^channel@[6-7]$": false

unevaluatedProperties: false

examples:
- |
#include <dt-bindings/clock/stm32mp1-clks.h>

spi1 {
#address-cells = <1>;
#size-cells = <0>;

adc@0 {
compatible = "ti,ads131m02";
reg = <0>;
spi-max-frequency = <8000000>;

clocks = <&rcc CK_MCO2>;
clock-names = "clkin";

avdd-supply = <&vdd_ana>;
dvdd-supply = <&vdd_dig>;

#address-cells = <1>;
#size-cells = <0>;

channel@0 {
reg = <0>;
label = "input_voltage";
};

channel@1 {
reg = <1>;
label = "input_current";
};
};
};
Loading