Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:adc:qcom,spmi-iadc: txt to yaml format conversion.

Straight forward conversion. Not heard from Ivan in a while so if the
email bounces, I'll change the maintainer to myself for this binding unless
anyone else comes forwards.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031184854.745828-37-jic23@kernel.org

+60 -46
-46
Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.txt
··· 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 - };
+60
Documentation/devicetree/bindings/iio/adc/qcom,spmi-iadc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-iadc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm's SPMI PMIC current ADC 8 + 9 + maintainers: 10 + - Jonathan Cameron <jic23@kernel.org> 11 + 12 + description: | 13 + QPNP PMIC current ADC (IADC) provides interface to clients to read current. 14 + A 16 bit ADC is used for current measurements. IADC can measure the current 15 + through an external resistor (channel 1) or internal (built-in) resistor 16 + (channel 0). When using an external resistor it is to be described by 17 + qcom,external-resistor-micro-ohms property. 18 + 19 + properties: 20 + compatible: 21 + const: qcom,spmi-iadc 22 + 23 + reg: 24 + description: IADC base address and length in the SPMI PMIC register map 25 + maxItems: 1 26 + 27 + qcom,external-resistor-micro-ohms: 28 + description: 29 + Sensor resistor value. If not defined value of 10000 micro Ohms 30 + will be used. 31 + 32 + interrupts: 33 + maxItems: 1 34 + description: 35 + End of conversion interrupt. 36 + 37 + "#io-channel-cells": 38 + const: 1 39 + 40 + required: 41 + - compatible 42 + - reg 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/interrupt-controller/irq.h> 49 + spmi_bus { 50 + #address-cells = <1>; 51 + #size-cells = <0>; 52 + pmic_iadc: adc@3600 { 53 + compatible = "qcom,spmi-iadc"; 54 + reg = <0x3600 0x100>; 55 + interrupts = <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; 56 + qcom,external-resistor-micro-ohms = <10000>; 57 + #io-channel-cells = <1>; 58 + }; 59 + }; 60 + ...