Re: [PATCH 1/2] PM / OPP: add support to specify phandle of another node for OPP

2013-05-13 Thread Sudeep KarkadaNagesha
Hi device-tree folks, On 01/05/13 15:41, Nishanth Menon wrote: On 12:11-20130501, sudeep.karkadanage...@arm.com wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com If more than one similar devices share the same OPPs, currently we need to replicate the OPP entries in all

Re: [PATCH 0/2] PM / OPP: updates to enable sharing OPPs info

2013-05-21 Thread Sudeep KarkadaNagesha
Hi Rob, Grant, On 01/05/13 12:11, Sudeep KarkadaNagesha wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com These are couple of updates to existing PM/OPP library to support sharing of OPPs between different device nodes. Currently all the cpu nodes are parsed until the OPPs

[RFC PATCH v2 03/15] ARM: DT/kernel: define ARM specific arch_match_cpu_phys_id

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com OF/DT core library now provides architecture specific hook to match the logical cpu index with the corresponding physical identifier. Most of the cpu DT node parsing and initialisation is contained in devtree.c. So it's better to define

[RFC PATCH v2 02/15] driver/core: cpu: initialize of_node in cpu's device struture

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com CPUs are also registered as devices but the of_node in these cpu devices are not initialized. Currently different drivers requiring to access cpu device node are parsing the nodes themselves and initialising the of_node in cpu device

[RFC PATCH v2 05/15] ARM: mvebu: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Currently set_secondary_cpus_clock assume the CPU logical ordering and the MPDIR in DT are same, which is incorrect. Since the CPU device nodes can be retrieved in the logical ordering using the DT helper, we can remove the devices tree

[RFC PATCH v2 09/15] cpufreq: highbank-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Cc: Mark Langsdorf mark.langsd

[RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Cc: Andrew Lunn and...@lunn.ch Cc

[RFC PATCH v2 13/15] cpufreq: maple-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Cc: Viresh Kumar viresh.ku

[RFC PATCH v2 00/15] DT/core: update cpu device of_node

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com As more and more information is getting added into the cpu node, the number of drivers needing to parse the device tree for CPU nodes are increasing. Most of the time, the information needed from the cpu node is preferred in the logical

[RFC PATCH v2 07/15] cpufreq: imx6q-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Acked-by: Shawn Guo shawn

[RFC PATCH v2 14/15] cpufreq: pmac64-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Cc: Viresh Kumar viresh.ku

[RFC PATCH v2 01/15] of: add support for retrieving cpu node for a given logical cpu index

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Currently different drivers requiring to access cpu device node are parsing the device tree themselves. Since the ordering in the DT need not match the logical cpu ordering, the parsing logic needs to consider that. However, this has

[RFC PATCH v2 06/15] drivers/bus: arm-cci: avoid parsing DT for cpu device nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Since the CPU device nodes can be retrieved using arch_of_get_cpu_node, we can use it to avoid parsing the cpus node searching the cpu nodes and mapping to logical index. This patch removes parsing DT for cpu nodes by using

[RFC PATCH v2 12/15] cpufreq: arm_big_little: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Acked-by: Viresh Kumar viresh.ku

[RFC PATCH v2 04/15] ARM: topology: remove hwid/MPIDR dependency from cpu_capacity

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Currently the topology code computes cpu capacity and stores it in the list along with hwid(which is MPIDR) as it parses the CPU nodes in the device tree. This is required as it needs to be mapped to the logical CPU later. Since the CPU

[RFC PATCH v2 10/15] cpufreq: spear-cpufreq: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Cc: Deepak Sikri deepak.si...@st.com

[RFC PATCH v2 08/15] cpufreq: cpufreq-cpu0: remove device tree parsing for cpu nodes

2013-07-17 Thread Sudeep . KarkadaNagesha
From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Now that the cpu device registration initialises the of_node(if available) appropriately for all the cpus, parsing here is redundant. This patch removes all DT parsing and uses cpu-of_node instead. Acked-by: Shawn Guo shawn

Re: [RFC PATCH v2 01/15] of: add support for retrieving cpu node for a given logical cpu index

2013-07-17 Thread Sudeep KarkadaNagesha
On 17/07/13 15:50, Rob Herring wrote: On 07/17/2013 09:06 AM, sudeep.karkadanage...@arm.com wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com Currently different drivers requiring to access cpu device node are parsing the device tree themselves. Since the ordering in the DT

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Sudeep KarkadaNagesha
On 18/07/13 09:24, Sudeep KarkadaNagesha wrote: On 17/07/13 15:43, Andrew Lunn wrote: On Wed, Jul 17, 2013 at 03:06:20PM +0100, sudeep.karkadanage...@arm.com wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com [...] diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers