[U-Boot] [PATCH v3 0/3] arc: introduce timer driver and update device tree

2017-03-21 Thread Vlad Zakharov
upstream master Vlad Zakharov (3): drivers: timer: Introduce ARC timer driver arc: dts: separate single axs10x.dts file arc: use timer driver for ARC boards arch/Kconfig | 3 + arch/arc/Kconfig | 9 ++- arch/a

[U-Boot] [PATCH v3 2/3] arc: dts: separate single axs10x.dts file

2017-03-21 Thread Vlad Zakharov
urces as it is referenced via phandle from timer node in common skeleton.dtsi file. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v2..v3: - Rebase on top of upstream master arch/arc/Kconfig | 9 -- arch/arc/dts/Makefile | 3 +- arch/arc/dts/abilis_

[U-Boot] [PATCH v3 3/3] arc: use timer driver for ARC boards

2017-03-21 Thread Vlad Zakharov
removes legacy CONFIG_SYS_TIMER_RATE config symbol from axs10x.h, tb100.h and nsim.h configs files as it is no longer required. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v2..v3: - Rebase on top of upstream master No changes compared to v1 arch/Kconfig | 3

[U-Boot] [PATCH v3 1/3] drivers: timer: Introduce ARC timer driver

2017-03-21 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v2..v3: - Rebase on top of upstream master arch/arc/include/asm/arcregs.h | 4 + doc/device-tree-bindings/timer/arc_timer.txt | 24 ++ dr

[U-Boot] [PATCH 0/3] arc: introduce timer driver and update device tree

2017-01-16 Thread Vlad Zakharov
he following: 1. Separate axs10x.dts device tree in order to reflect the real structure of AXS101 and AXS103 development boards. 2. Add timer device to skeleton ARC device tree. 3. Add core_clk devices to all ARC boards as it is referenced from timer device. Vlad Zakharov (3): drivers: timer

[U-Boot] [PATCH 2/3] arc: dts: separate single axs10x.dts file

2017-01-16 Thread Vlad Zakharov
urces as it is referenced via phandle from timer node in common skeleton.dtsi file. Signed-off-by: Vlad Zakharov --- arch/arc/Kconfig | 9 -- arch/arc/dts/Makefile | 3 +- arch/arc/dts/abilis_tb100.dts | 12 ++-- arch/arc/dts/axc001.dtsi | 19 + arc

[U-Boot] [PATCH 3/3] arc: use timer driver for ARC boards

2017-01-16 Thread Vlad Zakharov
removes legacy CONFIG_SYS_TIMER_RATE config symbol from axs10x.h, tb100.h and nsim.h configs files as it is no longer required. Signed-off-by: Vlad Zakharov --- arch/Kconfig | 3 +++ arch/arc/lib/Makefile| 1 - arch/arc/lib/timer.c | 24 configs

[U-Boot] [PATCH 1/3] drivers: timer: Introduce ARC timer driver

2017-01-16 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov --- arch/arc/include/asm/arcregs.h | 4 ++ doc/device-tree-bindings/timer/arc_timer.txt | 24 +++ drivers/timer/Kconfig| 9 +++ drivers/timer/Mak

Re: [U-Boot] [PATCH 1/3] drivers: timer: Introduce ARC timer driver

2017-01-31 Thread Vlad Zakharov
is being duplicated in this patch is very small but helps to understand what is really happening with ARC timers much better. Thanks. -- Best regards, Vlad Zakharov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v2 0/3] arc: introduce timer driver and update device tree

2017-02-08 Thread Vlad Zakharov
leanups of code - Added comments that describe why code is duplicated in arc_timer_probe Vlad Zakharov (3): drivers: timer: Introduce ARC timer driver arc: dts: separate single axs10x.dts file arc: use timer driver for ARC boards arch/Kconfig | 3 + a

[U-Boot] [PATCH v2 1/3] drivers: timer: Introduce ARC timer driver

2017-02-08 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v1..v2: - Minor cleanups of code - Added comments that describe why code is duplicated in arc_timer_probe arch/arc/include/asm/arcregs.h | 4 +

[U-Boot] [PATCH v2 2/3] arc: dts: separate single axs10x.dts file

2017-02-08 Thread Vlad Zakharov
urces as it is referenced via phandle from timer node in common skeleton.dtsi file. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- No changes compared to v1 arch/arc/Kconfig | 9 -- arch/arc/dts/Makefile | 3 +- arch/arc/dts/abilis_tb100.dts | 12 ++--

[U-Boot] [PATCH v2 3/3] arc: use timer driver for ARC boards

2017-02-08 Thread Vlad Zakharov
removes legacy CONFIG_SYS_TIMER_RATE config symbol from axs10x.h, tb100.h and nsim.h configs files as it is no longer required. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- No changes compared to v1 arch/Kconfig | 3 +++ arch/arc/lib/Makefile| 1 - arch/arc/lib

Re: [U-Boot] [PATCH v7 02/12] serial: ns16550: Support clocks via phandle

2016-10-04 Thread Vlad Zakharov
NOSYS) { > + debug("ns16550 failed to get clock\n"); > + return err; > + } > + > + if (!plat->clock) > + plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset, > +  "clock-frequency", > +  CONFIG_SYS_NS16550_CLK); >   if (!plat->clock) { >   debug("ns16550 clock not defined\n"); >   return -EINVAL; -- Best regards, Vlad Zakharov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v7 02/12] serial: ns16550: Support clocks via phandle

2016-10-04 Thread Vlad Zakharov
NOSYS) { > + debug("ns16550 failed to get clock\n"); > + return err; > + } > + > + if (!plat->clock) > + plat->clock = fdtdec_get_int(gd->fdt_blob, dev->of_offset, > +  "clock-frequency", > +  CONFIG_SYS_NS16550_CLK); >   if (!plat->clock) { >   debug("ns16550 clock not defined\n"); >   return -EINVAL; -- Best regards, Vlad Zakharov ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] axs10x: Introduce UART clk device

2016-10-27 Thread Vlad Zakharov
we finally may get rid of. Signed-off-by: Vlad Zakharov --- arch/arc/dts/axs10x.dts | 8 include/configs/axs10x.h | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arc/dts/axs10x.dts b/arch/arc/dts/axs10x.dts index 391d067..0b0e2bb 100644 --- a/arch/arc/dts

[U-Boot] [PATCH 0/2] drivers: timer: inroduce ARC timer driver

2016-11-02 Thread Vlad Zakharov
and so we don't have to remap their control registers as we used to do with MMIO registers of external peripheral devices. Vlad Zakharov (2): drivers: timer: Introduce ARC timer driver arc: use timer driver instead of arch/arc/lib/timer.c arch/arc/dts/skeleton.dtsi |

[U-Boot] [PATCH 1/2] drivers: timer: Introduce ARC timer driver

2016-11-02 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov --- arch/arc/include/asm/arcregs.h | 4 ++ doc/device-tree-bindings/timer/arc_timer.txt | 24 +++ drivers/timer/Kconfig| 7 ++ drivers/timer/Mak

[U-Boot] [PATCH 2/2] arc: use timer driver instead of arch/arc/lib/timer.c

2016-11-02 Thread Vlad Zakharov
_TIMER and CONFIG_ARC_TIMER config symbols to arc-specific defconfigs. Signed-off-by: Vlad Zakharov --- arch/arc/dts/skeleton.dtsi| 6 ++ arch/arc/lib/Makefile | 1 - arch/arc/lib/timer.c | 24 configs/axs101_defconfig | 2 ++ configs/axs103

[U-Boot] [PATCH v2 0/2] drivers: timer: inroduce ARC timer driver

2016-11-03 Thread Vlad Zakharov
oid duplication Vlad Zakharov (2): drivers: timer: Introduce ARC timer driver arc: use timer driver instead of arch/arc/lib/timer.c arch/arc/dts/skeleton.dtsi | 6 ++ arch/arc/include/asm/arcregs.h | 4 ++ arch/arc/lib/Makefile| 1 - arch/

[U-Boot] [PATCH v2 1/2] drivers: timer: Introduce ARC timer driver

2016-11-03 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v1..v2 - Minor clean-ups of code and comments arch/arc/include/asm/arcregs.h | 4 ++ doc/device-tree-bindings/timer/arc_timer.txt | 24 +++ dr

[U-Boot] [PATCH v2 2/2] arc: use timer driver instead of arch/arc/lib/timer.c

2016-11-03 Thread Vlad Zakharov
_TIMER and CONFIG_ARC_TIMER by default when selecting ARC architecture. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v1..v2 - Moved TIMER and ARC_TIMER config symbols from each defconfig to arch Kconfig file to avoid duplication arch/Kconfig | 2 ++ ar

[U-Boot] [PATCH v3 0/2] drivers: timer: inroduce ARC timer driver

2016-11-17 Thread Vlad Zakharov
and so we don't have to remap their control registers as we used to do with MMIO registers of external peripheral devices. Cc: Simon Glass --- Changes v2..v3 - Use timer_conv_64 in arc_timer_get_count to prevent 32-bit timer overflow

[U-Boot] [PATCH v3 1/2] drivers: timer: Introduce ARC timer driver

2016-11-17 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v2..v3 - Use timer_conv_64 in arc_timer_get_count to prevent 32-bit timer overflow arch/arc/include/asm/arcregs.h | 4 ++ doc/device-tree-bindings/

[U-Boot] [PATCH v3 2/2] arc: use timer driver instead of arch/arc/lib/timer.c

2016-11-17 Thread Vlad Zakharov
_TIMER and CONFIG_ARC_TIMER by default when selecting ARC architecture. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- No changes compared to v2 arch/Kconfig | 2 ++ arch/arc/dts/skeleton.dtsi | 6 ++ arch/arc/lib/Makefile | 1 - arch/arc/lib/timer.c

[U-Boot] [PATCH] timer: Support clocks via phandle

2016-11-17 Thread Vlad Zakharov
-frequency property of the timer node is read to provide backward compatibility. Signed-off-by: Vlad Zakharov --- drivers/timer/timer-uclass.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index f8ddf93

[U-Boot] [PATCH v2] timer: Support clocks via phandle

2016-11-19 Thread Vlad Zakharov
-frequency property of the timer node is read to provide backward compatibility. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v1..v2: - Use temporary variable when getting clock rate drivers/timer/timer-uclass.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions

Re: [U-Boot] [PATCH v2] timer: Support clocks via phandle

2016-11-21 Thread Vlad Zakharov
Hi Tom, On Sat, 2016-11-19 at 19:57 +0300, Vlad Zakharov wrote: > Earlier timer driver needed a clock-frequency property in compatible > device-tree nodes. Another way is to reference a clock via a phandle. > > So now timer_pre_probe tries to get clock by reference through device >

Re: [U-Boot] [PATCH v2] timer: Support clocks via phandle

2016-11-21 Thread Vlad Zakharov
Hi again, On Mon, 2016-11-21 at 09:51 -0500, Tom Rini wrote: > On Mon, Nov 21, 2016 at 02:38:30PM +0000, Vlad Zakharov wrote: > > > > Hi Tom, > > > > On Sat, 2016-11-19 at 19:57 +0300, Vlad Zakharov wrote: > > > > > > Earlier timer driver ne

[U-Boot] [PATCH v4 1/2] drivers: timer: Introduce ARC timer driver

2016-11-22 Thread Vlad Zakharov
timers should be mentioned in board's Device Tree description. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- No changes compared to v3 arch/arc/include/asm/arcregs.h | 4 ++ doc/device-tree-bindings/timer/arc_timer.txt | 24 +++ drivers/timer/Kc

[U-Boot] [PATCH v4 2/2] arc: use timer driver instead of arch/arc/lib/timer.c

2016-11-22 Thread Vlad Zakharov
_TIMER and CONFIG_ARC_TIMER by default when selecting ARC architecture. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v3..v4: - Remove CONFIG_SYS_TIMER_RATE not only from "axs10x.h" but also from "nsim.h" and "tb100.h". arch/Kconfig

[U-Boot] [PATCH v4 0/2] drivers: timer: inroduce ARC timer driver

2016-11-22 Thread Vlad Zakharov
and so we don't have to remap their control registers as we used to do with MMIO registers of external peripheral devices. Cc: Simon Glass --- Changes v3..v4: - Remove CONFIG_SYS_TIMER_RATE not only from "axs10x.h" but also from "nsim.h" and "tb100.h". Vlad

[U-Boot] [PATCH v3] timer: Support clocks via phandle

2016-12-09 Thread Vlad Zakharov
-frequency property of the timer node is read to provide backward compatibility. Signed-off-by: Vlad Zakharov Reviewed-by: Simon Glass --- Changes v2..v3: - Use value type instead of pointer for timer_clk in order to fix build time warnings drivers/timer/timer-uclass.c | 17 ++--- 1 file

Re: [U-Boot] [PATCH v3] timer: Support clocks via phandle

2016-12-19 Thread Vlad Zakharov
Hi Tom, On Fri, 2016-12-09 at 17:18 +0300, Vlad Zakharov wrote: > Earlier timer driver needed a clock-frequency property in compatible > device-tree nodes. Another way is to reference a clock via a phandle. > > So now timer_pre_probe tries to get clock by reference through device >

[U-Boot] Accessing nested device tree nodes via phandle

2016-12-20 Thread Vlad Zakharov
.  ...  ... }; -->8 Please correct me if I wrongly interpret such behavior. I wonder if it the only approach to implement Linux-like hierarchy for ARC? Or I am mistaken and in fact can use pure Linux device tree without add