Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412AbbK3UaU (ORCPT ); Mon, 30 Nov 2015 15:30:20 -0500 Received: from proxima.lp0.eu ([81.2.80.65]:32953 "EHLO proxima.lp0.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754020AbbK3UaS (ORCPT ); Mon, 30 Nov 2015 15:30:18 -0500 Subject: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding To: Mark Brown , devicetree@vger.kernel.org, Liam Girdwood References: <565A18DD.60108@simon.arlott.org.uk> <20151130121043.GX1929@sirena.org.uk> Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org, Florian Fainelli , Jonas Gorski From: Simon Arlott Message-ID: <565CB1CF.5040306@simon.arlott.org.uk> Date: Mon, 30 Nov 2015 20:30:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151130121043.GX1929@sirena.org.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1920 Lines: 58 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 --- .../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-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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/