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

2018-02-08 Thread Icenowy Zheng
在 2018-02-08 08:37,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

[linux-sunxi] Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Icenowy Zheng
在 2018-02-08 17:00,Maxime Ripard 写道: On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form factor and GPIO holes similar to Raspberry Pi Zero. It features: - Allwinner H2+ SoC - Single-chip (16-bit) 512MiB DDR3 DRAM

Re: [linux-sunxi] Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Jernej Škrabec
Dne četrtek, 08. februar 2018 ob 10:15:35 CET je Icenowy Zheng napisal(a): > 在 2018-02-08 17:00,Maxime Ripard 写道: > > > On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: > >> Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form > >> factor and GPIO holes similar to Ra

Re: [linux-sunxi] Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Chen-Yu Tsai
On Thu, Feb 8, 2018 at 5:28 PM, Jernej Škrabec wrote: > Dne četrtek, 08. februar 2018 ob 10:15:35 CET je Icenowy Zheng napisal(a): >> 在 2018-02-08 17:00,Maxime Ripard 写道: >> >> > On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: >> >> Banana Pi M2 Zero board is a H2+-based board by Si

[linux-sunxi] [PATCH v5] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Icenowy Zheng
Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form factor and GPIO holes similar to Raspberry Pi Zero. It features: - Allwinner H2+ SoC - Single-chip (16-bit) 512MiB DDR3 DRAM - Ampak AP6212 Wi-Fi/Bluetooth module - MicroSD slot - Two MicroUSB Type-B ports (one can only be used

[linux-sunxi] Re: [PATCH v2 1/2] ARM: dts: sun8i: h3-h5: Move pinctrl of mmc0 from dts to dtsi

2018-02-08 Thread Joonas Kylmälä
Maxime Ripard: > Also, wouldn't the H5 boards need some change too? Definitely. I was just looking for all the dts files in arch/arm/boot/dts/ and didn't even realize there was also arch/arm64/boot/dts/. I will send soon a new version of the patchset! Joonas -- You received this message becaus

[linux-sunxi] [PATCH v3 0/4] ARM: dts: sun8i: h3-h5: Move pinctrl of mmc0 and mmc1 to dtsi

2018-02-08 Thread Joonas Kylmälä
Hi, This short patch series moves mmc0 and mmc1 pinctrl in H3 and H2+ boards' dts files to the dtsi file in order to make it easier to do changes in the future to pinctrl attributes if required. This sort of cleaning up of the dts files was discussed earlier in the email thread with the subject "[

[linux-sunxi] [PATCH v3 1/4] ARM: dts: sunxi: h3-h5: remove mmc0 card detection pin from pinctrl

2018-02-08 Thread Joonas Kylmälä
The GPIO card detection pin (mmc0_cd_pin) is already requested and configured by mmc_gpiod_request_cd() in drivers/mmc/core/slot-gpio.c so pinctrl is not needed. Signed-off-by: Joonas Kylmälä --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 2 +- arch/arm/boot/dts/sun8i-h3-b

[linux-sunxi] [PATCH v3 2/4] ARM: dts: sunxi: h3-h5: Move pinctrl of mmc0 from dts to dtsi

2018-02-08 Thread Joonas Kylmälä
Most of the boards use the mmc0 pins and their attributes defined in mmc0_pins_a. Let's default to those by moving the pinctrl attributes to the dtsi file. This makes it easier to modify device trees in the future as there is only one place to change the pinctrl attributes. Signed-off-by: Joonas K

[linux-sunxi] [PATCH v3 3/4] ARM: dts: sunxi: h3-h5: Move pinctrl of mmc1 from dts to dtsi

2018-02-08 Thread Joonas Kylmälä
Most of the boards use the mmc1 pins and their attributes defined in mmc1_pins_a. Let's default to that by moving the pinctrl attributes to the dtsi file. This makes it easier to modify device trees in the future as there is only one place to change the pinctrl attributes. Signed-off-by: Joonas Ky

[linux-sunxi] [PATCH v3 4/4] ARM: dts: sunxi: h3-h5: rename mmc0_pins_a and mmc1_pins_a

2018-02-08 Thread Joonas Kylmälä
There is only one pinctrl configuration for mmc0 and mmc1 so let's drop the _a suffix from both of them. Signed-off-by: Joonas Kylmälä --- arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 2 +- arch/arm/boot/dts/sunxi-h3-h5.dtsi| 8 2 files changed, 5 insertions(+), 5

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

2018-02-08 Thread Rob Herring
On Sat, Feb 03, 2018 at 11:49:38PM +0800, 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). > > This commit introduces support for the main pin co

[linux-sunxi] Re: [PATCH v2 4/6] clk: sunxi-ng: add support for the Allwinner H6 CCU

2018-02-08 Thread Rob Herring
On Sat, Feb 03, 2018 at 11:49:40PM +0800, Icenowy Zheng wrote: > The Allwinner H6 SoC has a CCU which has been largely rearranged. > > Add support for it in the sunxi-ng CCU framework. > > Signed-off-by: Icenowy Zheng > --- > Changes in v2: > - Exported APB1 bus clock for PIO. > - Switch to SPDX

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

2018-02-08 Thread Andre Przywara
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 the Pine64+ board over to the new bindings used by the kernel. Signed-off-by: Andre Przywara

[linux-sunxi] [PATCH v2 1/7] sunxi: gpio: add missing compatible strings

2018-02-08 Thread Andre Przywara
The sunxi GPIO driver is missing some compatible strings for recent SoCs. While most of the sunxi GPIO code seems to not rely on this (and so works anyway), the sunxi_name_to_gpio() function does and fails at the moment (for instance when resolving the MMC CD pin name). Add the compatible strings f

[linux-sunxi] [PATCH v2 2/7] net: sun8i-emac: support new pinctrl DT bindings

2018-02-08 Thread Andre Przywara
The Linux kernel driver for the Allwinner pin controller gained support for generic properties, which are now also used in the DTs. The sun8i-emac Ethernet driver for new Allwinner MACs reads the pins from the DT, but so far only supported the old binding. Update the parsing routine to cope with bo

[linux-sunxi] [PATCH v2 6/7] arm: dts: sunxi: update H5 to new EMAC binding

2018-02-08 Thread Andre Przywara
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 by the OrangePi PC2 over to the new bindings used by the kernel. Signed-off-by: Andre Przywara --

[linux-sunxi] [PATCH v2 5/7] arm: dts: sunxi: update H3 to new EMAC binding

2018-02-08 Thread Andre Przywara
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 by the various H3 boards over to the new bindings used by the kernel. Signed-off-by: Andre Przywar

[linux-sunxi] [PATCH v2 3/7] net: sun8i-emac: add support for new EMAC DT binding

2018-02-08 Thread Andre Przywara
The Ethernet MAC used in newer Allwinner SoCs (H3, A64, H5) got an upstream Linux driver in v4.15. This one uses a slightly different binding from the original one used by the U-Boot driver. The differences to the old binding are: - The "syscon" address is held in a separate node, referenced via a

[linux-sunxi] [PATCH v2 7/7] net: sun8i-emac: remove support for old binding

2018-02-08 Thread Andre Przywara
The original DT binding used by U-Boot's sun8i-emac driver was not really agreed upon, and deviated from the "official" binding now used by the kernel. Since now all U-Boot users have been converted to the new binding, we can remove support for the old DT nodes from the driver. Signed-off-by: Andr

[linux-sunxi] [PATCH v2 0/7] sunxi: sun8i-emac: Update DT bindings

2018-02-08 Thread Andre Przywara
Compared to the last post, this converts U-Boot's DTs over to use the new binding, so that the final patch can remove support for the old binding from U-Boot EMAC driver. The Linux DTs can be synced in later once we solved the size problem. The exis