- Jul 10, 2017
-
-
Jack Andersen authored
This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. ADC is the fourth and final component of the DLN2 for the kernel. Signed-off-by:
Jack Andersen <jackoalan@gmail.com> Signed-off-by:
Jonathan Cameron <Jonathan.Cameron@huawei.com>
-
- Jul 07, 2017
-
-
Joe Perches authored
Add newlines to the macro definitions and use a more common style. Signed-off-by:
Joe Perches <joe@perches.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
- Jul 05, 2017
-
-
Mike Looijmans authored
The LTC2741 and LTC2473 are single voltage ADC chips. The LTC2473 is similar to the LTC2471 but outputs a signed differential value. Datasheet: http://cds.linear.com/docs/en/datasheet/24713fb.pdf Signed-off-by:
Mike Looijmans <mike.looijmans@topic.nl> Reviewed-by:
Lars-Peter Clausen <lars@metafoo.de> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Mikko Koivunen authored
Set up and use triggered buffer if there is irq defined for device in device tree. Trigger producer triggers from rpr0521 drdy interrupt line. Trigger consumer reads rpr0521 data to scan buffer. Depends on previous commits of _scale and _offset. Signed-off-by:
Mikko Koivunen <mikko.koivunen@fi.rohmeurope.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
- Jul 02, 2017
-
-
Reno Farnesi authored
This patch fixes the following checkpatch warnings: Prefer 'unsigned int' to bare use of 'unsigned Signed-off-by:
Reno Farnesi <nfarnesi4@gmail.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Add device tree support for LPS22HB, LPS25H, LPS331AP, LPS001WP pressure sensors Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Add device tree support for L3G4200D, LSM330D, LSM330DL, LSM330DLC, L3GD20, L3GD20H, L3G4IS, LSM330, LSM9DS0 gyroscope sensors Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Add device tree support for LIS3MDL and LSM303AGR magnetometer sensors Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Add device tree support for LIS3DH, LSM330D, LSM330DL, LSM330DLC, LIS331DLH, LSM330, LSM303AGR, LIS2DH12, LIS3L02DQ, LNG2DM accel sensors. Fix LIS302DL support defining of_device_id data field in st_accel_of_match table Fixes: 76222772 (iio: accel: st_accel: handle deprecated bindings) Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Matthias Kaehlcke authored
Don't inflate the kernel size with data that isn't used. The conditional declaration also fixes the following warning when building with clang: drivers/iio/magnetometer/ak8975.c:704:36: error: variable 'ak_acpi_match' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] Signed-off-by:
Matthias Kaehlcke <mka@chromium.org> Acked-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Reno Farnesi authored
Removes trailing whitespace to fix checkpatch errors Signed-off-by:
Reno Farnesi <nfarnesi4@gmail.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Gaurav Gupta authored
Add missing hooks in the LTC2497 IIO driver to allow hwmon mapping. Signed-off-by:
Gaurav Gupta <gauragup@cisco.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Colin Ian King authored
The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so make it static. Cleans up sparse warning: "symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?" Signed-off-by:
Colin Ian King <colin.king@canonical.com> Acked-by:
Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Angelo Compagnucci authored
Some part of the configuration are not touched after the probe and if something goes wrong on writing the initial one, the chip will misbehave. Adding an error checking ensures that the inital configuration will be written correctly. Moreover ensures that a sensible configuration will be saved in driver data and used subsequently as intended. Signed-off-by:
Angelo Compagnucci <angelo.compagnucci@gmail.com> Reported-by:
Maarten Brock <m.brock@vanmierlo.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Angelo Compagnucci authored
Initial channel should be the first available channel on all configurations, so changing to channel 0 available on all supported chips. Signed-off-by:
Angelo Compagnucci <angelo.compagnucci@gmail.com> Reported-by:
Maarten Brock <m.brock@vanmierlo.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Linus Walleij authored
Open drain should work fine with rising or high level IRQs, this code was due to some misunderstanding on my part. Reported-by:
Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
- Jul 01, 2017
-
-
Akinobu Mita authored
Add a link to the TCS3472 datasheet in the AMS's website. Cc: Peter Meerwald <pmeerw@pmeerw.net> Cc: Jonathan Cameron <jic23@kernel.org> Signed-off-by:
Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Zhiyong Tao authored
This commit adds mt7622 compatible node. Signed-off-by:
Zhiyong Tao <zhiyong.tao@mediatek.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Zhiyong Tao authored
This patch supports auxadc suspend/resume flow. Disable auxadc clk and power in suspend function. Enable axuadc clk and power in resume function. Signed-off-by:
Zhiyong Tao <zhiyong.tao@mediatek.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Zhiyong Tao authored
The commit adds mt7622 compatible node in binding document. Signed-off-by:
Zhiyong Tao <zhiyong.tao@mediatek.com> Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Add open drain support in order to share requested IRQ line between st_lsm6dsx device and other peripherals Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add device tree bindings for Measurement-Specialties MS5637, MS5805, MS5837 and MS8607 pressure & temperature sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add of_match_table for Measurement-Specialties MS5637, MS5805, MS5837 and MS8607 pressure & temperature sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add of_match_table for Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Fabrice Gasnier authored
Clock name has been updated during driver/DT binding review: https://lkml.org/lkml/2016/12/13/718 Update DT binding doc to reflect this. Fixes: bf2d8581 (iio: Add bindings for STM32 timer trigger driver) Signed-off-by:
Fabrice Gasnier <fabrice.gasnier@st.com> Acked-by:
Benjamin Gaignard <benjamin.gaignard@linaro.org> Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Eugen Hristev authored
Added support for suspend/resume functionality for the ADC IP in sama5d2 SoC. In order to enter Suspend to ram mode (backup + self refresh mode for memory), in which the ADC IP is no longer powered, we need to reset the pins to default state, for the scenario when they are also used for I2C bus to communicate with the PMIC. On resume, we need to reconfigure the ADC IP registers and reconfigure the trigger registers in the case when the suspend procedure is done while sysfs has the buffer and trigger enabled. In the case the suspend happens exactly during a software triggered conversion, the request will time out, because we reset and power down the ADC. Signed-off-by:
Eugen Hristev <eugen.hristev@microchip.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
In order to add proper device tree support give a more general name to of_device_id table Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Move st_sensors_of_i2c_probe() in st_sensors_core and rename it in st_sensors_of_name_probe(). That change is necessary to add device-tree support in spi code otherwise the rest of the autodetection will fail since spi->modalias (and indio_dev->name) will be set using compatible string value that differs from standard sensor name Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Lorenzo Bianconi authored
Enable multiread by default for LIS3MDL since using I2C interface the subaddr Msb is used to automatically increase the slave address during multiple data read/write. In the same way, using SPI interface, bit 1 in register address is used to enable auto-increment of the slave address in multiple read/write. Fixes: 872e79ad (iio:magn: Add STMicroelectronics magn driver) Signed-off-by:
Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Akinobu Mita authored
The integration time is controlled by the ATIME register only. However, this register is written by i2c_smbus_write_word_data() in write_raw(). We actually don't need to write a subsequent register. So just use i2c_smbus_write_byte_data() instead. Cc: Peter Meerwald <pmeerw@pmeerw.net> Cc: Jonathan Cameron <jic23@kernel.org> Signed-off-by:
Akinobu Mita <akinobu.mita@gmail.com> Acked-by:
Peter Meerwald-Stadler <pmeerw@pmeerw.net> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Stefan Brüns authored
While the INA226 has a conversion ready flag (CVRF) in the R/W Mask/Enable register with read-to-clear semantics, the corresponding bit of the INA219 (CNVR) is part of the bus voltage register. The flag is cleared by reading the power register. Signed-off-by:
Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add device tree bindings for Measurement Specialties TSYS01 temperature sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Acked-by:
Rob Herring <robh@kernel.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Manivannan Sadhasivam authored
Add of_match_table for Measurement Specialties TSYS01 temperature sensor Signed-off-by:
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Eugen Hristev authored
Added support for the external hardware trigger on pin ADTRG, integrated the three possible edges into the driver and created buffer management for data retrieval Signed-off-by:
Eugen Hristev <eugen.hristev@microchip.com> Acked-by:
Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Eugen Hristev authored
Add property for the edge type of the hardware trigger pin ADTRG Signed-off-by:
Eugen Hristev <eugen.hristev@microchip.com> Acked-by:
Rob Herring <robh@kernel.org> Acked-by:
Ludovic Desroches <ludovic.desroches@microchip.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Fabio Estevam authored
To keep IMX7D_ADC text consistent with other iio/adc entries, add the vendor name to the driver menu text. Signed-off-by:
Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-
Michael Stecklein authored
Add of_match_table and point it to a list of compatible device tree device id's. Signed-off-by:
Michael Stecklein <m-stecklein@ti.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
-