-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'iio-for-6.9b' of https://git.kernel.org/pub/scm/linux/kern…
…el/git/jic23/iio into char-misc-next Jonathan writes: IIO: 2nd set of new device support, cleanups and features for 6.9 New device support ================= adi,hmc425a - Add support for LTC6373 Instrumentation Amplifier. microchip,pac1934 - New driver supporting PAC1931, PAC1932, PAC1933 and PAC1934 power monitoring chips with accumulators. voltafield,af8133j - New driver for the AF8133J 3 axis magnetometer. Docs ==== New general documentation of device buffers, and a specific section on the adi,adis16475 IMU Features ======== kionix,kxcjk-1013 - Add support for ACPI ROTM (Microsoft defined ACPI method) to get rotation matrix. ti,tmp117 - Add missing vcc-supply control and binding. Cleanups and minor fixes ======================== Tree-wide - Corrected headers to remove linux/of.h from a bunch of drivers that only had it to get to linux/mod_devicetable.h - dt binding cleanup to drop redundant type from label properties. adi,hmc425a - Fix constraints on GPIO array sizes for different devices. adi,ltc2983 - Use spi_get_device_match_data instead of open coding similar. - Update naming of fw parsing function to reflect that it is not longer dt only. - Set the chip name explicitly to reduce fragility resulting from different entries in the various ID tables. bosch,bmg160 - Add spi-max-frequency property and limit to dt-binding. microchip,mcp320x - Use devm_* to simplify device removal and error handling. nxp,imx93 - Drop a non existent 4th interrupt from bindings. qcom,mp8xxx-xoadc - Drop unused kerneldoc renesas,isl29501 - Actually use the of_match table. rockchip,saradc - Fix channel bitmask - Fix write masks - Replace custom handling of optional reset control with how it should be done. ti,ads1298 - Fix error code to not return a successfully obtained regulator. - Avoid a divide by zero when setting frequency. ti,hdc2010 - Add missing interrupts dt binding property vishay,veml6075 - Make vdd-supply required in the dt-binding. * tag 'iio-for-6.9b' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (42 commits) dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency dt-bindings: iio: adc: imx93: drop the 4th interrupt iio: proximity: isl29501: make use of of_device_id table iio: adc: qcom-pm8xxx-xoadc: drop unused kerneldoc struct pm8xxx_chan_info member dt-bindings: iio: adc: drop redundant type from label dt-bindings: iio: ti,tmp117: add optional label property MAINTAINERS: Add an entry for AF8133J driver iio: magnetometer: add a driver for Voltafield AF8133J magnetometer dt-bindings: iio: magnetometer: Add Voltafield AF8133J dt-bindings: vendor-prefix: Add prefix for Voltafield iio: adc: rockchip_saradc: replace custom logic with devm_reset_control_get_optional_exclusive iio: adc: rockchip_saradc: use mask for write_enable bitfield iio: adc: rockchip_saradc: fix bitmask for channels on SARADCv2 dt-bindings: iio: light: vishay,veml6075: make vdd-supply required iio: adc: adding support for PAC193x dt-bindings: iio: adc: adding support for PAC193X iio: temperature: ltc2983: explicitly set the name in chip_info iio: temperature: ltc2983: rename ltc2983_parse_dt() iio: temperature: ltc2983: make use of spi_get_device_match_data() iio: adc: ti-ads1298: prevent divide by zero in ads1298_set_samp_freq() ...
- Loading branch information
Showing
39 changed files
with
3,376 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/in_shunt_resistorY | ||
KernelVersion: 6.7 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
The value of the shunt resistor may be known only at runtime | ||
and set by a client application. This attribute allows to | ||
set its value in micro-ohms. X is the IIO index of the device. | ||
Y is the channel number. The value is used to calculate | ||
current, power and accumulated energy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
Documentation/devicetree/bindings/iio/adc/microchip,pac1934.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/adc/microchip,pac1934.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Microchip PAC1934 Power Monitors with Accumulator | ||
|
||
maintainers: | ||
- Marius Cristea <marius.cristea@microchip.com> | ||
|
||
description: | | ||
This device is part of the Microchip family of Power Monitors with | ||
Accumulator. | ||
The datasheet for PAC1931, PAC1932, PAC1933 and PAC1934 can be found here: | ||
https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.pdf | ||
properties: | ||
compatible: | ||
enum: | ||
- microchip,pac1931 | ||
- microchip,pac1932 | ||
- microchip,pac1933 | ||
- microchip,pac1934 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
"#address-cells": | ||
const: 1 | ||
|
||
"#size-cells": | ||
const: 0 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
slow-io-gpios: | ||
description: | ||
A GPIO used to trigger a change is sampling rate (lowering the chip power | ||
consumption). If configured in SLOW mode, if this pin is forced high, | ||
sampling rate is forced to eight samples/second. When it is forced low, | ||
the sampling rate is 1024 samples/second unless a different sample rate | ||
has been programmed. | ||
|
||
patternProperties: | ||
"^channel@[1-4]+$": | ||
type: object | ||
$ref: adc.yaml | ||
description: | ||
Represents the external channels which are connected to the ADC. | ||
|
||
properties: | ||
reg: | ||
items: | ||
minimum: 1 | ||
maximum: 4 | ||
|
||
shunt-resistor-micro-ohms: | ||
description: | ||
Value in micro Ohms of the shunt resistor connected between | ||
the SENSE+ and SENSE- inputs, across which the current is measured. | ||
Value is needed to compute the scaling of the measured current. | ||
|
||
required: | ||
- reg | ||
- shunt-resistor-micro-ohms | ||
|
||
unevaluatedProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- "#address-cells" | ||
- "#size-cells" | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
power-monitor@10 { | ||
compatible = "microchip,pac1934"; | ||
reg = <0x10>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
channel@1 { | ||
reg = <0x1>; | ||
shunt-resistor-micro-ohms = <24900000>; | ||
label = "CPU"; | ||
}; | ||
channel@2 { | ||
reg = <0x2>; | ||
shunt-resistor-micro-ohms = <49900000>; | ||
label = "GPU"; | ||
}; | ||
channel@3 { | ||
reg = <0x3>; | ||
shunt-resistor-micro-ohms = <75000000>; | ||
label = "MEM"; | ||
bipolar; | ||
}; | ||
channel@4 { | ||
reg = <0x4>; | ||
shunt-resistor-micro-ohms = <100000000>; | ||
label = "NET"; | ||
bipolar; | ||
}; | ||
}; | ||
}; | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ properties: | |
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ properties: | |
required: | ||
- compatible | ||
- reg | ||
- vdd-supply | ||
|
||
additionalProperties: false | ||
|
||
|
60 changes: 60 additions & 0 deletions
60
Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/iio/magnetometer/voltafield,af8133j.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Voltafield AF8133J magnetometer sensor | ||
|
||
maintainers: | ||
- Ondřej Jirman <megi@xff.cz> | ||
|
||
properties: | ||
compatible: | ||
const: voltafield,af8133j | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
reset-gpios: | ||
description: | ||
A signal for active low reset input of the sensor. (optional; if not | ||
used, software reset over I2C will be used instead) | ||
|
||
avdd-supply: | ||
description: | ||
A regulator that provides AVDD power (Working power, usually 3.3V) to | ||
the sensor. | ||
|
||
dvdd-supply: | ||
description: | ||
A regulator that provides DVDD power (Digital IO power, 1.8V - AVDD) | ||
to the sensor. | ||
|
||
mount-matrix: | ||
description: An optional 3x3 mounting rotation matrix. | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- avdd-supply | ||
- dvdd-supply | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/gpio/gpio.h> | ||
i2c { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
magnetometer@1c { | ||
compatible = "voltafield,af8133j"; | ||
reg = <0x1c>; | ||
avdd-supply = <®_dldo1>; | ||
dvdd-supply = <®_dldo1>; | ||
reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.