[PATCH v2 2/2] mfd: add documentation for ACT8945A DT bindings
flat view
From: Yang, Wenyou <hidden>
Date: 2016-01-12 09:26:24
Also in:
linux-devicetree, lkml
Hi Lee,
-----Original Message----- From: Lee Jones [mailto:lee.jones at linaro.org] Sent: 2016?1?12? 16:52 To: Yang, Wenyou <redacted> Cc: Rob Herring <robh+dt@kernel.org>; Pawel Moll <redacted>; Mark Rutland [off-list ref]; Ian Campbell [off-list ref]; Kumar Gala [off-list ref]; Javier Martinez Canillas [off-list ref]; Krzysztof Kozlowski [off-list ref]; Ferre, Nicolas [off-list ref]; linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; devicetree at vger.kernel.org Subject: Re: [PATCH v2 2/2] mfd: add documentation for ACT8945A DT bindings On Tue, 12 Jan 2016, Wenyou Yang wrote:quoted
The Active-semi ACT8945A PMIC is a Multi-Function Device, it has two subdevices: - Regulator - Charger This patch adds documentation for ACT8945A DT bindings. Signed-off-by: Wenyou Yang <redacted> --- Changes in v2: - use more specific label in Example. - add pmic and charger nodes in Example. Documentation/devicetree/bindings/mfd/act8945a.txt | 82++++++++++++++++++++quoted
1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/act8945a.txtdiff --git a/Documentation/devicetree/bindings/mfd/act8945a.txtb/Documentation/devicetree/bindings/mfd/act8945a.txt new file mode 100644 index 0000000..e4a8aaf--- /dev/null +++ b/Documentation/devicetree/bindings/mfd/act8945a.txt@@ -0,0 +1,82 @@ +Device-Tree bindings for Active-semi ACT8945A MFD driver + +Required properties: + - compatible: "active-semi,act8945a". + - reg: the I2C slave address for the ACT8945A chip + +The chip exposes two subdevices: + - a regulators: see ../regulator/act8945a-regulator.txt + - a charger: see ../power/act8945a-charger.txt + +Example: + act8945a at 5b { + compatible = "active-semi,act8945a"; + reg = <0x5b>; + status = "okay"; + + pmic { + compatible = "active-semi,act8945a-regulator"; + active-semi,vsel-high; + + regulators {Your tabbing here is not correct.
Oh, Yes, it is not correct, I will correct it. Thanks.
quoted
+ vdd_1v35_reg: DCDC_REG1 { + regulator-name = "VDD_1V35"; + regulator-min-microvolt =<1350000>;quoted
+ regulator-max-microvolt =<1350000>;quoted
+ regulator-always-on; + }; + + vdd_1v2_reg: DCDC_REG2 { + regulator-name = "VDD_1V2"; + regulator-min-microvolt =<1100000>;quoted
+ regulator-max-microvolt =<1300000>;quoted
+ regulator-always-on; + }; + + vdd_3v3_reg: DCDC_REG3 { + regulator-name = "VDD_3V3"; + regulator-min-microvolt =<3300000>;quoted
+ regulator-max-microvolt =<3300000>;quoted
+ regulator-always-on; + }; + + vdd_fuse_reg: LDO_REG1 { + regulator-name = "VDD_FUSE"; + regulator-min-microvolt =<2500000>;quoted
+ regulator-max-microvolt =<2500000>;quoted
+ regulator-always-on; + }; + + vdd_3v3_lp_reg: LDO_REG2 { + regulator-name = "VDD_3V3_LP"; + regulator-min-microvolt =<3300000>;quoted
+ regulator-max-microvolt =<3300000>;quoted
+ regulator-always-on; + }; + + vdd_led_reg: LDO_REG3 { + regulator-name = "VDD_LED"; + regulator-min-microvolt =<3300000>;quoted
+ regulator-max-microvolt =<3300000>;quoted
+ regulator-always-on; + }; + + vdd_sdhc_1v8_reg: LDO_REG4 { + regulator-name ="VDD_SDHC_1V8";quoted
+ regulator-min-microvolt =<1800000>;quoted
+ regulator-max-microvolt =<1800000>;quoted
+ regulator-always-on; + }; + }; + }; + + charger { + compatible = "active-semi,act8945a-charger"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_charger_chglev>; + active-semi,chglev-gpio = <&pioA 12GPIO_ACTIVE_HIGH>;quoted
+ active-semi,input_voltage_threshold = <6600>; + active-semi,precondition_timeout = <40>; + active-semi,total_timeout = <3>; + }; + };-- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Best Regards, Wenyou Yang