From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanimir Varbanov Subject: [PATCH v3 0/2] Intial support for voltage ADC Date: Wed, 24 Sep 2014 15:56:53 +0300 Message-ID: <1411563415-11933-1-git-send-email-svarbanov@mm-sol.com> Return-path: Sender: linux-arm-msm-owner@vger.kernel.org To: Ian Campbell , Pawel Moll , Rob Herring , Kumar Gala , Mark Rutland , Grant Likely , Jonathan Cameron , Arnd Bergmann Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Lars-Peter Clausen , Hartmut Knaack , Angelo Compagnucci , Doug Anderson , Fugang Duan , Johannes Thumshirn , Jean Delvare , Philippe Reynes , Lee Jones , Josh Cartwright , Stephen Boyd , David Collins , Stanimir Varbanov List-Id: devicetree@vger.kernel.org Changes since v2: - fixes per comments from Hartmut Knaack and Jonathan Cameron. - now register through IIO core only ADC channels described in DT. - register TEMP_DIE channel as IIO_TEMP type and as processed return value. - implement INFO_RAW and INFO_SCALE masks support in order to avoid losing ADC precision. - various cleanups. ------------------------------------------------------------------------------- Changes since v1: - the review comments from Peter Meerwald and Hartmut Knaack are taken into account - the driver private sysfs attributes are dropped out. - dt binding document is changed in the section of adc channel nodes - now the adc channel number is represented by "reg" property. - various cleanups found during preparation of version 2. ------------------------------------------------------------------------------- Introduce inital support for VADC inside Qualcomm SPMI PMICs. The vadc driver is reworked version of the same downstream driver but now it is implemented through Industrial IO core. Stanimir Varbanov (2): iio: vadc: Qualcomm SPMI PMIC voltage ADC driver DT: iio: vadc: document dt binding .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 130 +++ drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/qcom-spmi-vadc.c | 1029 ++++++++++++++++++++ include/dt-bindings/iio/qcom,spmi-pmic-vadc.h | 119 +++ 5 files changed, 1289 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt create mode 100644 drivers/iio/adc/qcom-spmi-vadc.c create mode 100644 include/dt-bindings/iio/qcom,spmi-pmic-vadc.h