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