Commit Graph

216 Commits

Author SHA1 Message Date
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
qctecmdr
6e5cf08b54 Merge "ARM: dts: qcom: Update memory map to V6" 2023-08-18 14:20:04 -07:00
qctecmdr
b0c3c517ad Merge "ARM: dts: msm: Add msm_gpu node for sun" 2023-08-18 14:20:04 -07:00
qctecmdr
ee523f1619 Merge "dt-bindings: Add devicetree bindings for dcvs drivers" 2023-08-18 14:20:04 -07:00
qctecmdr
d3a7e61018 Merge "ARM: dts: msm: Add EVA CDSP shared mem" 2023-08-18 14:20:04 -07:00
qctecmdr
d921ac1409 Merge "ARM: dts: msm: Unstub dispcc for Sun" 2023-08-17 18:12:13 -07:00
qctecmdr
58f20acb9a Merge "dt-bindings: clock: Add Videocc bindings for Sun" 2023-08-17 18:12:13 -07:00
qctecmdr
89e9b9d32c Merge "dt-bindings: soc: qcom: correct compatible for coresight-remote-etm" 2023-08-17 18:12:13 -07:00
George Shen
527694888f ARM: dts: msm: Add EVA CDSP shared mem
For EVA DSP clients.

Change-Id: I694314287eb0b97c20ecae4d2860d826c6cdd3fa
Signed-off-by: George Shen <quic_sqiao@quicinc.com>
2023-08-17 14:59:45 -07:00
Amir Vajid
467330472c dt-bindings: Add devicetree bindings for dcvs drivers
Add snapshot of dcvs dt bindings as of qcom-6.1
commit 96af901712d3 ("dt-bindings: soc: qcom: Document
CRMB and CRMC regs").

Change-Id: I305f06bee1895feabec2b85b2c5ed4fa80895f83
Signed-off-by: Amir Vajid <quic_avajid@quicinc.com>
Signed-off-by: Gurbir Arora <quic_gurbaror@quicinc.com>
2023-08-16 12:24:20 -07:00
Hareesh Gundu
8590667d83 ARM: dts: msm: Add msm_gpu node for sun
Add msm_gpu node to detect sun gpu properties.

Change-Id: I5ce3a39b216681bd9b7386dd3f68a755abe0f197
Signed-off-by: Hareesh Gundu <quic_hareeshg@quicinc.com>
2023-08-16 11:13:06 -07:00
Yuanfang Zhang
24caf10fee dt-bindings: soc: qcom: correct compatible for coresight-remote-etm
Correct compatible for coresight-remote-etm.

Change-Id: I2c0e6e1749e348707a37c979129e51ab9ef7eec3
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
2023-08-15 19:42:10 -07:00
Patrick Daly
410c7ae956 ARM: dts: qcom: Update memory map to V6
Update memory map to V6, from a baseline of V4.

Change-Id: I167de96b3a2f199188a4d8c995aa49ef6b83fee1
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2023-08-15 11:51:49 -07:00
qctecmdr
342af7cf1c Merge "dt-bindings: regulator: stub-regulator: fix dt_binding_check warning" 2023-08-14 11:33:54 -07:00
qctecmdr
8241124653 Merge "dt-bindings: clock: Add gpucc bindings for Sun" 2023-08-14 11:33:54 -07:00
qctecmdr
781e8f0fbc Merge "dt-bindings: regulator: fixed: add qti-regulator-fixed compatible string" 2023-08-14 11:33:54 -07:00
qctecmdr
ecb945cd53 Merge "dt-bindings: regulator: add QTI OCP notifier bindings documentation" 2023-08-14 11:33:54 -07:00
qctecmdr
96265a944f Merge "dt-bindings: regulator: add proxy consumer bindings" 2023-08-14 11:33:54 -07:00
Yuanfang Zhang
1fa42c98bd dt-bindings: soc: qcom: Add documentation for dcc and memory-dump
Add documentation for dcc and memory-dump driver.

Change-Id: Iadca5ac385af2f79c8f8449cd5a538f24815b436
Signed-off-by: Yuanfang Zhang <quic_yuanfang@quicinc.com>
2023-08-14 00:40:54 -07:00
qctecmdr
5283a405e9 Merge "dt-bindings: clock: Add Cambistmclkcc bindings for Sun" 2023-08-08 14:38:03 -07:00
qctecmdr
2f5274d761 Merge "dt-bindings: pinctrl: qcom-pmic-gpio: add PMXR2230 and PM6450 binding" 2023-08-07 10:30:42 -07:00
Xubin Bai
df5015bcf4 dt-bindings: clock: Add Videocc bindings for Sun
Add Videocc bindings for Sun device.

Change-Id: Idba14b3efe7bddcb1b4d5b0490889689da6e5409
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
2023-08-07 05:14:27 -07:00
David Collins
33623ba803 dt-bindings: regulator: stub-regulator: fix dt_binding_check warning
make dt_binding_check outputs the following warning for the file
qcom,stub-regulator.yaml:

Documentation/devicetree/bindings/regulator/
qcom,stub-regulator.example.dtb:
  regulator-l1: 'regulator-max-microvolt', 'regulator-min-microvolt',
  'regulator-name' do not match any of the regexes: 'pinctrl-[0-9]+'

This occurs because both of these are specified:
 * allOf:
     - $ref: "regulator.yaml#"

 * additionalProperties: false

Fix this warning by switching the latter to:

  unevaluatedProperties: false

Change-Id: I5e0c9eb9e6a0638464db5d084bd008df357505d6
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-08-03 16:42:25 -07:00
David Collins
fa679d428f dt-bindings: regulator: add proxy consumer bindings
Add bindings for regulator proxy consumers which can be used to
enforce minimum voltage, current, and enable state of regulators
when a board is booting up.

Change-Id: I045faf871af168e5ace707f434e0317a176a16fc
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-08-03 16:18:36 -07:00
David Collins
789f4b0eb3 dt-bindings: regulator: add QTI OCP notifier bindings documentation
Add a bindings documentation file for QTI regulator over-current
(OCP) notifier devices.  These devices can be used to monitor and
notifier consumers of regulator OCP and alarm events on certain
Qualcomm Technologies, Inc. PMICs.

A regulator alarm event occurs when the output voltage droops due
to excessive current consumption which is lower than the over-
current protection threshold.

Change-Id: Id86cf62144c6e9f970cd09b7fe7a93ab40ef6cd8
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-08-03 16:17:38 -07:00
David Collins
d11bf83b2d dt-bindings: regulator: fixed: add qti-regulator-fixed compatible string
Modify the fixed-regulator binding to include the compatible
string "qti-regulator-fixed".  This is helpful in situations
where proxy consumer voting or debug control features are
needed.

Change-Id: Icf4e6012a0994ff2467ee8a7af036bb97c352fce
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2023-08-02 16:06:23 -07:00
qctecmdr
9378b893fb Merge "ARM: dts: msm: Add GDSC supply to USB node for sun" 2023-08-02 09:25:03 -07:00
qctecmdr
f2f540c2b5 Merge "dt-bindings: Add USB M31 HSPHY bindings" 2023-08-02 09:25:03 -07:00
qctecmdr
2a7c152496 Merge "dt-bindings: iio: adc: add Glink ADC bindings" 2023-08-02 09:25:03 -07:00
qctecmdr
847ae0f8b3 Merge "bindings: soc: qcom: add QTI battery glink debug" 2023-08-02 09:25:03 -07:00
qctecmdr
c85e9ca667 Merge "bindings: soc: qcom: add Glink PMIC debug controller binding documentation" 2023-08-02 09:25:03 -07:00
qctecmdr
89b6608129 Merge "ARM: dts: msm: sun: Remove maxcpus from cmdline" 2023-08-02 09:25:03 -07:00
qctecmdr
81c770167c Merge "ARM: dts: msm: Unstub and enable interconnect driver for Sun" 2023-08-02 09:25:02 -07:00
qctecmdr
80e3b768e2 Merge "bindings: soc: qcom: add QTI charger ulog glink" 2023-08-02 09:25:02 -07:00
qctecmdr
307d4c114b Merge "ARM: dts: msm: Add GDSC proxy consumers for Sun" 2023-08-02 09:25:02 -07:00
Xubin Bai
1b4014bdfe dt-bindings: clock: Add gpucc bindings for Sun
Add gpucc bindings for Sun device.

Change-Id: Ifc0e11f4083062bcb373794f174be6bd9df2bffe
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
2023-08-01 21:37:05 -07:00
qctecmdr
3524dbea8f Merge "ARM: dts: qcom: switch to RPMh control of ARC regulators on Sun" 2023-08-01 13:06:23 -07:00
qctecmdr
db4bf6882a Merge "ARM: dts: msm: Enable pmu on sun" 2023-08-01 13:06:23 -07:00
qctecmdr
cc280a3fc2 Merge "ARM: dts: msm: Enable dma heap headers for pineapple" 2023-08-01 13:06:23 -07:00
qctecmdr
8b0b02aa8b Merge "dt-bindings: clock: Add Dispcc bindings for Sun" 2023-08-01 13:06:23 -07:00
qctecmdr
9739b90d4d Merge "dt-bindings: soc: qcom: add bindings for QTI PBS devices" 2023-08-01 13:06:23 -07:00
qctecmdr
ec1e013a70 Merge "dt-bindings: soc: qcom: add PMIC PON log bindings" 2023-08-01 13:06:23 -07:00
qctecmdr
85bb807b95 Merge "ARM: dts: msm: Support for Sun v2 SoC" 2023-08-01 13:06:22 -07:00
Melody Olvera
5cb7097ec3 ARM: dts: msm: sun: Remove maxcpus from cmdline
Remove maxcpus from command line to boot all cores.

Change-Id: Ifaf03a66e36d7a0fc1236f22f8126a14513bbdf9
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
2023-07-28 12:57:36 -07:00