Re: [PATCH v2] ARM: dts: i.MX8MM: describe feature controller

2022-08-31 Thread Sascha Hauer
On Tue, Aug 30, 2022 at 09:50:45AM +0200, Ahmad Fatoum wrote: > Now with i.MX8M feature controller driver support available, have the > OCOTP provide feature control on the i.MX8MM to ensure the kernel DT > does not cause Linux to access the VPU and its power domains, > when barebox knows them to

Re: [PATCH] drivers: mtd: nand: nand_mxs: enable nand_mxs on imx7

2022-08-31 Thread Sascha Hauer
On Tue, Aug 30, 2022 at 10:06:13AM +0200, Johannes Zink wrote: > The i.MX7 GPMI NAND controller is completely backwards compatible with > the version of the IP on the i.MX6. There are additional features like > increased ECC strength, that we may want to use in future, but for now > treating it

Re: [PATCH] mfd: axp20x: add mfd axp20x driver

2022-08-31 Thread Sascha Hauer
On Tue, Aug 30, 2022 at 10:09:11AM +0200, Johannes Zink wrote: > From: Ahmad Fatoum > > This commit ports the axp20x driver from linux kernel code. Structures > not applicable for barebox are being dropped. > > Signed-off-by: Ahmad Fatoum > Signed-off-by: Johannes Zink > --- >

[PATCH] fixup-next: linux/nvmem-consumer.h: fix warning

2022-08-31 Thread Antony Pavlov
This fixes the commit 06825a0ec35343a1 ("nvmem: import Linux nvmem_cell_read_variable_le_u32") from the next branch. The warning is: include/linux/nvmem-consumer.h:84:9: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast

Re: [PATCH] fixup-next: linux/nvmem-consumer.h: fix warning

2022-08-31 Thread Ahmad Fatoum
On 31.08.22 11:26, Antony Pavlov wrote: > This fixes the commit 06825a0ec35343a1 > ("nvmem: import Linux nvmem_cell_read_variable_le_u32") > from the next branch. Thanks! Reviewed-by: Ahmad Fatoum > > The warning is: > > include/linux/nvmem-consumer.h:84:9: warning: returning 'void *' from a

[PATCH 4/6] soc: imx: gpcv2: extend for i.MX8M Mini/Nano/Plus support

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum Add suppport for i.MX8MM, i.MX8MN and i.MX8MP, taken directly from the kernel driver. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- drivers/soc/imx/gpcv2.c | 954 1 file changed, 864 insertions(+), 90 deletions(-)

[PATCH 6/6] Revert "ARM: i.MX8MN: assume USBOTG power domains to be powered"

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum This was a workaround and the barebox gpcv2 driver has since gained support for the i.MX8M Nano, so we can drop the device tree level override again. This partially reverts commit 09e73acc76c3ed2834c5918717dff5e961c04990. We keep imx8mn.dtsi around as it may come in handy in

[PATCH 1/6] soc: imx: gpcv2: switch to regmap

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum The Kernel driver uses regmap, so switch to regmap as well to get the code closer to the kernel code. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- drivers/soc/imx/gpcv2.c | 55 - 1 file changed, 32 insertions(+), 23

[PATCH 2/6] soc: imx: gpcv2: split power_up/power_off

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum Splitting a single power function into power_up/power_off makes the code easier to follow. The kernel uses the same approach, so do it for barebox as well. This only splits up the functions into two without functional change. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha

[PATCH 3/6] soc: imx: gpcv2: align with upstream Linux driver

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum Bring the code closer to the upstream Linux driver to make it better comparable to that code. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- drivers/soc/imx/gpcv2.c | 109 +++- 1 file changed, 29 insertions(+), 80

[PATCH 0/6] Add power domain support for i.MX8MM, i.MX8MN and i.MX8MP

2022-08-31 Thread Sascha Hauer
This series brings the gpcv2 driver closer to the Linux one and adds i.MX8MM, i.MX8MN and i.MX8MP support Sascha Ahmad Fatoum (6): soc: imx: gpcv2: switch to regmap soc: imx: gpcv2: split power_up/power_off soc: imx: gpcv2: align with upstream Linux driver soc: imx: gpcv2: extend for

[PATCH 5/6] Revert "ARM: i.MX8MM: assume USBOTG power domains to be powered"

2022-08-31 Thread Sascha Hauer
From: Ahmad Fatoum This was a workaround and the barebox gpcv2 driver has since gained support for the i.MX8M Mini, so we can drop the device tree level override again. This reverts commit e30131c06b2b81bfc458fa9bbaa30b2e3a6dad88. --- arch/arm/dts/imx8mm.dtsi | 8 1 file changed, 8

Re: [PATCH 5/6] Revert "ARM: i.MX8MM: assume USBOTG power domains to be powered"

2022-08-31 Thread Ahmad Fatoum
On 31.08.22 14:52, Sascha Hauer wrote: > From: Ahmad Fatoum > > This was a workaround and the barebox gpcv2 driver has since gained > support for the i.MX8M Mini, so we can drop the device tree level > override again. > > This reverts commit e30131c06b2b81bfc458fa9bbaa30b2e3a6dad88. I don't

Re: [PATCH 6/6] Revert "ARM: i.MX8MN: assume USBOTG power domains to be powered"

2022-08-31 Thread Ahmad Fatoum
On 31.08.22 14:52, Sascha Hauer wrote: > From: Ahmad Fatoum > > This was a workaround and the barebox gpcv2 driver has since gained > support for the i.MX8M Nano, so we can drop the device tree level > override again. > > This partially reverts commit 09e73acc76c3ed2834c5918717dff5e961c04990. >

Re: [PATCH 00/10] Add new feature controller framework

2022-08-31 Thread Sascha Hauer
On Tue, Aug 30, 2022 at 09:38:57AM +0200, Ahmad Fatoum wrote: > Hello Sascha, > > On 30.08.22 09:32, Sascha Hauer wrote: > > Hi Ahmad, > > > > On Thu, Aug 18, 2022 at 07:19:45AM +0200, Ahmad Fatoum wrote: > >> The i.MX8MM exists in a Lite variant with no VPUs as well as Solo and > >> Dual

Re: [PATCH] clks: imx7: fix initial clock setup with deep probe enabled

2022-08-31 Thread Johannes Zink
Hi Sascha, On Tue, 2022-08-30 at 17:05 +0200, Sascha Hauer wrote: > On Tue, Aug 30, 2022 at 10:39:37AM +0200, Johannes Zink wrote: > > We register the i.MX7 clock controller driver at core_initcall > > level and > > then do some initial clock setup/reparenting at postcore_initcall > > level. > >

Re: [PATCH v4 00/21] add "windowsize" (RFC 7440) support for tftp

2022-08-31 Thread Sascha Hauer
On Tue, Aug 30, 2022 at 09:37:55AM +0200, Enrico Scholz wrote: > The tftp "windowsize" greatly improves the performance of tftp > transfers. This patchset adds support for it. > > The first two patches are a little bit unrelated and enhance the 'cp > -v' output by giving information about the

[PATCH] Documentation/gen_commands.py: use python3

2022-08-31 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- Documentation/gen_commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/gen_commands.py b/Documentation/gen_commands.py index a55b1acd82f..7c62a030dce 100755 --- a/Documentation/gen_commands.py +++