summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilo Kim <woogyom.kim@gmail.com>2016-10-28 14:37:00 +0200
committerTony Lindgren <tony@atomide.com>2016-11-09 22:32:12 +0100
commit1934e89a769b9da761f38e1c7b5e46ffa468f4c2 (patch)
treed5eb9c41ba0cdaa4c09fa7e6f4dfb3c812c4b7f4
parentdt-bindings: mfd: Provide human readable defines for TPS65217 interrupts (diff)
downloadlinux-1934e89a769b9da761f38e1c7b5e46ffa468f4c2.tar.xz
linux-1934e89a769b9da761f38e1c7b5e46ffa468f4c2.zip
ARM: dts: am335x: Add the charger interrupt
This enables the charger driver gets corresponding IRQ number by using platform_get_irq_byname() helper. Signed-off-by: Milo Kim <woogyom.kim@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/am335x-bone-common.dtsi8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi
index 25303d98b1b6..cec9d91dc296 100644
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi
@@ -6,6 +6,8 @@
* published by the Free Software Foundation.
*/
+#include <dt-bindings/mfd/tps65217.h>
+
/ {
cpus {
cpu@0 {
@@ -316,6 +318,12 @@
ti,pmic-shutdown-controller;
+ charger {
+ interrupts = <TPS65217_IRQ_AC>, <TPS65217_IRQ_USB>;
+ interrupts-names = "AC", "USB";
+ status = "okay";
+ };
+
regulators {
dcdc1_reg: regulator@0 {
regulator-name = "vdds_dpr";