From 1946ff7ee38c994ae3eb9968c5b51695c0df2cf7 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 2 Aug 2022 00:01:21 -0500 Subject: [PATCH 023/117] soc: sunxi: sram: Only iterate over SRAM children Now that a "regulators" child is accepted by the controller binding, the debugfs show routine must be explicitly limited to "sram" children. Series-to: Liam Girdwood Series-to: Mark Brown Series-to: Chen-Yu Tsai Series-to: Jernej Skrabec Series-to: Krzysztof Kozlowski Series-to: Rob Herring Commit-changes: 2 - New patch for v2 Series-version: 4 Cover-letter: regulator: Add support for Allwinner D1 LDOs This series adds bindings and a driver for the two pairs of LDOs inside the Allwinner D1 SoC. A binding and driver change is required for the SRAM controller, to accept the regulators device as its child node. The new example in the SRAM controller binding uses the compatible string added in this series: https://lore.kernel.org/lkml/20220815041248.53268-1-samuel@sholland.org/ END Reviewed-by: Heiko Stuebner Tested-by: Heiko Stuebner Signed-off-by: Samuel Holland --- drivers/soc/sunxi/sunxi_sram.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -120,6 +120,9 @@ static int sunxi_sram_show(struct seq_fi seq_puts(s, "--------------------\n\n"); for_each_child_of_node(sram_dev->of_node, sram_node) { + if (!of_node_name_eq(sram_node, "sram")) + continue; + sram_addr_p = of_get_address(sram_node, 0, NULL, NULL); seq_printf(s, "sram@%08x\n",