Home
last modified time | relevance | path

Searched refs:iadc (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/iio/adc/
Dqcom-spmi-iadc.c126 static int iadc_read(struct iadc_chip *iadc, u16 offset, u8 *data) in iadc_read() argument
131 ret = regmap_read(iadc->regmap, iadc->base + offset, &val); in iadc_read()
139 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) in iadc_write() argument
141 return regmap_write(iadc->regmap, iadc->base + offset, data); in iadc_write()
144 static int iadc_reset(struct iadc_chip *iadc) in iadc_reset() argument
149 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset()
153 ret = iadc_read(iadc, IADC_PERH_RESET_CTL3, &data); in iadc_reset()
157 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset()
163 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); in iadc_reset()
166 static int iadc_set_state(struct iadc_chip *iadc, bool state) in iadc_set_state() argument
[all …]
DMakefile56 obj-$(CONFIG_QCOM_SPMI_IADC) += qcom-spmi-iadc.o
DKconfig582 be called qcom-spmi-iadc.
/Linux-v4.19/Documentation/devicetree/bindings/iio/adc/
Dqcom,spmi-iadc.txt14 Definition: Should contain "qcom,spmi-iadc".
34 pmic_iadc: iadc@3600 {
35 compatible = "qcom,spmi-iadc";
45 io-channel-names = "iadc";
/Linux-v4.19/arch/arm/boot/dts/
Dqcom-pm8941.dtsi165 pm8941_iadc: iadc@3600 {
166 compatible = "qcom,pm8941-iadc", "qcom,spmi-iadc";