[PATCH 3/3] ARM: i.MX8MQ: Add node for CPU thermal sensor

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/dts/imx8mq.dtsi | 84 1 file changed, 84 insertions(+) diff --git a/arch/arm/dts/imx8mq.dtsi b/arch/arm/dts/imx8mq.dtsi index 763005217..4c55a7406 100644 --- a/arch/arm/dts/imx8mq.dtsi +++ b/arch/arm/dts/imx8mq.d

[PATCH 2/3] aiodev: Port Linux driver for i.MX8MQ CPU thermal sensor

2018-09-19 Thread Andrey Smirnov
This patch is a minimal port of the corresponding driver that can be found in Linux kernel (drivers/thermal/qoriq_thermal.c). Signed-off-by: Andrey Smirnov --- drivers/aiodev/Kconfig | 7 + drivers/aiodev/Makefile| 1 + drivers/aiodev/qoriq_thermal.c | 264 +++

[PATCH 1/3] clk: i.MX8MQ: Add missing IMX8MQ_CLK_TMU_ROOT clock

2018-09-19 Thread Andrey Smirnov
Add missing IMX8MQ_CLK_TMU_ROOT clock needed for CPU thermal sensor. Signed-off-by: Andrey Smirnov --- drivers/clk/imx/clk-imx8mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 782bbc256..0431f61f0 100644 --- a/drivers/clk/

[PATCH] .gitignore: Add .bin.gen.S files found firmware/

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d83d3176e..dd1a052ea 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ *.so *.so.dbg *.symtypes +*.bin.gen.S Module.symvers # -- 2.17.1 ___

[PATCH 2/2] ARM: i.MX: Add ZII SCU3 ESB board

2018-09-19 Thread Andrey Smirnov
Add ZII SCU3 ESB board, which is i.MX51 based and similar enought to RDU1 that it can be handled by the same image (different DT). Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-imx51-rdu1/board.c| 3 ++- arch/arm/boards/zii-imx51-rdu1/lowlevel.c | 4 arch/arm/dts/Makefile

[PATCH 1/2] ARM: i.MX: Add ZII SCU2 Mezz Board

2018-09-19 Thread Andrey Smirnov
Add ZII SCU2 Mezz Board. Which is a i.MX51 based board that is similar enough to RDU1 that they both can be handled by a single image (type can be detected at runtime). Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-imx51-rdu1/board.c| 9 ++- arch/arm/boards/zii-imx51-rdu1/lowlevel.c

[PATCH v2 3/8] ARM: i.MX8MQ: Configure USDHC1,2 clocks

2018-09-19 Thread Andrey Smirnov
Select appropriate parents as well as clock rates for USDHC1 and USDHC2 related clocks. Signed-off-by: Andrey Smirnov --- arch/arm/dts/imx8mq.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/dts/imx8mq.dtsi b/arch/arm/dts/imx8mq.dtsi index 6f860c3d6..8bdf4e

[PATCH v2 4/8] ARM: i.MX8MQ: Configure FEC1 clocks

2018-09-19 Thread Andrey Smirnov
Select proper parents as well as rates for FEC1 related clocks. Signed-off-by: Andrey Smirnov --- arch/arm/dts/imx8mq.dtsi | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mq.dtsi b/arch/arm/dts/imx8mq.dtsi index 8bdf4efb7..763005217 100644 -

[PATCH 2/2] ARM: zii-vf610-dev: Convert SPU3 to use upstream DTS

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-vf610-dev/board.c| 7 +- arch/arm/boards/zii-vf610-dev/lowlevel.c | 8 +- arch/arm/dts/Makefile| 2 +- arch/arm/dts/vf610-zii-spu3-rev-a.dts| 142 --- arch/arm/dts/vf610-zii-ssmb-spu3.dts

[PATCH 1/2] ARM: zii-vf610-dev: Convert CFU1 to use upstream DTS

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/zii-vf610-dev/board.c| 8 +- arch/arm/boards/zii-vf610-dev/lowlevel.c | 4 +- arch/arm/dts/Makefile| 2 +- arch/arm/dts/vf610-zii-cfu1-rev-a.dts| 209 --- arch/arm/dts/vf610-zii-cfu1.dts

[PATCH 1/2] ARM: i.MX: boot: Make use of FIELD_GET() in imx51_get_boot_source()

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/boot.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index f1fc40479..830ea08f3 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -167

[PATCH 2/2] ARM: i.MX: boot: Detect boot instance on i.MX51

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/boot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index 830ea08f3..0c51767c4 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -170,6 +170,7 @@ void imx27_boot_

[PATCH v2 7/8] ARM: i.MX: esdctl: Add memory size detection for i.MX8MQ

2018-09-19 Thread Andrey Smirnov
Add memory size detection for i.MX8MQ. Only basic LPDDR4 configurations are supported for now. Support for other types of memory can be added later once we have any boards that use it. Signed-off-by: Andrey Smirnov --- arch/arm/dts/imx8mq-ddrc.dtsi | 17 + arch/arm/mach-imx/esdctl.

[PATCH v2 8/8] ARM: nxp-imx8mq-evk: Make use of memory size detection code

2018-09-19 Thread Andrey Smirnov
Signed-off-by: Andrey Smirnov --- arch/arm/boards/nxp-imx8mq-evk/board.c| 2 -- arch/arm/boards/nxp-imx8mq-evk/lowlevel.c | 4 ++-- arch/arm/dts/imx8mq-evk.dts | 6 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/arm/boards/nxp-imx8mq-evk/board.c b/ar

[PATCH v2 0/8] i.MX8MQ EVK miscellanea

2018-09-19 Thread Andrey Smirnov
Everyone: This is a number of i.MX8MQ or EVK related changes that are sitting in my repo that I am hoping to upstream: - Pactches 1, 3, 4 are clock related fixes needed to get FEC, USDHC1 and USDHC2 to work. - Patch 2 was made while working custom i.MX8MQ board (not upstreame

[PATCH v2 6/8] ARM: nxp-imx8mq-evk: Add FEC's PHY configuration code

2018-09-19 Thread Andrey Smirnov
Add appropriate DT and PHY fixup code needed for i.MX8MQ EVK board. Signed-off-by: Andrey Smirnov --- arch/arm/boards/nxp-imx8mq-evk/board.c | 24 arch/arm/dts/imx8mq-evk.dts| 1 + 2 files changed, 25 insertions(+) diff --git a/arch/arm/boards/nxp-imx8mq-ev

[PATCH v2 1/8] clk: i.MX8MQ: Bump refcounters of various important clocks

2018-09-19 Thread Andrey Smirnov
Bump refcounters of various important clocks in order to make sure their parents are not disabled during clock re-configuration added by commits that follow. Signed-off-by: Andrey Smirnov --- drivers/clk/imx/clk-imx8mq.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/c

[PATCH v2 5/8] ARM: nxp-imx8mq-evk: Add missing compatibility check

2018-09-19 Thread Andrey Smirnov
Add missing compatibility check to imx8mq_evk_mem_init() to prevent it from being executed for other i.MX8MQ boards. Signed-off-by: Andrey Smirnov --- arch/arm/boards/nxp-imx8mq-evk/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boards/nxp-imx8mq-evk/board.c b/arch/arm/

[PATCH v2 2/8] ARM: i.MX8MQ: Add missing node for ECSPI1

2018-09-19 Thread Andrey Smirnov
Add node for ECSPI1 that is missing from imx8mq.dtsi Signed-off-by: Andrey Smirnov --- arch/arm/dts/imx8mq.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/dts/imx8mq.dtsi b/arch/arm/dts/imx8mq.dtsi index c67438a48..6f860c3d6 100644 --- a/arch/arm/dts/imx8mq.dtsi +++

Re: [PATCH 6/8] ARM: nxp-imx8mq-evk: Add FEC's PHY configuration code

2018-09-19 Thread Andrey Smirnov
On Wed, Sep 19, 2018 at 12:48 AM Sascha Hauer wrote: > > On Mon, Sep 17, 2018 at 10:41:46PM -0700, Andrey Smirnov wrote: > > Add appropriate DT node and a fixup routine needed for i.MX8MQ EVK > > board. > > > > diff --git a/arch/arm/dts/imx8mq-evk.dts b/arch/arm/dts/imx8mq-evk.dts > > index 3ac13b

Re: [PATCH 00/11] Switch ZII boards to use MMC boot partitions

2018-09-19 Thread Sascha Hauer
On Tue, Sep 18, 2018 at 03:22:54PM -0700, Andrey Smirnov wrote: > Everyone: > > This patchset contains code to switch all supported ZII platforms to > use MMC boot partitions for BBU functionality as well as various > additional fixes that were developed in the process. Hopefully all of > the patc

Re: [PATCH 6/8] ARM: nxp-imx8mq-evk: Add FEC's PHY configuration code

2018-09-19 Thread Sascha Hauer
On Mon, Sep 17, 2018 at 10:41:46PM -0700, Andrey Smirnov wrote: > Add appropriate DT node and a fixup routine needed for i.MX8MQ EVK > board. > > diff --git a/arch/arm/dts/imx8mq-evk.dts b/arch/arm/dts/imx8mq-evk.dts > index 3ac13baa1..bdc340a8b 100644 > --- a/arch/arm/dts/imx8mq-evk.dts > +++ b/a

Re: [PATCH 0/7] non-coherent Rx buffers in FEC and some small fixes

2018-09-19 Thread Sascha Hauer
On Mon, Sep 17, 2018 at 10:21:15PM -0700, Andrey Smirnov wrote: > Everyone: > > This series was created while working on converting FEC driver to use > non-coherent memory for Rx buffers as a part of addressing feedback > for [1]. Patch 7/7 implements said change while the rest of the > patches ar

Re: [PATCH 1/2] memtest: Adjust code for 64-bit architectures

2018-09-19 Thread Sascha Hauer
On Mon, Sep 17, 2018 at 10:03:42PM -0700, Andrey Smirnov wrote: > Make use of %pa specifier to avoid warnings when building against > 64-bit CPU (specifically AArch64) as well as adjust a number of > patterns to be 64-bits wide. > > Signed-off-by: Andrey Smirnov > --- > commands/memtest.c | 5 +