Re: [PATCH v2] clk: sunxi: predivider handling for factors clock

2016-04-26 Thread Vishnu Patekar
Hello Wens, On Mon, Apr 25, 2016 at 10:51 PM, Chen-Yu Tsai <w...@csie.org> wrote: > Hi, > > On Wed, Apr 20, 2016 at 12:47 AM, Vishnu Patekar > <vishnupatekar0...@gmail.com> wrote: >> For A31 ahb1 and a83t ahb1 clocks have predivider for certain parent. >

Re: [PATCH v2] clk: sunxi: predivider handling for factors clock

2016-04-26 Thread Vishnu Patekar
Hello Wens, On Mon, Apr 25, 2016 at 10:51 PM, Chen-Yu Tsai wrote: > Hi, > > On Wed, Apr 20, 2016 at 12:47 AM, Vishnu Patekar > wrote: >> For A31 ahb1 and a83t ahb1 clocks have predivider for certain parent. >> To handle this, this patch adds predivider table with paren

[PATCH v2] sunxi factors clock predivider handling

2016-04-19 Thread Vishnu Patekar
in separate patch. v1->v2 Changes: 1. As 'kbuild test robot' reported build failure due to dependency on patches, Combined two patches in v1 into single patch. Vishnu Patekar (1): clk: sunxi: predivider handling for factors clock drivers/clk/sunxi/clk-factors.c |

[PATCH v2] sunxi factors clock predivider handling

2016-04-19 Thread Vishnu Patekar
in separate patch. v1->v2 Changes: 1. As 'kbuild test robot' reported build failure due to dependency on patches, Combined two patches in v1 into single patch. Vishnu Patekar (1): clk: sunxi: predivider handling for factors clock drivers/clk/sunxi/clk-factors.c |

[PATCH v2] clk: sunxi: predivider handling for factors clock

2016-04-19 Thread Vishnu Patekar
. Also, adds prediv table for a31. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- drivers/clk/sunxi/clk-factors.c | 31 +++ drivers/clk/sunxi/clk-factors.h | 10 +- drivers/clk/sunxi/clk-sunxi.c | 31 +-- 3

[PATCH v2] clk: sunxi: predivider handling for factors clock

2016-04-19 Thread Vishnu Patekar
. Also, adds prediv table for a31. Signed-off-by: Vishnu Patekar --- drivers/clk/sunxi/clk-factors.c | 31 +++ drivers/clk/sunxi/clk-factors.h | 10 +- drivers/clk/sunxi/clk-sunxi.c | 31 +-- 3 files changed, 33 insertions(+), 39

Re: [PATCH 1/2] clk: sunxi: add predivider handling for factors clock

2016-04-19 Thread Vishnu Patekar
Hello Wens, On Tue, Apr 19, 2016 at 10:16 PM, Chen-Yu Tsai <w...@csie.org> wrote: > On Tue, Apr 19, 2016 at 6:22 PM, Philip Li <philip...@intel.com> wrote: >> On Sun, Apr 17, 2016 at 11:53:47AM +0800, Vishnu Patekar wrote: >>> Both of these patches in series has

Re: [PATCH 1/2] clk: sunxi: add predivider handling for factors clock

2016-04-19 Thread Vishnu Patekar
Hello Wens, On Tue, Apr 19, 2016 at 10:16 PM, Chen-Yu Tsai wrote: > On Tue, Apr 19, 2016 at 6:22 PM, Philip Li wrote: >> On Sun, Apr 17, 2016 at 11:53:47AM +0800, Vishnu Patekar wrote: >>> Both of these patches in series has to be applied at the same time. >>>

[PATCH 2/2] clk: sunxi: add prediv table for a31 ahb1 clock

2016-04-16 Thread Vishnu Patekar
For ahb1 clock, move mshift and mwidth to parent specific width and shift. getter differentiates parents with prediv, with non-zero prediv width. Also, removed unused ahb1 recalc function, it's now handled in generic factors recalc. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.

[PATCH 2/2] clk: sunxi: add prediv table for a31 ahb1 clock

2016-04-16 Thread Vishnu Patekar
For ahb1 clock, move mshift and mwidth to parent specific width and shift. getter differentiates parents with prediv, with non-zero prediv width. Also, removed unused ahb1 recalc function, it's now handled in generic factors recalc. Signed-off-by: Vishnu Patekar --- drivers/clk/sunxi/clk

[PATCH 1/2] clk: sunxi: add predivider handling for factors clock

2016-04-16 Thread Vishnu Patekar
. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- drivers/clk/sunxi/clk-factors.c | 31 +++ drivers/clk/sunxi/clk-factors.h | 10 +- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/drivers/clk/sunxi/clk-factors.c b/drive

[PATCH 0/2] sunxi factors clock predivider handling

2016-04-16 Thread Vishnu Patekar
was currently used only by a31 ahb1. For getter, it differentiates parents with prediv, with non-zero prediv width. I've tested this patch on a83t bpi-m3 board. I do not have a31 device. a83t changes are not included in this patch, It'll be included in separate patch. Vishnu Patekar (2): clk: sunxi

[PATCH 1/2] clk: sunxi: add predivider handling for factors clock

2016-04-16 Thread Vishnu Patekar
. Signed-off-by: Vishnu Patekar --- drivers/clk/sunxi/clk-factors.c | 31 +++ drivers/clk/sunxi/clk-factors.h | 10 +- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c index

[PATCH 0/2] sunxi factors clock predivider handling

2016-04-16 Thread Vishnu Patekar
was currently used only by a31 ahb1. For getter, it differentiates parents with prediv, with non-zero prediv width. I've tested this patch on a83t bpi-m3 board. I do not have a31 device. a83t changes are not included in this patch, It'll be included in separate patch. Vishnu Patekar (2): clk: sunxi

Re: [PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-04-16 Thread Vishnu Patekar
Hello Maxime, On Fri, Apr 15, 2016 at 1:28 AM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Mon, Apr 04, 2016 at 11:07:29AM +0800, Vishnu Patekar wrote: >> Hello Maxime, >> >> On Thu, Mar 17, 2016 at 6:40 PM, Maxime Ripard >> <maxime.rip...@fr

Re: [PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-04-16 Thread Vishnu Patekar
Hello Maxime, On Fri, Apr 15, 2016 at 1:28 AM, Maxime Ripard wrote: > On Mon, Apr 04, 2016 at 11:07:29AM +0800, Vishnu Patekar wrote: >> Hello Maxime, >> >> On Thu, Mar 17, 2016 at 6:40 PM, Maxime Ripard >> wrote: >> > On Thu, Mar 17, 2016 at 12:04:25AM +08

Re: [PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-04-03 Thread Vishnu Patekar
Hello Maxime, On Thu, Mar 17, 2016 at 6:40 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > On Thu, Mar 17, 2016 at 12:04:25AM +0800, Vishnu Patekar wrote: >> AHB1 on A83T is similar to ahb1 on A31, except parents are different. >> clock index 0b1x is P

Re: [PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-04-03 Thread Vishnu Patekar
Hello Maxime, On Thu, Mar 17, 2016 at 6:40 PM, Maxime Ripard wrote: > On Thu, Mar 17, 2016 at 12:04:25AM +0800, Vishnu Patekar wrote: >> AHB1 on A83T is similar to ahb1 on A31, except parents are different. >> clock index 0b1x is PLL6. >> >> Signed-off-by: Vishnu Pa

[PATCH v4 03/13] clk: sunxi: Add APB1 clock for A83T

2016-03-19 Thread Vishnu Patekar
APB1 is similar to sun4i-a10-apb0-clk, except different dividers. This adds support for apb1 on A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi

[PATCH v4 03/13] clk: sunxi: Add APB1 clock for A83T

2016-03-19 Thread Vishnu Patekar
APB1 is similar to sun4i-a10-apb0-clk, except different dividers. This adds support for apb1 on A83T. Signed-off-by: Vishnu Patekar Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 13 + 2 files

[PATCH v4 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-03-19 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ar

[PATCH v4 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-03-19 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch

[PATCH v4 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-03-19 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/ar

[PATCH v4 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-03-19 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/Makefile

[PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-19 Thread Vishnu Patekar
The A83T has R_PIO pin controller, it's same as A23, execpt A83T interrupt bit is 6th and A83T has one extra pin PL12. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings

[PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-19 Thread Vishnu Patekar
The A83T has R_PIO pin controller, it's same as A23, execpt A83T interrupt bit is 6th and A83T has one extra pin PL12. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pinctrl/sunxi/Kconfig

[PATCH v4 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-03-19 Thread Vishnu Patekar
This adds A83T system bus clocks, bus gates, and clock resets. Three ahb reset registers are combined into one node. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 114 +- 1 file changed, 112 inse

[PATCH v4 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-03-19 Thread Vishnu Patekar
This adds A83T system bus clocks, bus gates, and clock resets. Three ahb reset registers are combined into one node. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 114 +- 1 file changed, 112 insertions(+), 2 deletions(-) diff --git

[PATCH v4 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-03-19 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff

[PATCH v4 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-03-19 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/sun8i

[PATCH v4 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-03-19 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83

[PATCH v4 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-03-19 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i

[PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-03-19 Thread Vishnu Patekar
AHB1 on A83T is similar to ahb1 on A31, except parents are different. clock index 0b1x is PLL6. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/cl

[PATCH v4 02/13] clk: sunxi: add ahb1 clock for A83T

2016-03-19 Thread Vishnu Patekar
AHB1 on A83T is similar to ahb1 on A31, except parents are different. clock index 0b1x is PLL6. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 76

[PATCH v4 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-19 Thread Vishnu Patekar
This patch adds Kconfig for sunxi clocks. Currently, only sun8i-apb0 and sun9i-cpus clocks are added. It'll help to use common clocks across different SOCs. We can switch to kconfig for other clocks in future. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- drivers/clk/K

[PATCH v4 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-19 Thread Vishnu Patekar
This patch adds Kconfig for sunxi clocks. Currently, only sun8i-apb0 and sun9i-cpus clocks are added. It'll help to use common clocks across different SOCs. We can switch to kconfig for other clocks in future. Signed-off-by: Vishnu Patekar --- drivers/clk/Kconfig| 1 + drivers/clk/sunxi

[PATCH v4 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-03-19 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts

[PATCH v4 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-03-19 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 21

[PATCH v4 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-03-19 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Tested-by: LABBE Corentin <clabbe.montj...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a8

[PATCH v4 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-03-19 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar Tested-by: LABBE Corentin --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t

[PATCH v4 05/13] ARM: dts: sun8i-a83t: add mmc clock nodes

2016-03-19 Thread Vishnu Patekar
mmc clocks are compatible with that of earlier sun8i socs. This adds mmc0, mmc1, and mmc2 clock nodes for A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 30 ++

[PATCH v4 05/13] ARM: dts: sun8i-a83t: add mmc clock nodes

2016-03-19 Thread Vishnu Patekar
mmc clocks are compatible with that of earlier sun8i socs. This adds mmc0, mmc1, and mmc2 clock nodes for A83T. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch

Re: [PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-18 Thread Vishnu Patekar
Hello Linus, On Thu, Mar 17, 2016 at 10:51 PM, Linus Walleij <linus.wall...@linaro.org> wrote: > On Wed, Mar 16, 2016 at 5:04 PM, Vishnu Patekar > <vishnupatekar0...@gmail.com> wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> inte

Re: [PATCH v4 01/13] pinctrl: sunxi: Add A83T R_PIO controller

2016-03-18 Thread Vishnu Patekar
Hello Linus, On Thu, Mar 17, 2016 at 10:51 PM, Linus Walleij wrote: > On Wed, Mar 16, 2016 at 5:04 PM, Vishnu Patekar > wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> interrupt bit is 6th and A83T has one extra pin PL12. >> >&

[PATCH v4 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-03-18 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu T

[PATCH v4 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-03-18 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH v4 00/13] Add A83T clk, r_pio, mmc rsb support

2016-03-18 Thread Vishnu Patekar
eference design pin patch 11: enables mmc0 support for h8homlet board, tested by LABBE Corentin. patch 12: This patch adds support for Sinovoip BPI-M3 A83T based board, it has 2GB LPDDR3, u-boot support is added recently for this board. patch 13: Adds kconfig for clocks(sun8i-apb0 and sun9i-cpus).

[PATCH v4 00/13] Add A83T clk, r_pio, mmc rsb support

2016-03-18 Thread Vishnu Patekar
eference design pin patch 11: enables mmc0 support for h8homlet board, tested by LABBE Corentin. patch 12: This patch adds support for Sinovoip BPI-M3 A83T based board, it has 2GB LPDDR3, u-boot support is added recently for this board. patch 13: Adds kconfig for clocks(sun8i-apb0 and sun9i-cpus).

Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-11 Thread Vishnu Patekar
Hello Linus, On Wed, Mar 9, 2016 at 10:55 AM, Linus Walleij <linus.wall...@linaro.org> wrote: > On Sat, Mar 5, 2016 at 10:42 PM, Vishnu Patekar > <vishnupatekar0...@gmail.com> wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> inte

Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-11 Thread Vishnu Patekar
Hello Linus, On Wed, Mar 9, 2016 at 10:55 AM, Linus Walleij wrote: > On Sat, Mar 5, 2016 at 10:42 PM, Vishnu Patekar > wrote: > >> The A83T has R_PIO pin controller, it's same as A23, execpt A83T >> interrupt bit is 6th and A83T has one extra pin PL12. >> >&

Re: [PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-05 Thread Vishnu Patekar
Hello, On Sat, Mar 5, 2016 at 11:43 PM, Vishnu Patekar <vishnupatekar0...@gmail.com> wrote: > This patch adds Kconfig for sunxi clocks. > Currently, only sun8i-apb0 and sun9i-cpus clocks are added. > It'll help to use common clocks across different SOCs. > We can switch to

Re: [PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-05 Thread Vishnu Patekar
Hello, On Sat, Mar 5, 2016 at 11:43 PM, Vishnu Patekar wrote: > This patch adds Kconfig for sunxi clocks. > Currently, only sun8i-apb0 and sun9i-cpus clocks are added. > It'll help to use common clocks across different SOCs. > We can switch to kconfig for other clocks in future. &g

[PATCH v3 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-03-05 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff

[PATCH v3 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-03-05 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ar

[PATCH v3 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-03-05 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/sun8i

[PATCH v3 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-03-05 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch

[PATCH v3 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-03-05 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts

[PATCH v3 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-03-05 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Tested-by: LABBE Corentin <clabbe.montj...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a8

[PATCH v3 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-03-05 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu T

[PATCH v3 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-03-05 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 21

[PATCH v3 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-03-05 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar Tested-by: LABBE Corentin --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t

[PATCH v3 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-03-05 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH v3 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-03-05 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/ar

[PATCH v3 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-03-05 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83

[PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-05 Thread Vishnu Patekar
This patch adds Kconfig for sunxi clocks. Currently, only sun8i-apb0 and sun9i-cpus clocks are added. It'll help to use common clocks across different SOCs. We can switch to kconfig for other clocks in future. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- drivers/clk/K

[PATCH v3 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-03-05 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/Makefile

[PATCH v3 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-03-05 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i

[PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

2016-03-05 Thread Vishnu Patekar
This patch adds Kconfig for sunxi clocks. Currently, only sun8i-apb0 and sun9i-cpus clocks are added. It'll help to use common clocks across different SOCs. We can switch to kconfig for other clocks in future. Signed-off-by: Vishnu Patekar --- drivers/clk/Kconfig| 1 + drivers/clk/sunxi

[PATCH v3 03/13] clk: sunxi: Add APB1 clock for A83T

2016-03-05 Thread Vishnu Patekar
APB1 is similar to sun4i-a10-apb0-clk, except different dividers. This adds support for apb1 on A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi

[PATCH v3 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-03-05 Thread Vishnu Patekar
This adds A83T system bus clocks, bus gates, and clock resets. Three ahb reset registers are combined into one node. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 114 +- 1 file changed, 112 inse

[PATCH v3 05/13] ARM: dts: sun8i-a83t: add mmc clock nodes

2016-03-05 Thread Vishnu Patekar
mmc clocks are compatible with that of earlier sun8i socs. This adds mmc0, mmc1, and mmc2 clock nodes for A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 30 ++

[PATCH v3 02/13] clk: sunxi: add ahb1 clock for A83T

2016-03-05 Thread Vishnu Patekar
AHB1 on A83T is similar to ahb1 on A31, except parents are different. clock index 0b1x is PLL6. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Rob Herring <r...@kernel.org> --- Documentation/devicetree/bindings/cl

[PATCH v3 03/13] clk: sunxi: Add APB1 clock for A83T

2016-03-05 Thread Vishnu Patekar
APB1 is similar to sun4i-a10-apb0-clk, except different dividers. This adds support for apb1 on A83T. Signed-off-by: Vishnu Patekar Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 13 + 2 files

[PATCH v3 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-03-05 Thread Vishnu Patekar
This adds A83T system bus clocks, bus gates, and clock resets. Three ahb reset registers are combined into one node. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 114 +- 1 file changed, 112 insertions(+), 2 deletions(-) diff --git

[PATCH v3 05/13] ARM: dts: sun8i-a83t: add mmc clock nodes

2016-03-05 Thread Vishnu Patekar
mmc clocks are compatible with that of earlier sun8i socs. This adds mmc0, mmc1, and mmc2 clock nodes for A83T. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch

[PATCH v3 02/13] clk: sunxi: add ahb1 clock for A83T

2016-03-05 Thread Vishnu Patekar
AHB1 on A83T is similar to ahb1 on A31, except parents are different. clock index 0b1x is PLL6. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/clk-sunxi.c | 76

[PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-05 Thread Vishnu Patekar
The A83T has R_PIO pin controller, it's same as A23, execpt A83T interrupt bit is 6th and A83T has one extra pin PL12. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu Tsai <w...@csie.org> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings

[PATCH v3 00/13] Add A83T clk, r_pio, mmc rsb support

2016-03-05 Thread Vishnu Patekar
s added recently for this board. patch 13: Adds kconfig for clocks(sun8i-apb0 and sun9i-cpus). Vishnu Patekar (13): pinctrl: sunxi: Add A83T R_PIO controller support clk: sunxi: add ahb1 clock for A83T clk: sunxi: Add APB1 clock for A83T ARM: dts: sun8i-a83t: Add basic clocks and resets

[PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support

2016-03-05 Thread Vishnu Patekar
The A83T has R_PIO pin controller, it's same as A23, execpt A83T interrupt bit is 6th and A83T has one extra pin PL12. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai Acked-by: Rob Herring --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pinctrl/sunxi/Kconfig

[PATCH v3 00/13] Add A83T clk, r_pio, mmc rsb support

2016-03-05 Thread Vishnu Patekar
s added recently for this board. patch 13: Adds kconfig for clocks(sun8i-apb0 and sun9i-cpus). Vishnu Patekar (13): pinctrl: sunxi: Add A83T R_PIO controller support clk: sunxi: add ahb1 clock for A83T clk: sunxi: Add APB1 clock for A83T ARM: dts: sun8i-a83t: Add basic clocks and resets

Re: [PATCH v2 13/13] ARM: sunxi: Introduce MACH_SUN8I_A83T option

2016-03-02 Thread Vishnu Patekar
Hello Maxime, On Tue, Mar 1, 2016 at 3:12 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Sun, Feb 28, 2016 at 11:18:58PM +0800, Vishnu Patekar wrote: >> A83T has CPUS clock similar to A80's. currently, a80 cpus clock only >> comp

Re: [PATCH v2 13/13] ARM: sunxi: Introduce MACH_SUN8I_A83T option

2016-03-02 Thread Vishnu Patekar
Hello Maxime, On Tue, Mar 1, 2016 at 3:12 PM, Maxime Ripard wrote: > Hi, > > On Sun, Feb 28, 2016 at 11:18:58PM +0800, Vishnu Patekar wrote: >> A83T has CPUS clock similar to A80's. currently, a80 cpus clock only >> compiled for A80. So, Introduce MACH_SUN8I_A83T to c

Re: [PATCH v2 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-02-29 Thread Vishnu Patekar
Hello Wens, On Mon, Feb 29, 2016 at 1:29 AM, Chen-Yu Tsai <w...@csie.org> wrote: > On Sun, Feb 28, 2016 at 7:18 AM, Vishnu Patekar > <vishnupatekar0...@gmail.com> wrote: >> This adds A83T system bus clocks, bus gates, and clock resets. >> >> Three ahb reset

Re: [PATCH v2 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets

2016-02-29 Thread Vishnu Patekar
Hello Wens, On Mon, Feb 29, 2016 at 1:29 AM, Chen-Yu Tsai wrote: > On Sun, Feb 28, 2016 at 7:18 AM, Vishnu Patekar > wrote: >> This adds A83T system bus clocks, bus gates, and clock resets. >> >> Three ahb reset registers are combined into one node. >> &g

[PATCH v2 13/13] ARM: sunxi: Introduce MACH_SUN8I_A83T option

2016-02-28 Thread Vishnu Patekar
A83T has CPUS clock similar to A80's. currently, a80 cpus clock only compiled for A80. So, Introduce MACH_SUN8I_A83T to compile it for A83T as well. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/mach-sunxi/Kconfig | 5 + drivers/clk/sunxi/Makefile | 3 +++ 2

[PATCH v2 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-02-28 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ar

[PATCH v2 13/13] ARM: sunxi: Introduce MACH_SUN8I_A83T option

2016-02-28 Thread Vishnu Patekar
A83T has CPUS clock similar to A80's. currently, a80 cpus clock only compiled for A80. So, Introduce MACH_SUN8I_A83T to compile it for A83T as well. Signed-off-by: Vishnu Patekar --- arch/arm/mach-sunxi/Kconfig | 5 + drivers/clk/sunxi/Makefile | 3 +++ 2 files changed, 8 insertions

[PATCH v2 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin

2016-02-28 Thread Vishnu Patekar
A83T Boards BPI-m3 and Allwinner H8Homletv2 boards use PF6 as Card Detect pin., so use PF6 as reference design CD pin in dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch

[PATCH v2 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-02-28 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Acked-by: Chen-Yu T

[PATCH v2 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-02-28 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff

[PATCH v2 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-02-28 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83

[PATCH v2 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-02-28 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/arm/boot/dts

[PATCH v2 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets

2016-02-28 Thread Vishnu Patekar
This adds A83T PRCM related clocks, clock resets. As a83t apb0 gates clock support is added earlier, this enables it. Apart from apb0 gates, other added clocks are compatible with earlier sun8i socs. Signed-off-by: Vishnu Patekar Acked-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi

[PATCH v2 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes

2016-02-28 Thread Vishnu Patekar
A83T mmc is compatible with earliers sunxi socs. This adds mmc0, mmc1, and mmc2 controller nodes for A83T. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm/boot/dts/sun8i

[PATCH v2 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi

2016-02-28 Thread Vishnu Patekar
Now that we have a driver for the R_PIO controller, add the corresponding device node to the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i

[PATCH v2 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi

2016-02-28 Thread Vishnu Patekar
This patch adds a device node for the Reduced Serial Bus (RSB) controller and the defacto pinmux setting to the A83T dtsi. Since there is only one possible pinmux setting for RSB, just set it in the dtsi. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/sun8i-a83t.dtsi | 21

[PATCH v2 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-02-28 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> --- arch/ar

[PATCH v2 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board

2016-02-28 Thread Vishnu Patekar
This patch adds support for Sinovoip BPI-M3 A83T based board. It has 2G LPDDR3, UART, ethernet, USB, HDMI, USB Sata, MIPI DSI, mic, AP6212 Wifi, etc on it. It is paired with AXP813 PMIC which is almost same as AXP818. Signed-off-by: Vishnu Patekar --- arch/arm/boot/dts/Makefile

[PATCH v2 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-02-28 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar <vishnupatekar0...@gmail.com> Tested-by: LABBE Corentin <clabbe.montj...@gmail.com> --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a8

[PATCH v2 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board.

2016-02-28 Thread Vishnu Patekar
This enables mmc0. Signed-off-by: Vishnu Patekar Tested-by: LABBE Corentin --- arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts b/arch/arm/boot/dts/sun8i-a83t

  1   2   3   >