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
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
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
+ 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
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
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
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
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
>
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:
> > >
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
>
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
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
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
__
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> > > >
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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,
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
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
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
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
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
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
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
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
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:
>
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
> >
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,
> > >
> > >
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
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
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
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
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
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
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 - 100 of 131 matches
Mail list logo