From: Anda-Maria Nicolae <anda-maria.nicolae@intel.com> To: sre@kernel.org, dbaryshkov@gmail.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, dwmw2@infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] Documentation: devicetree: Add Richtek RT9455 bindings Date: Mon, 25 May 2015 13:22:22 +0300 [thread overview] Message-ID: <1432549343-5756-3-git-send-email-anda-maria.nicolae@intel.com> (raw) In-Reply-To: <1432549343-5756-1-git-send-email-anda-maria.nicolae@intel.com> Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae@intel.com> --- .../devicetree/bindings/power/rt9455_charger.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt diff --git a/Documentation/devicetree/bindings/power/rt9455_charger.txt b/Documentation/devicetree/bindings/power/rt9455_charger.txt new file mode 100644 index 0000000..bb46842 --- /dev/null +++ b/Documentation/devicetree/bindings/power/rt9455_charger.txt @@ -0,0 +1,46 @@ +Binding for Richtek rt9455 battery charger + +Required properties: +- compatible: Should contain one of the following: + * "richtek,rt9455" + +- reg: integer, i2c address of the device. +- richtek,output-charge-current: integer, output current in uA, from the + charger to the battery. +- richtek,end-of-charge-percentage: integer, percent of the output charge current. + When the current in constant-voltage phase drops + below output_charge_current x end-of-charge-percentage, + charge is terminated. +- richtek,battery-regulation-voltage: integer, maximum battery voltage in uV. +- richtek,boost-output-voltage: integer, maximum voltage in uV, provided to consumer + devices, when the charger is in boost mode. + +Optional properties: +- richtek,min-input-voltage-regulation: integer, input voltage threshold in uA, used to + determine when to decrease voltage level when + the over current of the input power source occurs. + This prevents input voltage drop due to insufficient + current provided by the power source. +- richtek,avg-input-current-regulation: integer, input current in uA, the charger should + drain from the power source. + +Example: + +rt9455@22 { + compatible = "richtek,rt9455"; + reg = <0x22>; + + interrupt-parent = <&gpio1>; + interrupts = <0 1>; + + interrupt-gpio = <&gpio1 0 1>; + reset-gpio = <&gpio1 1 1>; + + richtek,output-charge-current = <500000>; + richtek,end-of-charge-percentage = <10>; + richtek,battery-regulation-voltage = <4200000>; + richtek,boost-output-voltage = <5050000>; + + richtek,min-input-voltage-regulation = <4500000>; + richtek,avg-input-current-regulation = <500000>; +}; -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: Anda-Maria Nicolae <anda-maria.nicolae-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> To: sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, dbaryshkov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: [PATCH 2/3] Documentation: devicetree: Add Richtek RT9455 bindings Date: Mon, 25 May 2015 13:22:22 +0300 [thread overview] Message-ID: <1432549343-5756-3-git-send-email-anda-maria.nicolae@intel.com> (raw) In-Reply-To: <1432549343-5756-1-git-send-email-anda-maria.nicolae-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Signed-off-by: Anda-Maria Nicolae <anda-maria.nicolae-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> --- .../devicetree/bindings/power/rt9455_charger.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/rt9455_charger.txt diff --git a/Documentation/devicetree/bindings/power/rt9455_charger.txt b/Documentation/devicetree/bindings/power/rt9455_charger.txt new file mode 100644 index 0000000..bb46842 --- /dev/null +++ b/Documentation/devicetree/bindings/power/rt9455_charger.txt @@ -0,0 +1,46 @@ +Binding for Richtek rt9455 battery charger + +Required properties: +- compatible: Should contain one of the following: + * "richtek,rt9455" + +- reg: integer, i2c address of the device. +- richtek,output-charge-current: integer, output current in uA, from the + charger to the battery. +- richtek,end-of-charge-percentage: integer, percent of the output charge current. + When the current in constant-voltage phase drops + below output_charge_current x end-of-charge-percentage, + charge is terminated. +- richtek,battery-regulation-voltage: integer, maximum battery voltage in uV. +- richtek,boost-output-voltage: integer, maximum voltage in uV, provided to consumer + devices, when the charger is in boost mode. + +Optional properties: +- richtek,min-input-voltage-regulation: integer, input voltage threshold in uA, used to + determine when to decrease voltage level when + the over current of the input power source occurs. + This prevents input voltage drop due to insufficient + current provided by the power source. +- richtek,avg-input-current-regulation: integer, input current in uA, the charger should + drain from the power source. + +Example: + +rt9455@22 { + compatible = "richtek,rt9455"; + reg = <0x22>; + + interrupt-parent = <&gpio1>; + interrupts = <0 1>; + + interrupt-gpio = <&gpio1 0 1>; + reset-gpio = <&gpio1 1 1>; + + richtek,output-charge-current = <500000>; + richtek,end-of-charge-percentage = <10>; + richtek,battery-regulation-voltage = <4200000>; + richtek,boost-output-voltage = <5050000>; + + richtek,min-input-voltage-regulation = <4500000>; + richtek,avg-input-current-regulation = <500000>; +}; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-05-25 10:19 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-25 10:22 [PATCH 0/3] Add support for Richtek RT9455 battery charger Anda-Maria Nicolae 2015-05-25 10:22 ` Anda-Maria Nicolae 2015-05-25 10:22 ` [PATCH 1/3] of: Add vendor prefix for Richtek Technology Corporation Anda-Maria Nicolae 2015-05-25 10:22 ` Anda-Maria Nicolae [this message] 2015-05-25 10:22 ` [PATCH 2/3] Documentation: devicetree: Add Richtek RT9455 bindings Anda-Maria Nicolae 2015-05-25 10:22 ` [PATCH 3/3] power_supply: Add support for Richtek RT9455 battery charger Anda-Maria Nicolae 2015-05-29 2:42 ` [PATCH 0/3] " Sebastian Reichel 2015-05-29 2:42 ` Sebastian Reichel 2015-05-29 14:25 [PATCH v7 " Anda-Maria Nicolae 2015-05-29 14:25 ` [PATCH 2/3] Documentation: devicetree: Add Richtek RT9455 bindings Anda-Maria Nicolae 2015-05-29 14:25 ` Anda-Maria Nicolae
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1432549343-5756-3-git-send-email-anda-maria.nicolae@intel.com \ --to=anda-maria.nicolae@intel.com \ --cc=dbaryshkov@gmail.com \ --cc=devicetree@vger.kernel.org \ --cc=dwmw2@infradead.org \ --cc=galak@codeaurora.org \ --cc=ijc+devicetree@hellion.org.uk \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=pawel.moll@arm.com \ --cc=robh+dt@kernel.org \ --cc=sre@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.