Re: [U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2018-03-29 Thread Neil Armstrong
Hi Beniamino, On 03/12/2017 10:17, Beniamino Galvani wrote: > Introduce a basic clock driver for Amlogic Meson SoCs which supports > enabling/disabling clock gates and getting their frequency. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/mach-meson/Kconfig | 2 + > drivers/clk/Makefi

[U-Boot] [PATCH u-boot] reset: Add Amlogic Meson Reset Controller

2018-03-29 Thread Neil Armstrong
The Amlogic Meson SoCs embeds up to 256 reset lines, add the corresponding driver. Signed-off-by: Neil Armstrong --- drivers/reset/Kconfig | 8 drivers/reset/Makefile | 1 + drivers/reset/reset-meson.c | 90 + 3 files changed, 99

[U-Boot] [PATCH] serial: meson: Update compatible with new Linux bindings

2018-03-29 Thread Neil Armstrong
compatible string for Amlogic Meson GX Socs. Signed-off-by: Neil Armstrong --- drivers/serial/serial_meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index 363affb..6412ca6 100644 --- a/drivers/serial/serial_meson.c +++ b

[U-Boot] [PATCH u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-03-29 Thread Neil Armstrong
://lkml.kernel.org/r/20180128202245.25021-1-martin.blumensti...@googlemail.com [3] https://lkml.kernel.org/r/20180303214309.25643-1-martin.blumensti...@googlemail.com Neil Armstrong (3): usb: host: Add simple of glue driver for DWC3 USB Controllers integration usb: host: dwc3: Add support for multiple PHY

[U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 ++ drivers/usb/host/Makefile | 1 + drivers/usb/host/dwc3-of-simple.c | 187 ++ 3 files changed, 195 insertions(+) create mode 100644 drivers/usb/host/dwc3-of-simple.c diff

[U-Boot] [PATCH u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-03-29 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxl-usb2.c | 238 +++ drivers/phy/meson-gxl-usb3.c | 201 4 files changed, 448 insertions

[U-Boot] [PATCH u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-03-29 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 105 --- 1 file changed, 58

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:52, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> Signed-off-by: Neil Armstrong >> --- >> drivers/usb/host/Kconfig | 7 ++ >> drivers/usb/host/Makefile | 1 + >> driver

Re: [U-Boot] [PATCH u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:53, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support >> for a generic number of PHYs and adapt the code to handle a generic >> number of PHYs. >> >&

Re: [U-Boot] [PATCH u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-03-29 Thread Neil Armstrong
On 29/03/2018 15:54, Marek Vasut wrote: > On 03/29/2018 03:42 PM, Neil Armstrong wrote: >> Signed-off-by: Neil Armstrong >> --- >> drivers/phy/Kconfig | 8 ++ >> drivers/phy/Makefile | 1 + >> d

Re: [U-Boot] [PATCH u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-03-29 Thread Neil Armstrong
On 29/03/2018 16:24, Marek Vasut wrote: > On 03/29/2018 04:23 PM, Neil Armstrong wrote: >> On 29/03/2018 15:52, Marek Vasut wrote: >>> On 03/29/2018 03:42 PM, Neil Armstrong wrote: >>>> Signed-off-by: Neil Armstrong >>>> --- >>>> drivers/usb

Re: [U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2018-03-30 Thread Neil Armstrong
On 30/03/2018 00:41, Simon Glass wrote: > Hi Neil, > > On 29 March 2018 at 16:42, Neil Armstrong wrote: >> Hi Beniamino, >> >> On 03/12/2017 10:17, Beniamino Galvani wrote: >>> Introduce a basic clock driver for Amlogic Meson SoCs which supports >>&g

[U-Boot] [PATCH u-boot] reset: Add get/assert/deassert/release for bulk of reset signals

2018-03-30 Thread Neil Armstrong
This patch adds a "bulk" API to the reset API in order to get/deassert/ assert/release a group of reset signals associated with a device. This bulk API will avoid adding a copy of the same code to manage a group of reset signals in drivers. Signed-off-by: Neil Armstrong --- This ser

[U-Boot] [PATCH u-boot] clk: Add get/enable/disable/release for a bulk of clocks

2018-03-30 Thread Neil Armstrong
This patch adds a "bulk" API to the clock API in order to get/enable/disable /release a group of clocks associated with a device. This bulk API will avoid adding a copy of the same code to manage a group of clocks in drivers. Signed-off-by: Neil Armstrong --- This serie and the &

[U-Boot] [PATCH v2 u-boot 0/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-03 Thread Neil Armstrong
merged. The second patch adds the bulk reset API tests for the sandbox test suite. Changes since v1 : - Add sandbox tests Neil Armstrong (2): reset: Add get/assert/deassert/release for bulk of reset signals reset: add sandbox test for bulk API arch/sandbox/include/asm/reset.h | 4 ++

[U-Boot] [PATCH v2 u-boot 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-03 Thread Neil Armstrong
This patch adds a "bulk" API to the reset API in order to get/deassert/ assert/release a group of reset signals associated with a device. This bulk API will avoid adding a copy of the same code to manage a group of reset signals in drivers. Signed-off-by: Neil Armstrong --- drivers/r

[U-Boot] [PATCH v2 u-boot 2/2] reset: add sandbox test for bulk API

2018-04-03 Thread Neil Armstrong
ets of the sandbox reset controller has been bumped to 101 for the "other" reset line to be valid. Signed-off-by: Neil Armstrong --- arch/sandbox/include/asm/reset.h | 4 drivers/reset/sandbox-reset-test.c | 29 + drivers/reset/sandbox-reset.c | 2

[U-Boot] [PATCH v2 u-boot 0/2] clk: Add get/enable/disable/release for a bulk of clocks

2018-04-03 Thread Neil Armstrong
cond patch adds the bulk clock API tests for the sandbox test suite. Changes since v1 : - Add sandbox tests Neil Armstrong (2): clk: Add get/enable/disable/release for a bulk of clocks clk: add sandbox test for bulk API arch/sandbox/include/asm/clk.h | 32 +++ drive

[U-Boot] [PATCH v2 u-boot 2/2] clk: add sandbox test for bulk API

2018-04-03 Thread Neil Armstrong
This patch adds the bulk clock API tests for the sandbox test suite. It's very similar to the main test but only uses the _bulk() API and checks if the clocks are correctly enabled/disabled. Signed-off-by: Neil Armstrong --- arch/sandbox/include/asm/clk.h

[U-Boot] [PATCH v2 u-boot 1/2] clk: Add get/enable/disable/release for a bulk of clocks

2018-04-03 Thread Neil Armstrong
This patch adds a "bulk" API to the clock API in order to get/enable/disable /release a group of clocks associated with a device. This bulk API will avoid adding a copy of the same code to manage a group of clocks in drivers. Signed-off-by: Neil Armstrong --- drivers/clk/clk-ucl

Re: [U-Boot] [PATCH v2 u-boot 2/2] reset: add sandbox test for bulk API

2018-04-04 Thread Neil Armstrong
On 03/04/2018 19:53, Simon Glass wrote: > On 3 April 2018 at 17:40, Neil Armstrong wrote: >> This patch adds the bulk reset API tests for the sandbox test suite. >> >> Unlike the main test, it also check the "other" reset signal using the bulk >> API >

Re: [U-Boot] [RFC PATCH] net: phy: Don't limit phy addresses by default

2018-04-09 Thread Neil Armstrong
t; CONFIG_NETDEVICES=y > diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig > index 179e041..f5821df 100644 > --- a/drivers/net/phy/Kconfig > +++ b/drivers/net/phy/Kconfig > @@ -13,12 +13,20 @@ menuconfig PHYLIB > > if PHYLIB > > +config PHY_ADDR_ENABLE &g

Re: [U-Boot] [PATCH u-boot 2/2] ARM: meson: Add cpu info display for GX SoCs

2018-04-09 Thread Neil Armstrong
On 04/04/2018 22:49, Beniamino Galvani wrote: > On Wed, Mar 28, 2018 at 11:54:37AM +0200, Neil Armstrong wrote: >> The Amlogic SoCs have a registers containing the die revision >> and packaging type to determine the SoC family and package marketing >> name like S905X f

Re: [U-Boot] [PATCH u-boot 2/2] ARM: meson: Add cpu info display for GX SoCs

2018-04-09 Thread Neil Armstrong
On 08/04/2018 15:50, Simon Glass wrote: > Hi, > > On 28 March 2018 at 05:54, Neil Armstrong wrote: >> 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

Re: [U-Boot] [PATCH u-boot 1/2] ARM: meson: rename GXBB to GX

2018-04-09 Thread Neil Armstrong
On 04/04/2018 22:40, Beniamino Galvani wrote: > On Wed, Mar 28, 2018 at 11:54:36AM +0200, Neil Armstrong wrote: >> Taking into account the Amlogic Family name starts with GX, including >> the GXBB, GXL and GXM SoCs. >> >> Signed-off-by: Neil Armstrong > > Hi, &

Re: [U-Boot] [PATCH u-boot 2/2] ARM: meson: Add cpu info display for GX SoCs

2018-04-10 Thread Neil Armstrong
On 08/04/2018 15:50, Simon Glass wrote: > Hi, > > On 28 March 2018 at 05:54, Neil Armstrong wrote: >> 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

[U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 + drivers/usb/host/dwc3-of-simple.c | 123

[U-Boot] [PATCH v2 u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-04-11 Thread Neil Armstrong
ril/006952.html [5] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006949.html Neil Armstrong (3): usb: host: Add simple of glue driver for DWC3 USB Controllers integration usb: host: dwc3: Add support for multiple PHYs phy: Add Amlogic Meson USB2 & USB3 Generic PHY d

[U-Boot] [PATCH v2 u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-04-11 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 113 +-- 1 file changed, 66

[U-Boot] [PATCH v2 u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-04-11 Thread Neil Armstrong
merged in linux. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxl-usb2.c | 238 +++ drivers/phy/meson-gxl-usb3.c | 201 4 files changed, 448

Re: [U-Boot] [PATCH 1/1] mmc: avoid division by zero in meson_mmc_config_clock - Please, consider for v2018.05-rc2

2018-04-11 Thread Neil Armstrong
Hi Jaehoon, On 10/04/2018 18:01, Heinrich Schuchardt wrote: > On 03/24/2018 03:57 PM, Heinrich Schuchardt wrote: >> On 03/18/2018 01:03 AM, Vagrant Cascadian wrote: >>> On 2018-03-17, Heinrich Schuchardt wrote: The Odroid C2 fails to read from mmc with U-Boot v2018.03. The change avoids

Re: [U-Boot] [PATCH v2 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
Hi Marek, On 11/04/2018 16:37, Marek Vasut wrote: > On 04/11/2018 04:29 PM, Neil Armstrong wrote: >> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >> clock and resets of a simple DWC3 Controller HW glue. >> >> Signed-off-by: Neil Armstrong

[U-Boot] [PATCH v3 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-11 Thread Neil Armstrong
This is a port of the dwc3-of-simple driver from Linux to enable/deassert clock and resets of a simple DWC3 Controller HW glue. Signed-off-by: Neil Armstrong --- drivers/usb/host/Kconfig | 7 +++ drivers/usb/host/Makefile | 1 + drivers/usb/host/dwc3-of-simple.c | 109

[U-Boot] [PATCH v3 u-boot 0/3] Add USB Support for Amlogic Meson GXL SoCs

2018-04-11 Thread Neil Armstrong
i...@googlemail.com [4] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006952.html [5] http://lists.infradead.org/pipermail/linux-amlogic/2018-April/006949.html Neil Armstrong (3): usb: host: Add simple of glue driver for DWC3 USB Controllers integration usb: host: dwc3: A

[U-Boot] [PATCH v3 u-boot 2/3] usb: host: dwc3: Add support for multiple PHYs

2018-04-11 Thread Neil Armstrong
DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support for a generic number of PHYs and adapt the code to handle a generic number of PHYs. Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 113 +-- 1 file changed, 66

[U-Boot] [PATCH v3 u-boot 3/3] phy: Add Amlogic Meson USB2 & USB3 Generic PHY drivers

2018-04-11 Thread Neil Armstrong
merged in linux. Signed-off-by: Neil Armstrong --- drivers/phy/Kconfig | 8 ++ drivers/phy/Makefile | 1 + drivers/phy/meson-gxl-usb2.c | 238 +++ drivers/phy/meson-gxl-usb3.c | 201 4 files changed, 448

[U-Boot] [PATCH v2 u-boot] ARM: meson: rename GXBB to GX

2018-04-11 Thread Neil Armstrong
Taking into account the Amlogic Family name starts with GX, including the GXBB, GXL and GXM SoCs. Signed-off-by: Neil Armstrong --- Changes since v1: - Resent as single patch since cpuinfo needs further work - Aligned the defines in gx.h arch/arm/include/asm/arch-meson/gx.h | 70

[U-Boot] [PATCH u-boot 0/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Amlogic Meson GX Device Tree and bindings with Linux 4.16 to beneficiate with the new DT nodes. The pinctrl bindings has changed since 4.13, so the pinctrl driver must be updated with the changes. Neil Armstrong (2): ARM64: meson: Sync DT and Bindings with Linux 4.16 pinctrl

[U-Boot] [PATCH u-boot 1/2] ARM64: meson: Sync DT and Bindings with Linux 4.16

2018-04-11 Thread Neil Armstrong
Synchronize the Linux Device Tree for Amlogic Meson GX boards from Linux 4.16.0. Signed-off-by: Neil Armstrong --- arch/arm/dts/meson-gx.dtsi| 87 ++- arch/arm/dts/meson-gxbb-odroidc2.dts | 56 -- arch/arm/dts/meson-gxbb.dtsi

[U-Boot] [PATCH u-boot 2/2] pinctrl: meson: Update pinmux with new Linux bindings

2018-04-11 Thread Neil Armstrong
The pinctrl bindings has changed for Amlogic Meson SoCs since Linux 4.13, update the pinctrl driver to take this in account. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 12 ++-- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 14 +++--- 2 files

[U-Boot] [PATCH] reset: fix bulk API when DM_RESET is disabled

2018-04-12 Thread Neil Armstrong
reset signals") Reported-by: Jean-Jacques Hiblot Signed-off-by: Neil Armstrong --- include/reset.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/reset.h b/include/reset.h index d38f176..ae247ce 100644 --- a/include/reset.h +++ b/include/reset.h @@ -243,7 +243,8

Re: [U-Boot] [PATCH v3 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-12 Thread Neil Armstrong
Hi Jean-Jacques, On 11/04/2018 18:17, Jean-Jacques Hiblot wrote: > > > On 11/04/2018 17:08, Neil Armstrong wrote: >> This is a port of the dwc3-of-simple driver from Linux to enable/deassert >> clock and resets of a simple DWC3 Controller HW glue. >> >&

Re: [U-Boot] [PATCH v3 u-boot 1/3] usb: host: Add simple of glue driver for DWC3 USB Controllers integration

2018-04-12 Thread Neil Armstrong
On 12/04/2018 10:07, Ben Dooks wrote: > On 12/04/18 09:05, Neil Armstrong wrote: >> Hi Jean-Jacques, >> >> On 11/04/2018 18:17, Jean-Jacques Hiblot wrote: >>> >>> >>> On 11/04/2018 17:08, Neil Armstrong wrote: >>>> This is a por

[U-Boot] [PATCH] usb: dwc3-of-simple: fix error check of clk_get_bulk when disabled

2018-04-12 Thread Neil Armstrong
The disabled clk API returns -ENOSYS unlike the reset API returning -ENOTSUPP. Fixes: ca7fdc8b1267 ("usb: host: Add simple of glue driver for DWC3 USB Controllers integration") Reported-by: Jean-Jacques Hiblot Signed-off-by: Neil Armstrong --- drivers/usb/host/dwc3-of-simple.c | 2

Re: [U-Boot] [PATCH v2 u-boot 1/2] reset: Add get/assert/deassert/release for bulk of reset signals

2018-04-12 Thread Neil Armstrong
On 11/04/2018 17:49, Jean-Jacques Hiblot wrote: > Hi Neil, > > while trying to test your patches on dwc3, I ran into a compilation issue. > > On 03/04/2018 11:40, Neil Armstrong wrote: >> This patch adds a "bulk" API to the reset API in order to get/deassert/ >

Re: [U-Boot] [PATCH] reset: fix bulk API when DM_RESET is disabled

2018-04-17 Thread Neil Armstrong
On 12/04/2018 18:41, Simon Glass wrote: > On 12 April 2018 at 02:03, Neil Armstrong wrote: >> In the commit "reset: Add get/assert/deassert/release for bulk of reset >> signals" >> the disabled reset_release_bulk() and reset_get_bulk() used the wrong >&

[U-Boot] [PATCH] reset: fix reset_get_bulk when phandle error

2018-04-17 Thread Neil Armstrong
This fixes the Coverity Defect CID 175348 when dev_count_phandle_with_args() returns a negative value. Fixes: 0c28233903b5 ("reset: Add get/assert/deassert/release for bulk of reset signals") Signed-off-by: Neil Armstrong --- drivers/reset/reset-uclass.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH] clk: fix clk_get_bulk when phandle error

2018-04-17 Thread Neil Armstrong
This fixes the Coverity Defect CID 175347 when dev_count_phandle_with_args() returns a negative value. Fixes: a855be87da49 ("clk: Add get/enable/disable/release for a bulk of clocks") Signed-off-by: Neil Armstrong --- drivers/clk/clk-uclass.c | 4 ++-- 1 file changed, 2 insert

Re: [U-Boot] [PATCH 3/4] regmap: change regmap_init_mem() to take ofnode instead udevice

2018-04-18 Thread Neil Armstrong
-meson.c > index 5324f86..c41d176 100644 > --- a/drivers/reset/reset-meson.c > +++ b/drivers/reset/reset-meson.c > @@ -77,7 +77,7 @@ static int meson_reset_probe(struct udevice *dev) > { > struct meson_reset_priv *priv = dev_get_priv(dev); > > - retu

[U-Boot] [PATCH] regmap: add regmap_update_bits() helper

2018-04-23 Thread Neil Armstrong
Add the regmap_update_bits() to simply the read/modify/write of registers in a single command. The function is taken from Linux regmap implementation. Signed-off-by: Neil Armstrong --- include/regmap.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/regmap.h

[U-Boot] [PATCH] cmd: add ADC cli commands

2018-04-23 Thread Neil Armstrong
Add an 'adc' cli command to get adc devices informations and read single shots datas. Signed-off-by: Neil Armstrong --- cmd/Kconfig | 7 cmd/Makefile | 1 + cmd/adc.c| 126 +++ 3 files changed, 134 insertions(+) c

[U-Boot] [PATCH u-boot] adc: add Amlogic Meson SAR ADC driver

2018-04-23 Thread Neil Armstrong
: add regmap_update_bits() helper" patch and has been tested using the newly introducted "adc" CLI command in the "cmd: add ADC cli commands" patch. Signed-off-by: Neil Armstrong --- drivers/adc/Kconfig| 10 + drivers/adc/Makefile | 1 + dr

[U-Boot] Fwd: [PATCH 1/1] mmc: avoid division by zero in meson_mmc_config_clock - Please, consider for v2018.05-rc2

2018-04-23 Thread Neil Armstrong
meson_mmc_config_clock - Please, consider for v2018.05-rc2 Date: Wed, 11 Apr 2018 16:39:08 +0200 From: Neil Armstrong Organization: Baylibre To: Heinrich Schuchardt , Jaehoon Chung CC: Vagrant Cascadian , u-boot@lists.denx.de, Tom Rini , open list:ARM/Amlogic Meson... Hi Jaehoon, On 10/04/2018 18:01, Heinrich

[U-Boot] [PATCH] sunxi: Add support for Libre Computer Board ALL-H3-CC H5 ver.

2018-04-24 Thread Neil Armstrong
://lkml.kernel.org/r/1524561576-2201-1-git-send-email-narmstr...@baylibre.com Signed-off-by: Neil Armstrong --- arch/arm/dts/sun50i-h5-libretech-all-h3-cc.dts | 12 configs/libretech_all_h3_cc_h5_defconfig | 17 + 2 files changed, 29 insertions(+) create mode 100644 arch

Re: [U-Boot] DWC3 USB driver regression

2018-04-25 Thread Neil Armstrong
9ea70c4991e8d4c322e074359ac5e155d59d > Author: Neil Armstrong > Date: Wed Apr 11 17:08:01 2018 +0200 > > usb: host: dwc3: Add support for multiple PHYs > > DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support > for a generic number of PHYs an

Re: [U-Boot] DWC3 USB driver regression

2018-04-25 Thread Neil Armstrong
is the first bad commit > commit 7c839ea70c4991e8d4c322e074359ac5e155d59d > Author: Neil Armstrong > Date: Wed Apr 11 17:08:01 2018 +0200 > > usb: host: dwc3: Add support for multiple PHYs > > DWC3 Ips can have more than 1 PHY for USB2 and 1 PHY for USB3, add support > for a generic number of PH

[U-Boot] [PATCH] usb: host: dwc3: fix phys init

2018-04-25 Thread Neil Armstrong
ort on the UniPhier SoC family. Fixes: 7c839ea70c49 ("usb: host: dwc3: Add support for multiple PHYs") Reported-by: Masahiro Yamada Signed-off-by: Neil Armstrong --- drivers/usb/host/xhci-dwc3.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/d

Re: [U-Boot] DWC3 USB driver regression

2018-04-25 Thread Neil Armstrong
Hi, On 25/04/2018 11:09, Masahiro Yamada wrote: > Hi Neil. > > > 2018-04-25 17:37 GMT+09:00 Neil Armstrong : >> Hi, >> >> On 25/04/2018 06:21, Masahiro Yamada wrote: >>> Hi. >>> >>> >>> I found DWC3 usb driver on UniPhier SoC f

Re: [U-Boot] [PATCH] regmap: add regmap_update_bits() helper

2018-04-26 Thread Neil Armstrong
Hi, On 26/04/2018 16:40, Simon Glass wrote: > Hi Neil, > > On 23 April 2018 at 08:16, Neil Armstrong wrote: >> Add the regmap_update_bits() to simply the read/modify/write of registers >> in a single command. The function is taken from Linux regmap >> implementation

[U-Boot] [PATCH v2 2/2] test: regmap: add read/modify/write test

2018-04-27 Thread Neil Armstrong
Add calls to regmap_read/modify_bits/write even if the proper memory read/write calls are not executed in sandbox. Signed-off-by: Neil Armstrong --- test/dm/regmap.c | 24 1 file changed, 24 insertions(+) diff --git a/test/dm/regmap.c b/test/dm/regmap.c index 7f66058

[U-Boot] [PATCH v2 0/2] regmap: add regmap_update_bits and sandbox R/W test

2018-04-27 Thread Neil Armstrong
from include to regmap.c - added a sandbox test Neil Armstrong (2): regmap: add regmap_update_bits() helper test: regmap: add read/modify/write test drivers/core/regmap.c | 14 ++ include/regmap.h | 10 ++ test/dm/regmap.c | 24 3 files

[U-Boot] [PATCH v2 1/2] regmap: add regmap_update_bits() helper

2018-04-27 Thread Neil Armstrong
Add the regmap_update_bits() to simply the read/modify/write of registers in a single command. The function is taken from Linux regmap implementation. Signed-off-by: Neil Armstrong --- drivers/core/regmap.c | 14 ++ include/regmap.h | 10 ++ 2 files changed, 24

Re: [U-Boot] [PATCH] cmd: add ADC cli commands

2018-04-27 Thread Neil Armstrong
Hi, On 26/04/2018 16:40, Simon Glass wrote: > Hi Neil, > > On 23 April 2018 at 08:18, Neil Armstrong wrote: >> Add an 'adc' cli command to get adc devices informations and read single >> shots datas. >> >> Signed-off-by: Neil Armstrong >> --- &

Re: [U-Boot] [PATCH v2] reset: Add generic GPIO reset driver

2018-04-27 Thread Neil Armstrong
Hi, On 27/04/2018 14:53, Mario Six wrote: > Some reset lines are implemented by toggling the line via a GPIO. > > Add a driver to properly drive such reset lines. You are defining a "gpio-reset" binding which has always been rejected under Linux, so I'm not sure it's a good idea to add it in U-B

Re: [U-Boot] [PATCH v2 1/5] regmap: Add size parameter

2018-04-27 Thread Neil Armstrong
Hi Mario, On 27/04/2018 14:51, Mario Six wrote: > The regmap functions currently assume that all register map accesses > have a data width of 32 bits, but there are maps that have different > widths. > > Implement a size parameter for the regmap_read and regmap_write > functions to specify the wi

[U-Boot] [PATCH v2] cmd: add ADC cli commands

2018-04-27 Thread Neil Armstrong
Add an 'adc' cli command to get adc devices informations and read single shots datas. Signed-off-by: Neil Armstrong --- cmd/Kconfig | 8 cmd/Makefile | 1 + cmd/adc.c| 121 +++ 3 files changed, 130 insertions(+) c

[U-Boot] [PATCH u-boot 0/3] Add initial support for Amlogic P212 Reference board

2017-10-12 Thread Neil Armstrong
Mainline 4.14-rc4 with the Video Pipeline disables, since it currently depends on Power Domains initialization from Vendor u-boot. Dedicated reset and init code for the Video Pipeline for mainline Linux is in the work. Neil Armstrong (3): ARM: dts: Synchronize Amlogic from Linux Mainline 4.13.5

[U-Boot] [PATCH u-boot 2/3] pinctrl: meson: Add GXL Support

2017-10-12 Thread Neil Armstrong
Add the Amlogic Meson GXL pinctrl support based on the GXBB driver and the synchronized DTS from Linux 4.13.5 Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 4 + drivers/pinctrl/meson/Makefile| 1 + drivers/pinctrl/meson/pinctrl-meson-gxl.c | 736

[U-Boot] [PATCH u-boot 1/3] ARM: dts: Synchronize Amlogic from Linux Mainline 4.13.5

2017-10-12 Thread Neil Armstrong
Synchronize the Amlogic ARM64 dts from mainline Linux 4.13.5 In the preparation of the support of the Amlogic P212 board, import the corresponding meson-gxl-s905x-p212.dts file. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gx.dtsi

[U-Boot] [PATCH u-boot 3/3] arm: add initial support for Amlogic P212 based on Meson GXL family

2017-10-12 Thread Neil Armstrong
This adds platform code for the Amlogic P212 reference board based on a Meson GXL (S905X) SoC with the Meson GXL configuration. This initial submission only supports UART and MMC/SDCard, support for the internal Ethernet PHY in Work In Progress. Signed-off-by: Neil Armstrong --- arch/arm/mach

[U-Boot] [PATCH u-boot 0/3] Add Ethernet support for Amlogic P212 Reference board

2017-10-18 Thread Neil Armstrong
This patchset aims to add support for the Internal RMII Ethernet PHY of the Amlogic Meson GXL S905X SoC on the Amlogic P212 Reference board. The Internal PHY needs a specific config then acts as a generic PHY. Neil Armstrong (3): net: phy: Add Amlogic Meson GXL Internal PHY support arm

[U-Boot] [PATCH u-boot 1/3] net: phy: Add Amlogic Meson GXL Internal PHY support

2017-10-18 Thread Neil Armstrong
The Amlogic Meson GXL/GXM families embeds an internal RMII Ethernet PHY. The PHY acts as a generic PHY but needs a slight configuration right before it's configuration. Signed-off-by: Neil Armstrong --- drivers/net/phy/Kconfig | 3 +++ drivers/net/phy/Makefile| 1 + drivers/ne

[U-Boot] [PATCH u-boot 2/3] arm: meson: Add supplementary ethernet registers definitions

2017-10-18 Thread Neil Armstrong
On Amlogic Meson GXL/GXM, supplementary ethernet configuration registers were added to configure the internal RMII PHY interface. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/gxbb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-meson

[U-Boot] [PATCH u-boot 3/3] arm: amlogic: p212: Add support for Ethernet with Internal PHY

2017-10-18 Thread Neil Armstrong
This patch adds support for the Internal RMII Ethernet PHY on the Amlogic P212 Reference Board. Signed-off-by: Neil Armstrong --- board/amlogic/p212/p212.c | 39 ++- configs/p212_defconfig| 4 include/configs/p212.h| 2 ++ 3 files changed, 44

[U-Boot] [RFC PATCH u-boot] ARM: arch-meson: build memory banks using reported memory from registers

2017-10-19 Thread Neil Armstrong
://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/gxbb.h | 15 ++ arch/arm/mach-meson/board.c| 99 +++--- include/configs/meson-gxbb-common.h| 2 +- 3 files

Re: [U-Boot] [RFC PATCH u-boot] ARM: arch-meson: build memory banks using reported memory from registers

2017-10-19 Thread Neil Armstrong
On 19/10/2017 12:45, Ben Dooks wrote: > On 2017-10-19 10:04, Neil Armstrong wrote: >> As discussed at [1], the Amlogic Meson GX SoCs can embed a BL31 firmware >> and a secondary BL32 firmware. >> Since mid-2017, the reserved memory address of the BL31 firmware was moved >

[U-Boot] [RFC PATCH u-boot v2] ARM: arch-meson: build memory banks using reported memory from registers

2017-10-19 Thread Neil Armstrong
] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html Changes since v1: - switch to fdt rsv mem table and efi reserve memory - replaced in_le32 by readl() Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/gxbb.h | 17 + arch/arm/mach-meson/board.c

Re: [U-Boot] [PATCH u-boot 1/3] net: phy: Add Amlogic Meson GXL Internal PHY support

2017-10-26 Thread Neil Armstrong
On 22/10/2017 16:36, Simon Glass wrote: > On 18 October 2017 at 10:02, Neil Armstrong wrote: >> The Amlogic Meson GXL/GXM families embeds an internal RMII Ethernet PHY. >> >> The PHY acts as a generic PHY but needs a slight configuration right >> before it's co

Re: [U-Boot] [PATCH 1/4] ARM: dts: update gxbb-clkc.h from Linux 4.14

2017-12-06 Thread Neil Armstrong
EMMC_B_CLK0 122 > +#define CLKID_SD_EMMC_C_CLK0 125 > +#define CLKID_VPU_0_SEL 126 > +#define CLKID_VPU_0 128 > +#define CLKID_VPU_1_SEL 129 > +#define CLKID_VPU_1 131 > +#define CLKID_VPU132 > +#define CLKID_VAPB_0_SEL 133 > +#define CLKID_VAPB_0 135 > +#define CLKID_VAPB_1_SEL 136 > +#define CLKID_VAPB_1 138 > +#define CLKID_VAPB_SEL 139 > +#define CLKID_VAPB 140 > > #endif /* __GXBB_CLKC_H */ > Reviewed-by: Neil Armstrong ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 2/4] ARM: meson: add clock measurement function

2017-12-06 Thread Neil Armstrong
= get_timer(0); > + while (readl(MSR_CLK_REG0) & BIT(31)) { > + if (get_timer(start) > 100) { > + debug("could not measure clk %u rate\n", clk); > + return -ETIMEDOUT; > + } > + } > + >

Re: [U-Boot] [PATCH 3/4] clk: add Amlogic meson clock driver

2017-12-06 Thread Neil Armstrong
>addr); > + > + return 0; > +} > + > +static struct clk_ops meson_clk_ops = { > + .disable= meson_clk_disable, > + .enable = meson_clk_enable, > + .get_rate = meson_clk_get_rate, > +}; > + > +static const struct udevice_id meson_clk_ids[] = { > + { .compatible = "amlogic,gxbb-clkc" }, > + { .compatible = "amlogic,gxl-clkc" }, > + { } > +}; > + > +U_BOOT_DRIVER(meson_clk) = { > + .name = "meson_clk", > + .id = UCLASS_CLK, > + .of_match = meson_clk_ids, > + .priv_auto_alloc_size = sizeof(struct meson_clk), > + .ops= &meson_clk_ops, > + .probe = meson_clk_probe, > +}; > Ok for now to only handle the gates with the clock measure function. Reviewed-by: Neil Armstrong ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 4/4] meson: use the clock driver

2017-12-06 Thread Neil Armstrong
On 03/12/2017 10:17, Beniamino Galvani wrote: > Use the clk framework to initialize clocks from drivers that need them > instead of having hardcoded frequencies and initializations from board > code. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/include/asm/arch-meson/gxbb.h | 10 ---

[U-Boot] [PATCH u-boot] ARM: arch-meson: fix writel arguments order

2017-12-12 Thread Neil Armstrong
From: Hans Verkuil Using writel causes a "Synchronous Abort". Invert the arguments. Signed-off-by: Hans Verkuil Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thanks Hans for finding this stupid error ! Neil

[U-Boot] [PATCH u-boot] net: phy: meson-gxl: detect LPA corruption

2017-12-12 Thread Neil Armstrong
solves the problem but may take up to 6 retries to complete. [1] https://lkml.kernel.org/r/20171208110811.30789-1-jbru...@baylibre.com Fixes: 8995a96d1d67 ("net: phy: Add Amlogic Meson GXL Internal PHY support") Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- This patc

Re: [U-Boot] [PATCH u-boot] ARM: arch-meson: fix writel arguments order

2017-12-18 Thread Neil Armstrong
On 12/12/2017 14:23, Neil Armstrong wrote: > From: Hans Verkuil > > Using writel causes a "Synchronous Abort". Invert the arguments. > > Signed-off-by: Hans Verkuil > Signed-off-by: Neil Armstrong > --- > arch/arm/mach-meson/eth.c | 4 ++-- > 1 file

Re: [U-Boot] [PATCH u-boot] net: phy: meson-gxl: detect LPA corruption

2017-12-18 Thread Neil Armstrong
On 12/12/2017 16:03, Neil Armstrong wrote: > From: Jerome Brunet > > This patch is ported from the Linux patch posted at [1] and applied to > net tree as commit f1e2400a80ff. > > The purpose of this change is to fix the incorrect detection of the link > partner (LP) ad

[U-Boot] [PATCH] boards: amlogic: khadas-vim: Typo fixup

2018-01-02 Thread Neil Armstrong
Khadas VIM is an Open Source DIY Box manufactured by Shenzhen Wesion NOT 'Tomato' The fix was provided by Khadas Team member 'numbqq'. Signed-off-by: Neil Armstrong --- board/amlogic/khadas-vim/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boar

[U-Boot] [PATCH 0/4] pinctrl: meson: add support for pinmux status

2019-06-04 Thread Neil Armstrong
In order to support the "pinmux status" command, fix the GX pinctrl drivers and add the necessary functions callbacks. 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 support f

[U-Boot] [PATCH 1/4] pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups

2019-06-04 Thread Neil Armstrong
The GPIO_TEST_N was in the wrong pmx group table, move it back with the AO groups, GPIODV_18 was missing, add it back, and finally the GPIOCLK_* group names were missing. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 7 +-- drivers/pinctrl/meson/pinctrl

[U-Boot] [PATCH 4/4] pinctrl: meson-axg: add support for getting pinmux status

2019-06-04 Thread Neil Armstrong
In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the AXG specific function to get the current function from registers. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c | 48

[U-Boot] [PATCH 3/4] pinctrl: meson-gx: add support for getting pinmux status

2019-06-04 Thread Neil Armstrong
In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the GX specific function to get the current function from registers. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c | 44 +

[U-Boot] [PATCH 2/4] pinctrl: meson: add common function to get pins name

2019-06-04 Thread Neil Armstrong
In order to support the "pinmux status" command, add common function to get pins count and pin name. Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/pinctrl-meson.c | 24 drivers/pinctrl/meson/pinctrl-meson.h | 3 +++ 2 files changed, 27 insertion

Re: [U-Boot] [PATCH 0/3] Add drive-strength-microamp in Meson pinctrl driver

2019-06-04 Thread Neil Armstrong
ivers/pinctrl/meson/pinctrl-meson.c | 46 ++- > drivers/pinctrl/meson/pinctrl-meson.h | 43 +++-- > include/dm/pinctrl.h | 3 ++ > 5 files changed, 89 insertions(+), 24 deletions(-) > Thanks Tested on an Odroid-N2 !

Re: [U-Boot] [PATCH] video: meson: hdmi-supply regulator should be optional

2019-06-05 Thread Neil Armstrong
n ret; > + } > > - ret = regulator_set_enable(supply, true); > - if (ret) > - return ret; > + if (!ret) { > + ret = regulator_set_enable(supply, true); > + if (ret) > +

Re: [U-Boot] [PATCH] pinctrl: meson-gxbb: add hdmi related pins

2019-06-05 Thread Neil Armstrong
_groups[] = { > "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", "GPIOAO_4", > "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", "GPIOAO_8", "GPIOAO_9", > @@ -383,6 +400,8 @@ static struct meson_pmx_func >

Re: [U-Boot] [PATCH] pinctrl: meson-gxbb: add hdmi related pins

2019-06-05 Thread Neil Armstrong
On 04/06/2019 22:26, Maxime Jourdan wrote: > The GXBB pinctrl is missing pins related to HDMI, namely hot plug > detection (hpd) and I2C (sda + scl). > > This fixes HDMI support for GXBB in u-boot. > > Reported-by: Mohammad Rasim > Signed-off-by: Maxime Jourdan > --- > drivers/pinctrl/meson/pi

Re: [U-Boot] [PATCH 0/3] Add drive-strength-microamp in Meson pinctrl driver

2019-06-05 Thread Neil Armstrong
On 04/06/2019 13:53, Guillaume La Roque wrote: > The purpose of this patchset is to add drive-strength-microamp support in > meson pinconf > driver. This is a new feature that was added on the g12a. It is critical for > us > to support this since many functions are failing with default pad > dri

Re: [U-Boot] [PATCH 0/4] pinctrl: meson: add support for pinmux status

2019-06-05 Thread Neil Armstrong
On 04/06/2019 11:04, Neil Armstrong wrote: > In order to support the "pinmux status" command, fix the GX pinctrl > drivers and add the necessary functions callbacks. > > Neil Armstrong (4): > pinctrl: meson-gx: fix GPIO_TEST_N and GPIOCLK_ groups > pinctrl: meson

[U-Boot] [PATCH 0/3] amlogic: add unique MAC address generatio

2019-06-12 Thread Neil Armstrong
This patchset adds support for generating an unique MAC address per-SoC, and enables it on the q200 (VIM2) and P212 (libretech-cc, khadas-vim, libretech-ac) based boards. Neil Armstrong (3): ARM: meson: sm: Add secure monitor calls to retrieve SoC serial number ARM: meson: add unique MAC

[U-Boot] [PATCH 1/3] ARM: meson: sm: Add secure monitor calls to retrieve SoC serial number

2019-06-12 Thread Neil Armstrong
The Secure Monitor interface permits retrieving the SoC Serial Number, add a function to retrieve it. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/sm.h | 1 + arch/arm/mach-meson/sm.c | 24 2 files changed, 25 insertions(+) diff --git

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