Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Adam Ford
On Tue, Apr 5, 2022 at 3:14 PM Tim Harvey wrote: > > On Mon, Apr 4, 2022 at 7:25 AM Marek Vasut wrote: > > > > On 4/4/22 16:15, Adam Ford wrote: > > > On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: > > >> > > >> On 4/4/22 14:51, Adam Ford wrote: > > >>> On Wed, Mar 30, 2022 at 10:04 PM Marek

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Marek Vasut
On 4/17/22 20:24, Adam Ford wrote: Hi, When I just reverted all three of those, it still hangs. However, when I removed CONFIG_CLK, it recovered. I'll examine which clocks may be missing or if there is some other clock dependency. Hum, clock sounds indeed more plausible cause of the hang be

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Adam Ford
On Sun, Apr 17, 2022 at 1:15 PM Marek Vasut wrote: > > On 4/17/22 18:37, Adam Ford wrote: > > [...] > > > When I just reverted all three of those, it still hangs. However, > > when I removed CONFIG_CLK, it recovered. I'll examine which clocks > > may be missing or if there is some other clock de

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Marek Vasut
On 4/17/22 18:37, Adam Ford wrote: [...] When I just reverted all three of those, it still hangs. However, when I removed CONFIG_CLK, it recovered. I'll examine which clocks may be missing or if there is some other clock dependency. Hum, clock sounds indeed more plausible cause of the hang

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Adam Ford
On Sun, Apr 17, 2022 at 10:16 AM Marek Vasut wrote: > > On 4/17/22 15:21, Adam Ford wrote: > > On Sat, Apr 16, 2022 at 9:13 PM Marek Vasut wrote: > >> > >> On 4/17/22 03:01, Adam Ford wrote: > >> > >> Hi, > >> > > After the patch: > > > > U-Boot SPL 2022.04-00822-gc2a24a7ce5 (Apr 16 2

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Marek Vasut
On 4/17/22 15:21, Adam Ford wrote: On Sat, Apr 16, 2022 at 9:13 PM Marek Vasut wrote: On 4/17/22 03:01, Adam Ford wrote: Hi, After the patch: U-Boot SPL 2022.04-00822-gc2a24a7ce5 (Apr 16 2022 - 15:45:29 -0500) PMIC: PFUZE100 ID=0x10 SEC0: RNG instantiated Normal Boot Trying to boot from

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-17 Thread Adam Ford
On Sat, Apr 16, 2022 at 9:13 PM Marek Vasut wrote: > > On 4/17/22 03:01, Adam Ford wrote: > > Hi, > > >>> After the patch: > >>> > >>> U-Boot SPL 2022.04-00822-gc2a24a7ce5 (Apr 16 2022 - 15:45:29 -0500) > >>> PMIC: PFUZE100 ID=0x10 > >>> SEC0: RNG instantiated > >>> Normal Boot > >>> Trying to b

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-16 Thread Marek Vasut
On 4/17/22 03:01, Adam Ford wrote: Hi, After the patch: U-Boot SPL 2022.04-00822-gc2a24a7ce5 (Apr 16 2022 - 15:45:29 -0500) PMIC: PFUZE100 ID=0x10 SEC0: RNG instantiated Normal Boot Trying to boot from MMC2 There should be some sort of output from ATF here, which version did you use during

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-16 Thread Adam Ford
On Sat, Apr 16, 2022 at 7:35 PM Marek Vasut wrote: > > On 4/16/22 22:49, Adam Ford wrote: > > On Thu, Apr 7, 2022 at 5:21 PM Tim Harvey wrote: > >> > >> On Wed, Mar 30, 2022 at 8:04 PM Marek Vasut wrote: > >>> > >>> This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > >>> the

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-16 Thread Marek Vasut
On 4/16/22 22:49, Adam Ford wrote: On Thu, Apr 7, 2022 at 5:21 PM Tim Harvey wrote: On Wed, Mar 30, 2022 at 8:04 PM Marek Vasut wrote: This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly control the GPCv2 block instead of

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-16 Thread Adam Ford
On Thu, Apr 7, 2022 at 5:21 PM Tim Harvey wrote: > > On Wed, Mar 30, 2022 at 8:04 PM Marek Vasut wrote: > > > > This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > > the driver based on Linux GPCv2 driver to directly control the GPCv2 > > block instead of using SMCCC calls. Th

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-07 Thread Tim Harvey
On Wed, Mar 30, 2022 at 8:04 PM Marek Vasut wrote: > > This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > the driver based on Linux GPCv2 driver to directly control the GPCv2 > block instead of using SMCCC calls. This way, U-Boot can operate the > i.MX8M power domains without

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-06 Thread Marek Vasut
On 4/6/22 14:40, Adam Ford wrote: On Wed, Apr 6, 2022 at 7:27 AM Fabio Estevam wrote: Hi Adam, On Wed, Apr 6, 2022 at 9:22 AM Adam Ford wrote: I tried to build the imx8mq last night, but I ran into issues. I never built an imx8mq bootloader before, so I think I'm missing something. I'll

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-06 Thread Adam Ford
On Wed, Apr 6, 2022 at 7:27 AM Fabio Estevam wrote: > > Hi Adam, > > On Wed, Apr 6, 2022 at 9:22 AM Adam Ford wrote: > > > I tried to build the imx8mq last night, but I ran into issues. I > > never built an imx8mq bootloader before, so I think I'm missing > > something. I'll try to get to it ag

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-06 Thread Fabio Estevam
Hi Adam, On Wed, Apr 6, 2022 at 9:22 AM Adam Ford wrote: > I tried to build the imx8mq last night, but I ran into issues. I > never built an imx8mq bootloader before, so I think I'm missing > something. I'll try to get to it again this week. Sorry for the > delays. Please check doc/board/nxp

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-06 Thread Adam Ford
On Tue, Apr 5, 2022 at 6:00 PM Marek Vasut wrote: > > On 4/5/22 22:14, Tim Harvey wrote: > > On Mon, Apr 4, 2022 at 7:25 AM Marek Vasut wrote: > >> > >> On 4/4/22 16:15, Adam Ford wrote: > >>> On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: > > On 4/4/22 14:51, Adam Ford wrote: > >>>

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-05 Thread Marek Vasut
On 4/5/22 22:14, Tim Harvey wrote: On Mon, Apr 4, 2022 at 7:25 AM Marek Vasut wrote: On 4/4/22 16:15, Adam Ford wrote: On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: On 4/4/22 14:51, Adam Ford wrote: On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: This driver is the only SMCCC d

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-05 Thread Tim Harvey
On Mon, Apr 4, 2022 at 7:25 AM Marek Vasut wrote: > > On 4/4/22 16:15, Adam Ford wrote: > > On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: > >> > >> On 4/4/22 14:51, Adam Ford wrote: > >>> On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: > > This driver is the only SMCCC dependen

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Marek Vasut
On 4/4/22 16:15, Adam Ford wrote: On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: On 4/4/22 14:51, Adam Ford wrote: On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Adam Ford
On Mon, Apr 4, 2022 at 8:01 AM Marek Vasut wrote: > > On 4/4/22 14:51, Adam Ford wrote: > > On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: > >> > >> This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > >> the driver based on Linux GPCv2 driver to directly control the GPCv2

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Marek Vasut
On 4/4/22 14:51, Adam Ford wrote: On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly control the GPCv2 block instead of using SMCCC calls. This way, U-Boot can operate the

Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-04-04 Thread Adam Ford
On Wed, Mar 30, 2022 at 10:04 PM Marek Vasut wrote: > > This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework > the driver based on Linux GPCv2 driver to directly control the GPCv2 > block instead of using SMCCC calls. This way, U-Boot can operate the > i.MX8M power domains without

[PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency

2022-03-30 Thread Marek Vasut
This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework the driver based on Linux GPCv2 driver to directly control the GPCv2 block instead of using SMCCC calls. This way, U-Boot can operate the i.MX8M power domains without depending on anything else. This is losely based on Linux GPC