Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bab1e0c0 authored by Wenyou Yang's avatar Wenyou Yang Committed by Lee Jones
Browse files

doc: bindings: mfd: act8945a: Update the example



Since the act8945a-charger is regarded as a sub-device and it using
"interrupts" property, update the examples section.

Signed-off-by: default avatarWenyou Yang <wenyou.yang@atmel.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent c78cb178
Loading
Loading
Loading
Loading
+15 −7
Original line number Diff line number Diff line
@@ -14,13 +14,6 @@ Example:
		reg = <0x5b>;
		status = "okay";

		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_charger_chglev>;
		active-semi,chglev-gpio = <&pioA 12 GPIO_ACTIVE_HIGH>;
		active-semi,input-voltage-threshold-microvolt = <6600>;
		active-semi,precondition-timeout = <40>;
		active-semi,total-timeout = <3>;

		active-semi,vsel-high;

		regulators {
@@ -73,4 +66,19 @@ Example:
				regulator-always-on;
			};
		};

		charger {
			compatible = "active-semi,act8945a-charger";
			pinctrl-names = "default";
			pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
			interrupt-parent = <&pioA>;
			interrupts = <45 GPIO_ACTIVE_LOW>;

			active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
			active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
			active-semi,input-voltage-threshold-microvolt = <6600>;
			active-semi,precondition-timeout = <40>;
			active-semi,total-timeout = <3>;
			status = "okay";
		};
	};