diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-05 14:42:48 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-05 14:42:48 -0500 |
| commit | be61a0d78449f53519905640ac3a9f24c197cbaf (patch) | |
| tree | 216a7655e2d6dc8f751214aa93a4863a27954a98 /Documentation/devicetree/bindings/iio | |
| parent | 7be921a226dcbbbd8fb6f5d63bea4856b3a11624 (diff) | |
| parent | 4e4cd14e7cbead5ca20465f4a7ce973d42434a2f (diff) | |
Merge tag 'iio-for-3.19a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
Jonathan writes:
First round of new drivers, features and cleanups for IIO in the 3.19 cycle.
New drivers / supported parts
* rockchip - rk3066-tsadc variant
* si7020 humidity and temperature sensor
* mcp320x - add mcp3001, mcp3002, mcp3004, mcp3008, mcp3201, mcp3202
* bmp280 pressure and temperature sensor
* Qualcomm SPMI PMIC current ADC driver
* Exynos_adc - support exynos7
New features
* vf610-adc - add temperature sensor support
* Documentation of current attributes, scaled pressure, offset and
scaled humidity, RGBC intensity gain factor and scale applied to
differential voltage channels.
* Bring iio_event_monitor up to date with newer modifiers.
* Add of_xlate function to allow for complex channel mappings from the
device tree.
* Add -g parameter to generic_buffer example to allow for devices with
directly fed (no trigger) buffers.
* Move exynos driver over to syscon for PMU register access.
Cleanups, fixes for new drivers
* lis3l02dq drop an unneeded else.
* st sensors - renam st_sensors to st_sensor_settings (for clarity)
* st sensors - drop an unused parameter from all the probe utility
functions.
* vf610 better error handling and tidy up.
* si7020 - cleanups following merge
* as3935 - drop some unnecessary semicolons.
* bmp280 - fix the pressure calculation.
Diffstat (limited to 'Documentation/devicetree/bindings/iio')
| -rw-r--r-- | Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.txt | 46 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt | 2 |
2 files changed, 47 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.txt b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.txt new file mode 100644 index 000000000000..4e36d6e2f7b6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.txt | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | Qualcomm's SPMI PMIC current ADC | ||
| 2 | |||
| 3 | QPNP PMIC current ADC (IADC) provides interface to clients to read current. | ||
| 4 | A 16 bit ADC is used for current measurements. IADC can measure the current | ||
| 5 | through an external resistor (channel 1) or internal (built-in) resistor | ||
| 6 | (channel 0). When using an external resistor it is to be described by | ||
| 7 | qcom,external-resistor-micro-ohms property. | ||
| 8 | |||
| 9 | IADC node: | ||
| 10 | |||
| 11 | - compatible: | ||
| 12 | Usage: required | ||
| 13 | Value type: <string> | ||
| 14 | Definition: Should contain "qcom,spmi-iadc". | ||
| 15 | |||
| 16 | - reg: | ||
| 17 | Usage: required | ||
| 18 | Value type: <prop-encoded-array> | ||
| 19 | Definition: IADC base address and length in the SPMI PMIC register map | ||
| 20 | |||
| 21 | - interrupts: | ||
| 22 | Usage: optional | ||
| 23 | Value type: <prop-encoded-array> | ||
| 24 | Definition: End of ADC conversion. | ||
| 25 | |||
| 26 | - qcom,external-resistor-micro-ohms: | ||
| 27 | Usage: optional | ||
| 28 | Value type: <u32> | ||
| 29 | Definition: Sense resister value in micro Ohm. | ||
| 30 | If not defined value of 10000 micro Ohms will be used. | ||
| 31 | |||
| 32 | Example: | ||
| 33 | /* IADC node */ | ||
| 34 | pmic_iadc: iadc@3600 { | ||
| 35 | compatible = "qcom,spmi-iadc"; | ||
| 36 | reg = <0x3600 0x100>; | ||
| 37 | interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; | ||
| 38 | qcom,external-resistor-micro-ohms = <10000>; | ||
| 39 | #io-channel-cells = <1>; | ||
| 40 | }; | ||
| 41 | |||
| 42 | /* IIO client node */ | ||
| 43 | bat { | ||
| 44 | io-channels = <&pmic_iadc 0>; | ||
| 45 | io-channel-names = "iadc"; | ||
| 46 | }; | ||
diff --git a/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt b/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt index 5d3ec1df226d..a9a5fe19ff2a 100644 --- a/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt +++ b/Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | Rockchip Successive Approximation Register (SAR) A/D Converter bindings | 1 | Rockchip Successive Approximation Register (SAR) A/D Converter bindings |
| 2 | 2 | ||
| 3 | Required properties: | 3 | Required properties: |
| 4 | - compatible: Should be "rockchip,saradc" | 4 | - compatible: Should be "rockchip,saradc" or "rockchip,rk3066-tsadc" |
| 5 | - reg: physical base address of the controller and length of memory mapped | 5 | - reg: physical base address of the controller and length of memory mapped |
| 6 | region. | 6 | region. |
| 7 | - interrupts: The interrupt number to the cpu. The interrupt specifier format | 7 | - interrupts: The interrupt number to the cpu. The interrupt specifier format |
