public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: leds: Describe optional 'reg' property used for Qualcomm LPG nodes
@ 2022-07-21 19:55 Bhupesh Sharma
  2022-07-21 20:19 ` Dmitry Baryshkov
  0 siblings, 1 reply; 5+ messages in thread
From: Bhupesh Sharma @ 2022-07-21 19:55 UTC (permalink / raw)
  To: linux-arm-msm, linux-pm
  Cc: bhupesh.sharma, bhupesh.linux, linux-kernel, bjorn.andersson,
	robh, pavel

As Bjorn noted in [1], it is useful to describe the optional
'reg' property for Qualcomm LPG nodes as it is used in
some Qualcomm dts files.

This fixes the following 'make dtbs_check' error reported for
pm8350c & sc8280xp pwm nodes:

arch/arm64/boot/dts/qcom/sc7280-herobrine-herobrine-r1.dtb:
 pwm@e800: 'reg' does not match any of the regexes:
 '^led@[0-9a-f]$', 'pinctrl-[0-9]+'

[1]. https://lore.kernel.org/linux-arm-msm/Ytg3tIaL5h5b9ewH@builder.lan/

Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: robh@kernel.org
Cc: pavel@ucw.cz
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
---
 Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
index fe336fa16518..f394ab7a757b 100644
--- a/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
+++ b/Documentation/devicetree/bindings/leds/leds-qcom-lpg.yaml
@@ -27,6 +27,9 @@ properties:
       - qcom,pmi8994-lpg
       - qcom,pmi8998-lpg
 
+  reg:
+    maxItems: 1
+
   "#pwm-cells":
     const: 2
 
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-02  9:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21 19:55 [PATCH] dt-bindings: leds: Describe optional 'reg' property used for Qualcomm LPG nodes Bhupesh Sharma
2022-07-21 20:19 ` Dmitry Baryshkov
2022-08-08 18:44   ` Bjorn Andersson
2022-08-09  6:51     ` Krzysztof Kozlowski
2022-09-02  9:25       ` Bhupesh Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox