Re: [linux-sunxi] [PATCH v2 0/3] clk: sunxi-ng: Add the A83T clocks

2016-08-21 Thread Jean-Francois Moine
On Mon, 22 Aug 2016 02:23:51 +0800
Vishnu Patekar  wrote:

> Thanks for followup patches for a83t modern clock.
> 
> well, this patch series does not apply on sunxi/for-next.

Hi Vishnu,

This series is rather old!
Well, at this time, I was thinking that the 'modern' clock (aka
sunxi-ng) was a good thing, but, just after sending this series, I was
blocked, mainly because of the 'new timing' of the MMC clocks.
So, I rewrote and simplified the sunxi clock driver, and I submitted a
'ccu' patch which was refused by Maxime and Mike.

Actually, my 'ccu' driver is almost finished. The code is only 1200
lines in one file. It contains optimized computation of the clock
parameters, handles the H3 CPU frequency, the MMC 'new timing',
sigma-delta modulation for the audio PLL, the PRCM clocks and more.
The SoC specific tables (actually H3 and A83T) are about 10kB, but they
are defined as templates in .init.rodata, so that only the tables of the
current SoC remain in memory after system init.

This driver works fine for my Allwinner's boards and I will never go
back to the 'sunxi-ng' which is rather complex and lacks of flexibility.
If you are interested, the source is available in my site (see below).

-- 
Ken ar c'hentaƱ | ** Breizh ha Linux atav! **
Jef |   http://moinejf.free.fr/

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [linux-sunxi] [PATCH v2 0/3] clk: sunxi-ng: Add the A83T clocks

2016-08-21 Thread Vishnu Patekar
Hello Jean-Francois Moine,

Thanks for followup patches for a83t modern clock.

well, this patch series does not apply on sunxi/for-next.



Regards,
Vishnu Pateakr

On Sun, Jun 12, 2016 at 1:39 AM, Jean-Francois Moine 
wrote:

> This patch series adds the clocks of the sunxi A83T in the "modern"
> clock framework proposed by Maxime Ripard.
> It applies on the V2 of his patch series.
>
> It is currently being tested on a Banana Pi M3 with the legacy u-boot.
> - working:
> mmc0
> mmc2 (eMMC) but slow clock
> ths
> uart0
> usb0
> - not working:
> mmc1 (wifi/bt)
> video (machine freeze on reading/writing the DE I/O memory)
> - not yet tested
> audio
> prcm
>
> Jean-Francois Moine (3):
>   clk: sunxi-ng: Add N-D-M-P-factor clock support
>   clk: sunxi-ng: Add the A83T clocks and resets
>   dt: sun8i: Define the clocks of the A83T
>
>  arch/arm/boot/dts/sun8i-a83t.dtsi  |  18 +-
>  drivers/clk/sunxi-ng/Makefile  |   3 +-
>  drivers/clk/sunxi-ng/ccu-sun8i-a83t.c  | 675
> +
>  drivers/clk/sunxi-ng/ccu_common.h  |   1 +
>  drivers/clk/sunxi-ng/ccu_ndmp.c| 239 
>  drivers/clk/sunxi-ng/ccu_ndmp.h|  96 +
>  include/dt-bindings/clock/sun8i-a83t.h | 150 
>  include/dt-bindings/reset/sun8i-a83t.h |  94 +
>  8 files changed, 1270 insertions(+), 6 deletions(-)
>  create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
>  create mode 100644 drivers/clk/sunxi-ng/ccu_ndmp.c
>  create mode 100644 drivers/clk/sunxi-ng/ccu_ndmp.h
>  create mode 100644 include/dt-bindings/clock/sun8i-a83t.h
>  create mode 100644 include/dt-bindings/reset/sun8i-a83t.h
>
> --
> 2.8.4
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to linux-sunxi+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[linux-sunxi] [PATCH v2 0/3] clk: sunxi-ng: Add the A83T clocks

2016-06-11 Thread Jean-Francois Moine
This patch series adds the clocks of the sunxi A83T in the "modern"
clock framework proposed by Maxime Ripard.
It applies on the V2 of his patch series.

It is currently being tested on a Banana Pi M3 with the legacy u-boot.
- working:
mmc0
mmc2 (eMMC) but slow clock
ths
uart0
usb0
- not working:
mmc1 (wifi/bt)
video (machine freeze on reading/writing the DE I/O memory)
- not yet tested
audio
prcm

Jean-Francois Moine (3):
  clk: sunxi-ng: Add N-D-M-P-factor clock support
  clk: sunxi-ng: Add the A83T clocks and resets
  dt: sun8i: Define the clocks of the A83T

 arch/arm/boot/dts/sun8i-a83t.dtsi  |  18 +-
 drivers/clk/sunxi-ng/Makefile  |   3 +-
 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c  | 675 +
 drivers/clk/sunxi-ng/ccu_common.h  |   1 +
 drivers/clk/sunxi-ng/ccu_ndmp.c| 239 
 drivers/clk/sunxi-ng/ccu_ndmp.h|  96 +
 include/dt-bindings/clock/sun8i-a83t.h | 150 
 include/dt-bindings/reset/sun8i-a83t.h |  94 +
 8 files changed, 1270 insertions(+), 6 deletions(-)
 create mode 100644 drivers/clk/sunxi-ng/ccu-sun8i-a83t.c
 create mode 100644 drivers/clk/sunxi-ng/ccu_ndmp.c
 create mode 100644 drivers/clk/sunxi-ng/ccu_ndmp.h
 create mode 100644 include/dt-bindings/clock/sun8i-a83t.h
 create mode 100644 include/dt-bindings/reset/sun8i-a83t.h

-- 
2.8.4

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.