Re: [linux-sunxi] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support

2019-01-11 Thread Tom Rini
On Fri, Jan 11, 2019 at 12:46:36PM +0530, Jagan Teki wrote: > On Sat, Dec 22, 2018 at 7:06 AM Andre Przywara wrote: > > > > So far we used the separate mksunxiboot tool for generating a bootable > > image for Allwinner SPLs, probably just for historical reasons. > > > > Use the mkimage framework

[linux-sunxi] [PATCH v6.1 15/20] arm: sunxi: Enable CLK, RESET

2019-01-11 Thread Jagan Teki
CLK and DM_RESET drivers are now available for all of the Allwinner platforms, so enable them in arch/arm/Kconfig Enabling CLK will select DM_RESET by default. Signed-off-by: Jagan Teki --- Changes for v6.1: - Enable CLK at one place since all Allwinner SoC's supported arch/arm/Kconfig | 1 +

[linux-sunxi] [PATCH 3/3] arm64: dts: allwinner: a64: Orange Pi Win: Enable IR

2019-01-11 Thread Jernej Skrabec
OrangePi Win board contains IR receiver. Enable it. Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts

[linux-sunxi] [PATCH 0/3] Add support for IR on Allwinner A64

2019-01-11 Thread Jernej Skrabec
IR on A64 is nothing special and very similar to IR on A13 to the point that same driver can be used. Following patches just add necessary DT changes. Best regards, Jernej Igors Makejevs (1): arm64: dts: allwinner: a64: Add IR node Jernej Skrabec (2): media: dt: bindings: sunxi-ir: Add A64

[linux-sunxi] [PATCH 2/3] arm64: dts: allwinner: a64: Add IR node

2019-01-11 Thread Jernej Skrabec
From: Igors Makejevs IR is similar to that in A13 and can use same driver. Signed-off-by: Igors Makejevs Signed-off-by: Jernej Skrabec --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[linux-sunxi] [PATCH 6/7] arm: sunxi: Enable DM_MMC

2019-01-11 Thread Jagan Teki
Enable DM_MMC for all Allwinner SoCs, this will eventually enable BLK. Also removed DM_MMC enablement in few parts of sunxi configurations. Signed-off-by: Jagan Teki --- arch/arm/Kconfig | 1 + arch/arm/mach-sunxi/Kconfig | 1 -

[linux-sunxi] [PATCH 4/7] mmc: sunxi: Add DM_MMC support for H6

2019-01-11 Thread Jagan Teki
Unlike other Allwinner SoC's, H6 comes with different clock and reset control offset values. So support them via driver data. Signed-off-by: Jagan Teki --- .../arm/include/asm/arch-sunxi/clock_sun50i_h6.h | 3 +++ drivers/mmc/sunxi_mmc.c | 16 2 files

[linux-sunxi] [PATCH 1/7] mmc: sunxi: Configure reset support for DM_MMC

2019-01-11 Thread Jagan Teki
Start with Allwinner A31, mmc controllers do support reset control bit. This code add support to enable the reset control start from SUN6I even though it share same compatible between SUN4I and SUN6I. Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 21 +++-- 1 file

[linux-sunxi] [PATCH 7/7] arm: dts: sunxi: Enumerate MMC2 as MMC1

2019-01-11 Thread Jagan Teki
Environment and fastboot MMC devices are configured based number of mmc slots defined on particular board in sunxi platform. If number of slots are not more than 1, it assigns 0 which usually mmc device on SD slot. With DM_MMC it is detected as 0 since mmc0 node always be an mmc device. If

[linux-sunxi] [PATCH 3/7] mmc: sunxi: Add mmc, emmc H5/A64 compatible

2019-01-11 Thread Jagan Teki
Added H5, A64 compatible for mmc and emmc. Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 5557111c1f..b50d70645a 100644 --- a/drivers/mmc/sunxi_mmc.c +++

[linux-sunxi] [PATCH 2/7] mmc: sunxi: Add A83T emmc compatible

2019-01-11 Thread Jagan Teki
Add emmc compatible for A83T SoC. Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 0b17e2c391..5557111c1f 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@

[linux-sunxi] [PATCH 5/7] mmc: sunxi: Add DM_MMC support for A80

2019-01-11 Thread Jagan Teki
Unlike other Allwinner SoC's, A80 comes with different ahb gate clock offset values and also has mmc common controller. So support them via driver data. Cc: Rask Ingemann Lambertsen Signed-off-by: Jagan Teki --- drivers/mmc/sunxi_mmc.c | 24 1 file changed, 24

Re: [linux-sunxi] u-boot: MMC broken on Linksprite A10/A20 boards in 2018.11

2019-01-11 Thread Jagan Teki
On Fri, Jan 11, 2019 at 8:41 PM Zoltan HERPAI wrote: > > Hi, > > Jagan Teki wrote: > >>> A20, can boot as it is, it doesn't effect mmc node on DT, since DM_MMC > >>> is not available. > >>> > That's interesting, the Linksprite_pcDuino3_defconfig does have DM_MMC > set, and after applying your

[linux-sunxi] [PATCH 0/7] mmc: sunxi: Enable DM_MMC

2019-01-11 Thread Jagan Teki
I thought of waiting this till CLK framework gets Mainline, but migration deadline for DM_MMC and BLK seems expiring in next release. So instead of doing so huddle and make some last minute changes, I have managed to add CLK, Reset code for mmc driver via driver data. Add for all Allwinner

Re: [linux-sunxi] [PATCH 2/3] tools: mkimage: Add Allwinner eGON support

2019-01-11 Thread Jagan Teki
On Fri, Jan 11, 2019 at 5:54 PM Tom Rini wrote: > > On Fri, Jan 11, 2019 at 12:46:36PM +0530, Jagan Teki wrote: > > On Sat, Dec 22, 2018 at 7:06 AM Andre Przywara > > wrote: > > > > > > So far we used the separate mksunxiboot tool for generating a bootable > > > image for Allwinner SPLs,

[linux-sunxi] [PATCH 0/7] mmc: sunxi: Enable DM_MMC

2019-01-11 Thread Jagan Teki
I thought of waiting this till CLK framework gets Mainline, but migration deadline for DM_MMC and BLK seems expiring in next release. So instead of doing so huddle and make some last minute changes, I have managed to add CLK, Reset code for mmc driver via driver data. Add for all Allwinner

[linux-sunxi] Re: [PATCH 1/2] ARM: dts: sun8i: Update A80 dts(i) from Linux-v4.18-rc3

2019-01-11 Thread Jagan Teki
Chen-Yu and Rask, On Fri, Jan 11, 2019 at 4:46 PM Jagan Teki wrote: > > Update all A80 devicetree dtsi and dtsi files from > Linux-v4.18-rc3 with below commits. > > arch/arm/boot/dts/sun9i-a80*: > > commit 190e3138f9577885691540dca59c2f07540bde04 > Merge: cafc87023b0d a7affb13b271 > Author: Arnd

Re: [linux-sunxi] u-boot: MMC broken on Linksprite A10/A20 boards in 2018.11

2019-01-11 Thread Zoltan HERPAI
Hi, Jagan Teki wrote: A20, can boot as it is, it doesn't effect mmc node on DT, since DM_MMC is not available. That's interesting, the Linksprite_pcDuino3_defconfig does have DM_MMC set, and after applying your patch (thanks for working it out), it does fix this A20 board as well. A

[linux-sunxi] Stable Kernel 4.20.1 (NanoPi A64 / BananaPi M64)

2019-01-11 Thread @lex
Hi, I am running stable kernel 4.20.1 on NanoPi A64 with the linux-sunxi community patches and it works really well thanks for the hard work however i am struggling to get the sound card (any) detected and the upper USB receptacle is not working (for some reason). Regarding the USB upper slot

[linux-sunxi] Re: [PATCH 1/3] media: dt: bindings: sunxi-ir: Add A64 compatible

2019-01-11 Thread Chen-Yu Tsai
On Sat, Jan 12, 2019 at 1:30 AM Jernej Skrabec wrote: > > A64 IR is compatible with A13, so add A64 compatible with A13 as a > fallback. We ask people to add the SoC-specific compatible as a contigency, in case things turn out to be not so "compatible". To be consistent with all the other SoCs

[linux-sunxi] Re: [U-Boot] [PATCH 0/7] mmc: sunxi: Enable DM_MMC

2019-01-11 Thread Jagan Teki
On Sat, Jan 12, 2019 at 5:32 AM Vasily Khoruzhick wrote: > > On Fri, Jan 11, 2019 at 10:04 AM Jagan Teki > wrote: > > > > I thought of waiting this till CLK framework gets Mainline, > > but migration deadline for DM_MMC and BLK seems expiring in > > next release. So instead of doing so huddle