Re: [linux-sunxi] Re: [RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-23 Thread André Przywara
On 24/06/2020 01:34, Icenowy Zheng wrote: Hi, > 于 2020年6月24日 GMT+08:00 上午8:28:39, "André Przywara" > 写到: >> On 19/06/2020 13:16, Icenowy Zheng wrote: >> >> Hi Icenowy, >> >>> Previously we have known that R40 has a configuration regis

[linux-sunxi] Re: [RFC PATCH] sunxi: support asymmetric dual rank DRAM on A64/R40

2020-06-23 Thread André Przywara
On 19/06/2020 13:16, Icenowy Zheng wrote: Hi Icenowy, > Previously we have known that R40 has a configuration register for its > rank 1, which allows different configuration than rank 0. Reverse > engineering of newest libdram of A64 from Allwinner shows that A64 has > this register too. It's

[linux-sunxi] Re: [PATCH 3/6] sunxi: SPL SPI: Introduce is_new_gen_spi()

2020-01-26 Thread André Przywara
On 21/01/2020 08:20, Jagan Teki wrote: Hi Jagan, first: many thanks for merging those other patches of mine, much appreciated! > On Mon, Jan 6, 2020 at 6:59 AM Andre Przywara wrote: >> >> So far we were using the CONFIG_SUNXI_GEN_SUN6I symbol to select between >> the two SPI controller

[linux-sunxi] Re: [PATCH 1/2] arm64: dts: sun50i: H6: Add SPI controllers nodes and pinmuxes

2020-01-12 Thread André Przywara
On 11/01/2020 17:26, Maxime Ripard wrote: Hi Maxime, > On Wed, Jan 08, 2020 at 10:10:05AM +, Andre Przywara wrote: >> The Allwinner H6 SoC contains two SPI controllers similar to the H3/A64, >> but with the added capability of 3-wire and 4-wire operation modes. >> For now the driver does not

[linux-sunxi] Re: [PATCH 3/3] ARM: dts: sun8i: R40: Add SPI controllers nodes and pinmuxes

2020-01-05 Thread André Przywara
On 04/01/2020 10:04, Maxime Ripard wrote: Hi, > On Thu, Jan 02, 2020 at 10:41:58AM +, Andre Przywara wrote: >> On Thu, 2 Jan 2020 10:57:11 +0100 >> Maxime Ripard wrote: >>> On Thu, Jan 02, 2020 at 01:26:57AM +, Andre Przywara wrote: The Allwinner R40 SoC contains four SPI

[linux-sunxi] Re: [PATCH v2 0/7] sunxi: Add H6 DDR3 DRAM support

2019-07-14 Thread André Przywara
On 13/07/2019 10:55, Jernej Škrabec wrote: Hi, > Dne torek, 02. julij 2019 ob 11:51:41 CEST je Andre Przywara napisal(a): >> An updated version, with minor changes. >> I realised that my comments about JEDEC values were still based on the >> DDR3-1600 speed bin, so I updated those to match the

Re: [linux-sunxi] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support

2019-06-20 Thread André Przywara
On 20/06/2019 19:01, Clément Péron wrote: Hi Clément, thanks for trying that! ... > On Wed, 19 Jun 2019 at 12:03, Andre Przywara wrote: >> >> On Wed, 19 Jun 2019 10:57:14 +0200 >> Clément Péron wrote: >> >> Hi, >> >>> On Wed, 19 Jun 2019 at 03

Re: [linux-sunxi] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support

2019-06-18 Thread André Przywara
On 18/06/2019 08:50, Jagan Teki wrote: > On Thu, May 16, 2019 at 6:56 AM Andre Przywara wrote: Hi, >> this series enables USB support on the H6 boards. This is mostly just >> adding some missing pieces here and there, the actual controller and PHY >> are very similar to the previous ones, if

Re: [linux-sunxi] Re: [PATCH 6/6] sunxi: Pine64: DTS: enable USB PHY 0 for HCI0

2019-06-18 Thread André Przywara
On 18/06/2019 18:17, Jernej Škrabec wrote: > Dne torek, 18. junij 2019 ob 19:13:16 CEST je Clément Péron napisal(a): Hi, >> On Thu, 16 May 2019 at 03:27, Andre Przywara wrote: >>> The first USB controller on the H6 SoC shares a PHY with the OTG >>> controller. Reportedly to avoid problems with

Re: [linux-sunxi] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support

2019-06-18 Thread André Przywara
On Tue, 18 Jun 2019 19:22:34 +0200 Clément Péron wrote: Hi, > On Tue, 18 Jun 2019 at 19:08, Clément Péron wrote: > > > > Hi Andre, > > > > On Tue, 18 Jun 2019 at 09:50, Jagan Teki > > wrote: > > > > > > On Thu, May 16, 2019 at 6:56 AM Andre Przywara > > > wrote: > > > > > > > > Hi, >

Re: [linux-sunxi] [PATCH] phy: sun4i-usb: Fix PHY0 routing and passby configuration for MUSB

2019-05-26 Thread André Przywara
On 17/04/2019 12:28, Jagan Teki wrote: > On Mon, Apr 15, 2019 at 1:52 PM Paul Kocialkowski > wrote: Hi, >> Le vendredi 12 avril 2019 à 14:49 +0530, Jagan Teki a écrit : >>> On Thu, Mar 14, 2019 at 4:08 PM Paul Kocialkowski >>> wrote: Recent Allwinner platforms (starting with the H3) only

Re: [linux-sunxi] [PATCH 0/2] sunxi: A64: enable first USB port on Pine64 boards

2019-05-17 Thread André Przywara
On 17/05/2019 19:41, André Przywara wrote: > On 17/05/2019 19:15, Vasily Khoruzhick wrote: >> On Wed, May 15, 2019 at 5:46 PM Andre Przywara >> wrote: >>> >>> Since the beginning the upper USB port on Pine64 boards (Pine64+, SoPine >>> baseboard, Pin

Re: [linux-sunxi] [PATCH 0/2] sunxi: A64: enable first USB port on Pine64 boards

2019-05-17 Thread André Przywara
On 17/05/2019 19:15, Vasily Khoruzhick wrote: > On Wed, May 15, 2019 at 5:46 PM Andre Przywara wrote: >> >> Since the beginning the upper USB port on Pine64 boards (Pine64+, SoPine >> baseboard, Pine64-LTS, Pinebook) was not working under U-Boot. >> This is due to the PHY for those pins being

[linux-sunxi] Re: [PATCH 5/9] sunxi: allow FIT image for 32-bit builds as well

2019-02-22 Thread André Przywara
On 22/02/2019 08:06, Alexander Graf wrote: > > > On 21.02.19 02:30, Andre Przywara wrote: >> Even though we introduced FIT image support for the SPL to cover the >> 64-bit SoCs, there is no technical limitation to those parts. >> >> Change the Makefile stanza to always create a FIT image if the

[linux-sunxi] Re: [PATCH 2/3] arm: introduce _relaxed MMIO accessors

2019-02-06 Thread André Przywara
On 06/02/2019 12:46, Philipp Tomsich wrote: > On 11.01.2019, at 01:31, Andre Przywara wrote: Hi, >> >> The normal MMIO accessor macros (readX/writeX) guarantee a strong ordering, >> even with normal memory accesses [1]. >> For some MMIO operations (framebuffers being a prominent example) this

[linux-sunxi] Re: [PATCH v3 8/9] arm: sunxi: Enable DM_MMC

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > 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 Reviewed-by: Andre Przywara Cheers, Andre > --- > arch/arm/Kconfig

[linux-sunxi] Re: [PATCH v3 6/9] mmc: sunxi: Add DM_MMC support for A80

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > 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. As mentioned in the fix I sent, this requires the clock and reset support for CCU devices

[linux-sunxi] Re: [PATCH v3 5/9] mmc: sunxi: Add DM_MMC support for H6

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > Unlike other Allwinner SoC's, H6 comes with different > clock and reset control offset values. So support them > via driver data. Nit: It's just the mod clock offset we care about here, the rest is already handled by the new clock driver. > > Cc: Jaehoon

[linux-sunxi] Re: [PATCH v3 4/9] mmc: sunxi: Add mmc, emmc H5/A64 compatible

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > Added H5, A64 compatible for mmc and emmc. As mentioned, could be merged with the previous patch. > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara Cheers, Andre > --- > drivers/mmc/sunxi_mmc.c | 8 > 1 file

[linux-sunxi] Re: [PATCH v3 3/9] mmc: sunxi: Add A83T emmc compatible

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > Add emmc compatible for A83T SoC. You could merge this one with the next patch. > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki Reviewed-by: Andre Przywara Cheers, Andre. > --- > drivers/mmc/sunxi_mmc.c | 4 > 1 file changed, 4 insertions(+) >

[linux-sunxi] Re: [PATCH v3 1/9] sunxi: clk: add MMC gates/resets

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > From: Andre Przywara > > Add the MMC clock gates and reset bits for all the Allwinner SoCs. > This allows them to be used by the MMC driver. > > We don't advertise the mod clock yet, as this is still handled by the > MMC driver. > > Signed-off-by: Andre

[linux-sunxi] Re: [PATCH v3 7/9] dm: mmc: sunxi: Add CLK and RESET support

2019-01-22 Thread André Przywara
On 21/01/2019 10:31, Jagan Teki wrote: > Now CLK and RESET driver for Allwinner SoC are available, > so add the relevant operations on mmc sunxi driver. > > Cc: Jaehoon Chung > Signed-off-by: Jagan Teki > --- > Changes for v3: > - Grab changes for ML > > drivers/mmc/sunxi_mmc.c | 52

Re: [linux-sunxi] [PATCH 0/9] sunxi: enable DM_MMC

2019-01-20 Thread André Przywara
On 20/01/2019 19:51, Priit Laes wrote: Hi, > On Sat, Jan 19, 2019 at 01:30:46AM +, Andre Przywara wrote: >> This series enables the Allwinner MMC driver to drive all SoCs with its >> DM_MMC variant. We use the gates clock and reset support from the new >> clock driver, but keep the actual

[linux-sunxi] Re: [PATCH 0/9] sunxi: enable DM_MMC

2019-01-19 Thread André Przywara
On 19/01/2019 18:32, Vasily Khoruzhick wrote: > On Fri, Jan 18, 2019 at 5:32 PM Andre Przywara wrote: >> >> This series enables the Allwinner MMC driver to drive all SoCs with its >> DM_MMC variant. We use the gates clock and reset support from the new >> clock driver, but keep the actual mod

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

2019-01-19 Thread André Przywara
On 19/01/2019 05:50, Jagan Teki wrote: > On Fri, Jan 18, 2019 at 11:18 PM Andre Przywara > wrote: >> >> On Fri, 18 Jan 2019 22:11:36 +0530 >> Jagan Teki wrote: >> >> Hi, >> >>> On Fri, Jan 18, 2019 at 6:00 PM Andre Przywara >>> wrote: On Fri, 18 Jan 2019 07:17:41 -0500 Tom Rini

[linux-sunxi] Re: [PATCH v6 15/20] sunxi: Enable CLK

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > CLK and DM_RESET drivers are now available for most > of the Allwinner platforms, so enable in mach-sunxi/Kconfig > > Enabling CLK will select DM_RESET by default. Shame we don't have the new A80 DTs in our tree, otherwise we would have got away with a

[linux-sunxi] Re: [PATCH v6 14/20] sunxi: A64: Update sun50i-a64-ccu.h

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Update sun50i-a64-ccu.h from the Linux sunxi/dt64-for-4.20 tree: > commit 679294497be31596e1c9c61507746d72b6b05f26 > Author: Rodrigo Exterckötter Tjäder > Date: Wed Sep 26 19:48:24 2018 + > arm64: dts: allwinner: a64: a64-olinuxino: set the PHY

[linux-sunxi] Re: [PATCH v6 13/20] clk: sunxi: Add Allwinner H6 CLK driver

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Add initial clock driver for Allwinner H6. > > - Implement UART bus clocks via ccu_clk_gate table for > H6, so it can accessed in common clk enable and disable > functions from clk_sunxi.c > - Implement UART bus resets via ccu_reset table for H6, >

[linux-sunxi] Re: [PATCH v6 11/20] clk: sunxi: Implement UART clocks

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Implement UART clocks for all Allwinner SoC > clock drivers via ccu clock gate table. > > Signed-off-by: Jagan Teki Compared against each manual: Reviewed-by: Andre Przywara Thanks, Andre > --- > drivers/clk/sunxi/clk_a10.c | 9 + >

[linux-sunxi] Re: [PATCH v6 12/20] clk: sunxi: Implement UART resets

2019-01-10 Thread André Przywara
On 10/01/2019 18:40, Jagan Teki wrote: > Implement UART resets for all relevant Allwinner SoC > clock drivers via ccu reset table. > > Signed-off-by: Jagan Teki Compared against each manual: Reviewed-by: Andre Przywara Cheers, Andre. > --- > drivers/clk/sunxi/clk_a23.c | 6 ++ >

[linux-sunxi] Re: [PATCH v5 02/26] reset: Add Allwinner RESET driver

2019-01-09 Thread André Przywara
On 31/12/2018 16:59, Jagan Teki wrote: > Add common reset driver for all Allwinner SoC's. > > Since CLK and RESET share common DT compatible, it is CLK driver > job is to bind the reset driver. So add CLK bind call on respective > SoC driver by passing ccu map descriptor so-that reset deassert, >

[linux-sunxi] Re: [PATCH v5 15/26] clk: sunxi: Add ccu clock tree support

2019-01-09 Thread André Przywara
On 08/01/2019 19:12, Jagan Teki wrote: > On Tue, Jan 8, 2019 at 5:09 PM Andre Przywara wrote: >> >> On Tue, 8 Jan 2019 16:27:14 +0530 >> Jagan Teki wrote: >> >> Hi, >> >>> On Mon, Jan 7, 2019 at 6:35 AM André Przywara >>> wrote: >

[linux-sunxi] Re: [PATCH v5 00/26] clk: Add Allwinner CLK, RESET support

2019-01-06 Thread André Przywara
On 06/01/2019 19:22, Jagan Teki wrote: > On Sun, Jan 6, 2019 at 6:49 PM André Przywara wrote: >> >> On 31/12/2018 16:59, Jagan Teki wrote: >> >> Hi Jagan, >> >> many thanks for picking this up, I was about to come back to this >> myself. I am looking a

[linux-sunxi] Re: [PATCH v5 15/26] clk: sunxi: Add ccu clock tree support

2019-01-06 Thread André Przywara
On 31/12/2018 16:59, Jagan Teki wrote: > Clock control unit comprises of parent clocks, gates, multiplexers, > dividers, multipliers, pre/post dividers and flags etc. > > So, the U-Boot implementation of ccu has divided into gates and tree. > gates are generic clock configuration of

[linux-sunxi] Re: [PATCH v5 00/26] clk: Add Allwinner CLK, RESET support

2019-01-06 Thread André Przywara
On 31/12/2018 16:59, Jagan Teki wrote: Hi Jagan, many thanks for picking this up, I was about to come back to this myself. I am looking at the pinctrl part at the moment, so good you are working on the clocks! TL;DR: I am good with the first patches, but would like to drop the last five 5

Re: [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-30 Thread André Przywara
On 29/12/2018 22:10, Olliver Schinagl wrote: Hi Olliver, > Luckily we have had no problem with this on our boards, but its sad to > see this patch reverted due to the buggy ddr implementation ... This whole SPL is quite a sensitive construct, so moving things around can have interesting

Re: [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread André Przywara
On 19/12/2018 00:51, André Przywara wrote: > On 18/12/2018 12:06, Jagan Teki wrote: >> On Tue, Dec 18, 2018 at 4:09 PM wrote: >>> >>> From: Karl Palsson >>> >>> This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 >>> >>>

Re: [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread André Przywara
On 18/12/2018 12:06, Jagan Teki wrote: > On Tue, Dec 18, 2018 at 4:09 PM wrote: >> >> From: Karl Palsson >> >> This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 >> >> This causes DRAM init failures on (at least) >> * allwinner h3 nanopi-duo2 >> * allwinner h2+ orangepi zero v1.1 >> >>

[linux-sunxi] Allwinner BootROM loading eGON from 128KB

2018-12-15 Thread André Przywara
Hi, I am not sure this is widely known, at least I couldn't find anything about it: While looking at the eMMC content of the Eachlink H6 Mini TV box, I was surprised to find an identical boot0 copy at offset 128KB of the eMMC device, in addition to the usual version at 8K. Some experiments later

[linux-sunxi] Re: [PATCH v2 5/6] sunxi: add Kconfig option for the maximum accessible DRAM

2018-10-25 Thread André Przywara
On 10/25/18 10:23 AM, Icenowy Zheng wrote: > Allwinner 64-bit SoCs can use 4GiB DRAM chip, however their memory map > has only allocated 3GiB for DRAM, so only 3GiB of the DRAM is > accessible. > > Add a Kconfig option for the maximum accessible DRAM. > > For A80 it should be a much higher value

[linux-sunxi] Re: [PATCH v2 1/6] sunxi: disable Pine A64 model detection code on other boards

2018-10-25 Thread André Przywara
On 10/25/18 10:23 AM, Icenowy Zheng wrote: > The Pine A64 Plus/non-Plus model detection code is now built on all > 64-bit ARM SoCs, even if the code cannot be triggered when H5/H6 is in > use. > > Disable them when the board is Pine A64 by adding a Kconfig option that > is only selected on Pine

[linux-sunxi] Re: [PATCH v2 4/6] sunxi: map DRAM part with 3G size

2018-10-25 Thread André Przywara
On 10/25/18 10:23 AM, Icenowy Zheng wrote: > All Allwinner 64-bit SoCs now are known to be able to access 3GiB of > external DRAM, however the size of DRAM part in the MMU translation > table is still 2GiB. > > Change the size of DRAM part in MMU table to 3GiB. > > Signed-off-by: Icenowy Zheng

[linux-sunxi] Re: [PATCH v2 0/6] sunxi: extend SPL header to propagate DRAM size and H6 3GiB DRAM support

2018-10-25 Thread André Przywara
On 10/25/18 10:23 AM, Icenowy Zheng wrote: Hi Icenowy, thanks for picking this up, resending and adapting this! > This series tries to solve three issues we currently have on > Allwinner boards: > - The DRAM sizing routine can only cope with power-of-two sized DRAM. > - The DRAM sizing routine

Re: [linux-sunxi] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size

2018-10-22 Thread André Przywara
On 10/22/18 2:26 AM, Icenowy Zheng wrote: > 在 2018-05-17四的 09:16 +0100,Andre Przywara写道: >> This series tries to solve three issues we currently have on >> Allwinner boards: >> - The DRAM sizing routine can only cope with power-of-two sized DRAM. >> - The DRAM sizing routine steps through all

[linux-sunxi] Re: [PATCH 1/2] arm64: arch_timer: Workaround for Allwinner A64 timer instability

2018-05-26 Thread André Przywara
On 05/11/2018 03:27 AM, Samuel Holland wrote: > The Allwinner A64 SoC is known [1] to have an unstable architectural > timer, which manifests itself most obviously in the time jumping forward > a multiple of 95 years [2][3]. This coincides with 2^56 cycles at a > timer frequency of 24 MHz,

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: h6: add device tree nodes for MMC controllers

2018-04-27 Thread André Przywara
On 27/04/18 10:23, Icenowy Zheng wrote: > > > 于 2018年4月27日 GMT+08:00 下午5:18:23, Andre Przywara 写到: >> Hi, >> >> On 27/04/18 09:36, Icenowy Zheng wrote: >>> >>> >>> 于 2018年4月27日 GMT+08:00 上午12:45:38, Andre Przywara >> 写到: Hi, On

Re: [linux-sunxi] Re: [PATCH v2 5/6] sunxi: add code for recalculating the DRAM size in U-Boot

2018-04-03 Thread André Przywara
On 03/04/18 15:13, Siarhei Siamashka wrote: Hi Siarhei, thanks for chiming in! > On Tue, 3 Apr 2018 13:43:43 +0100 > Andre Przywara wrote: >> On 03/04/18 12:51, Icenowy Zheng wrote: I guess we'd need to find another way (put some information in an SRAM

[linux-sunxi] Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 13:47, Mark Kettenis wrote: Hi, >> From: =?UTF-8?Q?Andr=c3=a9_Przywara?= >> Date: Mon, 2 Apr 2018 12:51:50 +0100 >> >> On 02/04/18 12:20, Mark Kettenis wrote: >> >> >> This feature make U-Boot to have full Linux dts inside, Can't we implement

[linux-sunxi] Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 12:20, Mark Kettenis wrote: >> This feature make U-Boot to have full Linux dts inside, Can't we >> implement automatic-boot-of-os distro to grab Linux dtb during >> commands stage like other distro does? Because this make few >> development struggles for U-Boot project like (few

[linux-sunxi] Re: [U-Boot] [PATCH v4 00/19] sunxi: sync H3, H5, A64 DTs from mainline Linux

2018-04-02 Thread André Przywara
On 02/04/18 08:40, Jagan Teki wrote: Hi Jagan, > On Thu, Mar 29, 2018 at 2:49 PM, Andre Przywara > wrote: >> Hi, >> >> On 29/03/18 09:51, Jagan Teki wrote: >>> Hi Andre, >>> >>> On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara >>> wrote: A

[linux-sunxi] Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-02 Thread André Przywara
Hi, On 02/04/18 03:30, Simon Glass wrote: > > Hi Andre, > > On 2 April 2018 at 09:43, André Przywara <andre.przyw...@arm.com> wrote: >> Hi, >> >> On 01/04/18 14:19, Tom Rini wrote: >>> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wr

[linux-sunxi] Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread André Przywara
Hi, On 01/04/18 14:19, Tom Rini wrote: > On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >> On Mon, Sep 4, 2017 at 9:57 PM, wrote: >>> Hi Tom, >>> >>> On 7 August 2017 at 09:39, Tom Rini wrote: On Sat, Aug 05, 2017 at 03:45:53PM -0600,

Re: [linux-sunxi] Re: [U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-31 Thread André Przywara
On 30/03/18 05:25, Chen-Yu Tsai wrote: >> OK. So meanwhile I have something almost(TM) working: >> - drivers/clk/sunxi/clk-a64.c, which is a UCLASS_CLK implementation of >> the clock IDs from allwinner,sun50i-a64-ccu that we need: CLK_BUS_UARTx, >> CLK_BUS_MMCx, CLK_MMCx. Their

[linux-sunxi] Re: [U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-27 Thread André Przywara
On 27/03/18 18:58, Jagan Teki wrote: > On Sat, Mar 24, 2018 at 6:37 AM, André Przywara <andre.przyw...@arm.com> > wrote: >> On 23/03/18 18:14, Jagan Teki wrote: >>> On Wed, Mar 14, 2018 at 7:27 AM, Andre Przywara <andre.przyw...@arm.com> >>> wrote:

Re: [linux-sunxi] Xen Dom0 Boot Stucked in ***LOADING DOMAIN 0*** (on Orange Pi PC 2)

2018-03-25 Thread André Przywara
On 25/03/18 18:41, cr33dc0...@gmail.com wrote: > Hi Everyone!, > > During my process of get Xen running on the Orange Pi PC 2, i run into a > deadlock (in case of my knowledge). I guess you just don't see any output, really. What is your kernel config? Did you enable the Xen options? Check for

[linux-sunxi] Re: [U-Boot] [PATCH v4 13/19] sunxi: DT: A64: update board .dts files from Linux

2018-03-23 Thread André Przywara
On 23/03/18 18:14, Jagan Teki wrote: > On Wed, Mar 14, 2018 at 7:27 AM, Andre Przywara > wrote: >> Update the .dts files for the various boards with an Allwinner A64 SoC. >> This is as of v4.15-rc9, exactly Linux commit: >> >> { >> pinctrl-names =

Re: [linux-sunxi] "BUG: Bad page state in process ..." on Olimex A64-OLinuXino

2018-03-22 Thread André Przywara
Hi, On 22/03/18 10:45, Martin Lucina wrote: > On Tuesday, 20.03.2018 at 11:10, Andre Przywara wrote: >>> Tried a flash drive in the standard-size USB with these changes, nothing >>> shows up. Is there an easy way of testing the micro-USB (OTG?) port? >> >> Can you try to measure if there is 5V on

[linux-sunxi] Re: [U-Boot] [PATCH v4 01/19] sunxi: README.sunxi64: Add hint about non-debug of ARM Trusted Firmware

2018-03-21 Thread André Przywara
On 21/03/18 19:08, Jagan Teki wrote: > On Thu, Mar 22, 2018 at 12:33 AM, André Przywara <andre.przyw...@arm.com> > wrote: >> Hi, >> >> On 21/03/18 18:40, Jagan Teki wrote: >>> On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara <andre.przyw...@arm.com>

[linux-sunxi] Re: [U-Boot] [PATCH v4 01/19] sunxi: README.sunxi64: Add hint about non-debug of ARM Trusted Firmware

2018-03-21 Thread André Przywara
Hi, On 21/03/18 18:40, Jagan Teki wrote: > On Wed, Mar 14, 2018 at 7:26 AM, Andre Przywara > wrote: >> As we are running into issues where the final U-Boot FIT image file is >> exceeding our size limit, add a hint to the README.sunxi64 file >> to point out the

Re: [linux-sunxi] [PATCH v2 4/4] ARM: PWM: add allwinner sun8i pwm support.

2018-02-27 Thread André Przywara
Hi, On 25/02/18 13:53, hao_zhang wrote: > This patch add allwinner sun8i pwm support. Again, the subject line is too generic. Mention the R40? Can you elaborate here a bit? Mention that is used on the R40, but not other sun8i SoCs, for instance. And mention that this is very different from the

Re: [linux-sunxi] [PATCH v2 3/4] ARM: dts: add pwm status for r40.

2018-02-27 Thread André Przywara
Hi, the subject line should mention the BananaPi M2 Ultra board. Otherwise this looks good, although I wonder if this should somehow mention "LCD-PWM" (in the commit message?), since this is how this pin is described in the BananaPi GPIO documentation for this board. And it seems to be dedicated

Re: [linux-sunxi] [PATCH v2 2/4] ARM: dtsi: add pwm node for sun8i.

2018-02-27 Thread André Przywara
Hi, The subject line should mention the R40, there are far too many sun8i SoCs. On 25/02/18 13:51, hao_zhang wrote: > This patch adds pwm node for sun8i. > > Signed-off-by: hao_zhang > --- > arch/arm/boot/dts/sun8i-r40.dtsi | 13 + > 1 file changed, 13

Re: [linux-sunxi] [PATCH v2 1/4] dt-bindings: pwm: binding allwinner sun8i.

2018-02-27 Thread André Przywara
Hi, On 25/02/18 13:50, hao_zhang wrote: > This patch adds allwinner sun8i pwm binding documents. > > Signed-off-by: hao_zhang > --- > Documentation/devicetree/bindings/pwm/pwm-sun8i.txt | 18 ++ > 1 file changed, 18 insertions(+) > create mode 100644

Re: [linux-sunxi] [PATCH v2 2/6] pinctrl: sunxi: add support for the Allwinner H6 main pin controller

2018-02-12 Thread André Przywara
Hi, On 03/02/18 15:49, Icenowy Zheng wrote: > The Allwinner H6 SoC has two pin controllers, one main controller > (called CPUX-PORT in user manual) and one controller in CPUs power > domain (called CPUS-PORT in user manual). Leaving aside that I don't like this approach of stashing yet another

Re: [linux-sunxi] [PATCH v2 5/6] arm64: allwinner: h6: add the basical Allwinner H6 DTSI file

2018-02-11 Thread André Przywara
Hi, On 03/02/18 15:49, Icenowy Zheng wrote: > Allwinner H6 is a new SoC with Cortex-A53 cores from Allwinner, with its > memory map fully reworked and some high-speed peripherals (PCIe, USB > 3.0) introduced. > > This commit adds the basical DTSI file of it, including the clock > support and

Re: [linux-sunxi] [PATCH v2 6/6] arm64: allwinner: h6: add support for Pine H64 board

2018-02-11 Thread André Przywara
Hi, On 03/02/18 15:49, Icenowy Zheng wrote: > Pine H64 is an Allwinner H6-based SBC from Pine64, with the following > features: > > - 1GiB/2GiB/4GiB LPDDR3 DRAM (in 4GiB situation only 3GiB is > accessible) > - AXP805 PMIC > - Raspberry-Pi-compatible GPIO header, "Euler" GPIO header (not >

[linux-sunxi] Re: [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding

2018-02-09 Thread André Przywara
On 09/02/18 15:58, Samuel Holland wrote: > On 02/08/18 19:30, Andre Przywara wrote: >> The U-Boot driver for the sun8i-emac was using some preliminary DT >> binding. Now since Linux got its own driver in v4.15 and our driver >> can now cope with both bindings, let's convert the DT nodes used for

[linux-sunxi] Re: [PATCH 3/5] sunxi: add 3GiB DRAM detection support in main U-Boot

2018-02-07 Thread André Przywara
On 07/02/18 19:35, Icenowy Zheng wrote: Hi, > Some Allwinner SoCs can use 3GiB DRAM (part of 4GiB or larger module). > > As the common get_ram_size function cannot detect non-pow-of-2 memory, > add special detect code into the DRAM size code in main U-Boot. The original get_ram_size() function

[linux-sunxi] Re: [PATCH 4/5] sunxi: let sunxi_dram_init return unsigned long long

2018-02-07 Thread André Przywara
On 07/02/18 19:35, Icenowy Zheng wrote: Hi, > As 4GiB capacity is above the range of 32-bit unsigned integer, raise > the return type of sunxi_dram_init() to unsigned long long, thus it can > hold 4GiB capacity (or maybe more on A80). > Some controllers that are possible to use 4GiB+ memory

[linux-sunxi] Re: [PATCH 2/5] sunxi: add Kconfig option for the maximum accessible DRAM

2018-02-07 Thread André Przywara
On 07/02/18 19:35, Icenowy Zheng wrote: > Allwinner 64-bit SoCs can use 4GiB DRAM chip, however their memory map > has only allocated 3GiB for DRAM, so only 3GiB of the DRAM is > accessible. > > Add a Kconfig option for the maximum accessible DRAM. That looks fine to me, but have you checked

[linux-sunxi] Re: [PATCH 1/5] sunxi: map DRAM part with 3G size

2018-02-07 Thread André Przywara
On 07/02/18 19:35, Icenowy Zheng wrote: Hi, > All Allwinner 64-bit SoCs now are known to be able to access 3GiB of > external DRAM, however the size of DRAM part in the MMU translation > table is still 2GiB. > > Change the size of DRAM part in MMU table to 3GiB. This is needed for the (new)

Re: [linux-sunxi] Re: xen on sun7i successful

2018-02-04 Thread André Przywara
On 04/02/18 20:28, cr33dc0...@gmail.com wrote: Hi, > Hi found this topic and want to ask if there are any experience out > there about AllWinner H5 support for Xen. > > I saw a vid that this will be possible, but the blog somehow wasnt > finished quiet well. > Is someone here in contact with

Re: [U-Boot] [linux-sunxi] [PATCH 3/7] sun50i: a64: Move ethernet nodes to SoC DTS

2018-01-24 Thread André Przywara
On 23/01/18 22:46, Kyle Evans wrote: > On Tue, Jan 23, 2018 at 4:18 PM, Samuel Holland wrote: >> These nodes were previously in an unused file specific to the Pine64. >> Move them to the base SoC device tree for use by other boards. Require >> individual boards to enable the

[linux-sunxi] Re: [RFC PATCH 1/3] dt-bindings: pinctrl: sunxi: document new generic binding

2017-12-05 Thread André Przywara
Hi Linus, thanks for the reply! On 01/12/17 09:56, Linus Walleij wrote: > On Fri, Nov 24, 2017 at 6:19 PM, Andre Przywara > wrote: > >> Conceptually I consider the DT being >> part of the firmware, > > As it is a subset of open firmware it is obviously firmware. > >>

Re: [linux-sunxi] [PATCH 0/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-04 Thread André Przywara
On 04/12/17 05:19, Chen-Yu Tsai wrote: > Hi, > > This is a small fix to get MMC performance up to proper speeds on the Maybe a small fix for a skilled developer, but a giant leap for all users ;-) MMC performance goes from: (4.15-rc1) SD: Timing buffered disk reads: 36 MB in 3.17 seconds =

Re: [linux-sunxi] [PATCH 1/2] clk: sunxi-ng: Support fixed post-dividers on MP style clocks

2017-12-04 Thread André Przywara
Hi Chen-Yu, On 04/12/17 05:19, Chen-Yu Tsai wrote: > On the A64, the MMC module clocks are fixed in the new timing mode, > i.e. they do not have a bit to select the mode. These clocks have > a 2x divider somewhere between the clock and the MMC module. > > To be consistent with other SoCs

Re: [linux-sunxi] [PATCH 2/2] clk: sunxi-ng: sun50i: a64: Add 2x fixed post-divider to MMC module clocks

2017-12-04 Thread André Przywara
On 04/12/17 05:19, Chen-Yu Tsai wrote: > On the A64, the MMC module clocks are fixed in the new timing mode, > i.e. they do not have a bit to select the mode. These clocks have > a 2x divider somewhere between the clock and the MMC module. > > To be consistent with other SoCs supporting the new

[linux-sunxi] Re: [PATCH v4 05/11] board: Add SoPine support

2017-10-30 Thread André Przywara
On 26/10/17 19:11, Jagan Teki wrote: > Add initial support for SoPine board with below features: > - U-Boot 2017.09 > - Linux 4.13.7 > - Default packages from buildroot > diff --git a/board/pine64/sopine/readme.txt b/board/pine64/sopine/readme.txt > new file mode 100644 > index

[linux-sunxi] Re: [Buildroot] [PATCH v3 02/11] support/scripts: Add sunxi64-post-build.sh

2017-10-26 Thread André Przywara
On 26/10/17 19:13, Jagan Teki wrote: > On Thu, Oct 26, 2017 at 4:50 PM, Jagan Teki <ja...@amarulasolutions.com> > wrote: >> On Sun, Oct 22, 2017 at 5:59 PM, Thomas Petazzoni >> <thomas.petazz...@free-electrons.com> wrote: >>> Hello, >>> >>>

[linux-sunxi] Re: [Buildroot] [PATCH v3 02/11] support/scripts: Add sunxi64-post-build.sh

2017-10-22 Thread André Przywara
Hi, On 22/10/17 11:15, Jagan Teki wrote: > + Andre > > On 21-Oct-2017 11:06 PM, "Thomas Petazzoni" > > wrote: > > Hello, > > On Thu, 19 Oct 2017 11:45:24 +0200, Jagan Teki wrote: > > > +#

[linux-sunxi] Re: [U-Boot] [PATCH] EFI: find EFI system partition by legacy MBR partition type

2017-09-18 Thread André Przywara
On 06/07/17 10:23, Alexander Graf wrote: Hi, > On 07/06/2017 11:14 AM, Andre Przywara wrote: >> The UEFI spec allows an EFI system partition (ESP, with the bootloader or >> kernel EFI apps on it) to reside on a disk using a "legacy" MBR >> partitioning scheme. >> But in contrast to actual legacy

Re: [linux-sunxi] sunxi-tools v1.5 release

2017-09-17 Thread André Przywara
Hi, On 17/09/17 15:33, icen...@aosc.io wrote: > 在 2017-09-17 19:24,Siarhei Siamashka 写道: >> Hello All, >> >> The last version of sunxi-tools v1.4.2 has been released almost a year >> ago. So it's a high time to tag a new one soon. >> >> I propose to set a deadline for pull requests one week from

[linux-sunxi] Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-04 Thread André Przywara
Salut, On 04/09/17 08:04, Maxime Ripard wrote: > On Fri, Sep 01, 2017 at 11:35:40PM +0100, André Przywara wrote: >> On 01/09/17 07:04, Maxime Ripard wrote: >>> On Fri, Sep 01, 2017 at 01:31:35AM +0100, Andre Przywara wrote: >>>> Hi, >>>> >>>>

[linux-sunxi] Re: [PATCH 07/10] dmaengine: sun6i: Retrieve channel count/max request from devicetree

2017-09-03 Thread André Przywara
Hi, On 03/09/17 23:40, Stefan Brüns wrote: > To avoid introduction of a new compatible for each small SoC/DMA controller > variation, move the definition of the channel count to the devicetree. > > The number of vchans is no longer explicit, but limited by the highest > port/DMA request number.

[linux-sunxi] Re: [PATCH 08/10] dmaengine: sun6i: Add support for Allwinner A64 and compatibles

2017-09-03 Thread André Przywara
Hi, On 03/09/17 23:40, Stefan Brüns wrote: > The A64 SoC has the same dma engine as the H3 (sun8i), with a > reduced amount of physical channels. To allow future reuse of the > compatible, leave the channel count etc. in the config data blank > and retrieve it from the devicetree. > >

[linux-sunxi] Re: [PATCH 01/10] dmaengine: sun6i: Correct setting of clock autogating register for A83T/H3

2017-09-03 Thread André Przywara
On 03/09/17 23:40, Stefan Brüns wrote: > The H83T uses a compatible string different from the A23, but requires A83T > the same clock autogating register setting. > > The H3 also requires setting the clock autogating register, but has > the register at a different offset. > > Some

[linux-sunxi] Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-03 Thread André Przywara
On 02/09/17 03:02, Stefan Bruens wrote: > On Samstag, 2. September 2017 00:32:50 CEST André Przywara wrote: >> Hi, >> >> On 01/09/17 02:19, Stefan Bruens wrote: >>> On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: >>>> Hi, >&

[linux-sunxi] Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread André Przywara
On 01/09/17 07:04, Maxime Ripard wrote: > On Fri, Sep 01, 2017 at 01:31:35AM +0100, Andre Przywara wrote: >> Hi, >> >> On 31/08/17 00:36, Stefan Brüns wrote: >>> The A64 SoC has the same dma engine as the H3 (sun8i), with a >>> reduced amount of physical channels. Add the proper config data >>>

[linux-sunxi] Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-01 Thread André Przywara
Hi, On 01/09/17 02:19, Stefan Bruens wrote: > On Freitag, 1. September 2017 02:31:35 CEST Andre Przywara wrote: >> Hi, >> >> On 31/08/17 00:36, Stefan Brüns wrote: >>> The A64 SoC has the same dma engine as the H3 (sun8i), with a >>> reduced amount of physical channels. Add the proper config data

Re: [linux-sunxi] [PATCH 2/5] arm: allwinner: a64: drop the dummy vcc3v3 regulator in Pine64 DT

2017-07-23 Thread André Przywara
On 21/07/17 21:39, Maxime Ripard wrote: Hi Maxime, sorry for causing some frustration on your side. I am trying to answer to some of your comments. Just be aware that I am leaving for holidays in a few hours (and trying to stay away as much from computers as possible), so don't expect any

[linux-sunxi] Re: [PATCH 1/8] mailbox: introduce ARM SMC based mailbox

2017-07-23 Thread André Przywara
On 02/07/17 06:55, Jassi Brar wrote: Hi Jassi, thank you very much for having a look! > On Fri, Jun 30, 2017 at 3:26 PM, Andre Przywara > wrote: >> This mailbox driver implements a mailbox which signals transmitted data >> via an ARM smc (secure monitor call)

Re: [linux-sunxi] [RFC PATCH 8/8] sunxi: enable PSCI for A83T SoC

2017-07-02 Thread André Przywara
On 02/07/17 15:17, Maxime Ripard wrote: Hi, > On Wed, Jun 07, 2017 at 03:06:55PM +0100, Marc Zyngier wrote: >>> If that is so fundamentally broken that this is the only benefit, I >>> guess we might as well use some old-style SMP ops. >> >> Broken, for sure. Which is why I'm asking about the

[linux-sunxi] Re: [PATCH v6 05/21] net-next: stmmac: Add dwmac-sun8i

2017-06-25 Thread André Przywara
On 31/05/17 08:18, Corentin Labbe wrote: > The dwmac-sun8i is a heavy hacked version of stmmac hardware by > allwinner. > In fact the only common part is the descriptor management and the first > register function. Hi, I know I am a bit late with this, but while adapting the U-Boot driver to the

Re: [linux-sunxi] [PATCH v2] sun50i: a64: Add initial NanoPi A64 support

2017-06-08 Thread André Przywara
On 08/06/17 18:43, Jagan Teki wrote: Hi Jagan, > From: Jagan Teki > > NanoPi A64 is a new board of high performance with low cost > designed by FriendlyElec., using the Allwinner A64 SOC. > > Nanopi A64 features > - Allwinner A64, 64-bit Quad-core Cortex-A53@648MHz

[linux-sunxi] Re: [PATCH 12/12] sunxi: add a defconfig for SoPine w/ official baseboard

2017-06-02 Thread André Przywara
Hi, On 26/04/17 15:50, Icenowy Zheng wrote: > The SoPine is a SoM by Pine64, with an Allwinner A64 SoC, a LPDDR3 DRAM > chip, an AXP803 PMIC, a SPI NOR Flash and a MicroSD slot. The card > detect pin of the MicroSD slot is broken, however, it doesn't matter as > the design of SoPine didn't allow

[linux-sunxi] Re: [U-Boot] [PATCH 00/12] Big work on sunxi DW DRAM controllers and some new DDR type support

2017-06-02 Thread André Przywara
On 02/06/17 19:34, Jagan Teki wrote: > On Wed, Apr 26, 2017 at 8:19 PM, Icenowy Zheng wrote: >> This patchset contains several works on the sunxi DesignWare DRAM >> controllers. >> >> The 1st patch made an option for H3-like DRAM controllers >> (DesignWare ones), which can ease

[linux-sunxi] Re: [U-Boot] [PATCH 12/12] sunxi: add a defconfig for SoPine w/ official baseboard

2017-06-02 Thread André Przywara
On 03/06/17 00:59, André Przywara wrote: > Hi, > > On 02/06/17 19:32, Jagan Teki wrote: >> On Wed, Apr 26, 2017 at 8:20 PM, Icenowy Zheng <icen...@aosc.io> wrote: >>> The SoPine is a SoM by Pine64, with an Allwinner A64 SoC, a LPDDR3 DRAM >>> chip, an AXP

[linux-sunxi] Re: [U-Boot] [PATCH 12/12] sunxi: add a defconfig for SoPine w/ official baseboard

2017-06-02 Thread André Przywara
Hi, On 02/06/17 19:32, Jagan Teki wrote: > On Wed, Apr 26, 2017 at 8:20 PM, Icenowy Zheng wrote: >> The SoPine is a SoM by Pine64, with an Allwinner A64 SoC, a LPDDR3 DRAM >> chip, an AXP803 PMIC, a SPI NOR Flash and a MicroSD slot. The card >> detect pin of the MicroSD slot is

Re: [linux-sunxi] [PATCH 1/3] arm64: allwinner: a64: Add initial Orangepi Win/WinPlus support

2017-05-25 Thread André Przywara
On 25/05/17 20:26, Jagan Teki wrote: > From: Jagan Teki > > Orangepi Win/WinPlus is an open-source single-board computer > using the Allwinner A64 SOC. > > A64 Orangepi Win/WinPlus has > - A64 Quad-core Cortex-A53 64bit > - 1GB(Win)/2GB(Win Plus) DDR3 SDRAM > - Debug

[linux-sunxi] Re: [PATCH] pinctrl: use non-devm kmalloc versions for free functions

2017-05-12 Thread André Przywara
On 12/05/17 18:14, Tony Lindgren wrote: > * Tony Lindgren [170512 08:39]: >> * Linus Walleij [170512 02:28]: >>> On Thu, May 11, 2017 at 4:20 PM, Andre Przywara >>> wrote: Linus, can you shed some light if this array

  1   2   >