Grant Likely grant.lik...@secretlab.ca wrote @ Tue, 25 Jun 2013 19:52:33
+0200:
Here's my workaround. I need to call of_detach_node() with OF_DYNAMIC
to avoid duplicated device registration.
Gah! my eyes!
Don't do that. It is incredibly problematic. Look at inhibiting
duplicate device
Hi Will,
On Mon, 10 Jun 2013 20:34:39 +0200
Will Deacon will.dea...@arm.com wrote:
...
@@ -1636,13 +1636,27 @@ static dma_addr_t arm_coherent_iommu_map_page(struct
device *dev, struct page *p
{
struct dma_iommu_mapping *mapping = dev-archdata.mapping;
dma_addr_t dma_addr;
-
thought too. I have a patch for that as below. If you like,
I'll rebase and send for merge with the one which changes
dma-mapping.c.
From 699e6bd4fef86383d197775486b47bcbdc594f4a Mon Sep 17 00:00:00 2001
From: Hiroshi Doyu hd...@nvidia.com
Date: Tue, 25 Jun 2013 13:43:29 +0300
Subject: [PATCH 1/2
help solve this.
Here's my workaround. I need to call of_detach_node() with OF_DYNAMIC
to avoid duplicated device registration.
From f4d88b8521c278b41b72028d326c03cfd2e90af8 Mon Sep 17 00:00:00 2001
From: Hiroshi Doyu hd...@nvidia.com
Date: Fri, 14 Jun 2013 15:22:02 +0300
Subject: [PATCH 1/1] ARM
Hi Will,
Will Deacon will.dea...@arm.com wrote @ Mon, 10 Jun 2013 20:34:40 +0200:
The current code only clobbers a local variable, so the device is left
with a stale mapping pointer.
True. This's my bad. Thanks.
___
devicetree-discuss mailing list
On Tue, 21 May 2013 18:05:49 +0200
Stephen Warren swar...@wwwdotorg.org wrote:
On 05/21/2013 03:10 AM, Hiroshi Doyu wrote:
This patchset converts device tree files to use CLK defines. This
version was updated along with the latest DT changes.
The following changes since commit
)
Hiroshi Doyu (6):
ARM: tegra20: create a DT header defining CLK IDs
ARM: tegra20: convert device tree files to use CLK defines
ARM: tegra30: create a DT header defining CLK IDs
ARM: tegra30: convert device tree files to use CLK defines
ARM: tegra114: create a DT
, which guarantees that the two
stay in sync. This also makes device trees more readable by using names
instead of magic numbers.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra20-car.txt | 154 +---
include/dt-bindings/clk/tegra20-car.h
Use the Tegra20 CAR binding header (tegra20-car.h) to replace magic
numbers in the device tree. For example,
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra20-colibri-512.dtsi | 4
, which guarantees that the two
stay in sync. This also makes device trees more readable by using names
instead of magic numbers.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra30-car.txt | 211 +---
include/dt-bindings/clk/tegra30-car.h
Use the Tegra30 CAR binding header (tegra30-car.h) to replace magic
numbers in the device tree. For example,
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra30-beaver.dts | 4
, which guarantees that the two
stay in sync. This also makes device trees more readable by using names
instead of magic numbers.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra114-car.txt | 252 +--
include/dt-bindings/clk/tegra114-car.h
Use the Tegra114 CAR binding header (tegra114-car.h) to replace magic
numbers in the device tree. For example,
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra114-dalmore.dts | 4
Stephen Warren swar...@wwwdotorg.org wrote @ Mon, 13 May 2013 18:46:27 +0200:
I'm not sure exactly how these patches will get merged. For you
reference, I anticipate one of two things happening:
1)
* Patches 1, 3, 5 get put into a topic branch, and merged into both the
clk tree and the
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra20-car.txt | 152 +---
include/dt-bindings/clk/tegra20-car.h
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra20-colibri-512.dtsi | 4 +-
arch/arm/boot/dts/tegra20-harmony.dts | 4 +-
arch/arm/boot/dts
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra30-car.txt | 209 +---
include/dt-bindings/clk/tegra30-car.h
This patchset converts device tree files to use CLK defines.
This is against Stephen Warren's linux-next_common branch in:
git://nv-tegra.nvidia.com/user/swarren/linux-2.6
If this is ok, I'll also convert enum variables to use CLK defines in
drivers/clk/tegra/clk-tegra{20,30,114}.c
Hiroshi
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra114-dalmore.dts | 4 +-
arch/arm/boot/dts/tegra114.dtsi| 79
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra30-beaver.dts | 4 +-
arch/arm/boot/dts/tegra30-cardhu.dtsi | 4 +-
arch/arm/boot/dts/tegra30
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra114-car.txt | 250 +--
include/dt-bindings/clk/tegra114-car.h
://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149672.html
[1]
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149804.html
Hiroshi Doyu (6):
ARM: tegra20: create a DT header defining CLK IDs
ARM: tegra20: convert device tree files to use CLK defines
ARM: tegra30
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra20-car.h | 158 +++
1 file changed, 158 insertions(+)
create
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra20-car.txt | 150 +---
arch/arm/boot/dts/tegra20-paz00.dtsp
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra30-car.h | 218 +++
1 file changed, 218 insertions(+)
create
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra30-car.txt | 207 +---
arch/arm/boot/dts/tegra30.dtsip
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra114-car.h | 272 ++
1 file changed, 272 insertions(+)
create
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra114-car.txt | 261 +---
arch/arm/boot/dts/tegra114.dtsip
Peter De Schrijver pdeschrij...@nvidia.com wrote @ Thu, 14 Feb 2013 11:12:20
+0100:
On Thu, Feb 14, 2013 at 07:38:17AM +0100, Hiroshi Doyu wrote:
To replace magic number in clocks = tegra_car 28;
But then we should probably also remove the enum tegra20_clk and replace
-February/149804.html
Hiroshi Doyu (4):
ARM: tegra20: create a DT header defining CLK IDs
ARM: tegra20: convert device tree files to use CLK defines
ARM: tegra30: create a DT header defining CLK IDs
ARM: tegra30: convert device tree files to use CLK defines
.../bindings/clock/nvidia,tegra20
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra20-car.h | 114 +++
1 file changed, 114 insertions(+)
create
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra20-car.txt |2 +-
arch/arm/boot/dts/tegra20-paz00.dtsp |2
To replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra30-car.h | 171 +++
1 file changed, 171 insertions(+)
create
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra30-car.txt |2 +-
arch/arm/boot/dts/tegra30.dtsip| 87
Replace magic number in tegra_car:
- clocks = tegra_car 28;
+ clocks = tegra_car CLK_HOST1X;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/clock/nvidia,tegra114-car.txt |2 +-
arch/arm/boot/dts/tegra114.dtsip | 13
Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 13 Feb 2013 22:33:10 +0100:
From: Stephen Warren swar...@nvidia.com
Many GPIO device tree bindings use the same flags. Create a header to
define those.
Signed-off-by: Stephen Warren swar...@nvidia.com
---
arch/arm/boot/dts/gpio.h | 10
To replace magic number in clocks = tegra_car 28;
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
This patch depends on:
[PATCH 0/9] ARM: tegra: use new dtc+cpp feature
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-February/149613.html
This patch is the experiment for Tegra20
Will Deacon will.dea...@arm.com wrote @ Wed, 16 Jan 2013 12:51:14 +0100:
On Tue, Dec 11, 2012 at 11:09:47AM +, Cho KyongHo wrote:
This commit adds System MMU nodes to DT of Exynos SoCs.
[Adding devicetree-discuss and some other IOMMU/DT people to CC]
Signed-off-by: KyongHo Cho
Hi Russell,
Russell King - ARM Linux li...@arm.linux.org.uk wrote @ Mon, 14 Jan 2013
10:27:20 +0100:
On Mon, Jan 14, 2013 at 09:52:50AM +0200, Hiroshi Doyu wrote:
+ if (!arm_dt_cpu_map_valid())
+ set_cpu_possible(0, true);
You don't need to do any of this (and, therefore, I
From: Lorenzo Pieralisi lorenzo.pieral...@arm.com
Since the introduction of /cpu nodes bindings for ARM and the
corresponding parse function arm_dt_init_cpu_maps(), the cpu_logical_map
and the number of possible CPUs are set according to the DT /cpu
nodes entries. Currently most of the existing
SCU based detection only works with Cortex-A9 MP and it doesn't
support ones with multiple clusters. The only way to detect number of
CPU core correctly is with DT /cpu node. If DT /cpu node based
detection fails, we just simply fall back a single core in Tegra SoCs.
Signed-off-by: Hiroshi Doyu
Arnd Bergmann a...@arndb.de wrote @ Thu, 3 Jan 2013 17:28:19 +0100:
On Thursday 20 December 2012, Hiroshi Doyu wrote:
+
+DT_MACHINE_START(TEGRA114_DT, NVIDIA Tegra114 (Flattened Device Tree))
+ .smp= smp_ops(tegra_smp_ops),
+ .map_io = tegra_map_common_io
Stephen Warren swar...@wwwdotorg.org wrote @ Wed, 2 Jan 2013 20:02:53 +0100:
On 12/16/2012 11:18 PM, Hiroshi Doyu wrote:
Set Snoop Control Unit(SCU) register base address dynamically from DT.
Hiroshi, what's the status on this patch series? I think Rob had
comments/objections on patch 4
Hi Olof,
Olof Johansson o...@lixom.net wrote @ Sat, 29 Dec 2012 07:39:13 +0100:
On Thu, Dec 20, 2012 at 11:44:04AM +0200, Hiroshi Doyu wrote:
Initial support for Tegra 114 SoC. This is expected to be included in
the board DTS files, Tegra 114 SoC based evaluation board family.
Signed
the above configuration , it
hangs at boot-up. With SPI disabled, it's ok.
Hiroshi Doyu (9):
ARM: tegra: fuse: Add chipid TEGRA114 0x35
HACK: ARM: tegra: Use CLK_IGNORE_UNUSED for Tegra 114 SoC
ARM: tegra: # of CPU cores detection w/ w/o HAVE_ARM_SCU
clocksource: tegra: Reorganize funcs
Add tegra_chip_id TEGRA114 0x35
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/mach-tegra/fuse.h |1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-tegra/fuse.h b/arch/arm/mach-tegra/fuse.h
index ff1383d..da78434 100644
--- a/arch/arm/mach-tegra/fuse.h
+++ b/arch/arm
Relocate functions by clock functionarities{RTC, TMR}. Also created
some new functions as helper.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
drivers/clocksource/tegra20_timer.c | 160 +++
1 file changed, 86 insertions(+), 74 deletions(-)
diff --git
Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained
timer than TMR0. If it's available, it will be used for clock source
and sched_clock. Otherwise, TMR0 is used. In any case TMR0 is
necessary for clock event.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
.../bindings/arm
Initial support for Tegra 114 SoC. This is expected to be included in
the board DTS files, Tegra 114 SoC based evaluation board family.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra114.dtsi | 89 +++
1 file changed, 89 insertions
Add a new evaluation board, Dalmore for Tegra 114 family.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/Makefile |3 ++-
arch/arm/boot/dts/tegra114-dalmore.dts | 21 +
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644
Add a new evaluation board, Pluto for Tegra 114 family.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/Makefile |3 ++-
arch/arm/boot/dts/tegra114-pluto.dts | 21 +
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 arch
Add new Tegra 114 SoC support.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/mach-tegra/Kconfig | 10 +++
arch/arm/mach-tegra/Makefile|1 +
arch/arm/mach-tegra/board-dt-tegra114.c | 48 +++
arch/arm/mach-tegra/common.c
Use CLK_IGNORE_UNUSED for the Tegra 114 SoC to ensure
clk_disable_unused() is not called. Otherwise the system will die,
because the usecount of the clocks is incorrect. This patch will be
reverted once the Tegra 114 clocks are implemented.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch
Felipe Balbi ba...@ti.com wrote @ Thu, 20 Dec 2012 11:06:25 +0100:
...
@@ -149,7 +154,26 @@ done:
*/
static void __init tegra_smp_init_cpus(void)
{
- unsigned int i, ncores = scu_get_core_count(scu_base);
+ unsigned int i, cpu_id, ncores;
+ u32 l2ctlr;
+ phys_addr_t pa;
Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:17:08 +0100:
On 20/12/12 09:44, Hiroshi Doyu wrote:
The method to detect the number of CPU cores on Cortex-A9 MPCore and
Cortex-A15 MPCore is different. On Cortex-A9 MPCore we can get this
information from the Snoop Control Unit
Marc Zyngier marc.zyng...@arm.com wrote @ Thu, 20 Dec 2012 12:01:15 +0100:
On 20/12/12 09:44, Hiroshi Doyu wrote:
Add platform enabler for ARM arch_timer(TSC). TSC is more fine grained
timer than TMR0. If it's available, it will be used for clock source
and sched_clock. Otherwise, TMR0
Add scu.txt under arm for ARM Snoop Control Unit(SCU)
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
Documentation/devicetree/bindings/arm/scu.txt | 15 +++
1 file changed, 15 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/scu.txt
diff --git
Add Snoop Control Unit(SCU) node for Cortex A9 MP.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra30.dtsip |5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/tegra30.dtsip b/arch/arm/boot/dts/tegra30.dtsip
index 8feba6d..84a41c2 100644
Add Snoop Control Unit(SCU) node for Cortex A9 MP.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/boot/dts/tegra20.dtsip |5 +
1 file changed, 5 insertions(+)
diff --git a/arch/arm/boot/dts/tegra20.dtsip b/arch/arm/boot/dts/tegra20.dtsip
index 3e046b1..d325aed 100644
Set Snoop Control Unit(SCU) register base address dynamically from DT.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/mach-tegra/platsmp.c | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra
Hi Rob,
Rob Herring robherri...@gmail.com wrote @ Mon, 17 Dec 2012 15:00:46 +0100:
On 12/17/2012 12:18 AM, Hiroshi Doyu wrote:
Set Snoop Control Unit(SCU) register base address dynamically from DT.
Signed-off-by: Hiroshi Doyu hd...@nvidia.com
---
arch/arm/mach-tegra/platsmp.c | 23
Rob Herring robherri...@gmail.com wrote @ Tue, 18 Dec 2012 14:46:36 +0100:
On 12/18/2012 03:21 AM, Hiroshi Doyu wrote:
Hi Rob,
Rob Herring robherri...@gmail.com wrote @ Mon, 17 Dec 2012 15:00:46 +0100:
On 12/17/2012 12:18 AM, Hiroshi Doyu wrote:
Set Snoop Control Unit(SCU) register
Hiroshi Doyu hd...@nvidia.com wrote @ Tue, 18 Dec 2012 17:15:46 +0200 (EET):
Rob Herring robherri...@gmail.com wrote @ Tue, 18 Dec 2012 14:46:36 +0100:
On 12/18/2012 03:21 AM, Hiroshi Doyu wrote:
Hi Rob,
Rob Herring robherri...@gmail.com wrote @ Mon, 17 Dec 2012 15:00:46
+0100
63 matches
Mail list logo