Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
45b8221f c6c1b27f

+5 -8
+5 -8
Documentation/devicetree/bindings/spmi/hisilicon,hisi-spmi-controller.yaml
··· 54 54 55 55 examples: 56 56 - | 57 - bus { 58 - #address-cells = <2>; 59 - #size-cells = <2>; 57 + #include <dt-bindings/spmi/spmi.h> 60 58 61 - spmi: spmi@fff24000 { 59 + spmi@fff24000 { 62 60 compatible = "hisilicon,kirin970-spmi-controller"; 61 + reg = <0xfff24000 0x1000>; 63 62 #address-cells = <2>; 64 63 #size-cells = <0>; 65 - reg = <0x0 0xfff24000 0x0 0x1000>; 66 64 hisilicon,spmi-channel = <2>; 67 65 68 66 pmic@0 { 69 - reg = <0 0>; 70 - /* pmic properties */ 67 + reg = <0 SPMI_USID>; 68 + /* pmic properties */ 71 69 }; 72 - }; 73 70 };