[PATCH v2] clk: imx8mp: add pwm clocks support

2023-03-10 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v6.3.0-rc1 Signed-off-by: Tommaso Merciai --- Changes since v1: - Use static const char instead of static const char * const on sels drivers/clk/imx/clk-imx8mp.c | 24 1 file changed, 24 insertions

[PATCH] clk: imx8mp: add pwm clocks support

2023-03-10 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v6.3.0-rc1 Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mp.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index

Re: imx8mm: Invalid IVT structure

2022-06-08 Thread Tommaso Merciai
rimarchi > Co-Founder & Chief Executive Officer > M. +39 347 913 2170 > mich...@amarulasolutions.com > __ > > Amarula Solutions BV > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL > T. +31 (0)85 111 9172 > i...@amarulasolu

Re: [PATCH 2/2] clk: imx8mp: use usb_core_ref for usb_root_clk

2022-06-04 Thread Tommaso Merciai
+ 0x44d0, 0)); > clk_dm(IMX8MP_CLK_USB_PHY_ROOT, imx_clk_gate4("usb_phy_root_clk", > "usb_phy_ref", base + 0x44f0, 0)); > clk_dm(IMX8MP_CLK_USDHC1_ROOT, imx_clk_gate4("usdhc1_root_clk", > "usdhc1", base + 0x4510, 0)); > clk_dm(IMX8MP_CLK_USDHC2_ROOT, imx_clk_gate4("usdhc2_root_clk", > "usdhc2", base + 0x4520, 0)); > -- > 2.25.1 > > Reviewed-by: Tommaso Merciai

Re: [PATCH] include/configs: Remove rootwait=1 to all the affected boards

2022-05-20 Thread Tommaso Merciai
s=run bootargs_defaults;" \ > "mtdparts default;" \ > "setenv ${partitionset_active} true;" \ > diff --git a/include/configs/ti_armv7_keystone2.h > b/include/configs/ti_armv7_keystone2.h > index 57f013cbf8..133daecf71 100644 > --- a/include/configs/ti_armv7_keystone2.h > +++ b/include/configs/ti_armv7_keystone2.h > @@ -180,7 +180,7 @@ > "sf write ${loadaddr} 0 ${filesize}\0" \ > "burn_uboot_nand=nand erase 0 0x10; " \ > "nand write ${loadaddr} 0 ${filesize}\0"\ > - "args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 " \ > + "args_all=setenv bootargs console=ttyS0,115200n8 rootwait " \ > KERNEL_MTD_PARTS\ > "args_net=setenv bootargs ${bootargs} rootfstype=nfs " \ > "root=/dev/nfs rw nfsroot=${serverip}:${nfs_root}," \ > -- > 2.25.1 > Hi Michael, Looks goot to me. Reviewed-by: Tommaso Merciai -- Tommaso Merciai Embedded Linux Engineer tommaso.merc...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

Re: i.MX8MP usb status

2022-05-20 Thread Tommaso Merciai
ing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-60 Fax: (+49)-8142-66989-80 Email: feste...@denx.de -- Tommaso Merciai Embedded Linux Engineer tommaso.merc...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

Re: i.MX8MP usb status

2022-05-16 Thread Tommaso Merciai
r.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-60 Fax: (+49)-8142-66989-80 Email: feste...@denx.de -- Tommaso Merciai Embedded Linux Engineer tommaso.merc...@amarulasolutions.com __ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 i...@amarulasolutions.com www.amarulasolutions.com

Re: imx8mm eLCDIF clock

2022-04-21 Thread Tommaso Merciai
On Thu, Apr 21, 2022 at 08:09:59PM -0400, Sean Anderson wrote: > On 4/21/22 2:48 AM, Tommaso Merciai wrote: > > Hi, > > I'm working on drivers/clk/imx/clk-imx8mm.c to port and bring up eLCDIF > > clocks. After port all necessary clocks needed by eLCDIF I found that >

Re: imx8mm eLCDIF clock

2022-04-21 Thread Tommaso Merciai
On Thu, Apr 21, 2022 at 01:20:58PM +0200, Marek Vasut wrote: > On 4/21/22 13:14, Adam Ford wrote: > > On Thu, Apr 21, 2022 at 5:29 AM Tommaso Merciai > > wrote: > > > > > > On Thu, Apr 21, 2022 at 08:48:05AM +0200, Tommaso Merciai wrote: > > >

Re: imx8mm eLCDIF clock

2022-04-21 Thread Tommaso Merciai
On Thu, Apr 21, 2022 at 06:14:58AM -0500, Adam Ford wrote: > On Thu, Apr 21, 2022 at 5:29 AM Tommaso Merciai > wrote: > > > > On Thu, Apr 21, 2022 at 08:48:05AM +0200, Tommaso Merciai wrote: > > > > + Fabio > > + Tim > > + Michael > > + Marek >

Re: imx8mm eLCDIF clock

2022-04-21 Thread Tommaso Merciai
On Thu, Apr 21, 2022 at 08:48:05AM +0200, Tommaso Merciai wrote: + Fabio + Tim + Michael + Marek + Adam > Hi, > I'm working on drivers/clk/imx/clk-imx8mm.c to port and bring up eLCDIF > clocks. After port all necessary clocks needed by eLCDIF I found that > IMX8MM_VIDEO_PLL1 clo

Re: im8mn: Loading U-Boot via serial download mode

2022-04-21 Thread Tommaso Merciai
patchset can be found here https://patchwork.ozlabs.org/project/uboot/list/?series=283787&state=%2A&archive=both Regards, Tommaso > > Michael > > > adam > > > > > > > > Thanks > > > > -- > Michael Nazzareno Trimarchi > Co-Fou

imx8mm eLCDIF clock

2022-04-20 Thread Tommaso Merciai
by_id(IMX8MM_VIDEO_PLL1, &clkp); clk_set_rate(clkp, 59400UL); clk_enable(clkp); What do you think about this solution? There is a more standard way to do this? Thanks, Tommmaso -- Tommaso Merciai Embedded Linux Engineer tommaso.merc...@amarulasolutions.com __

[PATCH] common: fdt: introduce fdt_fixup_reserved_memory

2022-04-18 Thread Tommaso Merciai
ff-by: Tommaso Merciai Developed-by: Michael Trimarchi Tested-by: Tommaso Merciai --- common/fdt_support.c | 53 +++ include/fdt_support.h | 11 + 2 files changed, 64 insertions(+) diff --git a/common/fdt_support.c b/common/fdt_support.c

Re: [PATCH v5 0/9] imx8mm: add pwm-imx backlight support

2022-04-06 Thread Tommaso Merciai
Hi, Gentle ping on this v5. Regards, Tommaso On Sat, Mar 26, 2022 at 12:19:01PM +0100, Tommaso Merciai wrote: > Hi, > This series add support for pwm/backlight on i.MX8MM evk, > separe also CONFIG_DM_PWM pwm-imx implementation from non dm > implementation moving pwm-imx-util into

Re: [PATCH 5/8] usb: ehci-mx6: Allow building SDP for imx8mm

2022-03-28 Thread Tommaso Merciai
I_TX18D42VM is not set > # CONFIG_VIDEO_MVEBU is not set > # CONFIG_I2C_EDID is not set > # CONFIG_DISPLAY is not set > # CONFIG_ATMEL_HLCD is not set > # CONFIG_AM335X_LCD is not set > # CONFIG_VIDEO_TEGRA20 is not set > # CONFIG_VIDEO_BRIDGE is not set > # CONFIG_VIDEO is

[PATCH v5 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-26 Thread Tommaso Merciai
Enable support for backlight/pwm-imx driver Signed-off-by: Tommaso Merciai --- Changes since v4: - Drop off CONFIG_DM_VIDEO configs/imx8mm_evk_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index 01395fc7eb

[PATCH v5 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-26 Thread Tommaso Merciai
Add pwm1/backlight support nodes for imx8mm_evk board Signed-off-by: Tommaso Merciai --- arch/arm/dts/imx8mm-evk.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi index 60179e006d..e7a2bd8a64 100644 --- a

[PATCH v5 6/9] driver: pwm: pwm-imx: introduce pwm_dm_imx_get_parms

2022-03-26 Thread Tommaso Merciai
Introduce pwm_dm_imx_get_parms, dm version of pwm_imx_get_parms. This function get clock rate using clk dm api Signed-off-by: Tommaso Merciai --- Changes since v3: - Fix clk_get_rate call drivers/pwm/pwm-imx.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion

[PATCH v5 7/9] driver: pwm: pwm-imx: separe dm from non dm implementation

2022-03-26 Thread Tommaso Merciai
Separe dm implementation from non dm implementation of pwm-imx driver using CONFIG_DM_PWM Signed-off-by: Tommaso Merciai --- drivers/pwm/pwm-imx.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index

[PATCH v5 5/9] driver: pwm: pwm-imx: get and enable per/ipg clock using dm

2022-03-26 Thread Tommaso Merciai
Get and enable ipg/per pwms clocks using dm api into imx_pwm_of_to_plat and imx_pwm_probe driver function Signed-off-by: Tommaso Merciai --- Changes since v3: - Fix ipg/per clk declaration - Fix clk_get_by_name call - Fix clk_enable call drivers/pwm/pwm-imx.c | 31

[PATCH v5 4/9] drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx

2022-03-26 Thread Tommaso Merciai
Move pwm_imx_get_parms, pwm_id_to_reg functions into pwm-imx.c and drop off pwm-imx-util.c Signed-off-by: Tommaso Merciai --- drivers/pwm/Makefile | 2 +- drivers/pwm/pwm-imx-util.c | 80 -- drivers/pwm/pwm-imx-util.h | 15 --- drivers/pwm/pwm

[PATCH v5 3/9] clk: imx8mm: add pwm clocks support

2022-03-26 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v5.17-rc8. Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

[PATCH v5 2/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs

2022-03-26 Thread Tommaso Merciai
Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 57a95de1b8..f31f54ad0c

[PATCH v5 1/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines

2022-03-26 Thread Tommaso Merciai
Add pwm control registers fields defines into imx-regs.h: - prescaler - dozeen - waiten - dbgen - clksrc_ipg_high - clksrc_ipg, en field References: - iMX8MMRM.pdf p 3884 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 8 1 file changed, 8

[PATCH v5 0/9] imx8mm: add pwm-imx backlight support

2022-03-26 Thread Tommaso Merciai
Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm ctrl registers fields defines arch: mach-imx: imx8m: add pwm_regs struct in imx-regs clk: imx8mm: add pwm clocks support drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx driver: pwm: pwm-imx: get and enable per/ipg clock using dm

Re: [PATCH v4 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-26 Thread Tommaso Merciai
On Fri, Mar 25, 2022 at 04:54:28PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Fri, Mar 25, 2022 at 9:04 AM Tommaso Merciai > wrote: > > > > Enable support for backlight/pwm-imx driver > > > > Signed-off-by: Tommaso Merciai > > --- > > co

[PATCH v4 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-25 Thread Tommaso Merciai
Add pwm1/backlight support nodes for imx8mm_evk board Signed-off-by: Tommaso Merciai --- arch/arm/dts/imx8mm-evk.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi index 60179e006d..e7a2bd8a64 100644 --- a

[PATCH v4 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-25 Thread Tommaso Merciai
Enable support for backlight/pwm-imx driver Signed-off-by: Tommaso Merciai --- configs/imx8mm_evk_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index 01395fc7eb..cfba6cc673 100644 --- a/configs/imx8mm_evk_defconfig

[PATCH v4 7/9] driver: pwm: pwm-imx: separe dm from non dm implementation

2022-03-25 Thread Tommaso Merciai
Separe dm implementation from non dm implementation of pwm-imx driver using CONFIG_DM_PWM Signed-off-by: Tommaso Merciai --- drivers/pwm/pwm-imx.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index

[PATCH v4 5/9] driver: pwm: pwm-imx: get and enable per/ipg clock using dm

2022-03-25 Thread Tommaso Merciai
Get and enable ipg/per pwms clocks using dm api into imx_pwm_of_to_plat and imx_pwm_probe driver function Signed-off-by: Tommaso Merciai --- Changes since v4: - Fix ipg/per clk declaration - Fix clk_get_by_name call - Fix clk_enable call drivers/pwm/pwm-imx.c | 31

[PATCH v4 4/9] drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx

2022-03-25 Thread Tommaso Merciai
Move pwm_imx_get_parms, pwm_id_to_reg functions into pwm-imx.c and drop off pwm-imx-util.c Signed-off-by: Tommaso Merciai --- drivers/pwm/Makefile | 2 +- drivers/pwm/pwm-imx-util.c | 80 -- drivers/pwm/pwm-imx-util.h | 15 --- drivers/pwm/pwm

[PATCH v4 6/9] driver: pwm: pwm-imx: introduce pwm_dm_imx_get_parms

2022-03-25 Thread Tommaso Merciai
Introduce pwm_dm_imx_get_parms, dm version of pwm_imx_get_parms. This function get clock rate using clk dm api Signed-off-by: Tommaso Merciai --- Changes since v4: - Fix clk_get_rate call drivers/pwm/pwm-imx.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion

[PATCH v4 3/9] clk: imx8mm: add pwm clocks support

2022-03-25 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v5.17-rc8. Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

[PATCH v4 2/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs

2022-03-25 Thread Tommaso Merciai
Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 57a95de1b8..f31f54ad0c

[PATCH v4 1/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines

2022-03-25 Thread Tommaso Merciai
Add pwm control registers fields defines into imx-regs.h: - prescaler - dozeen - waiten - dbgen - clksrc_ipg_high - clksrc_ipg, en field References: - iMX8MMRM.pdf p 3884 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 8 1 file changed, 8

[PATCH v4 0/9] imx8mm: add pwm-imx backlight support

2022-03-25 Thread Tommaso Merciai
Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm ctrl registers fields defines arch: mach-imx: imx8m: add pwm_regs struct in imx-regs clk: imx8mm: add pwm clocks support drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx driver: pwm: pwm-imx: get and enable per/ipg clock using dm

[PATCH v3 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-24 Thread Tommaso Merciai
Add pwm1/backlight support nodes for imx8mm_evk board Signed-off-by: Tommaso Merciai --- arch/arm/dts/imx8mm-evk.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi index 60179e006d..e7a2bd8a64 100644 --- a

[PATCH v3 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-24 Thread Tommaso Merciai
Enable support for backlight/pwm-imx driver Signed-off-by: Tommaso Merciai --- configs/imx8mm_evk_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index 01395fc7eb..cfba6cc673 100644 --- a/configs/imx8mm_evk_defconfig

[PATCH v3 4/9] drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx

2022-03-24 Thread Tommaso Merciai
Move pwm_imx_get_parms, pwm_id_to_reg functions into pwm-imx.c and drop off pwm-imx-util.c Signed-off-by: Tommaso Merciai --- drivers/pwm/Makefile | 2 +- drivers/pwm/pwm-imx-util.c | 80 -- drivers/pwm/pwm-imx-util.h | 15 --- drivers/pwm/pwm

[PATCH v3 6/9] driver: pwm: pwm-imx: introduce pwm_dm_imx_get_parms

2022-03-24 Thread Tommaso Merciai
Introduce pwm_dm_imx_get_parms, dm version of pwm_imx_get_parms. This function get clock rate using clk dm api Signed-off-by: Tommaso Merciai --- drivers/pwm/pwm-imx.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-imx.c b

[PATCH v3 7/9] driver: pwm: pwm-imx: separe dm from non dm implementation

2022-03-24 Thread Tommaso Merciai
Separe dm implementation from non dm implementation of pwm-imx driver using CONFIG_DM_PWM Signed-off-by: Tommaso Merciai --- drivers/pwm/pwm-imx.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index

[PATCH v3 5/9] driver: pwm: pwm-imx: get and enable per/ipg clock using dm

2022-03-24 Thread Tommaso Merciai
Get and enable ipg/per pwms clocks using dm api into imx_pwm_of_to_plat and imx_pwm_probe driver function Signed-off-by: Tommaso Merciai --- drivers/pwm/pwm-imx.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c

[PATCH v3 3/9] clk: imx8mm: add pwm clocks support

2022-03-24 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v5.17-rc8. Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

[PATCH v3 2/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs

2022-03-24 Thread Tommaso Merciai
Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 57a95de1b8..f31f54ad0c

[PATCH v3 1/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines

2022-03-24 Thread Tommaso Merciai
Add pwm control registers fields defines into imx-regs.h: - prescaler - dozeen - waiten - dbgen - clksrc_ipg_high - clksrc_ipg, en field References: - iMX8MMRM.pdf p 3884 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 8 1 file changed, 8

[PATCH v3 0/9] imx8mm: add pwm-imx backlight support

2022-03-24 Thread Tommaso Merciai
Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm ctrl registers fields defines arch: mach-imx: imx8m: add pwm_regs struct in imx-regs clk: imx8mm: add pwm clocks support drivers: pwm: pwm-imx: move pwm-imx-util into pwm-imx driver: pwm: pwm-imx: get and enable per/ipg clock using dm

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-24 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 04:31:15PM +0100, Marek Vasut wrote: > On 3/17/22 16:13, Tommaso Merciai wrote: > > On Thu, Mar 17, 2022 at 01:38:18PM +0100, Tommaso Merciai wrote: > > > On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: > > > > On 3/17/2

[PATCH] clk: imx8mm: add pwm clocks support

2022-03-17 Thread Tommaso Merciai
Add clocks support for the PWM controllers. This is ported from Linux v5.17-rc8. Signed-off-by: Tommaso Merciai --- drivers/clk/imx/clk-imx8mm.c | 28 1 file changed, 28 insertions(+) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 01:38:18PM +0100, Tommaso Merciai wrote: > On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: > > On 3/17/22 08:39, Tommaso Merciai wrote: > > > On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > > > > On 3/16/2

Re: [PATCH v2 7/9] imx8mm_evk: spl: enable pwm clock

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 07:55:40AM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Thu, Mar 17, 2022 at 4:34 AM Tommaso Merciai > wrote: > > > Hi Fabio, > > You mean is better to move the clock enable into board_late_init function? > > Yes, you would only

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Thu, Mar 17, 2022 at 12:58:31PM +0100, Marek Vasut wrote: > On 3/17/22 08:39, Tommaso Merciai wrote: > > On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > > > On 3/16/22 16:27, Tommaso Merciai wrote: > > > > Add function enable_pwm_clk into in clock_i

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 08:07:01PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Tommaaso > > > On Wed, Mar 16, 2022 at 4:28 PM Tommaso Merciai > wrote: > > > > Add function enable_pwm_clk into in clock_imx8mm.c. This > > function first configure, then en

Re: [PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-17 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 09:54:34PM +0100, Marek Vasut wrote: > On 3/16/22 16:27, Tommaso Merciai wrote: > > Add function enable_pwm_clk into in clock_imx8mm.c. This > > function first configure, then enable pwm clock from clock control > > register. The following

Re: [PATCH v2 7/9] imx8mm_evk: spl: enable pwm clock

2022-03-17 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 09:48:57PM -0300, Fabio Estevam wrote: > On Wed, Mar 16, 2022 at 8:55 PM Fabio Estevam wrote: > > > > Hi Tommaso, > > > > On Wed, Mar 16, 2022 at 12:28 PM Tommaso Merciai > > wrote: > > > > > > Enable pwm1 clock into sp

[PATCH v2 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-16 Thread Tommaso Merciai
Enable support for backlight/pwm-imx driver Signed-off-by: Tommaso Merciai --- configs/imx8mm_evk_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index 01395fc7eb..cfba6cc673 100644 --- a/configs/imx8mm_evk_defconfig

[PATCH v2 7/9] imx8mm_evk: spl: enable pwm clock

2022-03-16 Thread Tommaso Merciai
Enable pwm1 clock into spl Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix enable_pwm_clk call board/freescale/imx8mm_evk/spl.c | 4 1 file changed, 4 insertions(+) diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c index 4ef7f6f180..cf173b885f

[PATCH v2 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
Add pwm1/backlight support nodes for imx8mm_evk board Signed-off-by: Tommaso Merciai --- arch/arm/dts/imx8mm-evk.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi index 60179e006d..e7a2bd8a64 100644 --- a

[PATCH v2 6/9] configs: imx8mm_evk: add CONFIG_IMX6_PWM_PER_CLK config

2022-03-16 Thread Tommaso Merciai
In order to support pwm-imx-util CONFIG_IMX6_PWM_PER_CLK is needed. At the moment driver don't support clock framework Signed-off-by: Tommaso Merciai --- include/configs/imx8mm_evk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/imx8mm_evk.h b/include/co

[PATCH v2 5/9] imx8m: clock: add enable_pwm_clk function

2022-03-16 Thread Tommaso Merciai
Add enable_pwm_clk function in clock.h Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix enable_pwm_clk function implementation. Now is generic for all pwm clks arch/arm/include/asm/arch-imx8m/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-imx8m

[PATCH v2 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-16 Thread Tommaso Merciai
off-by: Tommaso Merciai --- Changes since v1: - Fix enable_pwm_clk function implementation. Now is generic for all pwm clks arch/arm/mach-imx/imx8m/clock_imx8mm.c | 53 ++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx

[PATCH v2 3/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs

2022-03-16 Thread Tommaso Merciai
Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 13538ba5f6..9217f93a50

[PATCH v2 2/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines

2022-03-16 Thread Tommaso Merciai
Add pwm control registers fields defines into imx-regs.h: - prescaler - dozeen - waiten - dbgen - clksrc_ipg_high - clksrc_ipg, en field References: - iMX8MMRM.pdf p 3884 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 8 1 file changed, 8

[PATCH v2 1/9] arch: mach-imx: imx8m: add pwm1/pwm2 base address

2022-03-16 Thread Tommaso Merciai
Add pwm1/pwm2 base address defines into imx-regs file References: - IMX8MMRM.pdf p 3882 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch

[PATCH v2 0/9] imx8mm: add pwm-imx backlight support

2022-03-16 Thread Tommaso Merciai
clock.h 6. Add CONFIG_IMX6_PWM_PER_CLK in imx8mm_evk.h 7. Add backlight/pwm1 dts nodes support for iMX8MM evk 8. Enable pwm clk into spl 9. Enable support for pwm-imx/backlight for iMX8MM evk Regards, Tommaso Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm1/pwm2 base address arch: mach-imx

Re: [PATCH 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 12:54:06PM +0100, Michael Walle wrote: > Am 2022-03-16 12:51, schrieb Tommaso Merciai: > > On Wed, Mar 16, 2022 at 12:45:22PM +0100, Michael Walle wrote: > > > Am 2022-03-16 12:42, schrieb Tommaso Merciai: > > > > On Wed, Mar 16, 2022 at 1

Re: [PATCH 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 12:45:22PM +0100, Michael Walle wrote: > Am 2022-03-16 12:42, schrieb Tommaso Merciai: > > On Wed, Mar 16, 2022 at 11:30:19AM +0100, Michael Walle wrote: > > > > Add pwm1/backlight support nodes for imx8mm_evk board > > > > >

Re: [PATCH 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 11:30:19AM +0100, Michael Walle wrote: > > Add pwm1/backlight support nodes for imx8mm_evk board > > > > Signed-off-by: Tommaso Merciai > > --- > > arch/arm/dts/imx8mm-evk.dtsi | 21 + > > 1 file changed, 21 inse

Re: [PATCH 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 11:30:19AM +0100, Michael Walle wrote: > > Add pwm1/backlight support nodes for imx8mm_evk board > > > > Signed-off-by: Tommaso Merciai > > --- > > arch/arm/dts/imx8mm-evk.dtsi | 21 + > > 1 file changed, 21 inse

Re: [PATCH 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-16 Thread Tommaso Merciai
On Wed, Mar 16, 2022 at 10:05:47AM +0100, Michael Nazzareno Trimarchi wrote: > Hi > > On Wed, Mar 16, 2022 at 10:02 AM Tommaso Merciai > wrote: > > > > Add function to enable_pwm_clck function into clock_imx8mm.c. This > > function first configure, then enable

[PATCH 7/9] imx8mm_evk: spl: enable pwm clock

2022-03-16 Thread Tommaso Merciai
Enable pwm clock into spl Signed-off-by: Tommaso Merciai --- board/freescale/imx8mm_evk/spl.c | 4 1 file changed, 4 insertions(+) diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c index 4ef7f6f180..5aabdba0b0 100644 --- a/board/freescale/imx8mm_evk/spl.c

[PATCH 8/9] arm: dts: imx8mm_evk: add pwm1/backlight support

2022-03-16 Thread Tommaso Merciai
Add pwm1/backlight support nodes for imx8mm_evk board Signed-off-by: Tommaso Merciai --- arch/arm/dts/imx8mm-evk.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk.dtsi b/arch/arm/dts/imx8mm-evk.dtsi index 60179e006d..e7a2bd8a64 100644 --- a

[PATCH 9/9] configs: imx8mm_evk: add pwm backlight support

2022-03-16 Thread Tommaso Merciai
Enable support for backlight/pwm-imx driver Signed-off-by: Tommaso Merciai --- configs/imx8mm_evk_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig index 01395fc7eb..cfba6cc673 100644 --- a/configs/imx8mm_evk_defconfig

[PATCH 6/9] configs: imx8mm_evk: add CONFIG_IMX6_PWM_PER_CLK config

2022-03-16 Thread Tommaso Merciai
In order to support pwm-imx-util CONFIG_IMX6_PWM_PER_CLK is needed. At the moment driver don't support clock framework Signed-off-by: Tommaso Merciai --- include/configs/imx8mm_evk.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/imx8mm_evk.h b/include/co

[PATCH 5/9] imx8m: clock: add enable_pwm_clk function

2022-03-16 Thread Tommaso Merciai
Add enable_pwm_clk function in clock.h Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-imx8m/clock.h b/arch/arm/include/asm/arch-imx8m/clock.h index 50359d8e46..5692bafcea 100644 --- a/arch

[PATCH 4/9] arm: imx: imx8mm: add enable_pwm_clk function

2022-03-16 Thread Tommaso Merciai
Signed-off-by: Tommaso Merciai --- arch/arm/mach-imx/imx8m/clock_imx8mm.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c index 49945faf2c..5f2eddf715 100644 --- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c

[PATCH 3/9] arch: mach-imx: imx8m: add pwm_regs struct in imx-regs

2022-03-16 Thread Tommaso Merciai
Add pwm_regs struct for i.MX8MM SOC Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch-imx8m/imx-regs.h index 13538ba5f6..9217f93a50

[PATCH 2/9] arch: mach-imx: imx8m: add pwm ctrl registers fields defines

2022-03-16 Thread Tommaso Merciai
Add pwm control registers fields defines into imx-regs.h: - prescaler - dozeen - waiten - dbgen - clksrc_ipg_high - clksrc_ipg, en field References: - iMX8MMRM.pdf p 3884 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 8 1 file changed, 8

[PATCH 1/9] arch: mach-imx: imx8m: add pwm1/pwm2 base address

2022-03-16 Thread Tommaso Merciai
Add pwm1/pwm2 base address defines into imx-regs file References: - IMX8MMRM.pdf p 3882 Signed-off-by: Tommaso Merciai --- arch/arm/include/asm/arch-imx8m/imx-regs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-imx8m/imx-regs.h b/arch/arm/include/asm/arch

[PATCH 0/9] imx8mm: add pwm-imx backlight support

2022-03-16 Thread Tommaso Merciai
clock.h 6. Add CONFIG_IMX6_PWM_PER_CLK in imx8mm_evk.h 7. Add backlight/pwm1 dts nodes support for iMX8MM evk 8. Enable pwm clk into spl 9. Enable support for pwm-imx/backlight for iMX8MM evk Regards, Tommaso Tommaso Merciai (9): arch: mach-imx: imx8m: add pwm1/pwm2 base address arch: mach-imx

Re: iMX8MM USB support?

2022-03-09 Thread Tommaso Merciai
irty (Apr 09 2020 - 13:02:21 -0700) > > > Normal Boot > > > Trying to boot from USB SDP > > > SDP: initialize... > > > SDP: handle requests... > > > Downloading file of size 584020 to 0x4020... done > > > Jumping to header at 0x4020 >

Re: [PATCH] freescale: imx8mm_evk: Use IS_ENABLED instead of #ifdef

2022-02-24 Thread Tommaso Merciai
On Sat, Feb 19, 2022 at 02:08:09PM +0100, sba...@denx.de wrote: > > Use IS_ENABLED(CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG) to make the code > > more readable and fix checkpatch.pl warning > > Signed-off-by: Tommaso Merciai > Applied to u-boot-imx, master, thanks ! Hi Stefano,

Re: [PATCH v4 4/4] phytec: phycore_imx8mp: override env_get_location

2022-02-01 Thread Tommaso Merciai
On Tue, Feb 01, 2022 at 05:22:06AM -0600, Adam Ford wrote: > On Tue, Feb 1, 2022 at 3:09 AM Tommaso Merciai > wrote: > > > > On Tue, Feb 01, 2022 at 04:16:52AM +0100, Marek Vasut wrote: > > > On 1/31/22 23:15, Tommaso Merciai wrote: > > > > On Mon, Jan 31

Re: [PATCH v4 4/4] phytec: phycore_imx8mp: override env_get_location

2022-02-01 Thread Tommaso Merciai
On Tue, Feb 01, 2022 at 04:16:52AM +0100, Marek Vasut wrote: > On 1/31/22 23:15, Tommaso Merciai wrote: > > On Mon, Jan 31, 2022 at 06:03:58PM +0100, Marek Vasut wrote: > > > On 1/31/22 17:58, Tommaso Merciai wrote: > > > > Override env_get_location function at b

Re: [PATCH v4 4/4] phytec: phycore_imx8mp: override env_get_location

2022-01-31 Thread Tommaso Merciai
On Mon, Jan 31, 2022 at 06:03:58PM +0100, Marek Vasut wrote: > On 1/31/22 17:58, Tommaso Merciai wrote: > > Override env_get_location function at board level, previously dropped > > down from arch/arm/mach-imx/imx8m/soc.c > > > > References: > > - commit 98af80d

[PATCH v4 3/4] imx: imx8mp_evk: override env_get_location

2022-01-31 Thread Tommaso Merciai
Override env_get_location function at board level, previously dropped down from soc.c References: - commit 98af80d3c969e69a1b8ce98bb20e5ad844022da2 Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix code indentation using checkpatch as suggested by MBehĂșn board/freescale/imx8mp_evk

[PATCH v4 4/4] phytec: phycore_imx8mp: override env_get_location

2022-01-31 Thread Tommaso Merciai
Override env_get_location function at board level, previously dropped down from arch/arm/mach-imx/imx8m/soc.c References: - commit 98af80d3c969e69a1b8ce98bb20e5ad844022da2 Signed-off-by: Tommaso Merciai --- board/phytec/phycore_imx8mp/phycore-imx8mp.c | 33 1 file changed

[PATCH v4 2/4] imx: imx8mn_evk: override env_get_location

2022-01-31 Thread Tommaso Merciai
Override env_get_location function at board level, previously dropped down from soc.c References: - commit 98af80d3c969e69a1b8ce98bb20e5ad844022da2 Signed-off-by: Tommaso Merciai --- Changes since v1: - Fix code indentation using checkpatch as suggested by MBehĂșn board/freescale/imx8mn_evk

[PATCH v4 1/4] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-31 Thread Tommaso Merciai
This function defined for two architecture is not really generic and can generate problem when people add a new board. Signed-off-by: Tommaso Merciai --- arch/arm/mach-imx/imx8m/soc.c | 39 --- 1 file changed, 39 deletions(-) diff --git a/arch/arm/mach-imx/imx8m

[PATCH v4 0/4] imx8m: move env_get_location for imx8mn and imx8mp at board level

2022-01-31 Thread Tommaso Merciai
boards instead of being completely dropped. Note for all imx8mp/imx8mn users: This patch move only the env_get_location function at board level in this way every users can override it depending on own needs. Test it. Tommaso Merciai (4): imx8m: drop env_get_location for imx8mn and imx8mp imx

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2022-01-27 Thread Tommaso Merciai
On Thu, Jan 27, 2022 at 10:59:51AM -0600, Adam Ford wrote: > On Wed, Jan 26, 2022 at 2:58 PM Tommaso Merciai > wrote: > > > > On Wed, Jan 26, 2022 at 12:05:22PM -0600, Adam Ford wrote: > > > On Sat, Dec 25, 2021 at 2:26 PM Tommaso Merciai > > > wrote: >

Re: [RFC PATCH v3 4/5] beacon: imx8mn: override env_get_location in imx8mn_beacon.c

2022-01-26 Thread Tommaso Merciai
On Wed, Jan 26, 2022 at 12:05:22PM -0600, Adam Ford wrote: > On Sat, Dec 25, 2021 at 2:26 PM Tommaso Merciai > wrote: > > > > Override env_get_location function at board level, previously dropped > > down from arch/arm/mach-imx/imx8m/soc.c > >

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-11 Thread Tommaso Merciai
On Tue, Jan 11, 2022 at 09:35:54AM +, Teresa Remmet wrote: > Hello Tommaso, > > Am Samstag, dem 08.01.2022 um 20:08 +0100 schrieb Tommaso Merciai: > > On Tue, Jan 04, 2022 at 11:04:10AM +, Teresa Remmet wrote: > > > Hello Tommaso, > > > > > >

Re: [RFC PATCH v3 1/5] imx8m: drop env_get_location for imx8mn and imx8mp

2022-01-08 Thread Tommaso Merciai
On Tue, Jan 04, 2022 at 11:04:10AM +, Teresa Remmet wrote: > Hello Tommaso, > > Am Samstag, dem 25.12.2021 um 21:25 +0100 schrieb Tommaso Merciai: > > This function defined for two architecture is not really generic > > and can generate problem when people add a new board

Re: [PATCH 2/2] udoo: neo: Do not print the Model information

2022-01-08 Thread Tommaso Merciai
On Wed, Jan 05, 2022 at 10:10:03PM +0100, Tommaso Merciai wrote: > On Wed, Jan 05, 2022 at 05:52:23PM -0300, Fabio Estevam wrote: > > Hi Tommaso, > > > > On Wed, Jan 5, 2022 at 5:47 PM Tommaso Merciai > > wrote: > > > > > Hi Fabio, > > > Th

Re: [PATCH 2/2] udoo: neo: Do not print the Model information

2022-01-05 Thread Tommaso Merciai
On Wed, Jan 05, 2022 at 05:52:23PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Wed, Jan 5, 2022 at 5:47 PM Tommaso Merciai wrote: > > > Hi Fabio, > > Thanks, I test your patch on basic and extended model. Below some logs > > seems all work properly. I hope

Re: [PATCH 2/2] udoo: neo: Do not print the Model information

2022-01-05 Thread Tommaso Merciai
2 Loading Environment from MMC... OK In:serial Out: serial Err: serial Net: Error: ethernet@2188000 address not set. No ethernet found. Hit any key to stop autoboot: 0 -------- Acked-by: Tommaso Merciai Tested-by: Tommas

Re: [PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
On Sun, Jan 02, 2022 at 04:28:35PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sun, Jan 2, 2022 at 3:27 PM Tommaso Merciai wrote: > > > > get_board_value function fails to get the right board configuration on > > second time that is call. This patch move get_boar

[PATCH v2] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
nly one time. Signed-off-by: Tommaso Merciai --- Changes since v1 - get_board_value declared as void - fix gd->board_type, re-initialized after spl board/udoo/neo/neo.c | 12 ++-- configs/udoo_neo_defconfig | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH] udoo_neo: fix udoo neo UNDEFINED

2022-01-02 Thread Tommaso Merciai
On Sun, Jan 02, 2022 at 04:28:35PM -0300, Fabio Estevam wrote: > Hi Tommaso, > > On Sun, Jan 2, 2022 at 3:27 PM Tommaso Merciai wrote: > > > > get_board_value function fails to get the right board configuration on > > second time that is call. This patch move get_boar

  1   2   >