[U-Boot] [PATCH 3/3] board: amlogic: Generate unique MAC address for Q200 and P212 based boards

2019-06-12 Thread Neil Armstrong
Enable unique MAC address generation for boards usins SoCs having a known functional and valid unique serial number. Signed-off-by: Neil Armstrong --- board/amlogic/p212/p212.c | 2 ++ board/amlogic/q200/q200.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/board/amlogic/p212/p212.c b

[U-Boot] [PATCH 2/3] ARM: meson: add unique MAC address generation

2019-06-12 Thread Neil Armstrong
unicast locally administered property and a crc24 for the lower 24bits. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/eth.h | 3 +++ arch/arm/include/asm/arch-meson/sm.h | 3 +++ arch/arm/mach-meson/board-common.c| 31 +++ 3 files changed, 37

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190612

2019-06-12 Thread Neil Armstrong
ngth-microamp pinctrl: meson: g12a: add DS bank value Maxime Jourdan (1): pinctrl: meson-gxbb: add hdmi related pins Neil Armstrong (4): pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups pinctrl: meson: add common function to get pins name pinctrl: meson-gx: add sup

Re: [U-Boot] [U-Boot-Board-Maintainers] [U-Boot-Custodians] [ANN] U-Boot v2019.07-rc4 released

2019-06-25 Thread Neil Armstrong
On 24/06/2019 17:29, Tom Rini wrote: > On Sat, Jun 22, 2019 at 09:43:42PM +0200, Marek Vasut wrote: >> On 6/22/19 9:12 PM, Heinrich Schuchardt wrote: >>> On 6/22/19 8:15 PM, Simon Glass wrote: Hi, On Sat, 22 Jun 2019 at 16:10, Andreas Färber wrote: > > Hi Simon, > >

Re: [U-Boot] [PATCH] fastboot: mmc: add support for flashing boot partitions

2019-06-28 Thread Neil Armstrong
Hi Fabien, On 25/06/2019 18:43, Fabien Parent wrote: > MMC storage supports 4 hardware partitions: > * User partition > * 2 boot partitions > * RPMB partition > > Flashing to the User partition is already supported, and this commit > adds support for flashing to the 2 boot parti

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-06-28 Thread Neil Armstrong
On 28/06/2019 10:19, Grant Likely wrote: > Quick poll: who would be interested in a U-Boot/EBBR plugfest event > collocates with ELC-EU this year (week of 28th Oct)? > > In the EBBR meetings we’ve tossed around the idea of an U-Boot/EBBR plugfest > to work out compatibility issues between OS dis

Re: [U-Boot] [U-Boot-Board-Maintainers] [U-Boot-Custodians] [ANN] U-Boot v2019.07-rc4 released

2019-07-01 Thread Neil Armstrong
On 30/06/2019 12:34, Matwey V. Kornilov wrote: > 25.06.2019 15:04, Tom Rini пишет: >> On Tue, Jun 25, 2019 at 01:10:26PM +0200, Neil Armstrong wrote: >>> On 24/06/2019 17:29, Tom Rini wrote: >>>> On Sat, Jun 22, 2019 at 09:43:42PM +0200, Marek Vasut wrote: >

Re: [U-Boot] [PATCH] board: amlogic: vim: Fix README

2019-07-01 Thread Neil Armstrong
Hi Andreas, On 01/07/2019 10:25, Andreas Färber wrote: > Unlike the BayLibre repos Khadas' repo defaults to using native gcc, > so specify the CROSS_COMPILE setting matching the prescribed toolchain. > > Signed-off-by: Andreas Färber > --- > board/amlogic/p212/README.khadas-vim | 2 +- > 1 file

Re: [U-Boot] [PATCH] board: amlogic: vim: Fix README

2019-07-01 Thread Neil Armstrong
On 01/07/2019 11:00, Andreas Färber wrote: > Hi Neil, > > Am 01.07.19 um 10:55 schrieb Neil Armstrong: >> On 01/07/2019 10:25, Andreas Färber wrote: >>> Unlike the BayLibre repos Khadas' repo defaults to using native gcc, >>> so specify the CROSS_COMPILE set

Re: [U-Boot] [PATCH] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-12 Thread Neil Armstrong
Hi, On 12/04/2019 15:09, Simon Glass wrote: > Hi, > > On Thu, 11 Apr 2019 at 09:12, Neil Armstrong wrote: >> >> When fixing sandbox test for regmap_read_poll_timeout(), the >> sandbox_timer_add_offset was introduced but only defined in sandbox code >> thus gen

Re: [U-Boot] [PATCH] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-12 Thread Neil Armstrong
On 12/04/2019 16:56, Neil Armstrong wrote: > Hi, > > > On 12/04/2019 15:09, Simon Glass wrote: >> Hi, >> >> On Thu, 11 Apr 2019 at 09:12, Neil Armstrong wrote: >>> >>> When fixing sandbox test for regmap_read_poll_timeout(), the >>> sa

[U-Boot] [PATCH v2] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-17 Thread Neil Armstrong
e.h and renames the implementation and test usages. Cc: Simon Glass Reported-by: Tom Rini Fixes: df9cf1cc08 ("test: dm: regmap: Fix the long test delay") Signed-off-by: Neil Armstrong --- arch/sandbox/include/asm/test.h | 8 board/sandbox/sandbox.c | 2 +- drivers/net/sand

Re: [U-Boot] [PATCH v2 0/6] ARM: meson: Add support for G12A based U200 board

2019-04-23 Thread Neil Armstrong
On 10/04/2019 17:23, Neil Armstrong wrote: > This patchset adds basic support for the recent Amlogic G12A SoC family. > > This SoC family embeds 4xCortex A53 CPUs, and is very similar to > the AXG SoC Family with the multimedia features of previous families. > > This patchset

Re: [U-Boot] [PATCH] board: amlogic-q200: fix Khadas VIM2 README

2019-04-23 Thread Neil Armstrong
On 10/04/2019 16:47, Neil Armstrong wrote: > The vendor U-boot branch and defconfig was wrong for the > Khadas VIM2, fix this. > > Signed-off-by: Neil Armstrong > --- > board/amlogic/q200/README.khadas-vim2 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) &g

Re: [U-Boot] [PATCH] board: amlogic: enable PHY_REALTEK for selected boards

2019-04-23 Thread Neil Armstrong
On 10/04/2019 16:46, Neil Armstrong wrote: > When using the generic PHY on boards using an RGMII Realtek PHY, > gigabit speed is not always reliable. > > This patch enables the Realtek PHY driver for such boards. > > Signed-off-by: Neil Armstrong > --- > configs/k

Re: [U-Boot] [PATCH v2] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-23 Thread Neil Armstrong
On 21/04/2019 21:29, Simon Glass wrote: > On Wed, 17 Apr 2019 at 11:17, Neil Armstrong wrote: >> >> When fixing sandbox test for regmap_read_poll_timeout(), the >> sandbox_timer_add_offset was introduced but only defined in sandbox code >> thus generating warnin

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190423

2019-04-23 Thread Neil Armstrong
p200 and p201 ARM: board: meson: add p200 board ARM: board: meson: add p201 board Neil Armstrong (7): ARM: dts: Import libretech-ac DT from Linux 5.0 boards: Amlogic: Add support for Libretech-AC reset-meson: Add AXG reset compatible regmap: fix regmap_read_poll_t

Re: [U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-04-23 Thread Neil Armstrong
implements Device mode support by adding a >> board_usb_init/cleanup setting up the DWC2 controller and switch the >> OTG capable port to Device before starting the DWC2 controller in >> Device mode. >> >> Signed-off-by: Neil Armstrong > > I wanted to apply th

Re: [U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-04-26 Thread Neil Armstrong
Hi, On 23/04/2019 11:31, Neil Armstrong wrote: > Hi Lukasz, > > On 19/04/2019 08:17, Lukasz Majewski wrote: >> Hi Neil, >> >>> Adds support for Amlogic G12A USB Device mode. >>> >>> The DWC2 Controller behind the Glue can be connected to an O

Re: [U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-05-06 Thread Neil Armstrong
etups the PHY mode. >> >> This patch implements Device mode support by adding a >> board_usb_init/cleanup setting up the DWC2 controller and switch the >> OTG capable port to Device before starting the DWC2 controller in >> Device mode. >> >> Signed-off-b

[U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support

2019-05-07 Thread Neil Armstrong
board code. Changes since v2: - rebased on u-boot master Changes since v1: - switch printf() to debug() in patch 1 Neil Armstrong (3): usb: dwc3: Add Meson G12A USB Glue phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers mach-meson: g12a: add DWC2 peripheral mode support arch/arm

[U-Boot] [PATCH v3 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-05-07 Thread Neil Armstrong
switch to Device mode is to be done in a separate patch. Signed-off-by: Neil Armstrong Reviewed-by: Marek Vasut --- drivers/usb/dwc3/Kconfig | 8 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-meson-g12a.c | 456 + 3 files changed, 465

[U-Boot] [PATCH v3 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-05-07 Thread Neil Armstrong
The second driver supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of the board. Selection is done by the #phy-cells, making the mode static and exclusive. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig| 8 + drivers/phy/Makefile | 1 + dr

[U-Boot] [PATCH v3 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-05-07 Thread Neil Armstrong
Device before starting the DWC2 controller in Device mode. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/usb.h | 12 +++ arch/arm/mach-meson/board-g12a.c | 126 ++ 2 files changed, 138 insertions(+) create mode 100644 arch/arm/include/asm/arch

[U-Boot] [RFC PATCH] pxe: add support for FDT overlays

2019-05-07 Thread Neil Armstrong
iles to be applied on top of the fdt specific in the 'fdt' or 'devicetree' keyword. Cc: Jernej Škrabec Cc: Jonas Karlman Signed-off-by: Neil Armstrong --- cmd/pxe.c | 104 ++ 1 file changed, 104 insertions(+) diff --git

Re: [U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support

2019-05-07 Thread Neil Armstrong
Hi Marek, On 07/05/2019 15:05, Marek Vasut wrote: > On 5/7/19 10:43 AM, Neil Armstrong wrote: >> This patchset adds support for USB on Amlogic G12A SoCs. >> >> This patchset is composed with : >> - PHY Drivers >> - USB Control Glue driver >> - G12A board

Re: [U-Boot] [PATCH 1/2] ARM: dts: meson: add p200 and p201 boards

2019-03-14 Thread Neil Armstrong
Hi Mohammad, Thanks for patches, Can you specify from which kernel release you sync'ed the DT ? On 14/03/2019 14:52, Mohammad Rasim wrote: > Signed-off-by: Mohammad Rasim > --- > arch/arm/dts/Makefile | 2 + > arch/arm/dts/meson-gxbb-p200.dts | 99 > arch/arm/dts/m

Re: [U-Boot] [PATCH 2/2] ARM: board: meson: add p200 and p201 boards

2019-03-14 Thread Neil Armstrong
-bl30 fip/bl30_new.bin.enc \ > + --bl31 fip/bl31.img.enc \ > + --bl33 fip/bl33.bin.enc > + > +and then write the image to SD with: > + > + > DEV=/dev/your_sd_device > + > dd if=fip/u-boot.bin.sd.bin of=$DEV conv=fsync,notrunc bs=512 skip=1 > seek=1 &g

Re: [U-Boot] [PATCH 0/2] ARM: meson: add p200 and p201 boards

2019-03-14 Thread Neil Armstrong
Hi, seems you mismatched the To entry as : "u-b...@lists.denx.deu-boot-amlogic"@groups.io Not sure the u-boot ML received the patches. Neil On 14/03/2019 15:02, Mohammad Rasim wrote: > This adds support for p200 and p201 reference boards from amlogic > > Mohammad Rasim (2): > ARM: dts: meson

Re: [U-Boot] [PATCH v2 1/3] ARM: dts: meson: add p200 and p201 boards

2019-03-14 Thread Neil Armstrong
; +/* Wireless SDIO Module */ > +&sd_emmc_a { > + status = "okay"; > + pinctrl-0 = <&sdio_pins>; > + pinctrl-1 = <&sdio_clk_gate_pins>; > + pinctrl-names = "default", "clk-gate"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + bus-width = <4>; > + cap-sd-highspeed; > + max-frequency = <1>; > + > + non-removable; > + disable-wp; > + > + mmc-pwrseq = <&sdio_pwrseq>; > + > + vmmc-supply = <&vddao_3v3>; > + vqmmc-supply = <&vddio_boot>; > + > + brcmf: wifi@1 { > + reg = <1>; > + compatible = "brcm,bcm4329-fmac"; > + }; > +}; > + > +/* SD card */ > +&sd_emmc_b { > + status = "okay"; > + pinctrl-0 = <&sdcard_pins>; > + pinctrl-1 = <&sdcard_clk_gate_pins>; > + pinctrl-names = "default", "clk-gate"; > + > + bus-width = <4>; > + cap-sd-highspeed; > + sd-uhs-sdr12; > + sd-uhs-sdr25; > + sd-uhs-sdr50; > + max-frequency = <1>; > + disable-wp; > + > + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; > + > + vmmc-supply = <&vddao_3v3>; > + vqmmc-supply = <&vddio_card>; > +}; > + > +/* eMMC */ > +&sd_emmc_c { > + status = "okay"; > + pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; > + pinctrl-1 = <&emmc_clk_gate_pins>; > + pinctrl-names = "default", "clk-gate"; > + > + bus-width = <8>; > + cap-mmc-highspeed; > + max-frequency = <2>; > + non-removable; > + disable-wp; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + > + mmc-pwrseq = <&emmc_pwrseq>; > + vmmc-supply = <&vcc_3v3>; > + vqmmc-supply = <&vddio_boot>; > +}; > + > +/* This UART is brought out to the DB9 connector */ > +&uart_AO { > + status = "okay"; > + pinctrl-0 = <&uart_ao_a_pins>; > + pinctrl-names = "default"; > +}; > + > +&usb0_phy { > + status = "okay"; > + phy-supply = <&usb_pwr>; > +}; > + > +&usb1_phy { > + status = "okay"; > +}; > + > +&usb0 { > + status = "okay"; > +}; > + > +&usb1 { > + status = "okay"; > +}; > -- > 2.21.0 > Acked-by: Neil Armstrong Thanks, Neil ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/3] ARM: board: meson: add p201 board

2019-03-14 Thread Neil Armstrong
RS > @@ -0,0 +1,6 @@ > +P201 > +M: Beniamino Galvani You can remove Beniamino for this one. > +M: Neil Armstrong > +S: Maintained > +F: board/amlogic/p201/ > +F: configs/p201_defconfig > diff --git a/board/amlogic/p201/Makefile b/board/amlogic/p201/Makefile

Re: [U-Boot] [PATCH v2 3/3] ARM: board: meson: add p200 board

2019-03-14 Thread Neil Armstrong
Hi, Le 14/03/2019 18:00, Mohammad Rasim a écrit : > > Signed-off-by: Mohammad Rasim > --- > board/amlogic/odroid-c2/README.p200 | 103 > configs/p200_defconfig | 41 +++ > 2 files changed, 144 insertions(+) > create mode 100644 board/amlogic/o

Re: [U-Boot] [PATCH v3 0/3] ARM: meson: add p200 and p201 boards

2019-03-15 Thread Neil Armstrong
Hi, Thanks for the reactivity ! On 14/03/2019 22:09, Mohammad Rasim wrote: > This adds support for p200 and p201 reference boards from amlogic > > Mohammad Rasim (3): > ARM: dts: meson: add p200 and p201 boards > ARM: board: meson: add p201 board > ARM: board: meson: add p200 board > > a

Re: [U-Boot] [PATCH] ARM: meson: display Amlogic SoC Information

2019-03-23 Thread Neil Armstrong
Hi Julien, First, please also CC to u-boot-amlo...@groups.io ! Le 19/03/2019 15:26, Julien Masson a écrit : > The Amlogic SoCs have a registers containing the die revision > and packaging type to determine the SoC family and package marketing > name like S905X for the GXL SoC Family. > > This co

Re: [U-Boot] [PATCH v4 4/5] ARM: board: meson: add p200 board

2019-03-23 Thread Neil Armstrong
Hi, Le 15/03/2019 16:19, Mohammad Rasim a écrit : > This adds the p200 defconfig > > Signed-off-by: Mohammad Rasim > --- > configs/p200_defconfig | 41 + > 1 file changed, 41 insertions(+) > create mode 100644 configs/p200_defconfig > > diff --git a/con

Re: [U-Boot] [PATCH v4 3/5] Arm: dts: meson: add u-boot.dtsi for p200 and p201

2019-03-23 Thread Neil Armstrong
rch/arm/dts/meson-gxbb-p200-u-boot.dtsi > new file mode 100644 > index ..c35158d7e9ee > --- /dev/null > +++ b/arch/arm/dts/meson-gxbb-p200-u-boot.dtsi > @@ -0,0 +1,7 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2019 BayLibre, SAS.

Re: [U-Boot] [PATCH v4 1/5] ARM: board: meson: rename odroid-c2 to p200

2019-03-23 Thread Neil Armstrong
default "q200" if MESON_GXM > default "s400" if MESON_AXG > diff --git a/board/amlogic/odroid-c2/MAINTAINERS > b/board/amlogic/p200/MAINTAINERS > similarity index 70% > rename from board/amlogic/odroid-c2/MAINTAINERS > rename to board/amlogic/p200/MAINT

Re: [U-Boot] [PATCH v4 0/5] Arm: meson: add support for p200 and p201 boards

2019-03-23 Thread Neil Armstrong
Hi, Le 15/03/2019 16:11, Mohammad Rasim a écrit : > > This adds support for p200 and p201 reference boards from amlogic > > Mohammad Rasim (5): > ARM: board: meson: rename odroid-c2 to p200 > ARM: dts: meson: add p200 and p201 boards > Arm: dts: meson: add u-boot.dtsi for p200 and p201 >

Re: [U-Boot] [PATCH v5 0/5] ARM: meson: add support for p200 and p201 boards

2019-03-26 Thread Neil Armstrong
Hi Mohammad, On 23/03/2019 12:52, Mohammad Rasim wrote: > This adds support for p200 and p201 reference boards from amlogic > > Mohammad Rasim (5): > ARM: board: meson: rename odroid-c2 to p200 > ARM: dts: meson: add p200 and p201 boards > ARM: dts: meson: add u-boot.dtsi for p200 and p201

Re: [U-Boot] [PATCH v2] ARM: meson: display Amlogic SoC Information

2019-03-26 Thread Neil Armstrong
t; diff --git a/arch/arm/mach-meson/board-info.c > b/arch/arm/mach-meson/board-info.c > new file mode 100644 > index 000..ba248e8 > --- /dev/null > +++ b/arch/arm/mach-meson/board-info.c > @@ -0,0 +1,166 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + *

[U-Boot] [PATCH 0/2] ARM: meson: Add support for Libretech-AC

2019-03-26 Thread Neil Armstrong
. Neil Armstrong (2): ARM: dts: Import libretech-ac DT from Linux 5.0 boards: Amlogic: Add support for Libretech-AC arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-gxl-s805x-libretech-ac.dts | 248 ++ arch/arm/dts/meson-gxl.dtsi | 70

[U-Boot] [PATCH 1/2] ARM: dts: Import libretech-ac DT from Linux 5.0

2019-03-26 Thread Neil Armstrong
Import Linux 5.0 DT from 1c163f4c7b3f ("Linux 5.0") for the meson-gxl-s805x-libretech-ac board and the corresponding changes in meson-gxl.dtsi. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 1 + arch/arm/dts/meson-gxl-s805x-libretech-ac

[U-Boot] [PATCH 2/2] boards: Amlogic: Add support for Libretech-AC

2019-03-26 Thread Neil Armstrong
- eMMC, SPI NOR Flash - Infrared receiver The u-boot specific code is the same as the P212 support, so use the P212 board support code with a distinct defconfig and config include files. Signed-off-by: Neil Armstrong --- board/amlogic/p212/MAINTAINERS | 1 + board/amlogic/p212

[U-Boot] [PATCH] reset-meson: Add AXG reset compatible

2019-03-26 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/reset/reset-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 92f04695ec..31aa4d41e8 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -69,6 +69,7

[U-Boot] [PATCH 1/6] pinctrl: meson: add g12a support

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet Add pinctrl support for the Amlogic G12A SoC, which is very similar to the Amlogic AXG support but with an additionnal drive-strength register bank. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig |4 + drivers

[U-Boot] [PATCH 3/6] clk: meson: add g12a support

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet Add basic support for the Amlogic G12A clock controller based on the AXG driver. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-g12a.h | 104 ++ drivers/clk/meson/Kconfig| 8 + drivers/clk

[U-Boot] [PATCH 0/6] ARM: meson: Add support for G12A based U200 board

2019-03-26 Thread Neil Armstrong
add g12a u200 Neil Armstrong (1): ARM: dts: Import Amlogic G12A u200 DT from Linux 5.1-rc1 MAINTAINERS |2 +- arch/arm/dts/Makefile |3 +- arch/arm/dts/meson-g12a-u200.dts | 29 + arch/arm/dts/meson-g12a.

[U-Boot] [PATCH 4/6] ARM: meson: add G12a support

2019-03-26 Thread Neil Armstrong
. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/g12a.h | 66 +++ arch/arm/mach-meson/Kconfig| 9 +- arch/arm/mach-meson/Makefile | 1 + arch/arm/mach-meson/board-g12a.c | 150 + 4

[U-Boot] [PATCH 2/6] clk: create meson directory and move related drivers

2019-03-26 Thread Neil Armstrong
From: Jerome Brunet In order to support the Amlogic G12A clock controller, re-architect the clock files into a meson directory. No functionnal changes. MAINTAINERS entry is also updated. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- MAINTAINERS

[U-Boot] [PATCH 6/6] boards: meson: add g12a u200

2019-03-26 Thread Neil Armstrong
- Infrared receiver - SDIO WiFi Module - MIPI DSI Connector - Audio HAT Connector - PCI-E M.2 Connector Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- board/amlogic/u200/MAINTAINERS | 5 ++ board/amlogic/u200/Makefile| 6 ++ board/amlogic/u200/README | 128

[U-Boot] [PATCH 5/6] ARM: dts: Import Amlogic G12A u200 DT from Linux 5.1-rc1

2019-03-26 Thread Neil Armstrong
Import Linux 5.1-rc1 DT from 9e98c678c2d6 ("Linux 5.1-rc1") for the meson-g12a-u200 board, the meson-g12a.dtsi and the corresponding bindings. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-g12a-u200.dts | 29

[U-Boot] [PATCH 0/3] ARM: meson: Add G12A USB Support

2019-03-26 Thread Neil Armstrong
board code. Neil Armstrong (3): usb: dwc3: Add Meson G12A USB Glue phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers mach-meson: g12a: add DWC2 peripheral mode support arch/arm/include/asm/arch-meson/usb.h | 12 + arch/arm/mach-meson/board-g12a.c | 126 +++ drivers/phy

[U-Boot] [PATCH 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-03-26 Thread Neil Armstrong
switch to Device mode is to be done in a separate patch. Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/Kconfig | 8 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-meson-g12a.c | 456 + 3 files changed, 465 insertions(+) create mode

[U-Boot] [PATCH 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-03-26 Thread Neil Armstrong
The second driver supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of the board. Selection is done by the #phy-cells, making the mode static and exclusive. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig| 8 + drivers/phy/Makefile | 1 + dr

[U-Boot] [PATCH 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-03-26 Thread Neil Armstrong
Device before starting the DWC2 controller in Device mode. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/usb.h | 12 +++ arch/arm/mach-meson/board-g12a.c | 126 ++ 2 files changed, 138 insertions(+) create mode 100644 arch/arm/include/asm/arch

Re: [U-Boot] [PATCH 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-03-27 Thread Neil Armstrong
On 26/03/2019 16:53, Marek Vasut wrote: > On 3/26/19 4:15 PM, Neil Armstrong wrote: >> Adds support for Amlogic G12A USB Control Glue HW. >> >> The Amlogic G12A SoC Family embeds 2 USB Controllers : >> - a DWC3 IP configured as Host for USB2 and USB3 >> - a DWC2

Re: [U-Boot] [PATCH 1/3] rockchip: arm: use 'arch-rockchip' for common header

2019-04-01 Thread Neil Armstrong
On 28/03/2019 04:01, Kever Yang wrote: > rockchip platform header file is in 'arch-rockchip' > instead of arch-$(SOC) for all SoCs. > > Signed-off-by: Kever Yang > --- > > arch/arm/cpu/armv8/start.S | 4 > arch/arm/include/asm/gpio.h | 2 +- > arch/arm/lib/vectors.S | 5 - > 3 fi

[U-Boot] [PATCH v2 0/3] ARM: meson: Add G12A USB Support

2019-04-01 Thread Neil Armstrong
board code. Changes since v1: - switch printf() to debug() in patch 1 Neil Armstrong (3): usb: dwc3: Add Meson G12A USB Glue phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers mach-meson: g12a: add DWC2 peripheral mode support arch/arm/include/asm/arch-meson/usb.h | 12 + arch/arm

[U-Boot] [PATCH v2 1/3] usb: dwc3: Add Meson G12A USB Glue

2019-04-01 Thread Neil Armstrong
switch to Device mode is to be done in a separate patch. Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/Kconfig | 8 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-meson-g12a.c | 456 + 3 files changed, 465 insertions(+) create mode

[U-Boot] [PATCH v2 2/3] phy: meson: add Amlogic G12A USB2 and USB3+PCIE PHY drivers

2019-04-01 Thread Neil Armstrong
The second driver supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of the board. Selection is done by the #phy-cells, making the mode static and exclusive. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig| 8 + drivers/phy/Makefile | 1 + dr

[U-Boot] [PATCH v2 3/3] mach-meson: g12a: add DWC2 peripheral mode support

2019-04-01 Thread Neil Armstrong
Device before starting the DWC2 controller in Device mode. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/usb.h | 12 +++ arch/arm/mach-meson/board-g12a.c | 126 ++ 2 files changed, 138 insertions(+) create mode 100644 arch/arm/include/asm/arch

[U-Boot] [PATCH 0/2] arm: meson: Fix khadas-vim2 USB

2019-04-03 Thread Neil Armstrong
This patchset : - fixes the MESON_GXL_USB_PHY dependency to also allow MESON_GXM - fixes the khadas-vim2 defconfig Tom, I know it's _very_ late in the cycle, is it still OK for final 2019.04 release ? Neil Armstrong (2): phy: Also allow MESON_GXM for MESON_GXL_USB_PHY configs: khadas

[U-Boot] [PATCH 1/2] phy: Also allow MESON_GXM for MESON_GXL_USB_PHY

2019-04-03 Thread Neil Armstrong
The MESON_GXL_USB_PHY is also used on the Amlogic Meson GXM SoCs. Fixes: 2960e27e38 ("phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers") Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/Kco

[U-Boot] [PATCH 2/2] configs: khadas_vim2: Fix defconfig

2019-04-03 Thread Neil Armstrong
The Khadas VIM2 defconfig was missing the USB PHY config and two other misc configs to setup dram banks and call misc_init_r. Align it on the other Amlogic SoC based boards defconfig. Signed-off-by: Neil Armstrong --- configs/khadas-vim2_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff

[U-Boot] [PATCH] board: amlogic: enable PHY_REALTEK for selected boards

2019-04-10 Thread Neil Armstrong
When using the generic PHY on boards using an RGMII Realtek PHY, gigabit speed is not always reliable. This patch enables the Realtek PHY driver for such boards. Signed-off-by: Neil Armstrong --- configs/khadas-vim2_defconfig | 1 + configs/nanopi-k2_defconfig | 1 + configs/odroid

[U-Boot] [PATCH] board: amlogic-q200: fix Khadas VIM2 README

2019-04-10 Thread Neil Armstrong
The vendor U-boot branch and defconfig was wrong for the Khadas VIM2, fix this. Signed-off-by: Neil Armstrong --- board/amlogic/q200/README.khadas-vim2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/amlogic/q200/README.khadas-vim2 b/board/amlogic/q200

Re: [U-Boot] [PATCH] i2c: meson: add configurable divider factors

2019-04-10 Thread Neil Armstrong
On 22/03/2019 14:49, Guillaume La Roque wrote: > This patch add support for I2C controller in Meson-AXG SoC, > Due to the IP changes between I2C controller, we need to introduce > a compatible data to make the divider factor configurable. > > backport from linux: > 931b18e92cd0 ("2c: meson: add co

Re: [U-Boot] [PATCH 0/2] ARM: meson: Add support for Libretech-AC

2019-04-10 Thread Neil Armstrong
On 26/03/2019 11:20, Neil Armstrong wrote: > LibreTech AC is a single board computer manufactured by Libre Technology > with the following specifications: > > - Amlogic S805X ARM Cortex-A53 quad-core SoC @ 1.2GHz > - ARM Mali 450 GPU > - 512MiB DDR4 SDRAM > - 10/100 Ethe

Re: [U-Boot] [PATCH] reset-meson: Add AXG reset compatible

2019-04-10 Thread Neil Armstrong
On 26/03/2019 11:25, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- > drivers/reset/reset-meson.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c > index 92f04695ec..31aa4d41e8 100644 > -

Re: [U-Boot] [PATCH] pinctrl: meson: axg: Fix PIN and BANK offsets

2019-04-10 Thread Neil Armstrong
On 08/04/2019 10:09, Guillaume La Roque wrote: > Periphs bank offset must be applied on all pins and > PMX bank to prevent issue in meson_pinconf_set call. > Without offset on pins when a call to pinconf is done > meson_gpio_calc_reg_and_bit return wrong offset. > To avoid breaking pmx function off

Re: [U-Boot] [PATCH 1/6] pinctrl: meson: add g12a support

2019-04-10 Thread Neil Armstrong
On 26/03/2019 16:02, Neil Armstrong wrote: > From: Jerome Brunet > > Add pinctrl support for the Amlogic G12A SoC, which is > very similar to the Amlogic AXG support but with an additionnal > drive-strength register bank. > > Signed-off-by: Jerome Brunet > Signe

[U-Boot] [PATCH v2 0/6] ARM: meson: Add support for G12A based U200 board

2019-04-10 Thread Neil Armstrong
g12a support ARM: meson: add G12a support boards: meson: add g12a u200 Neil Armstrong (1): ARM: dts: Import Amlogic G12A u200 DT from Linux 5.1-rc1 MAINTAINERS |2 +- arch/arm/dts/Makefile |3 +- arch/arm/dts/meson-g12a-u200

[U-Boot] [PATCH v2 2/6] clk: create meson directory and move related drivers

2019-04-10 Thread Neil Armstrong
From: Jerome Brunet In order to support the Amlogic G12A clock controller, re-architect the clock files into a meson directory. No functionnal changes. MAINTAINERS entry is also updated. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- MAINTAINERS

[U-Boot] [PATCH v2 1/6] pinctrl: meson: add g12a support

2019-04-10 Thread Neil Armstrong
From: Jerome Brunet Add pinctrl support for the Amlogic G12A SoC, which is very similar to the Amlogic AXG support but with an additionnal drive-strength register bank. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig |4 + drivers

[U-Boot] [PATCH v2 3/6] clk: meson: add g12a support

2019-04-10 Thread Neil Armstrong
From: Jerome Brunet Add basic support for the Amlogic G12A clock controller based on the AXG driver. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-g12a.h | 104 ++ drivers/clk/meson/Kconfig| 8 + drivers/clk

[U-Boot] [PATCH v2 4/6] ARM: meson: add G12a support

2019-04-10 Thread Neil Armstrong
. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/g12a.h | 66 +++ arch/arm/mach-meson/Kconfig| 9 +- arch/arm/mach-meson/Makefile | 1 + arch/arm/mach-meson/board-g12a.c | 150 + 4

[U-Boot] [PATCH v2 6/6] boards: meson: add g12a u200

2019-04-10 Thread Neil Armstrong
- Infrared receiver - SDIO WiFi Module - MIPI DSI Connector - Audio HAT Connector - PCI-E M.2 Connector Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- board/amlogic/u200/MAINTAINERS | 5 ++ board/amlogic/u200/Makefile| 6 ++ board/amlogic/u200/README | 128

[U-Boot] [PATCH v2 5/6] ARM: dts: Import Amlogic G12A u200 DT from Linux 5.1-rc1

2019-04-10 Thread Neil Armstrong
Import Linux 5.1-rc1 DT from 9e98c678c2d6 ("Linux 5.1-rc1") for the meson-g12a-u200 board, the meson-g12a.dtsi and the corresponding bindings. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-g12a-u200.dts | 29

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190411

2019-04-11 Thread Neil Armstrong
oC Information Mohammad Rasim (5): ARM: board: meson: rename odroid-c2 to p200 ARM: dts: meson: add p200 and p201 boards ARM: dts: meson: add u-boot.dtsi for p200 and p201 ARM: board: meson: add p200 board ARM: board: meson: add p201 board Neil Armstrong (3): AR

Re: [U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190411

2019-04-11 Thread Neil Armstrong
On 11/04/2019 16:52, Tom Rini wrote: > On Thu, Apr 11, 2019 at 01:16:26PM +0200, Neil Armstrong wrote: > >> Hi Tom, >> >> This PR adds support for 3 more Amlogic boards, support printing SoC >> revision information, add AXG family support for I2C and Reset,

[U-Boot] [PATCH] regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset

2019-04-11 Thread Neil Armstrong
compiler optimization routines. Cc: Simon Glass Reported-by: Tom Rini Fixes: df9cf1cc08 ("test: dm: regmap: Fix the long test delay") Signed-off-by: Neil Armstrong --- include/regmap.h | 4 1 file changed, 4 insertions(+) diff --git a/include/regmap.h b/include/regmap.h index 8359c

[U-Boot] [PATCH] mtd: spi-nor-ids: Add Gigadevice gd25lq128 ID

2019-04-12 Thread Neil Armstrong
This adds support for the Gigadevice gd25lq128 ID needed on the upcoming libretech-ac board. SPI_NOR_QUAD_READ is not set since it has not been tested in Quad mode. Signed-off-by: Neil Armstrong --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190509

2019-05-09 Thread Neil Armstrong
8:32 +0200) - Add USB PHY drivers for Amlogic G12A - Add USB Complex Glue driver for Amlogic G12A - Add USB Gadget support for Amlogic G12A ---- Neil Armstrong (3): usb: dwc3: Add Meso

Re: [U-Boot] [PATCH v3 0/3] ARM: meson: Add G12A USB Support

2019-05-09 Thread Neil Armstrong
Lukasz, Marek, On 07/05/2019 17:54, Lukasz Majewski wrote: > On Tue, 7 May 2019 17:16:52 +0200 > Marek Vasut wrote: > >> On 5/7/19 5:11 PM, Neil Armstrong wrote: >>> Hi Marek, >>> >>> On 07/05/2019 15:05, Marek Vasut wrote: >>>> On 5/7/19

[U-Boot] [PATCH 0/3] ARM: meson-g12a: Add missing support from Linux 5.2-rc1

2019-05-28 Thread Neil Armstrong
This patchset : - Syncs the G12A DT from v5.2-rc1 - Add support for the G12A PCIE PLL, introduced in v5.2-rc1 - Add missing DT to fill the gaps, that will be synced in Linux 5.3-rc1 Neil Armstrong (3): ARM: dts: sync Amlogic G12A DT with Linux 5.2-rc1 clk: meson-g12a: Add PCIE PLL support

[U-Boot] [PATCH 1/3] ARM: dts: sync Amlogic G12A DT with Linux 5.2-rc1

2019-05-28 Thread Neil Armstrong
Sync from Linux commit a188339ca5a3 ("Linux 5.2-rc1") Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12a-u200.dts | 147 ++ arch/arm/dts/meson-g12a.dtsi | 465 ++ include/dt-bindings/clock/g12a-aoclkc.h | 2 + include/d

[U-Boot] [PATCH 2/3] clk: meson-g12a: Add PCIE PLL support

2019-05-28 Thread Neil Armstrong
The G12A PCIE PLL clock was introduced in Linux 5.2-rc1, and is needed for USB to operate, add basic support for it and associated gates. Signed-off-by: Neil Armstrong --- drivers/clk/meson/g12a.c | 103 +++ 1 file changed, 103 insertions(+) diff --git a

[U-Boot] [PATCH 3/3] ARM: dts: Add missing DT for Meson G12A support

2019-05-28 Thread Neil Armstrong
The following DT nodes in the process on review for Linux 5.3, until Linux 5.3 is tagged, add the missing DT nodes in u-boot specific DTSI files that will be dropped when the v5.3-rc1 DT is synced again. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-g12a-u-boot.dtsi | 216

[U-Boot] [PATCH] ARM: meson-gx: Reset GXL/GXM to external PHY when not using internal PHY

2019-05-28 Thread Neil Armstrong
When using External PHY, reset the mux to use the external PHY in case U-Boot was chainloaded from a misconfigured bootloader. Fixes: 33e3378091 ("ARM: meson: rework soc arch file to prepare for new SoC") Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/board-gx.c | 17 ++

[U-Boot] [PATCH] boards: amlogic-g200: remove phy reset

2019-05-28 Thread Neil Armstrong
The PHY reset is now handled by the MAC driver, remove this leftover. Signed-off-by: Neil Armstrong --- board/amlogic/q200/q200.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/board/amlogic/q200/q200.c b/board/amlogic/q200/q200.c index 1932c14aa2..2ea97c362e 100644 --- a/board

Re: [U-Boot] [PATCH 3/3] ARM: dts: Add missing DT for Meson G12A support

2019-05-31 Thread Neil Armstrong
On 28/05/2019 10:50, Neil Armstrong wrote: > The following DT nodes in the process on review for Linux 5.3, > until Linux 5.3 is tagged, add the missing DT nodes in u-boot specific > DTSI files that will be dropped when the v5.3-rc1 DT is synced again. > > Signed-off-by:

[U-Boot] [PATCH] configs: u200: enable support for USB Host & Gadget

2019-05-31 Thread Neil Armstrong
Now the Amlogic G12A DT and drivers are present, enable full USB on the U200 Reference Design board. Signed-off-by: Neil Armstrong --- configs/u200_defconfig | 17 + 1 file changed, 17 insertions(+) diff --git a/configs/u200_defconfig b/configs/u200_defconfig index 13b6f41847

Re: [U-Boot] [RFC PATCH] pxe: add support for FDT overlays

2019-05-31 Thread Neil Armstrong
Hi Tom. Is there someone who can review this ? or should I resent without RFC ? Thanks, Neil On 07/05/2019 14:50, Neil Armstrong wrote: > This adds support for specicyinf FDT overlays in an extlinux/pxelinux > configuration file. > > Without this, there is no simple way to apply o

Re: [U-Boot] [PATCH] boards: amlogic-g200: remove phy reset

2019-05-31 Thread Neil Armstrong
On 28/05/2019 13:15, Neil Armstrong wrote: > The PHY reset is now handled by the MAC driver, remove this leftover. > > Signed-off-by: Neil Armstrong > --- > board/amlogic/q200/q200.c | 6 -- > 1 file changed, 6 deletions(-) > > diff --git a/board/amlogic/q200/q20

Re: [U-Boot] [PATCH] ARM: meson-gx: Reset GXL/GXM to external PHY when not using internal PHY

2019-05-31 Thread Neil Armstrong
On 28/05/2019 13:13, Neil Armstrong wrote: > When using External PHY, reset the mux to use the external PHY in case U-Boot > was chainloaded from a misconfigured bootloader. > > Fixes: 33e3378091 ("ARM: meson: rework soc arch file to prepare for new SoC") > Sign

Re: [U-Boot] [PATCH 0/3] ARM: meson-g12a: Add missing support from Linux 5.2-rc1

2019-05-31 Thread Neil Armstrong
On 28/05/2019 10:50, Neil Armstrong wrote: > This patchset : > - Syncs the G12A DT from v5.2-rc1 > - Add support for the G12A PCIE PLL, introduced in v5.2-rc1 > - Add missing DT to fill the gaps, that will be synced in Linux 5.3-rc1 > > Neil Armstrong (3): > ARM: dts: sync

Re: [U-Boot] [PATCH] configs: u200: enable support for USB Host & Gadget

2019-05-31 Thread Neil Armstrong
On 31/05/2019 10:10, Neil Armstrong wrote: > Now the Amlogic G12A DT and drivers are present, enable full USB > on the U200 Reference Design board. > > Signed-off-by: Neil Armstrong > --- > configs/u200_defconfig | 17 + > 1 file changed, 17 insertions

[U-Boot] [PULL u-boot] Please pull u-boot-amlogic-20190531

2019-05-31 Thread Neil Armstrong
00 reference board -------- Neil Armstrong (6): ARM: dts: sync Amlogic G12A DT with Linux 5.2-rc1 clk: meson-g12a: Add PCIE PLL support ARM: dts: Add missing DT for Meson G12A support ARM: meson-gx: Reset GXL/GXM to external PHY when not using internal PHY bo

[U-Boot] [PATCH] ARM: dts: Sync Amlogic G12A with Linux 5.3-rc1

2019-07-22 Thread Neil Armstrong
Sync the Amlogic Meson G12A DT and Bindings file with the Linux 5.3-rc1 from the commit 5f9e832c1370 ("Linus 5.3-rc1"). Also remove the meson-g12a-u-boot.dtsi and meson-g12a-u200-u-boot.dtsi, now conflicting with the main DT content. Signed-off-by: Neil Armstrong --- arch/arm/dts/me

[U-Boot] [PATCH 0/3] amlogic: Add support for Odroid-N2

2019-07-22 Thread Neil Armstrong
- eMMC, microSD - Infrared receiver This patchset : - adds the Odroid-N2 from Linux 5.3-rc1 - fixes 4GiB memory support - adds board support The board directory is W400, the name of the Amlogic Reference Design of Amlogic G12B with Gigabit boards, which will be used for similar boards. Neil

<    7   8   9   10   11   12   13   14   15   16   >