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

dt-bindings: sram: sunxi-sram: Add regulators child

Some sunxi SoCs have in-package regulators controlled by a register in
the system control MMIO block. Allow a child node for this regulator
device in addition to SRAM child nodes.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240622150731.1105901-2-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>

authored by

Samuel Holland and committed by
Chen-Yu Tsai
3a6fb902 a40cf069

+28
+28
Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
··· 56 56 ranges: true 57 57 58 58 patternProperties: 59 + "^regulators@[0-9a-f]+$": 60 + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml# 61 + 59 62 "^sram@[a-f0-9]+": 60 63 $ref: /schemas/sram/sram.yaml# 61 64 unevaluatedProperties: false ··· 130 127 emac_sram: sram-section@8000 { 131 128 compatible = "allwinner,sun4i-a10-sram-a3-a4"; 132 129 reg = <0x8000 0x4000>; 130 + }; 131 + }; 132 + }; 133 + 134 + - | 135 + syscon@3000000 { 136 + compatible = "allwinner,sun20i-d1-system-control"; 137 + reg = <0x3000000 0x1000>; 138 + ranges; 139 + #address-cells = <1>; 140 + #size-cells = <1>; 141 + 142 + regulators@3000150 { 143 + compatible = "allwinner,sun20i-d1-system-ldos"; 144 + reg = <0x3000150 0x4>; 145 + 146 + reg_ldoa: ldoa { 147 + regulator-min-microvolt = <1800000>; 148 + regulator-max-microvolt = <1800000>; 149 + }; 150 + 151 + reg_ldob: ldob { 152 + regulator-name = "vcc-dram"; 153 + regulator-min-microvolt = <1500000>; 154 + regulator-max-microvolt = <1500000>; 133 155 }; 134 156 }; 135 157 };