The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott <simon@xxxxxxxxxxx> --- .../bindings/regulator/brcm,bcm63xx-regulator.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/brcm,bcm63xx-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/brcm,bcm63xx-regulator.txt b/Documentation/devicetree/bindings/regulator/brcm,bcm63xx-regulator.txt new file mode 100644 index 0000000..e905241 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/brcm,bcm63xx-regulator.txt @@ -0,0 +1,33 @@ +BCM63xx regulators + +The BCM63xx has one or more registers with bits that act as regulators +to enable/disable power to individual chip peripherals. + +Required properties: +- compatible: Must be "brcm,bcm<soc>-regulator", "brcm,bcm63xx-regulator"; +- regmap: regmap phandle to use for enable control +- offset: register offset +- mask: register enable mask +- startup-delay-us: startup time in microseconds + +Any property defined as part of the core regulator +binding, defined in regulator.txt, can also be used. + +However the regulator is expected to have the same values +for regulator-min-microvolt and regulator-max-microvolt. + +Example: + +misc: syscon@10001800 { + compatible = "syscon"; + reg = <0x10001800 0xd0>; +}; + +robosw_power: robosw { + compatible = "brcm,bcm63168-regulator", "brcm,bcm63xx-regulator"; + regulator-name = "robosw_power"; + regmap = <&misc>; + offset = <0x4c>; + mask = <0x40>; + startup-delay-us = <100000>; +}; -- 2.1.4 -- Simon Arlott -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html