Skip to contentSkip to conversation

ARM: OMAP4+: Add a timer attribute for timers that can interrupt IPU

PATCH In review Suman Anna 2 participants 5 messages Apr 17, 2013 – Apr 18, 2013

Subsystems (5)
lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 2/2 ARM: OMAP4+: Add a timer attribute for timers that can interrupt IPU

Some instances of the DMTIMER peripheral on OMAP4+ devices have the ability to interrupt the on-chip image processor unit (IPU) subsystem (a common name for the dual Cortex-M3 subsystem on OMAP4 or the dual Cortex-M4 subsystem on OMAP5) in addition to the ARM CPU. Add a DMTIMER attribute to indicate which timers can interrupt the IPU.

This patch is similar to the patch, 5c3e4ec (ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP) that adds a similar capability for DSP.

DMTIMERs that have the ability to interrupt the IPU on OMAP devices are as follows:
OMAP1/2/3 devices : not applicable
OMAP4/5 devices : DMTIMERs 3,4,9 & 11

---
 Documentation/devicetree/bindings/arm/omap/timer.txt |  3 +++
 arch/arm/boot/dts/omap4.dtsi                         |  4 ++++
 arch/arm/boot/dts/omap5.dtsi                         |  4 ++++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c           | 16 ++++++++++++++--
 arch/arm/plat-omap/dmtimer.c                         |  2 ++
 arch/arm/plat-omap/include/plat/dmtimer.h            |  1 +
 6 files changed, 28 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/omap/timer.txt +3 -0
index 8732d4d..edaf664 100644
@@ -15,6 +15,9 @@ Optional properties:
 - ti,timer-alwon:	Indicates the timer is in an alway-on power domain.
 - ti,timer-dsp:		Indicates the timer can interrupt the on-chip DSP in
 			addition to the ARM CPU.
+- ti,timer-ipu:		Indicates the timer can interrupt the on-chip IPU (the
+			dual Cortex-M3/Cortex-M4 subsystem on OMAP4/OMAP5) in
+			addition to the ARM CPU.
 - ti,timer-pwm: 	Indicates the timer can generate a PWM output.
 - ti,timer-secure: 	Indicates the timer is reserved on a secure OMAP device
 			and therefore cannot be used by the kernel.
arch/arm/boot/dts/omap4.dtsi +4 -0
index 739bb79..55c633a 100644
@@ -460,6 +460,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -467,6 +468,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -511,6 +513,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -527,6 +530,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 	};
arch/arm/boot/dts/omap5.dtsi +4 -0
index 0d155f5..c9ecdbe 100644
@@ -406,6 +406,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -413,6 +414,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -459,6 +461,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -475,6 +478,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +14 -2
index 9e05765..f57796b 100644
@@ -3150,6 +3150,16 @@ static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
 	.timer_capability       = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
 };
 
+/* timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ,
+};
+
+/* pwm timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_pwm_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ | OMAP_TIMER_HAS_PWM,
+};
+
 /* timer1 */
 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
 	{ .irq = 37 + OMAP44XX_IRQ_GIC_START },
@@ -3214,6 +3224,7 @@ static struct omap_hwmod omap44xx_timer3_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer4 */
@@ -3235,6 +3246,7 @@ static struct omap_hwmod omap44xx_timer4_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer5 */
@@ -3344,7 +3356,7 @@ static struct omap_hwmod omap44xx_timer9_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /* timer10 */
@@ -3389,7 +3401,7 @@ static struct omap_hwmod omap44xx_timer11_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /*
arch/arm/plat-omap/dmtimer.c +2 -0
index a0daa2f..b97bd6a 100644
@@ -817,6 +817,8 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
 			timer->capability |= OMAP_TIMER_ALWON;
 		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL))
 			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ;
+		if (of_find_property(dev->of_node, "ti,timer-ipu", NULL))
+			timer->capability |= OMAP_TIMER_HAS_IPU_IRQ;
 		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL))
 			timer->capability |= OMAP_TIMER_HAS_PWM;
 		if (of_find_property(dev->of_node, "ti,timer-secure", NULL))
arch/arm/plat-omap/include/plat/dmtimer.h +1 -0
index a3fbc48..4bbc72d 100644
@@ -64,6 +64,7 @@
 #define OMAP_TIMER_HAS_PWM				0x20000000
 #define OMAP_TIMER_NEEDS_RESET				0x10000000
 #define OMAP_TIMER_HAS_DSP_IRQ				0x08000000
+#define OMAP_TIMER_HAS_IPU_IRQ				0x04000000
 
 /*
  * timer errata flags
Signature · 1 line
1.8.2
#1 lore raw
Quoted 30 lines · Suman Anna

Some instances of the DMTIMER peripheral on OMAP4+ devices have the ability to interrupt the on-chip image processor unit (IPU) subsystem (a common name for the dual Cortex-M3 subsystem on OMAP4 or the dual Cortex-M4 subsystem on OMAP5) in addition to the ARM CPU. Add a DMTIMER attribute to indicate which timers can interrupt the IPU.

This patch is similar to the patch, 5c3e4ec (ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP) that adds a similar capability for DSP.

DMTIMERs that have the ability to interrupt the IPU on OMAP devices are as follows:
OMAP1/2/3 devices : not applicable
OMAP4/5 devices : DMTIMERs 3,4,9 & 11

---
 Documentation/devicetree/bindings/arm/omap/timer.txt |  3 +++
 arch/arm/boot/dts/omap4.dtsi                         |  4 ++++
 arch/arm/boot/dts/omap5.dtsi                         |  4 ++++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c           | 16 ++++++++++++++--
 arch/arm/plat-omap/dmtimer.c                         |  2 ++
 arch/arm/plat-omap/include/plat/dmtimer.h            |  1 +
 6 files changed, 28 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
index 8732d4d..edaf664 100644

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 20

Quoted 6 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +3 -0
@@ -15,6 +15,9 @@ Optional properties:
 - ti,timer-alwon:	Indicates the timer is in an alway-on power domain.
 - ti,timer-dsp:		Indicates the timer can interrupt the on-chip DSP in
 			addition to the ARM CPU.
+- ti,timer-ipu:		Indicates the timer can interrupt the on-chip IPU (the
+			dual Cortex-M3/Cortex-M4 subsystem on OMAP4/OMAP5) in
+			addition to the ARM CPU.

I am ok with adding a new property. However, reading the omap5 reference manual I see that the timers can interrupt the dsp, c2c and ipu. Therefore, I am not sure if we should consider making this a property with a value that is a mask of all other devices that can be interrupted. For example, "ti,timer-irqs".

Quoted 148 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
 - ti,timer-pwm: 	Indicates the timer can generate a PWM output.
 - ti,timer-secure: 	Indicates the timer is reserved on a secure OMAP device
 			and therefore cannot be used by the kernel.
arch/arm/boot/dts/omap4.dtsi +4 -0
index 739bb79..55c633a 100644
@@ -460,6 +460,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -467,6 +468,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -511,6 +513,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -527,6 +530,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 	};
arch/arm/boot/dts/omap5.dtsi +4 -0
index 0d155f5..c9ecdbe 100644
@@ -406,6 +406,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -413,6 +414,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -459,6 +461,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -475,6 +478,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +14 -2
index 9e05765..f57796b 100644
@@ -3150,6 +3150,16 @@ static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
 	.timer_capability       = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
 };
 
+/* timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ,
+};
+
+/* pwm timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_pwm_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ | OMAP_TIMER_HAS_PWM,
+};
+
 /* timer1 */
 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
 	{ .irq = 37 + OMAP44XX_IRQ_GIC_START },
@@ -3214,6 +3224,7 @@ static struct omap_hwmod omap44xx_timer3_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer4 */
@@ -3235,6 +3246,7 @@ static struct omap_hwmod omap44xx_timer4_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer5 */
@@ -3344,7 +3356,7 @@ static struct omap_hwmod omap44xx_timer9_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /* timer10 */
@@ -3389,7 +3401,7 @@ static struct omap_hwmod omap44xx_timer11_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /*
arch/arm/plat-omap/dmtimer.c +2 -0
index a0daa2f..b97bd6a 100644
@@ -817,6 +817,8 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
 			timer->capability |= OMAP_TIMER_ALWON;
 		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL))
 			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ;
+		if (of_find_property(dev->of_node, "ti,timer-ipu", NULL))
+			timer->capability |= OMAP_TIMER_HAS_IPU_IRQ;
 		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL))
 			timer->capability |= OMAP_TIMER_HAS_PWM;
 		if (of_find_property(dev->of_node, "ti,timer-secure", NULL))
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
index a3fbc48..4bbc72d 100644

arch/arm/plat-omap/include/plat/dmtimer.h line 70

Quoted 7 lines
arch/arm/plat-omap/include/plat/dmtimer.h +1 -0
@@ -64,6 +64,7 @@
 #define OMAP_TIMER_HAS_PWM				0x20000000
 #define OMAP_TIMER_NEEDS_RESET				0x10000000
 #define OMAP_TIMER_HAS_DSP_IRQ				0x08000000
+#define OMAP_TIMER_HAS_IPU_IRQ				0x04000000
 
 /*
  * timer errata flags

You also need to update arch/arm/mach-omap2/timer.c if you are adding a new property. See [1].

Cheers
Jon

[1]
http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/commit/?h=omap-for-v3.10/timer&id=2eb03937df3ebc822dab413bd69533dcd66afd48

#2 lore raw
Quoted 198 lines · Jon Hunter
Quoted 30 lines · Suman Anna

Some instances of the DMTIMER peripheral on OMAP4+ devices have the ability to interrupt the on-chip image processor unit (IPU) subsystem (a common name for the dual Cortex-M3 subsystem on OMAP4 or the dual Cortex-M4 subsystem on OMAP5) in addition to the ARM CPU. Add a DMTIMER attribute to indicate which timers can interrupt the IPU.

This patch is similar to the patch, 5c3e4ec (ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP) that adds a similar capability for DSP.

DMTIMERs that have the ability to interrupt the IPU on OMAP devices are as follows:
OMAP1/2/3 devices : not applicable
OMAP4/5 devices : DMTIMERs 3,4,9 & 11

---
 Documentation/devicetree/bindings/arm/omap/timer.txt |  3 +++
 arch/arm/boot/dts/omap4.dtsi                         |  4 ++++
 arch/arm/boot/dts/omap5.dtsi                         |  4 ++++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c           | 16 ++++++++++++++--
 arch/arm/plat-omap/dmtimer.c                         |  2 ++
 arch/arm/plat-omap/include/plat/dmtimer.h            |  1 +
 6 files changed, 28 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
index 8732d4d..edaf664 100644

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 20

Quoted 6 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +3 -0
@@ -15,6 +15,9 @@ Optional properties:
 - ti,timer-alwon:	Indicates the timer is in an alway-on power domain.
 - ti,timer-dsp:		Indicates the timer can interrupt the on-chip DSP in
 			addition to the ARM CPU.
+- ti,timer-ipu:		Indicates the timer can interrupt the on-chip IPU (the
+			dual Cortex-M3/Cortex-M4 subsystem on OMAP4/OMAP5) in
+			addition to the ARM CPU.

I am ok with adding a new property. However, reading the omap5 reference manual I see that the timers can interrupt the dsp, c2c and ipu. Therefore, I am not sure if we should consider making this a property with a value that is a mask of all other devices that can be interrupted. For example, "ti,timer-irqs".

Quoted 153 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
 - ti,timer-pwm: 	Indicates the timer can generate a PWM output.
 - ti,timer-secure: 	Indicates the timer is reserved on a secure OMAP device
 			and therefore cannot be used by the kernel.
arch/arm/boot/dts/omap4.dtsi +4 -0
index 739bb79..55c633a 100644
@@ -460,6 +460,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -467,6 +468,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -511,6 +513,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -527,6 +530,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 	};
arch/arm/boot/dts/omap5.dtsi +4 -0
index 0d155f5..c9ecdbe 100644
@@ -406,6 +406,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -413,6 +414,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -459,6 +461,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -475,6 +478,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +14 -2
index 9e05765..f57796b 100644
@@ -3150,6 +3150,16 @@ static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
 	.timer_capability       = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
 };
 
+/* timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ,
+};
+
+/* pwm timers with IPU interrupt dev attribute */
+static struct omap_timer_capability_dev_attr capability_ipu_pwm_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ | OMAP_TIMER_HAS_PWM,
+};
+
 /* timer1 */
 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
 	{ .irq = 37 + OMAP44XX_IRQ_GIC_START },
@@ -3214,6 +3224,7 @@ static struct omap_hwmod omap44xx_timer3_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer4 */
@@ -3235,6 +3246,7 @@ static struct omap_hwmod omap44xx_timer4_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer5 */
@@ -3344,7 +3356,7 @@ static struct omap_hwmod omap44xx_timer9_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /* timer10 */
@@ -3389,7 +3401,7 @@ static struct omap_hwmod omap44xx_timer11_hwmod = {
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /*
arch/arm/plat-omap/dmtimer.c +2 -0
index a0daa2f..b97bd6a 100644
@@ -817,6 +817,8 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
 			timer->capability |= OMAP_TIMER_ALWON;
 		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL))
 			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ;
+		if (of_find_property(dev->of_node, "ti,timer-ipu", NULL))
+			timer->capability |= OMAP_TIMER_HAS_IPU_IRQ;
 		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL))
 			timer->capability |= OMAP_TIMER_HAS_PWM;
 		if (of_find_property(dev->of_node, "ti,timer-secure", NULL))
arch/arm/plat-omap/include/plat/dmtimer.h +1 -0
index a3fbc48..4bbc72d 100644
@@ -64,6 +64,7 @@
 #define OMAP_TIMER_HAS_PWM				0x20000000
 #define OMAP_TIMER_NEEDS_RESET				0x10000000
 #define OMAP_TIMER_HAS_DSP_IRQ				0x08000000
+#define OMAP_TIMER_HAS_IPU_IRQ				0x04000000
 
Quoted 8 lines

arch/arm/plat-omap/include/plat/dmtimer.h line 70

Quoted 2 lines
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
 /*
  * timer errata flags

You also need to update arch/arm/mach-omap2/timer.c if you are adding a new property. See [1].

[1]
http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/commit/?h=omap-for-v3.10/timer&id=2eb03937df3ebc822dab413bd69533dcd66afd48

Thinking about this some more, I should have added a omap_dmtimer_get_properties_dt() that returns the timer properties from device-tree and then there would be a single place for adding new properties. So if we add another property probably a good time to add such a helper function.

Cheers
Jon

#3 lore raw

Jon,

Quoted 39 lines · Jon Hunter
Quoted 17 lines · Suman Anna
Quoted 15 lines

Some instances of the DMTIMER peripheral on OMAP4+ devices have the ability to interrupt the on-chip image processor unit (IPU) subsystem (a common name for the dual Cortex-M3 subsystem on OMAP4 or the dual Cortex-M4 subsystem on OMAP5) in addition to the ARM CPU. Add a DMTIMER attribute to indicate which timers can interrupt the IPU.

This patch is similar to the patch, 5c3e4ec (ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP) that adds a similar capability for DSP.

DMTIMERs that have the ability to interrupt the IPU on OMAP devices are as follows:
OMAP1/2/3 devices : not applicable
OMAP4/5 devices : DMTIMERs 3,4,9 & 11

Quoted 6 lines
Quoted 6 lines
---
 Documentation/devicetree/bindings/arm/omap/timer.txt |  3 +++
 arch/arm/boot/dts/omap4.dtsi                         |  4 ++++
 arch/arm/boot/dts/omap5.dtsi                         |  4 ++++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c           | 16

++++++++++++++--

Quoted 4 lines
Quoted 4 lines
 arch/arm/plat-omap/dmtimer.c                         |  2 ++
 arch/arm/plat-omap/include/plat/dmtimer.h            |  1 +
 6 files changed, 28 insertions(+), 2 deletions(-)
Quoted 8 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 16

Quoted 8 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
index 8732d4d..edaf664 100644
@@ -15,6 +15,9 @@ Optional properties:
 - ti,timer-alwon:	Indicates the timer is in an alway-on power domain.
 - ti,timer-dsp:		Indicates the timer can interrupt the on-chip DSP

in

Quoted 12 lines
Quoted 2 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 18

Quoted 2 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
 			addition to the ARM CPU.
+- ti,timer-ipu:		Indicates the timer can interrupt the on-chip IPU

(the

Quoted 1 line

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 19

Quoted 1 line
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
+			dual Cortex-M3/Cortex-M4 subsystem on

OMAP4/OMAP5) in

Quoted 7 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 20

Quoted 1 line
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
+			addition to the ARM CPU.

I am ok with adding a new property. However, reading the omap5 reference manual I see that the timers can interrupt the dsp, c2c and ipu. Therefore, I am not sure if we should consider making this a property with a value that is a mask of all other devices that can be interrupted. For example, "ti,timer-irqs".

Do you intend for this to be only a DT entry simplification, but re-use the capability element in struct omap_dm_timer when parsing it and storing it? That might be ok since the capability property is already a bit-mask. If the intention is to add another element/property, then I feel it may not add that much value.

Quoted 169 lines
Quoted 76 lines
Quoted 76 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
 - ti,timer-pwm: 	Indicates the timer can generate a PWM output.
 - ti,timer-secure: 	Indicates the timer is reserved on a secure OMAP device
 			and therefore cannot be used by the kernel.
(quoted diff) +0 -0

b/arch/arm/boot/dts/omap4.dtsi index 739bb79..55c633a 100644

arch/arm/boot/dts/omap4.dtsi +4 -0
@@ -460,6 +460,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -467,6 +468,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -511,6 +513,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -527,6 +530,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 	};
(quoted diff) +0 -0

b/arch/arm/boot/dts/omap5.dtsi index 0d155f5..c9ecdbe 100644

arch/arm/boot/dts/omap5.dtsi +4 -0
@@ -406,6 +406,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -413,6 +414,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -459,6 +461,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -475,6 +478,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
Quoted 6 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr

Quoted 6 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
index 9e05765..f57796b 100644
@@ -3150,6 +3150,16 @@ static struct omap_timer_capability_dev_attr

capability_dsp_pwm_dev_attr = {

Quoted 1 line

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr · line 3150

Quoted 1 line
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
 	.timer_capability       = OMAP_TIMER_HAS_DSP_IRQ |

OMAP_TIMER_HAS_PWM,

Quoted 10 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {

Quoted 10 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +8 -0
 };
 
+/* timers with IPU interrupt dev attribute */ static struct
+omap_timer_capability_dev_attr capability_ipu_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ,
+};
+
+/* pwm timers with IPU interrupt dev attribute */ static struct
+omap_timer_capability_dev_attr capability_ipu_pwm_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ |

OMAP_TIMER_HAS_PWM,

Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +2 -0
+};
+
 /* timer1 */
 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
 	{ .irq = 37 + OMAP44XX_IRQ_GIC_START }, @@ -3214,6 +3224,7 @@

static struct omap_hwmod omap44xx_timer3_hwmod = {

arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -0
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
Quoted 2 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 2 lines

/* timer4 */

arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
@@ -3235,6 +3246,7 @@ static struct omap_hwmod

omap44xx_timer4_hwmod = {

Quoted 8 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 8 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -0
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer5 */
@@ -3344,7 +3356,7 @@ static struct omap_hwmod

omap44xx_timer9_hwmod = {

Quoted 9 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 9 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -1
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /* timer10 */
@@ -3389,7 +3401,7 @@ static struct omap_hwmod

omap44xx_timer11_hwmod = {

Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -1
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
Quoted 6 lines

arch/arm/plat-omap/dmtimer.c static int omap_dm_timer_probe(struct

Quoted 6 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
 /*
(quoted diff) +0 -0

b/arch/arm/plat-omap/dmtimer.c index a0daa2f..b97bd6a 100644

arch/arm/plat-omap/dmtimer.c +0 -0
@@ -817,6 +817,8 @@ static int omap_dm_timer_probe(struct

platform_device *pdev)

Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/dmtimer.c +2 -0
 			timer->capability |= OMAP_TIMER_ALWON;
 		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL))
 			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ;
+		if (of_find_property(dev->of_node, "ti,timer-ipu", NULL))
+			timer->capability |= OMAP_TIMER_HAS_IPU_IRQ;
 		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL))
 			timer->capability |= OMAP_TIMER_HAS_PWM;
 		if (of_find_property(dev->of_node, "ti,timer-secure", NULL)) diff
Quoted 8 lines

arch/arm/plat-omap/include/plat/dmtimer.h line 65

Quoted 8 lines

--git a/arch/arm/plat-omap/include/plat/dmtimer.h
b/arch/arm/plat-omap/include/plat/dmtimer.h
index a3fbc48..4bbc72d 100644

arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
@@ -64,6 +64,7 @@
 #define OMAP_TIMER_HAS_PWM				0x20000000
 #define OMAP_TIMER_NEEDS_RESET
	0x10000000
Quoted 1 line

arch/arm/plat-omap/include/plat/dmtimer.h line 66

Quoted 1 line
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
 #define OMAP_TIMER_HAS_DSP_IRQ
	0x08000000
Quoted 1 line

arch/arm/plat-omap/include/plat/dmtimer.h line 67

Quoted 1 line
arch/arm/plat-omap/include/plat/dmtimer.h +1 -0
+#define OMAP_TIMER_HAS_IPU_IRQ
	0x04000000
Quoted 4 lines
Quoted 3 lines
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
 /*
  * timer errata flags
Quoted 7 lines
Quoted 6 lines

You also need to update arch/arm/mach-omap2/timer.c if you are adding a new property. See [1].

[1]
http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/comm
it/?h=omap-for-

v3.10/timer&id=2eb03937df3ebc822dab413bd69533dcd66afd48

Thanks, I will rebase the patch on the omap-for-v3.10/timer branch instead of the omap-for-v3.10/dt branch, on which I have created this patch.

Regards
Suman

Quoted 8 lines

Thinking about this some more, I should have added a omap_dmtimer_get_properties_dt() that returns the timer properties from device-tree and then there would be a single place for adding new properties. So if we add another property probably a good time to add such a helper function.

Cheers
Jon

#4 lore raw
Quoted 54 lines · Suman

Jon,

Quoted 39 lines · Jon Hunter
Quoted 17 lines · Suman Anna
Quoted 15 lines

Some instances of the DMTIMER peripheral on OMAP4+ devices have the ability to interrupt the on-chip image processor unit (IPU) subsystem (a common name for the dual Cortex-M3 subsystem on OMAP4 or the dual Cortex-M4 subsystem on OMAP5) in addition to the ARM CPU. Add a DMTIMER attribute to indicate which timers can interrupt the IPU.

This patch is similar to the patch, 5c3e4ec (ARM: OMAP: Add a timer attribute for timers that can interrupt the DSP) that adds a similar capability for DSP.

DMTIMERs that have the ability to interrupt the IPU on OMAP devices are as follows:
OMAP1/2/3 devices : not applicable
OMAP4/5 devices : DMTIMERs 3,4,9 & 11

Quoted 6 lines
Quoted 6 lines
---
 Documentation/devicetree/bindings/arm/omap/timer.txt |  3 +++
 arch/arm/boot/dts/omap4.dtsi                         |  4 ++++
 arch/arm/boot/dts/omap5.dtsi                         |  4 ++++
 arch/arm/mach-omap2/omap_hwmod_44xx_data.c           | 16

++++++++++++++--

Quoted 4 lines
Quoted 4 lines
 arch/arm/plat-omap/dmtimer.c                         |  2 ++
 arch/arm/plat-omap/include/plat/dmtimer.h            |  1 +
 6 files changed, 28 insertions(+), 2 deletions(-)
Quoted 8 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 16

Quoted 8 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
index 8732d4d..edaf664 100644
@@ -15,6 +15,9 @@ Optional properties:
 - ti,timer-alwon:	Indicates the timer is in an alway-on power domain.
 - ti,timer-dsp:		Indicates the timer can interrupt the on-chip DSP

in

Quoted 12 lines
Quoted 2 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 18

Quoted 2 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
 			addition to the ARM CPU.
+- ti,timer-ipu:		Indicates the timer can interrupt the on-chip IPU

(the

Quoted 1 line

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 19

Quoted 1 line
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
+			dual Cortex-M3/Cortex-M4 subsystem on

OMAP4/OMAP5) in

Quoted 7 lines

Documentation/devicetree/bindings/arm/omap/timer.txt Optional properties: · line 20

Quoted 1 line
Documentation/devicetree/bindings/arm/omap/timer.txt +1 -0
+			addition to the ARM CPU.

I am ok with adding a new property. However, reading the omap5 reference manual I see that the timers can interrupt the dsp, c2c and ipu. Therefore, I am not sure if we should consider making this a property with a value that is a mask of all other devices that can be interrupted. For example, "ti,timer-irqs".

Quoted 1 line

Do you intend for this to be only a DT entry simplification, but re-use the capability element in struct omap_dm_timer when parsing it and storing it? That might be ok since the capability property is already a bit-mask. If the intention is to add another element/property, then I feel it may not add that much value.

Yes DT only simplifcation.

Quoted 172 lines
Quoted 172 lines
Quoted 76 lines
Quoted 76 lines
Documentation/devicetree/bindings/arm/omap/timer.txt +0 -0
 - ti,timer-pwm: 	Indicates the timer can generate a PWM output.
 - ti,timer-secure: 	Indicates the timer is reserved on a secure OMAP device
 			and therefore cannot be used by the kernel.
(quoted diff) +0 -0

b/arch/arm/boot/dts/omap4.dtsi index 739bb79..55c633a 100644

arch/arm/boot/dts/omap4.dtsi +4 -0
@@ -460,6 +460,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -467,6 +468,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -511,6 +513,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -527,6 +530,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 	};
(quoted diff) +0 -0

b/arch/arm/boot/dts/omap5.dtsi index 0d155f5..c9ecdbe 100644

arch/arm/boot/dts/omap5.dtsi +4 -0
@@ -406,6 +406,7 @@
 			reg = <0x48034000 0x80>;
 			interrupts = <0 39 0x4>;
 			ti,hwmods = "timer3";
+			ti,timer-ipu;
 		};
 
 		timer4: timer@48036000 {
@@ -413,6 +414,7 @@
 			reg = <0x48036000 0x80>;
 			interrupts = <0 40 0x4>;
 			ti,hwmods = "timer4";
+			ti,timer-ipu;
 		};
 
 		timer5: timer@40138000 {
@@ -459,6 +461,7 @@
 			reg = <0x4803e000 0x80>;
 			interrupts = <0 45 0x4>;
 			ti,hwmods = "timer9";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
@@ -475,6 +478,7 @@
 			reg = <0x48088000 0x80>;
 			interrupts = <0 47 0x4>;
 			ti,hwmods = "timer11";
+			ti,timer-ipu;
 			ti,timer-pwm;
 		};
 
Quoted 6 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr

Quoted 6 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
index 9e05765..f57796b 100644
@@ -3150,6 +3150,16 @@ static struct omap_timer_capability_dev_attr

capability_dsp_pwm_dev_attr = {

Quoted 1 line

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr · line 3150

Quoted 1 line
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
 	.timer_capability       = OMAP_TIMER_HAS_DSP_IRQ |

OMAP_TIMER_HAS_PWM,

Quoted 10 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {

Quoted 10 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +8 -0
 };
 
+/* timers with IPU interrupt dev attribute */ static struct
+omap_timer_capability_dev_attr capability_ipu_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ,
+};
+
+/* pwm timers with IPU interrupt dev attribute */ static struct
+omap_timer_capability_dev_attr capability_ipu_pwm_dev_attr = {
+	.timer_capability       = OMAP_TIMER_HAS_IPU_IRQ |

OMAP_TIMER_HAS_PWM,

Quoted 12 lines
Quoted 12 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +2 -0
+};
+
 /* timer1 */
 static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
 	{ .irq = 37 + OMAP44XX_IRQ_GIC_START }, @@ -3214,6 +3224,7 @@

static struct omap_hwmod omap44xx_timer3_hwmod = {

arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -0
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
Quoted 2 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 2 lines

/* timer4 */

arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
@@ -3235,6 +3246,7 @@ static struct omap_hwmod

omap44xx_timer4_hwmod = {

Quoted 8 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 8 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -0
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
+	.dev_attr	= &capability_ipu_dev_attr,
 };
 
 /* timer5 */
@@ -3344,7 +3356,7 @@ static struct omap_hwmod

omap44xx_timer9_hwmod = {

Quoted 9 lines

arch/arm/mach-omap2/omap_hwmod_44xx_data.c static struct omap_hwmod

Quoted 9 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -1
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
 /* timer10 */
@@ -3389,7 +3401,7 @@ static struct omap_hwmod

omap44xx_timer11_hwmod = {

Quoted 7 lines
Quoted 7 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +1 -1
 			.modulemode   = MODULEMODE_SWCTRL,
 		},
 	},
-	.dev_attr	= &capability_pwm_dev_attr,
+	.dev_attr	= &capability_ipu_pwm_dev_attr,
 };
 
Quoted 6 lines

arch/arm/plat-omap/dmtimer.c static int omap_dm_timer_probe(struct

Quoted 6 lines
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -0
 /*
(quoted diff) +0 -0

b/arch/arm/plat-omap/dmtimer.c index a0daa2f..b97bd6a 100644

arch/arm/plat-omap/dmtimer.c +0 -0
@@ -817,6 +817,8 @@ static int omap_dm_timer_probe(struct

platform_device *pdev)

Quoted 8 lines
Quoted 8 lines
arch/arm/plat-omap/dmtimer.c +2 -0
 			timer->capability |= OMAP_TIMER_ALWON;
 		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL))
 			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ;
+		if (of_find_property(dev->of_node, "ti,timer-ipu", NULL))
+			timer->capability |= OMAP_TIMER_HAS_IPU_IRQ;
 		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL))
 			timer->capability |= OMAP_TIMER_HAS_PWM;
 		if (of_find_property(dev->of_node, "ti,timer-secure", NULL)) diff
Quoted 8 lines

arch/arm/plat-omap/include/plat/dmtimer.h line 65

Quoted 8 lines

--git a/arch/arm/plat-omap/include/plat/dmtimer.h
b/arch/arm/plat-omap/include/plat/dmtimer.h
index a3fbc48..4bbc72d 100644

arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
@@ -64,6 +64,7 @@
 #define OMAP_TIMER_HAS_PWM				0x20000000
 #define OMAP_TIMER_NEEDS_RESET
	0x10000000
Quoted 1 line

arch/arm/plat-omap/include/plat/dmtimer.h line 66

Quoted 1 line
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
 #define OMAP_TIMER_HAS_DSP_IRQ
	0x08000000
Quoted 1 line

arch/arm/plat-omap/include/plat/dmtimer.h line 67

Quoted 1 line
arch/arm/plat-omap/include/plat/dmtimer.h +1 -0
+#define OMAP_TIMER_HAS_IPU_IRQ
	0x04000000
Quoted 7 lines

arch/arm/plat-omap/include/plat/dmtimer.h line 70

Quoted 3 lines
arch/arm/plat-omap/include/plat/dmtimer.h +0 -0
 /*
  * timer errata flags

You also need to update arch/arm/mach-omap2/timer.c if you are adding a new property. See [1].

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines

[1]
http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/comm
it/?h=omap-for-

v3.10/timer&id=2eb03937df3ebc822dab413bd69533dcd66afd48

Thanks, I will rebase the patch on the omap-for-v3.10/timer branch instead of the omap-for-v3.10/dt branch, on which I have created this patch.

Thanks!
Jon