Skip to content

Commit 45b8221

Browse files
jhovoldgregkh
authored andcommitted
dt-bindings: spmi: hisilicon,hisi-spmi-controller: clean up example
Clean up the binding example by dropping the unnecessary parent bus node, using a define for the second register value of the PMIC child and increasing indentation to four spaces. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20231130173757.13011-3-johan+linaro@kernel.org Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lore.kernel.org/r/20240507210809.3479953-4-sboyd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c6c1b27 commit 45b8221

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,17 @@ unevaluatedProperties: false
5454

5555
examples:
5656
- |
57-
bus {
58-
#address-cells = <2>;
59-
#size-cells = <2>;
57+
#include <dt-bindings/spmi/spmi.h>
6058
61-
spmi: spmi@fff24000 {
59+
spmi@fff24000 {
6260
compatible = "hisilicon,kirin970-spmi-controller";
61+
reg = <0xfff24000 0x1000>;
6362
#address-cells = <2>;
6463
#size-cells = <0>;
65-
reg = <0x0 0xfff24000 0x0 0x1000>;
6664
hisilicon,spmi-channel = <2>;
6765
6866
pmic@0 {
69-
reg = <0 0>;
70-
/* pmic properties */
67+
reg = <0 SPMI_USID>;
68+
/* pmic properties */
7169
};
72-
};
7370
};

0 commit comments

Comments
 (0)