Commit Graph

11 Commits

Author SHA1 Message Date
Anjelique Melendez
6a2078911c dt-bindings: iio: adc: qcom,spmi-vadc: Add qcom,adc5-gen4 property
Add new "qcom,adc5-gen4" property to flag ADC5 GEN4 channels.

Change-Id: I271b6e74d36721f6c38bd1f3d68e47bc5393b04d
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-12-19 17:50:32 -08:00
Jishnu Prakash
d6d5b31791 dt-bindings: iio: qcom,spmi-vadc: Add PMIC5 GEN3 ADC bindings
PMIC5 GEN3 ADC has support for clients to read voltage and
current on supported channels connected to the PMIC.
Clients include reading voltage phone power and on board system
thermistors for thermal management. ADCs on certain PMICs have
support to read battery current.

Change-Id: Ief7cbdf77d227ba2cb4ef7919aa66d9962d98e37
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: Converted binding change from .txt to .yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-10-24 11:39:49 -07:00
Jishnu Prakash
f3901bee1b dt-bindings: iio: qcom,spmi-vadc: Add SW-calibrated ADC bindings
Add bindings for SW-calibrated ADC used on PMR735A/PMR735B on
targets which don't have PMK8350 running in master mode.

Change-Id: I753b3caf1e52ac9920a9df32cbef465277409700
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: Converted binding change from .txt to .yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-10-12 17:07:37 -07:00
Jishnu Prakash
9b823442e4 dt-bindings: iio: adc: qcom,spmi-vadc: Add scale function property
Update qcom,spmi-vadc bindings to include "qcom,scale-fn-type"
property for ADC7.

Change-Id: Ieb8ad5779b078dd77838c498b3a4e0bbcf907df8
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: Converted binding change from .txt to .yaml
 and removed changes already captured in yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-10-04 10:54:49 -07:00
Jishnu Prakash
17533b38e2 dt-bindings: iio: qcom,spmi-vadc: update prescale ratios
Update prescale ratios to support the new channels.

Change-Id: I4d37e9653962954e856f464df32297d9aa90757a
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: Converted binding change from .txt to .yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-27 10:37:41 -07:00
Jishnu Prakash
ff8af86c1e dt-bindings: iio: qcom,spmi-vadc: Add compatible string for ADC lite driver
Add the compatible string for ADC-lite driver for
reading parallel charger current channel.

Change-Id: Ie0d3f90d06be4bf28661736058c5d1fb2af1ac8f
Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
[quic_amelende@quicinc.com: converted binding change from .txt to .yaml]
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-27 10:32:36 -07:00
Marijn Suijten
236d18167a dt-bindings: iio: adc: Require generic channel name for channel nodes
As discussed in [1] it is more convenient to use a generic `channel`
node name for ADC channels while storing a friendly - board-specific
instead of PMIC-specific - name in the label, if/when desired to
overwrite the channel description already contained (but previously
unused) in the driver [2].

The same `channel` node name pattern has also been set in
iio/adc/adc.yaml, but this generic binding is not inherited as base for
qcom,spmi-vadc bindings due to not having any other generic elements in
common, besides the node name rule and reg property.

Replace the .* name pattern with the `channel` literal, but leave the
label property optional for bindings to choose to fall back a channel
label hardcoded in the driver [2] instead.

[1]: https://lore.kernel.org/linux-arm-msm/20221106193018.270106-1-marijn.suijten@somainline.org/T/#u
[2]: https://lore.kernel.org/linux-arm-msm/20230116220909.196926-4-marijn.suijten@somainline.org/

Change-Id: I89932db23da961995c921ef58e0c60a92018bb27
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230410202917.247666-6-marijn.suijten@somainline.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Git-commit: e0b7972461b082be7168deb217ab7daaa8d425f0
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-20 12:42:59 -07:00
Luca Weiss
c0b391daf9 dt-bindings: iio: adc: qcom,spmi-vadc: Allow 1/16 for pre-scaling
The channel ADC5_USB_IN_V_16 is using 1/16 pre-scaling on at least
pm7250b and pmi632. Allow that in the schema.

Change-Id: I4c673338fd9c3ed1544863fc073abfd91ec721b3
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230414-pmi632-v1-5-fe94dc414832@z3ntu.xyz
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Git-commit: ef513aa7aa5038d2f53e9f2932af5006f37ed0b6
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-20 12:39:59 -07:00
Krzysztof Kozlowski
649110f779 dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
The second compatible item in oneOf is just an enum, not a list.

Change-Id: Iff563f0c95af6900d3e5da8f403530bb981f858a
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221027143411.277980-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Git-commit: 306935570f23e25bff22a3273bc6f92c8f13c910
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
2023-09-20 12:34:33 -07:00
David Collins
d232832c9c dt-bindings: iio: adc: add Glink ADC bindings
Add bindings for the PMIC Glink ADC device.  This device provides
a mechanism for software to read multiple ADC channels of
Qualcomm Technologies, Inc. PMICs using the Glink interface to
communicate with charger firmware.

Change-Id: I805b13893f80ce993496e35767a89b09ae163254
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-07-26 14:34:36 -07:00
Melody Olvera
6f18ce8026 dt-bindings: Add devicetree bindings
Add snapshot of device tree bindings from keystone common kernel, branch
"android-mainline-keystone-qcom-release" at c4c12103f9c0 ("Snap for 9228065
from e32903b9a63bb558df8b803b076619c53c16baad to
android-mainline-keystone-qcom-release").

Change-Id: I7682079615cbd9f29340a5c1f2a1d84ec441a1f1
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
2023-04-03 15:40:37 -07:00