Neil Armstrong
ed7c6a2ba6
dt-bindings: regulator: qcom,rpmh-regulator: allow i, j, l, m & n as RPMh resource name suffix
...
Add "i", "j", "l", "m" and "n" to the allowed subffix list as they can be
used as RPMh resource name suffixes on new platforms.
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org >
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org >
Link: https://lore.kernel.org/r/20230822-topic-sm8x50-upstream-rpmh-regulator-suffix-v2-1-136b315085a4@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-08-22 15:31:27 +01:00
Krzysztof Kozlowski
d2d5481977
regulator: dt-bindings: add missing unevaluatedProperties for each regulator
...
Each regulator node, which references common regulator.yaml schema,
should disallow additional or unevaluated properties. Otherwise
mistakes in properties will go unnoticed.
Reported-by: Konrad Dybcio <konrad.dybcio@linaro.org >
Closes: 1c8aeef8a6
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20230726074940.121040-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-07-26 12:49:49 +01:00
Rohit Agarwal
0ef3d93163
regulator: dt-bindings: qcom,rpmh: Add PMX75 compatible
...
Add PMX75 compatibles for PMIC found in SDX75 platform.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/1689062414-3654-3-git-send-email-quic_rohiagar@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-07-21 12:31:30 +01:00
Rohit Agarwal
4fdef8553d
regulator: dt-bindings: qcom,rpmh: Update PMX65 entry
...
PMX65 does not have vdd-l18-supply separately and its
already part of vdd-l2-l18-supply property specified.
Updating this PMX65 dt-bindings entry accordingly.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/1689062414-3654-2-git-send-email-quic_rohiagar@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-07-21 12:31:29 +01:00
Krzysztof Kozlowski
ed479907ff
regulator: dt-bindings: qcom,rpmh: Combine PM6150L and PM8150L if-then
...
The supplies for PM6150L and PM8150L are the same, so they can be part
of one if-then block, for smaller code.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20230418071734.5706-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-04-18 14:02:31 +01:00
Krzysztof Kozlowski
902f8c9830
regulator: dt-bindings: qcom,rpmh: Correct PM8550 family supplies
...
PM8550 is different than PM8550VE/VS, because the latter has much
smaller amount of supplies (l1-3 and s1-6) and regulators. The PM8550
has on the other hand one pin for vdd-l1-l4-l10 supplies. Correct the
if:then: clause with their supplies.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Abel Vesa <abel.vesa@linaro.org >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20230327080626.24200-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-04-17 20:57:30 +01:00
Bartosz Golaszewski
ba0887a6b9
regulator: qcom,rpmh: add compatible for pmm8654au RPMH
...
Add the compatible for the pmm8654au RPMH regulators present on the
sa8775p-ride development board.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org >
Link: https://lore.kernel.org/r/20230406192811.460888-2-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-04-06 21:09:07 +01:00
Vinod Koul
fc4fef625d
regulator: dt-bindings: qcom,rpmh: Add compatible for PMC8180
...
Commit 71ca776a88 ("regulator: qcom-rpmh: Add pmc8180 and pmc8180c")
introduced these compatible's but the yaml conversion commit
7255f98d08 ("regulator: Convert RPMh regulator bindings to YAML")
seems to have dropped it
So bring it back!
Signed-off-by: Vinod Koul <vkoul@kernel.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20230325122444.249507-9-vkoul@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-04-03 16:06:43 +01:00
Rob Herring
cff5c89513
regulator: dt-bindings: Drop unneeded quotes
...
Cleanup bindings dropping unneeded quotes. Once all these are fixed,
checking for this can be enabled in yamllint.
Signed-off-by: Rob Herring <robh@kernel.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20230317233616.3968003-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2023-03-20 13:11:35 +00:00
Abel Vesa
0a60d09826
regulator: dt-bindings: qcom,rpmh: Add compatible for PM8550
...
Add compatible string for PM8550 used in SM8550 boards.
Signed-off-by: Abel Vesa <abel.vesa@linaro.org >
Link: https://lore.kernel.org/r/20221123153638.721254-2-abel.vesa@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-11-23 16:08:34 +00:00
Johan Hovold
b8dfb3bed5
regulator: dt-bindings: qcom,rpmh: clean up example indentation
...
Remove a line break and increase indentation of the continuation line
to avoid having the 'regulator-allowed-modes' example be reproduced
verbatim with four-spaces indentation (instead of a tab, which is still
too little) in devicetree sources.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org >
Link: https://lore.kernel.org/r/20221116102054.4673-2-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-11-16 13:32:31 +00:00
Richard Acayan
21c93a9555
regulator: qcom,rpmh: add pm660 and pm660l pmics
...
The SDM670 uses RPMh for managing the PM660 and PM660L. Document RPMh
support for the PMIC.
Link: 58064f13c0 %5E%21/#F0
Signed-off-by: Richard Acayan <mailingradian@gmail.com >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20220920223331.150635-2-mailingradian@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-09-23 14:25:14 +01:00
Andrew Halaney
08865c2150
regulator: dt-bindings: qcom,rpmh: Indicate regulator-allow-set-load dependencies
...
For RPMH regulators it doesn't make sense to indicate
regulator-allow-set-load without saying what modes you can switch to,
so be sure to indicate a dependency on regulator-allowed-modes.
In general this is true for any regulators that are setting modes
instead of setting a load directly, for example RPMH regulators. A
counter example would be RPM based regulators, which set a load
change directly instead of a mode change. In the RPM case
regulator-allow-set-load alone is sufficient to describe the regulator
(the regulator can change its output current, here's the new load),
but in the RPMH case what valid operating modes exist must also be
stated to properly describe the regulator (the new load is this, what
is the optimum mode for this regulator with that load, let's change to
that mode now).
With this in place devicetree validation can catch issues like this:
/mnt/extrassd/git/linux-next/arch/arm64/boot/dts/qcom/sm8350-hdk.dtb: pm8350-rpmh-regulators: ldo5: 'regulator-allowed-modes' is a dependency of 'regulator-allow-set-load'
From schema: /mnt/extrassd/git/linux-next/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
Where the RPMH regulator hardware is described as being settable, but
there are no modes described to set it to!
Suggested-by: Johan Hovold <johan+kernel@kernel.org >
Reviewed-by: Johan Hovold <johan+kernel@kernel.org >
Reviewed-by: Douglas Anderson <dianders@chromium.org >
Signed-off-by: Andrew Halaney <ahalaney@redhat.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20220907204924.173030-1-ahalaney@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-09-08 15:54:05 +01:00
Krzysztof Kozlowski
e84f3c41a5
regulator: dt-bindings: qcom,rpmh: document vdd-l7-bob-supply on PMR735A
...
The PMR735A comes with vdd-l7-bob-supply supply which was previously not
documented.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220426105501.73200-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-05-04 15:31:25 +01:00
Krzysztof Kozlowski
ba5d99609a
regulator: dt-bindings: qcom,rpmh: document supplies per variant
...
The RPMH regulator binding covers several devices with different
regulator supplies, so it uses patterns matching broad range of these
supplies. This works fine but is not specific and might miss actual
mistakes when a wrong supply property is used for given variant.
Describe the supplies depending on the compatible, using a defs-allOf
method.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220426105501.73200-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-05-04 15:31:24 +01:00
Krzysztof Kozlowski
a6d889a8fd
regulator: dt-bindings: qcom,rpmh: update maintainers
...
David Collins' email bounces ("Recipient address rejected: undeliverable
address: No such user here").
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Acked-by: Rob Herring <robh@kernel.org >
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Link: https://lore.kernel.org/r/20220426105501.73200-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-05-04 15:31:22 +01:00
Krzysztof Kozlowski
619fdc47f8
regulator: dt-bindings: qcom,rpmh: document h and k ID
...
Document used PMIC IDs: 'h' (sm8450-hdk, sm8450-qrd) and 'k'
(sc7280-crd).
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20220411105903.230733-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-04-13 13:50:21 +01:00
Rohit Agarwal
e34855b996
regulator: dt-bindings: Add PMX65 compatibles
...
Add PMX65 compatibles for PMIC found in SDX65 platform.
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com >
Link: https://lore.kernel.org/r/1647410837-22537-2-git-send-email-quic_rohiagar@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-03-18 16:05:05 +00:00
Vinod Koul
fa3b06f59a
regulator: qcom,rpmh: Add compatible for PM8450
...
Add compatible string for PM8450 used in SM8450 boards.
Signed-off-by: Vinod Koul <vkoul@kernel.org >
Link: https://lore.kernel.org/r/20211201072515.3968843-2-vkoul@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-12-01 14:15:42 +00:00
Satya Priya
ac88e9526d
dt-bindings: regulator: Add compatible for pmg1110
...
Add compatible string for pmg1110 pmic.
Signed-off-by: Satya Priya <quic_c_skakit@quicinc.com >
Link: https://lore.kernel.org/r/1637668167-31325-2-git-send-email-quic_c_skakit@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-11-29 12:19:55 +00:00
Luca Weiss
12271ba945
regulator: qcom,rpmh: Add compatible for PM6350
...
Add compatible string for pm6350 used in sm6350 boards.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz >
Link: https://lore.kernel.org/r/20211007212444.328034-3-luca@z3ntu.xyz
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-10-21 14:19:11 +01:00
Bhupesh Sharma
66376e1523
regulator: qcom,rpmh-regulator: Add compatible for SA8155p-adp board pmic
...
Add compatible string for pmm8155au pmic found on
the SA8155p-adp board.
Cc: Mark Brown <broonie@kernel.org >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Link: https://lore.kernel.org/r/20210617051712.345372-3-bhupesh.sharma@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-06-21 13:07:29 +01:00
Bhupesh Sharma
85adaac269
regulator: qcom,rpmh-regulator: Arrange compatibles alphabetically
...
Arrange the compatibles inside qcom-rpmh regulator device tree
bindings alphabetically.
Cc: Mark Brown <broonie@kernel.org >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Link: https://lore.kernel.org/r/20210617051712.345372-2-bhupesh.sharma@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-06-21 13:07:28 +01:00
satya priya
be724fd5b6
regulator: Add compatibles for PM7325/PMR735A
...
Add PM7325/PMR735A compatibles for Qualcomm SC7280 platform.
Signed-off-by: satya priya <skakit@codeaurora.org >
Acked-by: Rob Herring <robh@kernel.org >
Reviewed-by: Matthias Kaehlcke <mka@chromium.org >
Link: https://lore.kernel.org/r/1617192339-3760-6-git-send-email-skakit@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-04-01 19:42:43 +01:00
satya priya
7255f98d08
regulator: Convert RPMh regulator bindings to YAML
...
Convert RPMh regulator bindings from .txt to .yaml format.
Signed-off-by: satya priya <skakit@codeaurora.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/1617192339-3760-5-git-send-email-skakit@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-04-01 19:42:42 +01:00