* [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 8:37 [PATCH v2 0/4] ARM: dts: Update OMAP5 with address space and interrupts Sebastien Guiriec
@ 2012-10-23 8:37 ` Sebastien Guiriec
2012-10-23 14:49 ` Jon Hunter
2012-10-23 8:37 ` [PATCH v2 2/4] ARM: dts: omap5: Update I2C " Sebastien Guiriec
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Sebastien Guiriec @ 2012-10-23 8:37 UTC (permalink / raw)
To: Sebastien Guiriec, Tony Lindgren, Benoit Cousson
Cc: devicetree-discuss, linux-omap, Santosh Shilimkar, linux-kernel,
linux-arm-kernel
Add base address and interrupt line inside Device Tree data for
OMAP5
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
---
arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 42c78be..9e39f9f 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -104,6 +104,8 @@
gpio1: gpio@4ae10000 {
compatible = "ti,omap4-gpio";
+ reg = <0x4ae10000 0x200>;
+ interrupts = <0 29 0x4>;
ti,hwmods = "gpio1";
gpio-controller;
#gpio-cells = <2>;
@@ -113,6 +115,8 @@
gpio2: gpio@48055000 {
compatible = "ti,omap4-gpio";
+ reg = <0x48055000 0x200>;
+ interrupts = <0 30 0x4>;
ti,hwmods = "gpio2";
gpio-controller;
#gpio-cells = <2>;
@@ -122,6 +126,8 @@
gpio3: gpio@48057000 {
compatible = "ti,omap4-gpio";
+ reg = <0x48057000 0x200>;
+ interrupts = <0 31 0x4>;
ti,hwmods = "gpio3";
gpio-controller;
#gpio-cells = <2>;
@@ -131,6 +137,8 @@
gpio4: gpio@48059000 {
compatible = "ti,omap4-gpio";
+ reg = <0x48059000 0x200>;
+ interrupts = <0 32 0x4>;
ti,hwmods = "gpio4";
gpio-controller;
#gpio-cells = <2>;
@@ -140,6 +148,8 @@
gpio5: gpio@4805b000 {
compatible = "ti,omap4-gpio";
+ reg = <0x4805b000 0x200>;
+ interrupts = <0 33 0x4>;
ti,hwmods = "gpio5";
gpio-controller;
#gpio-cells = <2>;
@@ -149,6 +159,8 @@
gpio6: gpio@4805d000 {
compatible = "ti,omap4-gpio";
+ reg = <0x4805d000 0x200>;
+ interrupts = <0 34 0x4>;
ti,hwmods = "gpio6";
gpio-controller;
#gpio-cells = <2>;
@@ -158,6 +170,8 @@
gpio7: gpio@48051000 {
compatible = "ti,omap4-gpio";
+ reg = <0x48051000 0x200>;
+ interrupts = <0 35 0x4>;
ti,hwmods = "gpio7";
gpio-controller;
#gpio-cells = <2>;
@@ -167,6 +181,8 @@
gpio8: gpio@48053000 {
compatible = "ti,omap4-gpio";
+ reg = <0x48053000 0x200>;
+ interrupts = <0 121 0x4>;
ti,hwmods = "gpio8";
gpio-controller;
#gpio-cells = <2>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 8:37 ` [PATCH v2 1/4] ARM: dts: omap5: Update GPIO " Sebastien Guiriec
@ 2012-10-23 14:49 ` Jon Hunter
2012-10-23 15:09 ` Benoit Cousson
2012-10-23 16:55 ` Mitch Bradley
0 siblings, 2 replies; 14+ messages in thread
From: Jon Hunter @ 2012-10-23 14:49 UTC (permalink / raw)
To: Sebastien Guiriec
Cc: Tony Lindgren, Benoit Cousson, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
Hi Seb,
On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
> Add base address and interrupt line inside Device Tree data for
> OMAP5
>
> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
> ---
> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
> index 42c78be..9e39f9f 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -104,6 +104,8 @@
>
> gpio1: gpio@4ae10000 {
> compatible = "ti,omap4-gpio";
> + reg = <0x4ae10000 0x200>;
> + interrupts = <0 29 0x4>;
> ti,hwmods = "gpio1";
> gpio-controller;
> #gpio-cells = <2>;
I am wondering if we should add the "interrupt-parent" property to add
nodes in the device-tree source. I know that today the interrupt-parent
is being defined globally, but when device-tree maps an interrupt for a
device it searches for the interrupt-parent starting the current device
node.
So in other words, for gpio1 it will search the gpio1 binding for
"interrupt-parent" and if not found move up a level and search again. It
will keep doing this until it finds the "interrupt-parent".
Therefore, I believe it will improve search time and hence, boot time if
we have interrupt-parent defined in each node.
Cheers
Jon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 14:49 ` Jon Hunter
@ 2012-10-23 15:09 ` Benoit Cousson
2012-10-23 15:59 ` Jon Hunter
2012-10-23 16:55 ` Mitch Bradley
1 sibling, 1 reply; 14+ messages in thread
From: Benoit Cousson @ 2012-10-23 15:09 UTC (permalink / raw)
To: Jon Hunter
Cc: Sebastien Guiriec, Tony Lindgren, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
On 10/23/2012 04:49 PM, Jon Hunter wrote:
> Hi Seb,
>
> On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
>> Add base address and interrupt line inside Device Tree data for
>> OMAP5
>>
>> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
>> ---
>> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
>> 1 file changed, 16 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
>> index 42c78be..9e39f9f 100644
>> --- a/arch/arm/boot/dts/omap5.dtsi
>> +++ b/arch/arm/boot/dts/omap5.dtsi
>> @@ -104,6 +104,8 @@
>>
>> gpio1: gpio@4ae10000 {
>> compatible = "ti,omap4-gpio";
>> + reg = <0x4ae10000 0x200>;
>> + interrupts = <0 29 0x4>;
>> ti,hwmods = "gpio1";
>> gpio-controller;
>> #gpio-cells = <2>;
>
> I am wondering if we should add the "interrupt-parent" property to add
> nodes in the device-tree source. I know that today the interrupt-parent
> is being defined globally, but when device-tree maps an interrupt for a
> device it searches for the interrupt-parent starting the current device
> node.
>
> So in other words, for gpio1 it will search the gpio1 binding for
> "interrupt-parent" and if not found move up a level and search again. It
> will keep doing this until it finds the "interrupt-parent".
>
> Therefore, I believe it will improve search time and hence, boot time if
> we have interrupt-parent defined in each node.
Mmm, I'm not that sure. it will increase the size of the blob, so
increase the time to load it and then to parse it. Where in the current
case, it is just going up to the parent node using the already
un-flatten tree in memory and thus that should not take that much time.
That being said, it might be interesting to benchmark that to see what
is the real impact.
Regards,
Benoit
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 15:09 ` Benoit Cousson
@ 2012-10-23 15:59 ` Jon Hunter
2012-10-23 16:07 ` Benoit Cousson
0 siblings, 1 reply; 14+ messages in thread
From: Jon Hunter @ 2012-10-23 15:59 UTC (permalink / raw)
To: Benoit Cousson
Cc: Sebastien Guiriec, Tony Lindgren, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
On 10/23/2012 10:09 AM, Benoit Cousson wrote:
> On 10/23/2012 04:49 PM, Jon Hunter wrote:
>> Hi Seb,
>>
>> On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
>>> Add base address and interrupt line inside Device Tree data for
>>> OMAP5
>>>
>>> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
>>> ---
>>> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
>>> 1 file changed, 16 insertions(+)
>>>
>>> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
>>> index 42c78be..9e39f9f 100644
>>> --- a/arch/arm/boot/dts/omap5.dtsi
>>> +++ b/arch/arm/boot/dts/omap5.dtsi
>>> @@ -104,6 +104,8 @@
>>>
>>> gpio1: gpio@4ae10000 {
>>> compatible = "ti,omap4-gpio";
>>> + reg = <0x4ae10000 0x200>;
>>> + interrupts = <0 29 0x4>;
>>> ti,hwmods = "gpio1";
>>> gpio-controller;
>>> #gpio-cells = <2>;
>>
>> I am wondering if we should add the "interrupt-parent" property to add
>> nodes in the device-tree source. I know that today the interrupt-parent
>> is being defined globally, but when device-tree maps an interrupt for a
>> device it searches for the interrupt-parent starting the current device
>> node.
>>
>> So in other words, for gpio1 it will search the gpio1 binding for
>> "interrupt-parent" and if not found move up a level and search again. It
>> will keep doing this until it finds the "interrupt-parent".
>>
>> Therefore, I believe it will improve search time and hence, boot time if
>> we have interrupt-parent defined in each node.
>
> Mmm, I'm not that sure. it will increase the size of the blob, so
> increase the time to load it and then to parse it. Where in the current
> case, it is just going up to the parent node using the already
> un-flatten tree in memory and thus that should not take that much time.
Yes it will definitely increase the size, so that could slow things down.
> That being said, it might be interesting to benchmark that to see what
> is the real impact.
Right, I wonder what the key functions are we need to benchmark to get
an overall feel for what is best? Right now I am seeing some people add
the interrupt-parent for device nodes and others not. Ideally we should
be consistent, but at the same time it is probably something that we can
easily sort out later. So not a big deal either way.
Cheers
Jon
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 15:59 ` Jon Hunter
@ 2012-10-23 16:07 ` Benoit Cousson
2012-10-23 16:15 ` Sebastien Guiriec
0 siblings, 1 reply; 14+ messages in thread
From: Benoit Cousson @ 2012-10-23 16:07 UTC (permalink / raw)
To: Jon Hunter
Cc: Sebastien Guiriec, Tony Lindgren, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
On 10/23/2012 05:59 PM, Jon Hunter wrote:
>
> On 10/23/2012 10:09 AM, Benoit Cousson wrote:
>> On 10/23/2012 04:49 PM, Jon Hunter wrote:
>>> Hi Seb,
>>>
>>> On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
>>>> Add base address and interrupt line inside Device Tree data for
>>>> OMAP5
>>>>
>>>> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
>>>> ---
>>>> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
>>>> 1 file changed, 16 insertions(+)
>>>>
>>>> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
>>>> index 42c78be..9e39f9f 100644
>>>> --- a/arch/arm/boot/dts/omap5.dtsi
>>>> +++ b/arch/arm/boot/dts/omap5.dtsi
>>>> @@ -104,6 +104,8 @@
>>>>
>>>> gpio1: gpio@4ae10000 {
>>>> compatible = "ti,omap4-gpio";
>>>> + reg = <0x4ae10000 0x200>;
>>>> + interrupts = <0 29 0x4>;
>>>> ti,hwmods = "gpio1";
>>>> gpio-controller;
>>>> #gpio-cells = <2>;
>>>
>>> I am wondering if we should add the "interrupt-parent" property to add
>>> nodes in the device-tree source. I know that today the interrupt-parent
>>> is being defined globally, but when device-tree maps an interrupt for a
>>> device it searches for the interrupt-parent starting the current device
>>> node.
>>>
>>> So in other words, for gpio1 it will search the gpio1 binding for
>>> "interrupt-parent" and if not found move up a level and search again. It
>>> will keep doing this until it finds the "interrupt-parent".
>>>
>>> Therefore, I believe it will improve search time and hence, boot time if
>>> we have interrupt-parent defined in each node.
>>
>> Mmm, I'm not that sure. it will increase the size of the blob, so
>> increase the time to load it and then to parse it. Where in the current
>> case, it is just going up to the parent node using the already
>> un-flatten tree in memory and thus that should not take that much time.
>
> Yes it will definitely increase the size, so that could slow things down.
>
>> That being said, it might be interesting to benchmark that to see what
>> is the real impact.
>
> Right, I wonder what the key functions are we need to benchmark to get
> an overall feel for what is best? Right now I am seeing some people add
> the interrupt-parent for device nodes and others not. Ideally we should
> be consistent, but at the same time it is probably something that we can
> easily sort out later. So not a big deal either way.
For consistency, I'd rather not add it at all for the moment.
Later, when we will only support DT boot, people will start complaining
about the boot time increase and then we will start optimizing a little
bit :-)
Regards,
Benoit
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 16:07 ` Benoit Cousson
@ 2012-10-23 16:15 ` Sebastien Guiriec
2012-10-24 7:44 ` Benoit Cousson
0 siblings, 1 reply; 14+ messages in thread
From: Sebastien Guiriec @ 2012-10-23 16:15 UTC (permalink / raw)
To: Benoit Cousson
Cc: Jon Hunter, Tony Lindgren, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
Hi Benoit and John,
On 10/23/2012 06:07 PM, Benoit Cousson wrote:
> On 10/23/2012 05:59 PM, Jon Hunter wrote:
>>
>> On 10/23/2012 10:09 AM, Benoit Cousson wrote:
>>> On 10/23/2012 04:49 PM, Jon Hunter wrote:
>>>> Hi Seb,
>>>>
>>>> On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
>>>>> Add base address and interrupt line inside Device Tree data for
>>>>> OMAP5
>>>>>
>>>>> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
>>>>> ---
>>>>> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
>>>>> 1 file changed, 16 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
>>>>> index 42c78be..9e39f9f 100644
>>>>> --- a/arch/arm/boot/dts/omap5.dtsi
>>>>> +++ b/arch/arm/boot/dts/omap5.dtsi
>>>>> @@ -104,6 +104,8 @@
>>>>>
>>>>> gpio1: gpio@4ae10000 {
>>>>> compatible = "ti,omap4-gpio";
>>>>> + reg = <0x4ae10000 0x200>;
>>>>> + interrupts = <0 29 0x4>;
>>>>> ti,hwmods = "gpio1";
>>>>> gpio-controller;
>>>>> #gpio-cells = <2>;
>>>>
>>>> I am wondering if we should add the "interrupt-parent" property to add
>>>> nodes in the device-tree source. I know that today the interrupt-parent
>>>> is being defined globally, but when device-tree maps an interrupt for a
>>>> device it searches for the interrupt-parent starting the current device
>>>> node.
>>>>
>>>> So in other words, for gpio1 it will search the gpio1 binding for
>>>> "interrupt-parent" and if not found move up a level and search again. It
>>>> will keep doing this until it finds the "interrupt-parent".
>>>>
>>>> Therefore, I believe it will improve search time and hence, boot time if
>>>> we have interrupt-parent defined in each node.
>>>
>>> Mmm, I'm not that sure. it will increase the size of the blob, so
>>> increase the time to load it and then to parse it. Where in the current
>>> case, it is just going up to the parent node using the already
>>> un-flatten tree in memory and thus that should not take that much time.
>>
>> Yes it will definitely increase the size, so that could slow things down.
>>
>>> That being said, it might be interesting to benchmark that to see what
>>> is the real impact.
>>
>> Right, I wonder what the key functions are we need to benchmark to get
>> an overall feel for what is best? Right now I am seeing some people add
>> the interrupt-parent for device nodes and others not. Ideally we should
>> be consistent, but at the same time it is probably something that we can
>> easily sort out later. So not a big deal either way.
>
> For consistency, I'd rather not add it at all for the moment.
> Later, when we will only support DT boot, people will start complaining
> about the boot time increase and then we will start optimizing a little
> bit :-)
I just do it like that to be consistent with what is inside OMAP4 dtsi
for those IPs (GPIO/UART/MMC/I2C). Now after checking Peter already add
the interrupt-parent for all audio IPs (OMAP3/4/5). But here we need
also interrupts name. So here we should try to be consistent.
So I can send back the series for OMAP5 and update the OMAP4 with
interrupts-parent = <&gic>
As of today we are not consistent.
>
> Regards,
> Benoit
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 16:15 ` Sebastien Guiriec
@ 2012-10-24 7:44 ` Benoit Cousson
0 siblings, 0 replies; 14+ messages in thread
From: Benoit Cousson @ 2012-10-24 7:44 UTC (permalink / raw)
To: Sebastien Guiriec
Cc: Jon Hunter, Tony Lindgren, devicetree-discuss, linux-omap,
Santosh Shilimkar, linux-kernel, linux-arm-kernel
On 10/23/2012 06:15 PM, Sebastien Guiriec wrote:
> Hi Benoit and John,
>
> On 10/23/2012 06:07 PM, Benoit Cousson wrote:
>> On 10/23/2012 05:59 PM, Jon Hunter wrote:
>>>
>>> On 10/23/2012 10:09 AM, Benoit Cousson wrote:
>>>> On 10/23/2012 04:49 PM, Jon Hunter wrote:
>>>>> Hi Seb,
>>>>>
>>>>> On 10/23/2012 03:37 AM, Sebastien Guiriec wrote:
>>>>>> Add base address and interrupt line inside Device Tree data for
>>>>>> OMAP5
>>>>>>
>>>>>> Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
>>>>>> ---
>>>>>> arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++++
>>>>>> 1 file changed, 16 insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm/boot/dts/omap5.dtsi
>>>>>> b/arch/arm/boot/dts/omap5.dtsi
>>>>>> index 42c78be..9e39f9f 100644
>>>>>> --- a/arch/arm/boot/dts/omap5.dtsi
>>>>>> +++ b/arch/arm/boot/dts/omap5.dtsi
>>>>>> @@ -104,6 +104,8 @@
>>>>>>
>>>>>> gpio1: gpio@4ae10000 {
>>>>>> compatible = "ti,omap4-gpio";
>>>>>> + reg = <0x4ae10000 0x200>;
>>>>>> + interrupts = <0 29 0x4>;
>>>>>> ti,hwmods = "gpio1";
>>>>>> gpio-controller;
>>>>>> #gpio-cells = <2>;
>>>>>
>>>>> I am wondering if we should add the "interrupt-parent" property to add
>>>>> nodes in the device-tree source. I know that today the
>>>>> interrupt-parent
>>>>> is being defined globally, but when device-tree maps an interrupt
>>>>> for a
>>>>> device it searches for the interrupt-parent starting the current
>>>>> device
>>>>> node.
>>>>>
>>>>> So in other words, for gpio1 it will search the gpio1 binding for
>>>>> "interrupt-parent" and if not found move up a level and search
>>>>> again. It
>>>>> will keep doing this until it finds the "interrupt-parent".
>>>>>
>>>>> Therefore, I believe it will improve search time and hence, boot
>>>>> time if
>>>>> we have interrupt-parent defined in each node.
>>>>
>>>> Mmm, I'm not that sure. it will increase the size of the blob, so
>>>> increase the time to load it and then to parse it. Where in the current
>>>> case, it is just going up to the parent node using the already
>>>> un-flatten tree in memory and thus that should not take that much time.
>>>
>>> Yes it will definitely increase the size, so that could slow things
>>> down.
>>>
>>>> That being said, it might be interesting to benchmark that to see what
>>>> is the real impact.
>>>
>>> Right, I wonder what the key functions are we need to benchmark to get
>>> an overall feel for what is best? Right now I am seeing some people add
>>> the interrupt-parent for device nodes and others not. Ideally we should
>>> be consistent, but at the same time it is probably something that we can
>>> easily sort out later. So not a big deal either way.
>>
>> For consistency, I'd rather not add it at all for the moment.
>> Later, when we will only support DT boot, people will start complaining
>> about the boot time increase and then we will start optimizing a little
>> bit :-)
>
> I just do it like that to be consistent with what is inside OMAP4 dtsi
> for those IPs (GPIO/UART/MMC/I2C). Now after checking Peter already add
> the interrupt-parent for all audio IPs (OMAP3/4/5). But here we need
> also interrupts name. So here we should try to be consistent.
>
> So I can send back the series for OMAP5 and update the OMAP4 with
> interrupts-parent = <&gic>
No, you should not, as explained previously. You'd better remove the one
already in audio IPs for consistency.
Regards,
Benoit
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 1/4] ARM: dts: omap5: Update GPIO with address space and interrupts
2012-10-23 14:49 ` Jon Hunter
2012-10-23 15:09 ` Benoit Cousson
@ 2012-10-23 16:55 ` Mitch Bradley
[not found] ` <5086CC02.6070801-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
1 sibling, 1 reply; 14+ messages in thread
From: Mitch Bradley @ 2012-10-23 16:55 UTC (permalink / raw)
To: Jon Hunter
Cc: Sebastien Guiriec, devicetree-discuss, linux-kernel,
Santosh Shilimkar, linux-omap, linux-arm-kernel
On 10/23/2012 4:49 AM, Jon Hunter wrote:
> Therefore, I believe it will improve search time and hence, boot time if
> we have interrupt-parent defined in each node.
I strongly suspect (based on many years of performance tuning, with
special focus on boot time) that the time difference will be completely
insignificant. The total extra time for walking up the interrupt tree
for every interrupt in a large system is comparable to the time it takes
to send a few characters out a UART. So you can get more improvement
from eliminating a single printk() than from globally adding per-node
interrupt-parent.
Furthermore, the cost of processing all of the interrupt-parent
properties is probably similar to the cost of the avoided tree walks.
CPU cycles are very fast compared to I/O register accesses, say a factor
of 100. Now consider that many modern devices contain embedded
microcontrollers (SD cards, network interface modules, USB hubs and
devices, ...), and those devices usually require various delays measured
in milliseconds, to ensure that the microcontroller is ready for the
next initialization step. Those delays are extremely long compared to
CPU cycles. Obviously, some of that can be overlapped by careful
multithreading, but that isn't free either.
The bottom line is that I'm pretty sure that adding per-node
interrupt-parent would not be worthwhile from the standpoint of speeding
up boot time.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 2/4] ARM: dts: omap5: Update I2C with address space and interrupts
2012-10-23 8:37 [PATCH v2 0/4] ARM: dts: Update OMAP5 with address space and interrupts Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 1/4] ARM: dts: omap5: Update GPIO " Sebastien Guiriec
@ 2012-10-23 8:37 ` Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 3/4] ARM: dts: omap5: Update UART " Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 4/4] ARM: dts: omap5: Update MMC " Sebastien Guiriec
3 siblings, 0 replies; 14+ messages in thread
From: Sebastien Guiriec @ 2012-10-23 8:37 UTC (permalink / raw)
To: Sebastien Guiriec, Tony Lindgren, Benoit Cousson
Cc: linux-omap, linux-arm-kernel, devicetree-discuss, linux-kernel,
Santosh Shilimkar
Add base address and interrupt line inside Device Tree data for
OMAP5
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
arch/arm/boot/dts/omap5.dtsi | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 9e39f9f..6c22e1b 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -192,6 +192,8 @@
i2c1: i2c@48070000 {
compatible = "ti,omap4-i2c";
+ reg = <0x48070000 0x100>;
+ interrupts = <0 56 0x4>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "i2c1";
@@ -199,6 +201,8 @@
i2c2: i2c@48072000 {
compatible = "ti,omap4-i2c";
+ reg = <0x48072000 0x100>;
+ interrupts = <0 57 0x4>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "i2c2";
@@ -206,20 +210,26 @@
i2c3: i2c@48060000 {
compatible = "ti,omap4-i2c";
+ reg = <0x48060000 0x100>;
+ interrupts = <0 61 0x4>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "i2c3";
};
- i2c4: i2c@4807A000 {
+ i2c4: i2c@4807a000 {
compatible = "ti,omap4-i2c";
+ reg = <0x4807a000 0x100>;
+ interrupts = <0 62 0x4>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "i2c4";
};
- i2c5: i2c@4807C000 {
+ i2c5: i2c@4807c000 {
compatible = "ti,omap4-i2c";
+ reg = <0x4807c000 0x100>;
+ interrupts = <0 60 0x4>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "i2c5";
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 3/4] ARM: dts: omap5: Update UART with address space and interrupts
2012-10-23 8:37 [PATCH v2 0/4] ARM: dts: Update OMAP5 with address space and interrupts Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 1/4] ARM: dts: omap5: Update GPIO " Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 2/4] ARM: dts: omap5: Update I2C " Sebastien Guiriec
@ 2012-10-23 8:37 ` Sebastien Guiriec
2012-10-23 8:37 ` [PATCH v2 4/4] ARM: dts: omap5: Update MMC " Sebastien Guiriec
3 siblings, 0 replies; 14+ messages in thread
From: Sebastien Guiriec @ 2012-10-23 8:37 UTC (permalink / raw)
To: Sebastien Guiriec, Tony Lindgren, Benoit Cousson
Cc: devicetree-discuss, linux-omap, Santosh Shilimkar, linux-kernel,
linux-arm-kernel
Add base address and interrupt line inside Device Tree data for
OMAP5.
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
arch/arm/boot/dts/omap5.dtsi | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 6c22e1b..413df94 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -237,36 +237,48 @@
uart1: serial@4806a000 {
compatible = "ti,omap4-uart";
+ reg = <0x4806a000 0x100>;
+ interrupts = <0 72 0x4>;
ti,hwmods = "uart1";
clock-frequency = <48000000>;
};
uart2: serial@4806c000 {
compatible = "ti,omap4-uart";
+ reg = <0x4806c000 0x100>;
+ interrupts = <0 73 0x4>;
ti,hwmods = "uart2";
clock-frequency = <48000000>;
};
uart3: serial@48020000 {
compatible = "ti,omap4-uart";
+ reg = <0x48020000 0x100>;
+ interrupts = <0 74 0x4>;
ti,hwmods = "uart3";
clock-frequency = <48000000>;
};
uart4: serial@4806e000 {
compatible = "ti,omap4-uart";
+ reg = <0x4806e000 0x100>;
+ interrupts = <0 70 0x4>;
ti,hwmods = "uart4";
clock-frequency = <48000000>;
};
uart5: serial@48066000 {
- compatible = "ti,omap5-uart";
+ compatible = "ti,omap4-uart";
+ reg = <0x48066000 0x100>;
+ interrupts = <0 105 0x4>;
ti,hwmods = "uart5";
clock-frequency = <48000000>;
};
uart6: serial@48068000 {
- compatible = "ti,omap6-uart";
+ compatible = "ti,omap4-uart";
+ reg = <0x48068000 0x100>;
+ interrupts = <0 106 0x4>;
ti,hwmods = "uart6";
clock-frequency = <48000000>;
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 4/4] ARM: dts: omap5: Update MMC with address space and interrupts
2012-10-23 8:37 [PATCH v2 0/4] ARM: dts: Update OMAP5 with address space and interrupts Sebastien Guiriec
` (2 preceding siblings ...)
2012-10-23 8:37 ` [PATCH v2 3/4] ARM: dts: omap5: Update UART " Sebastien Guiriec
@ 2012-10-23 8:37 ` Sebastien Guiriec
3 siblings, 0 replies; 14+ messages in thread
From: Sebastien Guiriec @ 2012-10-23 8:37 UTC (permalink / raw)
To: Sebastien Guiriec, Tony Lindgren, Benoit Cousson
Cc: linux-omap, linux-arm-kernel, devicetree-discuss, linux-kernel,
Santosh Shilimkar
Add base address and interrupt line inside Device Tree data for
OMAP5.
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
---
arch/arm/boot/dts/omap5.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 413df94..b643cd3 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -285,6 +285,8 @@
mmc1: mmc@4809c000 {
compatible = "ti,omap4-hsmmc";
+ reg = <0x4809c000 0x400>;
+ interrupts = <0 83 0x4>;
ti,hwmods = "mmc1";
ti,dual-volt;
ti,needs-special-reset;
@@ -292,24 +294,32 @@
mmc2: mmc@480b4000 {
compatible = "ti,omap4-hsmmc";
+ reg = <0x480b4000 0x400>;
+ interrupts = <0 86 0x4>;
ti,hwmods = "mmc2";
ti,needs-special-reset;
};
mmc3: mmc@480ad000 {
compatible = "ti,omap4-hsmmc";
+ reg = <0x480ad000 0x400>;
+ interrupts = <0 94 0x4>;
ti,hwmods = "mmc3";
ti,needs-special-reset;
};
mmc4: mmc@480d1000 {
compatible = "ti,omap4-hsmmc";
+ reg = <0x480d1000 0x400>;
+ interrupts = <0 96 0x4>;
ti,hwmods = "mmc4";
ti,needs-special-reset;
};
mmc5: mmc@480d5000 {
compatible = "ti,omap4-hsmmc";
+ reg = <0x480d5000 0x400>;
+ interrupts = <0 59 0x4>;
ti,hwmods = "mmc5";
ti,needs-special-reset;
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 14+ messages in thread