[U-Boot] [PATCH u-boot 02/19] configs: meson: remove unnecessary MESON_FDTFILE_SETTING

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet MESON_FDTFILE_SETTING is used to define the default name of the fdt file in u-boot environment. We can easily derive it from CONFIG_DEFAULT_DEVICE_TREE instead. This will help factorize the code a bit Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- include

[U-Boot] [PATCH u-boot 05/19] board: amlogic: factorise gxbb boards

2018-11-09 Thread Neil Armstrong
: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 11 +--- board/amlogic/nanopi-k2/Kconfig | 12 board/amlogic/nanopi-k2/MAINTAINERS | 6 -- board/amlogic/nanopi-k2/Makefile | 7 --- board/amlogic/nanopi-k2/README | 99

[U-Boot] [PATCH u-boot 04/19] board: amlogic: move khadas-vim2 as q200 ref board

2018-11-09 Thread Neil Armstrong
The Khadas vim2 derive from amlogic s912 reference design (Q200). This patch moves the khadas-vim2 board support to a generic Q200 board, while keeping a dedicated defconfig to customize the names and device tree. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 9

[U-Boot] [PATCH u-boot 06/19] ARM: rework amlogic configuration

2018-11-09 Thread Neil Armstrong
CONFIGs and the duplicate boards configs headers in favor of a single meson64.h config header. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 75 +++ board/amlogic/odroid-c2/Kconfig | 12 --- board/amlogic

[U-Boot] [PATCH u-boot 03/19] board: amlogic: remove p212 derivatives

2018-11-09 Thread Neil Armstrong
dedicated defconfig to customize the names and device tree. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 22 +-- board/amlogic/khadas-vim/Kconfig | 12 board/amlogic/khadas-vim/MAINTAINERS | 6 -- board/amlogic

[U-Boot] [PATCH u-boot 11/19] clk: meson: add static to meson_gates table

2018-11-09 Thread Neil Armstrong
The meson_gates table should be set static in the clk_meson driver. Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c index 236d734..509872b 100644 --- a/drivers/clk

[U-Boot] [PATCH u-boot 07/19] configs: meson: change default load addresses

2018-11-09 Thread Neil Armstrong
issue. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- include/configs/meson64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index 1929a3e..80c883e 100644 --- a/include/configs/meson64.h +++ b

[U-Boot] [PATCH u-boot 09/19] pinctrl: meson: select generic pinctrl

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet Meson pinctrl needs generic pinctrl, rather than depending on it select it Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/Kconfig b

[U-Boot] [PATCH u-boot 08/19] pinctrl: meson: rework gx pmx function

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet In preparation of supporting the new Amlogix AGX SoCs, we need to move the Amlogic GX pinmux functions out of the common code to be able to add a different set of SoC specific pinmux functions for AXG. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers

[U-Boot] [PATCH u-boot 17/19] board: amlogic: add support for S400 board

2018-11-09 Thread Neil Armstrong
Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig| 1 + board/amlogic/s400/MAINTAINERS | 6 +++ board/amlogic/s400/Makefile| 6 +++ board/amlogic/s400/README | 110 + board/amlogic/s400/s400.c

[U-Boot] [PATCH u-boot 10/19] pinctrl: meson: add axg support

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet This adds support for the Amlogic AXG SoC pinctrl and GPIO controller using a specific set of pinctrl functions which differs from the GX SoCs. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 8 + drivers

[U-Boot] [PATCH u-boot 14/19] ARM: meson: Add support for AXG family

2018-11-09 Thread Neil Armstrong
- The clock tree is different enough to use a different driver Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/axg.h | 51 arch/arm/mach-meson/Kconfig | 8 +++ arch/arm/mach-meson/Makefile | 1 + arch/arm/mach

[U-Boot] [PATCH u-boot 12/19] clk: meson: silence debug print

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet This debug print was not designed to be active in non-debug mode. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c

[U-Boot] [PATCH u-boot 19/19] ARM: meson: Add boot device discovery

2018-11-09 Thread Neil Armstrong
] https://github.com/superna/pyamlboot/blob/master/PROTOCOL.md [2] https://github.com/superna/pyamlboot/blob/master/README.md Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/axg.h | 1 + arch/arm/include/asm/arch-meson/boot.h | 20

[U-Boot] [PATCH u-boot 15/19] ARM: dts: Sync Amlogic Meson AXG DT from Linux 4.20-rc1

2018-11-09 Thread Neil Armstrong
Synchronize the Amlogic AXG Device Tree files and bindings include from the recent Linux 4.20-rc1, because it includes patches fixing support for U-boot. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile |3 +- arch/arm/dts

[U-Boot] [PATCH u-boot 18/19] ARM: meson: factorize common code out amlogic's boards

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet Now we have moved all the Amlogic board support to common generic board code, we can move the identical board_init() and ft_board_setup() functions to weak functions into the board-common mach-meson file. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch

[U-Boot] [PATCH u-boot 13/19] ARM: meson: rework soc arch file to prepare for new SoC

2018-11-09 Thread Neil Armstrong
From: Jerome Brunet We are about to add support for the Amlogic AXG SoC. While very close to the Gx SoC family, we will need to handle a few thing which are different in this SoC. Rework the meson arch directory to prepare for this. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong

[U-Boot] [PATCH u-boot 16/19] clk: Add clock driver for AXG

2018-11-09 Thread Neil Armstrong
This patch adds a minimal clock driver for the Amlogic AXG SoC to handle the basic gates and PLLs. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-axg.h | 104 + drivers/clk/Makefile| 2 +- drivers/clk/clk_meson_axg.c

Re: [U-Boot] [PATCH u-boot] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-12 Thread Neil Armstrong
Hi, On 06/11/2018 10:25, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. > This driver, ported from the Linux meson-spi-spifc driver, add support > for this controller on the Amlogic Meson GX SoCs in U-Boot. I found a bug in this dri

[U-Boot] [PATCH u-boot] clk: meson: fix clk81 divider calculation

2018-11-13 Thread Neil Armstrong
From: Jerome Brunet clk81 divider is 0 based (meaning that 0 value in the register means divide by 1). Fix clk81 rate calculation for this. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH u-boot v2] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-13 Thread Neil Armstrong
: Neil Armstrong --- Changes since v1 : - removed the meson_spifc_claim_bus/meson_spifc_release_bus enabling disabling the clock and making register access with the clock disabled drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/meson_spifc.c | 335

Re: [U-Boot] [PATCH u-boot v2] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-14 Thread Neil Armstrong
On 14/11/2018 05:25, Jagan Teki wrote: > On Tue, Nov 13, 2018 at 4:20 PM Neil Armstrong > wrote: >> >> The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. >> This driver, ported from the Linux meson-spi-spifc driver, add support >> for this c

[U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-14 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This patchset add the driver ported from linux, but also import the regmap regmap_read_poll_timeout() to implify the register polling in the driver. Neil Armstrong (3): regmap: add regmap_read_poll_timeout() helper

[U-Boot] [PATCH u-boot v3 2/3] test: regmap: add regmap_read_poll_timeout test

2018-11-14 Thread Neil Armstrong
Add test to regmap_read_poll_timeout() helper to check the timeout works properly but cannot test proper condition matching since read/write calls are not executed in sandbox. Signed-off-by: Neil Armstrong --- test/dm/regmap.c | 26 ++ 1 file changed, 26 insertions

[U-Boot] [PATCH u-boot v3 1/3] regmap: add regmap_read_poll_timeout() helper

2018-11-14 Thread Neil Armstrong
Add the regmap_read_poll_timeout() macro based on the Linux implementation to simplify register polling with configurable timeout and sleep. Signed-off-by: Neil Armstrong --- include/regmap.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/include

[U-Boot] [PATCH u-boot v3 3/3] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-14 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This driver, ported from the Linux meson-spi-spifc driver, add support for this controller on the Amlogic Meson GX SoCs in U-Boot. Signed-off-by: Neil Armstrong --- drivers/spi/Kconfig | 8 + drivers/spi/Makefile

Re: [U-Boot] [PATCH u-boot v3 3/3] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-14 Thread Neil Armstrong
On 14/11/2018 14:11, Jagan Teki wrote: > On Wed, Nov 14, 2018 at 3:57 PM Neil Armstrong > wrote: >> >> The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. >> This driver, ported from the Linux meson-spi-spifc driver, add support >> for this c

Re: [U-Boot] [RFC PATCH 0/3] ARM: meson: Use syscon/regmap for clock driver

2018-11-20 Thread Neil Armstrong
Hi Loic, I totally missed this patchset It looks ok, can you rebase it on top of the huge "Amlogic Meson cleanup for AXG SoC support" patchset ? You can remove the RFC tag I think. Thanks, Neil On 02/11/2018 15:32, Loic Devulder wrote: > This patch series modifies the meson clock driver t

Re: [U-Boot] [PATCH u-boot 17/19] board: amlogic: add support for S400 board

2018-11-21 Thread Neil Armstrong
Hi Loic, On 20/11/2018 22:08, Loic Devulder wrote: > Hi Neil, > > On 11/9/18 4:26 PM, Neil Armstrong wrote: >> The S400 board is the Amlogic AXG SoC reference board including : >> - Amlogic A113DX ARM Cortex-A53 quad-core SoC @ 1.2GHz >> - 1GB DDR4 SDRAM >> -

Re: [U-Boot] [PATCH u-boot 10/19] pinctrl: meson: add axg support

2018-11-21 Thread Neil Armstrong
Hi Carlo, On 20/11/2018 15:47, Carlo Caione wrote: > On Fri, 2018-11-09 at 16:26 +0100, Neil Armstrong wrote: >> From: Jerome Brunet >> >> This adds support for the Amlogic AXG SoC pinctrl and GPIO controller >> using a specific set of pinctrl functions which

Re: [U-Boot] [PATCH u-boot 13/19] ARM: meson: rework soc arch file to prepare for new SoC

2018-11-21 Thread Neil Armstrong
Hi Loic, On 20/11/2018 22:11, Loic Devulder wrote: > Hi Neil, > > On 11/9/18 4:26 PM, Neil Armstrong wrote: >> From: Jerome Brunet >> >> We are about to add support for the Amlogic AXG SoC. While very close to >> the Gx SoC family, we will need to handle a fe

Re: [U-Boot] [PATCH v2 1/3] ARM: meson: Add regmap support for clock driver

2018-11-21 Thread Neil Armstrong
6,8 +876,8 @@ static ulong meson_clk_set_rate(struct clk *clk, ulong > rate) > if (IS_ERR_VALUE(ret)) > return ret; > > - printf("clock %lu has new rate %lu\n", clk->id, > -meson_clk_get_rate_by_id(clk, clk->id)); &

Re: [U-Boot] [PATCH v2 3/3] ARM: dts: meson: Update dts files from Linux v4.19

2018-11-21 Thread Neil Armstrong
s = <1>; > - reg = <0x0 0x0 0x0 0x3db>; > }; > }; > > @@ -346,7 +337,7 @@ > }; > }; > > - spi_pins: spi { > + spi_pins: spi-pins { > mux { > groups = "spi_miso", > "spi_mosi", > @@ -725,13 +716,15 @@ ><&clkc CLKID_SD_EMMC_A_CLK0>, ><&clkc CLKID_FCLK_DIV2>; > clock-names = "core", "clkin0", "clkin1"; > + resets = <&reset RESET_SD_EMMC_A>; > }; > > &sd_emmc_b { > clocks = <&clkc CLKID_SD_EMMC_B>, ><&clkc CLKID_SD_EMMC_B_CLK0>, ><&clkc CLKID_FCLK_DIV2>; > - clock-names = "core", "clkin0", "clkin1"; > + clock-names = "core", "clkin0", "clkin1"; > + resets = <&reset RESET_SD_EMMC_B>; > }; > > &sd_emmc_c { > @@ -739,6 +732,7 @@ ><&clkc CLKID_SD_EMMC_C_CLK0>, ><&clkc CLKID_FCLK_DIV2>; > clock-names = "core", "clkin0", "clkin1"; > + resets = <&reset RESET_SD_EMMC_C>; > }; > > &spicc { > @@ -758,12 +752,12 @@ > }; > > &uart_AO { > - clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>; > + clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>; > clock-names = "xtal", "pclk", "baud"; > }; > > &uart_AO_B { > - clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>; > + clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>; > clock-names = "xtal", "pclk", "baud"; > }; > > diff --git a/arch/arm/dts/meson-gxm-khadas-vim2.dts > b/arch/arm/dts/meson-gxm-khadas-vim2.dts > index 0868da476e..313f88f875 100644 > --- a/arch/arm/dts/meson-gxm-khadas-vim2.dts > +++ b/arch/arm/dts/meson-gxm-khadas-vim2.dts > @@ -209,10 +209,34 @@ > #cooling-cells = <2>; > }; > > +&cpu1 { > + #cooling-cells = <2>; > +}; > + > +&cpu2 { > + #cooling-cells = <2>; > +}; > + > +&cpu3 { > + #cooling-cells = <2>; > +}; > + > &cpu4 { > #cooling-cells = <2>; > }; > > +&cpu5 { > + #cooling-cells = <2>; > +}; > + > +&cpu6 { > + #cooling-cells = <2>; > +}; > + > +&cpu7 { > + #cooling-cells = <2>; > +}; > + > ðmac { > pinctrl-0 = <ð_pins>; > pinctrl-names = "default"; > Squashed with the clock driver change : Acked-by: Neil Armstrong ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v2 2/3] ARM: meson: Enable syscon on all supported boards

2018-11-21 Thread Neil Armstrong
On 21/11/2018 00:50, Loic Devulder wrote: > This patch enable CONFIG_SYSCON option on all supported meson boards, as > this is need for the new clock driver to work. > > Signed-off-by: Loic Devulder > --- > configs/khadas-vim2_defconfig | 1 + > configs/khadas-vim_defconfig | 1 + > configs/l

Re: [U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
On 22/11/2018 07:40, Jagan Teki wrote: > On Wed, Nov 14, 2018 at 3:55 PM Neil Armstrong > wrote: >> >> The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. >> >> This patchset add the driver ported from linux, but also import the regmap &g

[U-Boot] [PATCH u-boot v2 01/19] ARM: meson: clean-up platform selection

2018-11-22 Thread Neil Armstrong
: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 51 +++-- 1 file changed, 20 insertions(+), 31 deletions(-) diff --git a/arch/arm/mach-meson/Kconfig b/arch/arm/mach-meson/Kconfig index cc943443b3..bc0f6a169b 100644 --- a/arch/arm/mach

[U-Boot] [PATCH u-boot v2 00/19] Amlogic Meson cleanup for AXG SoC support

2018-11-22 Thread Neil Armstrong
pare for new SoC ARM: meson: factorize common code out amlogic's boards Neil Armstrong (7): board: amlogic: move khadas-vim2 as q200 ref board clk: meson: add static to meson_gates table ARM: meson: Add support for AXG family ARM: dts: Sync Amlogic Meson AXG DT from Linux 4.20-rc1

[U-Boot] [PATCH u-boot v2 02/19] configs: meson: remove unnecessary MESON_FDTFILE_SETTING

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet MESON_FDTFILE_SETTING is used to define the default name of the fdt file in u-boot environment. We can easily derive it from CONFIG_DEFAULT_DEVICE_TREE instead. This will help factorize the code a bit Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- include

[U-Boot] [PATCH u-boot v2 03/19] board: amlogic: remove p212 derivatives

2018-11-22 Thread Neil Armstrong
dedicated defconfig to customize the names and device tree. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 22 +-- board/amlogic/khadas-vim/Kconfig | 12 board/amlogic/khadas-vim/MAINTAINERS | 6 -- board

[U-Boot] [PATCH u-boot v2 04/19] board: amlogic: move khadas-vim2 as q200 ref board

2018-11-22 Thread Neil Armstrong
The Khadas vim2 derive from amlogic s912 reference design (Q200). This patch moves the khadas-vim2 board support to a generic Q200 board, while keeping a dedicated defconfig to customize the names and device tree. Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig

[U-Boot] [PATCH u-boot v2 07/19] configs: meson: change default load addresses

2018-11-22 Thread Neil Armstrong
issue. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- include/configs/meson64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/meson64.h b/include/configs/meson64.h index 1929a3e406..80c883e3f4 100644 --- a/include/configs/meson64.h

[U-Boot] [PATCH u-boot v2 05/19] board: amlogic: factorise gxbb boards

2018-11-22 Thread Neil Armstrong
: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 11 +--- board/amlogic/nanopi-k2/Kconfig | 12 board/amlogic/nanopi-k2/MAINTAINERS | 6 -- board/amlogic/nanopi-k2/Makefile | 7 --- board/amlogic/nanopi-k2/nanopi-k2.c | 55

[U-Boot] [PATCH u-boot v2 06/19] ARM: rework amlogic configuration

2018-11-22 Thread Neil Armstrong
CONFIGs and the duplicate boards configs headers in favor of a single meson64.h config header. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig | 73 +-- board/amlogic/odroid-c2/Kconfig | 12 --- board/amlogic

[U-Boot] [PATCH u-boot v2 10/19] pinctrl: meson: add axg support

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet This adds support for the Amlogic AXG SoC pinctrl and GPIO controller using a specific set of pinctrl functions which differs from the GX SoCs. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 8 + drivers

[U-Boot] [PATCH u-boot v2 08/19] pinctrl: meson: rework gx pmx function

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet In preparation of supporting the new Amlogix AGX SoCs, we need to move the Amlogic GX pinmux functions out of the common code to be able to add a different set of SoC specific pinmux functions for AXG. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers

[U-Boot] [PATCH u-boot v2 12/19] clk: meson: silence debug print

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet This debug print was not designed to be active in non-debug mode. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c

[U-Boot] [PATCH u-boot v2 11/19] clk: meson: add static to meson_gates table

2018-11-22 Thread Neil Armstrong
The meson_gates table should be set static in the clk_meson driver. Signed-off-by: Neil Armstrong --- drivers/clk/clk_meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk_meson.c b/drivers/clk/clk_meson.c index c44858822d..a096a3582c 100644 --- a/drivers

[U-Boot] [PATCH u-boot v2 09/19] pinctrl: meson: select generic pinctrl

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Meson pinctrl needs generic pinctrl, rather than depending on it select it Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- drivers/pinctrl/meson/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/meson/Kconfig b

[U-Boot] [PATCH u-boot v2 15/19] ARM: dts: Sync Amlogic Meson AXG DT from Linux 4.20-rc1

2018-11-22 Thread Neil Armstrong
Synchronize the Amlogic AXG Device Tree files and bindings include from the recent Linux 4.20-rc1, because it includes patches fixing support for U-boot. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile |3 +- arch/arm/dts/meson

[U-Boot] [PATCH u-boot v2 19/19] ARM: meson: Add boot device discovery

2018-11-22 Thread Neil Armstrong
] https://github.com/superna/pyamlboot/blob/master/PROTOCOL.md [2] https://github.com/superna/pyamlboot/blob/master/README.md Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/axg.h | 1 + arch/arm/include/asm/arch-meson/boot.h | 20

[U-Boot] [PATCH u-boot v2 16/19] clk: Add clock driver for AXG

2018-11-22 Thread Neil Armstrong
This patch adds a minimal clock driver for the Amlogic AXG SoC to handle the basic gates and PLLs. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/clock-axg.h | 104 +++ drivers/clk/Makefile| 2 +- drivers/clk/clk_meson_axg.c | 316

[U-Boot] [PATCH u-boot v2 14/19] ARM: meson: Add support for AXG family

2018-11-22 Thread Neil Armstrong
- The clock tree is different enough to use a different driver Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/axg.h | 51 arch/arm/mach-meson/Kconfig | 8 ++ arch/arm/mach-meson/Makefile | 1 + arch/arm/mach-meson

[U-Boot] [PATCH u-boot v2 13/19] ARM: meson: rework soc arch file to prepare for new SoC

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet We are about to add support for the Amlogic AXG SoC. While very close to the Gx SoC family, we will need to handle a few thing which are different in this SoC. Rework the meson arch directory to prepare for this. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong

[U-Boot] [PATCH u-boot v2 18/19] ARM: meson: factorize common code out amlogic's boards

2018-11-22 Thread Neil Armstrong
From: Jerome Brunet Now we have moved all the Amlogic board support to common generic board code, we can move the identical board_init() and ft_board_setup() functions to weak functions into the board-common mach-meson file. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch

[U-Boot] [PATCH u-boot v2 17/19] board: amlogic: add support for S400 board

2018-11-22 Thread Neil Armstrong
Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/Kconfig| 1 + board/amlogic/s400/MAINTAINERS | 6 ++ board/amlogic/s400/Makefile| 6 ++ board/amlogic/s400/README | 110 + board/amlogic/s400/s400.c | 33

[U-Boot] [PATCH u-boot v3 0/3] Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This patchset add the driver ported from linux, but also import the regmap regmap_read_poll_timeout() to implify the register polling in the driver. Neil Armstrong (3): regmap: add regmap_read_poll_timeout() helper

[U-Boot] [PATCH u-boot v3 3/3] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-22 Thread Neil Armstrong
The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. This driver, ported from the Linux meson-spi-spifc driver, add support for this controller on the Amlogic Meson GX SoCs in U-Boot. Reviewed-by: Jagan Teki Signed-off-by: Neil Armstrong --- drivers/spi/Kconfig | 8

[U-Boot] [PATCH u-boot v3 1/3] regmap: add regmap_read_poll_timeout() helper

2018-11-22 Thread Neil Armstrong
Add the regmap_read_poll_timeout() macro based on the Linux implementation to simplify register polling with configurable timeout and sleep. Acked-by: Jagan Teki Signed-off-by: Neil Armstrong --- include/regmap.h | 38 ++ 1 file changed, 38 insertions

[U-Boot] [PATCH u-boot v3 2/3] test: regmap: add regmap_read_poll_timeout test

2018-11-22 Thread Neil Armstrong
Add test to regmap_read_poll_timeout() helper to check the timeout works properly but cannot test proper condition matching since read/write calls are not executed in sandbox. Acked-by: Jagan Teki Signed-off-by: Neil Armstrong --- test/dm/regmap.c | 26 ++ 1 file

Re: [U-Boot] [PATCH v2 1/1] ARM: meson: Extend mem_map to support 3GiB of RAM

2018-09-26 Thread Neil Armstrong
PTE_BLOCK_NON_SHARE | >PTE_BLOCK_PXN | PTE_BLOCK_UXN > You were faster than me, and already reviewed physically by Marek and Alexander !! This will fix support for upcoming 3GiB capable boards ! Acked-by: Neil Armstrong Neil ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/2] ARM: meson: Add Khadas VIM2 board DT

2018-10-03 Thread Neil Armstrong
Hi Loic, Thanks for pushing this ! On 03/10/2018 12:02, Loic Devulder wrote: > This adds Device Tree for the Khadas VIM2 board. > > The meson-gxm-khadas-vim2.dts is synchronized from Linux 4.18.10. > > Signed-off-by: Neil Armstrong > Signed-off-by: Loic Devulder Acked-

Re: [U-Boot] [PATCH 0/2] Add Khadas VIM2 board support

2018-10-03 Thread Neil Armstrong
ed upstream, with the onboard SPI NOR flash to store U-boot, it's a very good candidate for a full EBBR experience ! Neil > > This initial submission supports UART, MMC/SDCard and Ethernet. > USB is partially supported. > > All the code is from Neil Armstrong! I just rebased

Re: [U-Boot] [PATCH 2/2] ARM: meson: Add Khadas VIM2 board support

2018-10-03 Thread Neil Armstrong
ially supported. > > All the code is from Neil Armstrong! I just rebased the code, do > some cleanup and tested on my board. > > Signed-off-by: Neil Armstrong > Signed-off-by: Loic Devulder Acked-by: Neil Armstrong Neil > --- > arch/arm/mach-meson/Kconfig

[U-Boot] Fresh New Soc+Board port with Driver Model

2016-04-25 Thread Neil Armstrong
Hi, I want to start an U-Boot port to a custom Uniprocessor Cortex-A9 based SoC to boot a Device Tree enabled 4.4 kernel, but I'm struggling to find a good starting point/example code in order to do it "the right way". I was present at the Dublin's ELC prosentation on Driver Model, and it seems

Re: [U-Boot] [PATCH 2/2] odroid-c2: enable I2C

2017-10-29 Thread Neil Armstrong
Le 29/10/2017 10:09, Beniamino Galvani a écrit : > Signed-off-by: Beniamino Galvani > --- > arch/arm/include/asm/arch-meson/gxbb.h | 1 + > board/amlogic/odroid-c2/odroid-c2.c| 1 + > configs/odroid-c2_defconfig| 3 +++ > 3 files changed, 5 insertions(+) > > diff --git a/arch/a

Re: [U-Boot] [PATCH 1/2] i2c: add Amlogic Meson driver

2017-10-29 Thread Neil Armstrong
div; > + > + div = DIV_ROUND_UP(clk_rate, speed * 4); > + > + /* clock divider has 12 bits */ > + if (div >= (1 << 12)) { > + debug("meson i2c: requested bus frequency too low\n"); > + div = (1 << 12) - 1; > + }

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

2017-10-29 Thread Neil Armstrong
Le 29/10/2017 13:04, Tom Rini a écrit : > On Thu, Oct 26, 2017 at 03:39:17PM +0200, Neil Armstrong wrote: >> 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 RM

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

2017-11-06 Thread Neil Armstrong
On 19/10/2017 20:38, Ben Dooks wrote: > On 2017-10-19 14:22, 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] [PATCH u-boot 0/2] Add support for Amlogic GXL Based SBCs

2017-11-20 Thread Neil Armstrong
in the board README. The following work will be pushed later on : - Support for dynamic reading of DDR memory size from registers - USB DWC3 Host Support with PHY support Neil Armstrong (2): arm: Add LibreTech CC support based on Meson GXL family arm: Add Khadas VIM support based on Meson GXL

[U-Boot] [PATCH u-boot 1/2] arm: Add LibreTech CC support based on Meson GXL family

2017-11-20 Thread Neil Armstrong
the linux 4.13 stable tree as of 4.13.8. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-libretech-cc.dts | 171 ++ arch/arm/mach-meson/Kconfig | 9 ++ board/amlogic/libretech-

[U-Boot] [PATCH u-boot 2/2] arm: Add Khadas VIM support based on Meson GXL family

2017-11-20 Thread Neil Armstrong
4.13.8. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-khadas-vim.dts | 137 arch/arm/mach-meson/Kconfig | 9 ++ board/amlogic/khadas-vim/Kconfig| 12 +++ board

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

2017-11-20 Thread Neil Armstrong
-C2 static memory mapping as exception Changes since RFC 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/2] arm: Add LibreTech CC support based on Meson GXL family

2017-11-22 Thread Neil Armstrong
Hi Simon, On 21/11/2017 05:08, Simon Glass wrote: > Hi Neil, > > On 20 November 2017 at 08:04, Neil Armstrong wrote: >> This adds platform code for the Libre Computer CC "Le Potato" board based on >> a >> Meson GXL (S905X) SoC with the Meson GXL configu

Re: [U-Boot] [PATCH u-boot 2/2] arm: Add Khadas VIM support based on Meson GXL family

2017-11-22 Thread Neil Armstrong
On 21/11/2017 05:09, Simon Glass wrote: > Hi Neil, > > On 20 November 2017 at 08:04, Neil Armstrong wrote: >> This adds platform code for the Khadas VIM board based on a >> Meson GXL (S905X) SoC with the Meson GXL configuration. >> >> This initial submiss

[U-Boot] [PATCH v2 0/5] Add support for Amlogic GXL Based SBCs

2017-11-22 Thread Neil Armstrong
size from registers - USB DWC3 Host Support with PHY support Changes since v1: - Add common ethernet init function - Switch P212 and Odroid-C2 to use this ethernet init function - Fix typos in READMEs - Drop #define CONFIG_CONS_INDEX Neil Armstrong (5): ARM: arch-meson: add ethernet common init

[U-Boot] [PATCH v2 2/5] board: odroid-c2: use common ethernet init function

2017-11-22 Thread Neil Armstrong
Switch Odroid-C2 Ethernet init to the common Ethernet init function. Signed-off-by: Neil Armstrong --- board/amlogic/odroid-c2/odroid-c2.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/board/amlogic/odroid-c2/odroid-c2.c b/board/amlogic/odroid-c2/odroid-c2.c

[U-Boot] [PATCH v2 4/5] arm: Add LibreTech CC support based on Meson GXL family

2017-11-22 Thread Neil Armstrong
the linux 4.13 stable tree as of 4.13.8. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-libretech-cc.dts | 171 ++ arch/arm/mach-meson/Kconfig | 9 ++ board/amlogic/libretech-

[U-Boot] [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function

2017-11-22 Thread Neil Armstrong
Introduce a generic common Ethernet Hardware init function common to all Amlogic GX SoCs with support for the Internal PHY enable for GXL SoCs. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/eth.h | 15 ++ arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach

[U-Boot] [PATCH v2 5/5] arm: Add Khadas VIM support based on Meson GXL family

2017-11-22 Thread Neil Armstrong
4.13.8. Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-khadas-vim.dts | 137 arch/arm/mach-meson/Kconfig | 9 ++ board/amlogic/khadas-vim/Kconfig| 12 +++ board

[U-Boot] [PATCH v2 3/5] board: p212: use common ethernet init function

2017-11-22 Thread Neil Armstrong
Switch P212 Ethernet init to the common Ethernet init function. Signed-off-by: Neil Armstrong --- board/amlogic/p212/p212.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/board/amlogic/p212/p212.c b/board/amlogic/p212/p212.c index ece8096..a120ab0 100644

[U-Boot] v7_outer_cache_inval_range error on iMX6Q

2017-11-23 Thread Neil Armstrong
ne have an idea except disabling data cache ? Thanks, Neil -- Neil Armstrong Embedded Linux Software Engineer BayLibre - At the Heart of Embedded Linux www.baylibre.com ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] v7_outer_cache_inval_range error on iMX6Q

2017-11-24 Thread Neil Armstrong
Hi Łukasz, On 23/11/2017 20:55, Lukasz Majewski wrote: > Hi Neil, > >> Hi, >> >> I'm having a strange issue while porting the DART-MX6 and it's >> carrier board to mainline U-Boot. >> >> Everything works as expected except "fatls" where I get the following >> output : > > Please look into: > htt

[U-Boot] [PATCH] fat: Use cache aligned buffers for fat_opendir

2017-11-24 Thread Neil Armstrong
oC cache line. Fixes: 09fa964bba80 ("fs/fat: Fix 'CACHE: Misaligned operation at range' warnings") Suggested-by: Lukasz Majewski Signed-off-by: Neil Armstrong --- fs/fat/fat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/fat/fat.c b/fs/fat/fa

Re: [U-Boot] [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function

2017-11-25 Thread Neil Armstrong
Hi Simon, Le 24/11/2017 23:35, Simon Glass a écrit : > Hi Neil, > > On 22 November 2017 at 06:25, Neil Armstrong wrote: >> Introduce a generic common Ethernet Hardware init function >> common to all Amlogic GX SoCs with support for the >> Internal PHY enable for GX

Re: [U-Boot] [PATCH v2 4/5] arm: Add LibreTech CC support based on Meson GXL family

2017-11-25 Thread Neil Armstrong
Le 24/11/2017 23:35, Simon Glass a écrit : > Hi Neil, > > On 22 November 2017 at 06:25, Neil Armstrong wrote: >> This adds platform code for the Libre Computer CC "Le Potato" board based on >> a >> Meson GXL (S905X) SoC with the Meson GXL configuration. &

Re: [U-Boot] [PATCH v2 0/5] Add support for Amlogic GXL Based SBCs

2017-11-25 Thread Neil Armstrong
Hi Tom, Simon, Le 22/11/2017 14:25, Neil Armstrong a écrit : > This patchset aimed to add minimal support for the following Amlogic GXL SoC > based board: > - LibreTech-CC > - Khadas VIM > > The initial support is composed of : > - Minimal boot support with serial, MMC

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

2017-11-25 Thread Neil Armstrong
Hi Simon, Le 24/11/2017 23:35, Simon Glass a écrit : > Hi Neil, > > On 20 November 2017 at 08:36, 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

Re: [U-Boot] [PATCH v2 1/5] ARM: arch-meson: add ethernet common init function

2017-11-27 Thread Neil Armstrong
On 26/11/2017 12:39, Simon Glass wrote: > Hi Neil, > > On 25 November 2017 at 02:45, Neil Armstrong wrote: >> Hi Simon, >> >> Le 24/11/2017 23:35, Simon Glass a écrit : >>> Hi Neil, >>> >>> On 22 November 2017 at 06:25, Neil Armstrong

[U-Boot] [PATCH u-boot v3 0/5] Add support for Amlogic GXL Based SBCs

2017-11-27 Thread Neil Armstrong
-boot" README typos - Added Simon's tags Changes since v1: - Add common ethernet init function - Switch P212 and Odroid-C2 to use this ethernet init function - Fix typos in READMEs - Drop #define CONFIG_CONS_INDEX Neil Armstrong (5): ARM: arch-meson: add ethernet common init function b

[U-Boot] [PATCH u-boot v3 2/5] board: odroid-c2: use common ethernet init function

2017-11-27 Thread Neil Armstrong
Switch Odroid-C2 Ethernet init to the common Ethernet init function. Reviewed-by: Simon Glass Signed-off-by: Neil Armstrong --- board/amlogic/odroid-c2/odroid-c2.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/board/amlogic/odroid-c2/odroid-c2.c b/board

[U-Boot] [PATCH u-boot v3 1/5] ARM: arch-meson: add ethernet common init function

2017-11-27 Thread Neil Armstrong
Introduce a generic common Ethernet Hardware init function common to all Amlogic GX SoCs with support for the Internal PHY enable for GXL SoCs. Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/eth.h | 23 +++ arch/arm/mach-meson/Makefile | 2 +- arch/arm

[U-Boot] [PATCH u-boot v3 4/5] arm: Add LibreTech CC support based on Meson GXL family

2017-11-27 Thread Neil Armstrong
the linux 4.13 stable tree as of 4.13.8. Reviewed-by: Simon Glass Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-libretech-cc.dts | 171 ++ arch/arm/mach-meson/Kconfig | 9 ++ boa

[U-Boot] [PATCH u-boot v3 5/5] arm: Add Khadas VIM support based on Meson GXL family

2017-11-27 Thread Neil Armstrong
4.13.8. Reviewed-by: Simon Glass Signed-off-by: Neil Armstrong --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/meson-gxl-s905x-khadas-vim.dts | 137 arch/arm/mach-meson/Kconfig | 9 ++ board/amlogic/khadas-vim/Kconfig

[U-Boot] [PATCH u-boot v3 3/5] board: p212: use common ethernet init function

2017-11-27 Thread Neil Armstrong
Switch P212 Ethernet init to the common Ethernet init function. Reviewed-by: Simon Glass Signed-off-by: Neil Armstrong --- board/amlogic/p212/p212.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/board/amlogic/p212/p212.c b/board/amlogic/p212/p212.c index

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

2017-11-27 Thread Neil Armstrong
table and efi reserve memory - replaced in_le32 by readl() Reviewed-by: Simon Glass Signed-off-by: Neil Armstrong --- arch/arm/include/asm/arch-meson/gxbb.h| 17 +++ arch/arm/include/asm/arch-meson/mem.h | 16 +++ arch/arm/mach-meson/board.c

Re: [U-Boot] [PATCH 0/4] Meson clock driver

2018-03-28 Thread Neil Armstrong
Hi Beniamino, On 03/12/2017 10:17, Beniamino Galvani wrote: > Hi, > > this is a basic clock driver for u-boot that supports > enabling/disabling clock gates and getting their frequency. With this, > some hardcoded initializations can be removed from the board code, and > drivers can use the infor

[U-Boot] [PATCH u-boot 0/2] Cleanup for Amlogic GX SoCs

2018-03-28 Thread Neil Armstrong
low U-Boot to work correctly. Neil Armstrong (2): ARM: meson: rename GXBB to GX ARM: meson: Add cpu info display for GX SoCs arch/arm/include/asm/arch-meson/{gxbb.h => gx.h} | 91 +- arch/arm/mach-meson/Makefile | 2 +- arch/arm/mach-

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

2018-03-28 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 --- arch/arm/include/asm/arch-meson/{gxbb.h => gx.h} | 90 +++--- arch/arm/mach-meson/board.c| 28 +++ arch/arm/m

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

2018-03-28 Thread Neil Armstrong
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 code is taken for the Linux meson-gx-socinfo driver and adapted to U-Boot printing. Signed-off-by: Neil Armstrong

Re: [U-Boot] [PATCH 0/4] Meson clock driver

2018-03-28 Thread Neil Armstrong
On 28/03/2018 12:52, Beniamino Galvani wrote: > 2018-03-28 10:59 GMT+02:00 Neil Armstrong : > >> Do you plan to re-send the driver soon ? > > Yes, I plan to submit it again in the next days. > > Beniamino > Cool ! Thanks ! Can you base it after my "ARM: meson

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