Re: [PATCH u-boot 4/4] board: purism: Use U-Boot mmc function for converting boot part to part access

2023-04-16 Thread Angus Ainslie
wed-by: Angus Ainslie

Re: [PATCH v8] board: purism: add the Purism Librem5 phone

2022-09-19 Thread Angus Ainslie
On 2022-09-18 13:41, sba...@denx.de wrote: Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Fabio Estevam Applied to u-boot-imx, master, thanks ! Thanks Stefano ! Cheers

Re: imx8mq allocation issue

2022-09-09 Thread Angus Ainslie
Hi Heiko, On 2022-09-09 07:45, Heiko Thiery wrote: Hi Angus, Am Fr., 9. Sept. 2022 um 16:43 Uhr schrieb Angus Ainslie : Hi Heiko, The librem5 (imx8mq) is able to boot using these [1] patches on top of u-boot-imx-20220729. I believe the change that fixed the allocation issue for me

Re: imx8mq allocation issue

2022-09-09 Thread Angus Ainslie
Hi Heiko, The librem5 (imx8mq) is able to boot using these [1] patches on top of u-boot-imx-20220729. I believe the change that fixed the allocation issue for me was CONFIG_SPL_MAX_SIZE=0x25000 Cheers, Angus [1] https://lore.kernel.org/u-boot/20220825134602.382775-1-an...@akkea.ca/ On

[PATCH v8] board: purism: add the Purism Librem5 phone

2022-08-26 Thread Angus Ainslie
Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak Reviewed-by: Fabio Estevam --- Changes since v7: Added Reviewed-by Move patch comments Changes since v6: Move migrated symbols Rebase onto

Re: [PATCH v7] board: purism: add the Purism Librem5 phone

2022-08-17 Thread Angus Ainslie
On 2022-08-13 07:53, Fabio Estevam wrote: Hi Angus, On Sun, Aug 7, 2022 at 1:02 PM Angus Ainslie wrote: Initial commit of Librem5 u-boot and SPL All of the pre-requisite patches for this board are now upstream. Changes since v6: Move migrated symbols Rebase onto latest u-boot-imx Changes

[PATCH v7] board: purism: add the Purism Librem5 phone

2022-08-07 Thread Angus Ainslie
into a monolithic board patch Using DM drivers for devices in u-boot Added USB storage support for uSD rootfs Dropped many SPL_BUILD guarded define's Fixed documentation index Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak --- arch/arm/dts

Re: [PATCH v6] board: purism: add the Purism Librem5 phone

2022-07-28 Thread Angus Ainslie
On 2022-07-26 00:35, Stefano Babic wrote: On 30.06.22 21:29, Angus Ainslie wrote: Hi Stefano, On 2022-06-30 12:09, Stefano Babic wrote: Hi Angus, On 30.06.22 19:30, Angus Ainslie wrote: Hi All, Are there any remaining issues with this patch ? Rather yes, it was supposed that issues

Re: DWC3 host support

2022-07-19 Thread Angus Ainslie
On 2022-07-18 23:47, Michal Simek wrote: Hi, On 7/18/22 18:23, Angus Ainslie wrote: Hi, On 2022-07-18 01:13, Michal Simek wrote: On 7/17/22 17:23, Marek Vasut wrote: On 7/17/22 05:00, Angus Ainslie wrote: On 2022-07-16 11:37, Marek Vasut wrote: On 7/16/22 15:02, Angus Ainslie wrote: Hi

Re: DWC3 host support

2022-07-18 Thread Angus Ainslie
Hi, On 2022-07-18 01:13, Michal Simek wrote: On 7/17/22 17:23, Marek Vasut wrote: On 7/17/22 05:00, Angus Ainslie wrote: On 2022-07-16 11:37, Marek Vasut wrote: On 7/16/22 15:02, Angus Ainslie wrote: Hi Michal, I recently rebased my librem5 tree onto the latest u-boot-imx branch

Re: DWC3 host support

2022-07-18 Thread Angus Ainslie
Hi Marek/Michal, On 2022-07-18 01:13, Michal Simek wrote: On 7/17/22 17:23, Marek Vasut wrote: On 7/17/22 05:00, Angus Ainslie wrote: On 2022-07-16 11:37, Marek Vasut wrote: On 7/16/22 15:02, Angus Ainslie wrote: Hi Michal, I recently rebased my librem5 tree onto the latest u-boot-imx

Re: DWC3 host support

2022-07-16 Thread Angus Ainslie
On 2022-07-16 11:37, Marek Vasut wrote: On 7/16/22 15:02, Angus Ainslie wrote: Hi Michal, I recently rebased my librem5 tree onto the latest u-boot-imx branch and the dwc3 host mode stopped working. I bisected it down to this commit: 142d50fbce7c364a74f5e8204dba491b9f066e6c usb: dwc3: Add

Re: DWC3 host support

2022-07-16 Thread Angus Ainslie
On 2022-07-16 06:02, Angus Ainslie wrote: Hi Michal, I recently rebased my librem5 tree onto the latest u-boot-imx branch and the dwc3 host mode stopped working. Further debugging indicates that the "U-Boot XHCI Host Controller" is detected but downstream USB 2 hubs and stora

DWC3 host support

2022-07-16 Thread Angus Ainslie
Hi Michal, I recently rebased my librem5 tree onto the latest u-boot-imx branch and the dwc3 host mode stopped working. I bisected it down to this commit: 142d50fbce7c364a74f5e8204dba491b9f066e6c usb: dwc3: Add support for usb3-phy PHY configuration Reverting that commit allows usb host

Re: [PATCH v4 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
On 2022-07-14 10:24, Marek Vasut wrote: On 7/14/22 17:11, Angus Ainslie wrote: Thanks, the patches will go in via next USB PR. Great, Thanks Also, thanks for reminding me of the missed patches.

[PATCH v4 2/2] configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC

2022-07-14 Thread Angus Ainslie
Adding the SPL_USB_DWC3_GENERIC symbol broke some ti builds. This should fix the builds but untested on HW. Signed-off-by: Angus Ainslie --- configs/am43xx_evm_defconfig | 2 ++ configs/am43xx_evm_usbhost_boot_defconfig | 2 ++ configs/am43xx_hs_evm_defconfig | 2

[PATCH v4 1/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index

[PATCH v4 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
Changes since v3: Rebased onto usb/master. Changes since v2: Add a second patch to deal with CI failures due to the new options. Changes since v1: Updated Kconfig depends Angus Ainslie (2): usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver configs: get rid of build

Re: [PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
On 2022-07-14 07:54, Marek Vasut wrote: On 7/14/22 16:52, Angus Ainslie wrote: On 2022-07-14 07:31, Marek Vasut wrote: On 7/14/22 16:21, Angus Ainslie wrote: Hi, Hi, Are there any problems with these patches ? I missed them, sigh ... sorry. Can you rebase them on usb/master and resend

Re: [PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
On 2022-07-14 07:31, Marek Vasut wrote: On 7/14/22 16:21, Angus Ainslie wrote: Hi, Hi, Are there any problems with these patches ? I missed them, sigh ... sorry. Can you rebase them on usb/master and resend, so I can pick them up? Sure, could you remind me how to run the CI tests again.

Re: [PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-07-14 Thread Angus Ainslie
Hi, Are there any problems with these patches ? Thanks Angus On 2022-05-30 10:15, Angus Ainslie wrote: Changes since v2: Add a second patch to deal with CI failures due to the new options. Changes since v1: Updated Kconfig depends Angus Ainslie (2): usb: dwc3: add a SPL_USB_DWC3_GENERIC

Re: [PATCH v6] board: purism: add the Purism Librem5 phone

2022-06-30 Thread Angus Ainslie
Hi Stefano, On 2022-06-30 12:09, Stefano Babic wrote: Hi Angus, On 30.06.22 19:30, Angus Ainslie wrote: Hi All, Are there any remaining issues with this patch ? Rather yes, it was supposed that issues with dwc3 was already fixed, maybe another patch is missing - can you check

Re: [PATCH v2 0/2] usb: dwc3: Add support for standalone DWC3 nodes

2022-06-16 Thread Angus Ainslie
bus. Angus Ainslie then asked why this patch was needed as he had submitted the original support for the imx8mq. Looking into the issue it turned out that Angus patch basically let the driver use the `port` subnodes, which are there to define the connection to a type C connector, as DWC3 nodes

Re: [PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-06-14 Thread Angus Ainslie
Did this fix the CI issues now ? On 2022-05-30 10:15, Angus Ainslie wrote: Changes since v2: Add a second patch to deal with CI failures due to the new options. Changes since v1: Updated Kconfig depends Angus Ainslie (2): usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

[PATCH v6] board: purism: add the Purism Librem5 phone

2022-05-31 Thread Angus Ainslie
functions Changes since v1: Merged patches into a monolithic board patch Using DM drivers for devices in u-boot Added USB storage support for uSD rootfs Dropped many SPL_BUILD guarded define's Fixed documentation index Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off

[PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-05-30 Thread Angus Ainslie
Changes since v2: Add a second patch to deal with CI failures due to the new options. Changes since v1: Updated Kconfig depends Angus Ainslie (2): usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC configs

[PATCH v3 2/2] configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC

2022-05-30 Thread Angus Ainslie
Adding the SPL_USB_DWC3_GENERIC symbol broke some ti builds. This should fix the builds but untested on HW. Signed-off-by: Angus Ainslie --- configs/am43xx_evm_defconfig | 2 ++ configs/am43xx_evm_usbhost_boot_defconfig | 2 ++ configs/am43xx_hs_evm_defconfig | 2

[PATCH v3 1/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-05-30 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index

Re: [PATCH v5] board: purism: add the Purism Librem5 phone

2022-05-24 Thread Angus Ainslie
On 2022-05-24 08:10, Tom Rini wrote: On Tue, May 24, 2022 at 07:15:01AM -0700, Angus Ainslie wrote: Hi Stefano, On 2022-05-23 02:36, Stefano Babic wrote: > On 06.05.22 14:44, Angus Ainslie wrote: > > Initial commit of Librem5 u-boot and SPL > > > > Signed-off-by:

Re: [PATCH v5] board: purism: add the Purism Librem5 phone

2022-05-24 Thread Angus Ainslie
Hi Stefano, On 2022-05-23 02:36, Stefano Babic wrote: On 06.05.22 14:44, Angus Ainslie wrote: Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak --- Hi Angus, with "configs: ge

[PATCH] configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC

2022-05-20 Thread Angus Ainslie
Adding the SPL_USB_DWC3_GENERIC symbol broke some ti builds. This should fix the builds but untested on HW. Signed-off-by: Angus Ainslie --- configs/am43xx_evm_defconfig | 2 ++ configs/am43xx_evm_usbhost_boot_defconfig | 2 ++ configs/am43xx_hs_evm_defconfig | 2

Re: [PATCH v2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-05-20 Thread Angus Ainslie
On 2022-05-20 05:31, Stefano Babic wrote: On 20.05.22 12:21, Marek Vasut wrote: On 5/20/22 11:08, Stefano Babic wrote: Hi Marek, don't you mind if I apply to my u-booz-imx this (that really belongs to your competence area) ? It fixes warnings for the librem5, and it is a pity if I cannot

[PATCH v5] board: purism: add the Purism Librem5 phone

2022-05-06 Thread Angus Ainslie
Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak --- All of the pre-requisite patches for this board are now upstream or in review. Changes since v4: Include imx8mq-u-boot.dtsi instead

[PATCH v4] board: purism: add the Purism Librem5 phone

2022-04-25 Thread Angus Ainslie
Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak --- All of the pre-requisite patches for this board are now upstream or in review. Changes since v3: Dropped unused MMCROOT Rebased on u-boot

[PATCH v2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-04-24 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- Changes since v1: Updated Kconfig depends drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3

Re: [PATCH v3] board: purism: add the Purism Librem5 phone

2022-04-22 Thread Angus Ainslie
On 2022-04-22 02:15, Stefano Babic wrote: Hi Angus, On 20.04.22 20:13, Angus Ainslie wrote: Initial commit of Librem5 u-boot and SPL [snip] After merging a patch on dwc3, build reports some warnings (functions defined and not used). Could you fix them ? This patch should silence

[PATCH] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-04-22 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index

Re: [PATCH] spl: spl_sdp: don't call board_usb_init twice

2022-04-20 Thread Angus Ainslie
Hi On 2022-01-17 06:11, Angus Ainslie wrote: When CONFIG_DM_USB is not defined then usb_gadget_initialize is just a call to board_usb_init. Calling board_usb_init twice causes the USB to fail so make sure the second invocation is not compiled in when CONFIG_DM_USB is not defined. Signed-off

Re: [PATCH v3] drivers: spi-nor: Add JEDEC id for W25Q16JV

2022-04-20 Thread Angus Ainslie
Hi Jagan, [snip] On 2022-01-20 06:39, Jagan Teki wrote: Okay, I'm merging v3. let me know if you have any questions? I didn't see this go in yet. Should it be in u-boot master ? Thanks Angus Thanks, Jagan.

Re: [PATCH v2] board: purism: add the Purism Librem5 phone

2022-04-20 Thread Angus Ainslie
Hi Stefano, On 2022-04-11 09:21, Stefano Babic wrote: Hi Angus, build is not started after merging your board. It is checked that symbols (CONFIG_) defined in Kbuild are not sert in header file, that is include/configs/librem5.h. I can recognize several of them, like CONFIG_SYS_MALLOC_F_LEN,

[PATCH v3] board: purism: add the Purism Librem5 phone

2022-04-20 Thread Angus Ainslie
Initial commit of Librem5 u-boot and SPL Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off-by: Sebastian Krzyszkowiak --- All of the pre-requisite patches for this board are now upstream or in review. Changes since v2: Cleanup Kconfig symbols used in librem5.h

Re: [PATCH] usb: dwc3-generic: Fix the iMX8MQ support

2022-04-19 Thread Angus Ainslie
Hi Alban, On 2022-04-19 01:07, Alban Bedel wrote: The binding of iMX8MQ USB controller doesn't use child nodes like the other devices supported in this driver. To support it split the child nodes parsing to its own function and add a field to the platform data to indicate that we should just

Re: [PATCH 07/10] dm: core: Allow devres to be disabled in SPL

2022-04-12 Thread Angus Ainslie
On 2022-03-27 13:26, Simon Glass wrote: At present if devres is enabled in U-Boot proper it is enabled in SPL. We don't normally want it there, so disable it. Signed-off-by: Simon Glass Tested-by: Angus Ainslie --- drivers/core/Makefile| 2 +- drivers/core/device.c| 2

Re: [PATCH v6 0/3] Add a clock driver for the imx8mq

2022-03-29 Thread Angus Ainslie
Please ignore. I introduced some unused variables. v7 sent. Angus On 2022-03-29 06:52, Angus Ainslie wrote: This is a DM clock driver for the imx8mq based on the linux kernel driver and the u-boot imx8mm clock driver. It also removes some code duplication in the imx8m[nmp] clock drivers

[PATCH v7 3/3] clk: imx8m: reduce rate table duplication

2022-03-29 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie Tested-by: Adam Ford #imx8mm-beacon --- drivers/clk/imx/clk-imx8

[PATCH v7 2/3] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-29 Thread Angus Ainslie
) DRAM Signed-off-by: Angus Ainslie Acked-by: Sean Anderson --- drivers/clk/imx/Kconfig | 18 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 550 +++ 3 files changed, 570 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mq.c

[PATCH v7 1/3] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-29 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/

[PATCH v7 0/3] Add a clock driver for the imx8mq

2022-03-29 Thread Angus Ainslie
/ Angus Ainslie (3): dt-bindings: imx8mq-clock: add mainline definitions clk: imx8mq: Add a clock driver for the imx8mq clk: imx8m: reduce rate table duplication drivers/clk/imx/Kconfig | 18 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mm.c

[PATCH v6 3/3] clk: imx8m: reduce rate table duplication

2022-03-29 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie Tested-by: Adam Ford #imx8mm-beacon --- drivers/clk/imx/clk-imx8

[PATCH v6 2/3] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-29 Thread Angus Ainslie
) DRAM Signed-off-by: Angus Ainslie Acked-by: Sean Anderson --- drivers/clk/imx/Kconfig | 18 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 552 +++ 3 files changed, 572 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mq.c

[PATCH v6 1/3] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-29 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/

[PATCH v6 0/3] Add a clock driver for the imx8mq

2022-03-29 Thread Angus Ainslie
a common clk-imx8m Changes since v1: More verbose clock driver description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel [1] https://patchwork.ozlabs.org/project/uboot/patch/20220320203446.740178-2-sean...@gmail.com/ Angus Ainslie (3): dt-bindings: imx8mq-clock: add

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-24 Thread Angus Ainslie
Hi Heiko, On 2022-03-24 01:28, Heiko Thiery wrote: Hi Angus, could you include the UART clocks? Sure I can add the UART clocks. We've also found an issue with devfreq using the current setup so it might be a few days before I send an update. Angus

Re: [PATCH v5 3/3] clk: imx8m: reduce rate table duplication

2022-03-22 Thread Angus Ainslie
On 2022-03-22 06:49, Adam Ford wrote: On Tue, Mar 22, 2022 at 8:02 AM Angus Ainslie wrote: Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") I did a clk dump before t

[PATCH v5 3/3] clk: imx8m: reduce rate table duplication

2022-03-22 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie --- drivers/clk/imx/clk-imx8mm.c | 60 +++- drivers/clk/imx/cl

[PATCH v5 2/3] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-22 Thread Angus Ainslie
) DRAM Signed-off-by: Angus Ainslie Acked-by: Sean Anderson --- drivers/clk/imx/Kconfig | 18 ++ drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 487 +++ 3 files changed, 507 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mq.c

[PATCH v5 1/3] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-22 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/

[PATCH v5 0/3] Add a clock driver for the imx8mq

2022-03-22 Thread Angus Ainslie
description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel [1] https://patchwork.ozlabs.org/project/uboot/patch/20220320203446.740178-2-sean...@gmail.com/ Angus Ainslie (3): dt-bindings: imx8mq-clock: add mainline definitions clk: imx8mq: Add a clock driver for the imx8mq

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-22 Thread Angus Ainslie
On 2022-03-21 06:50, Heiko Thiery wrote: Hi Angus, [snip] > So I'm not sure if the ipg clock is the right one for the boards that > has different clock for ipg and per. So I only looked at imx6qdl.dtsi where the clocks are different clocks = < IMX6QDL_CLK_UART_IPG>, <

Re: [PATCH v2] core: devres: optionally build devres into the SPL

2022-03-19 Thread Angus Ainslie
On 2022-03-19 07:15, Angus Ainslie wrote: Hi Simon, On 2022-03-18 15:41, Simon Glass wrote: Hi Angus, On Tue, 1 Mar 2022 at 07:58, Simon Glass wrote: On Mon, 28 Feb 2022 at 13:33, Angus Ainslie wrote: > > Add a CONFIG_SPL_DEVRES option > > Signed-off-by: Angus Ainslie >

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-19 Thread Angus Ainslie
On 2022-03-18 12:06, Heiko Thiery wrote: Hi Angus, Am Do., 17. März 2022 um 14:19 Uhr schrieb Angus Ainslie : Hi Heiko, On 2022-03-17 05:41, Heiko Thiery wrote: > With the clock driver enabled for the imx8mq, it was noticed that the > frequency used to calculate the baud rate is

Re: [PATCH v2] core: devres: optionally build devres into the SPL

2022-03-19 Thread Angus Ainslie
Hi Simon, On 2022-03-18 15:41, Simon Glass wrote: Hi Angus, On Tue, 1 Mar 2022 at 07:58, Simon Glass wrote: On Mon, 28 Feb 2022 at 13:33, Angus Ainslie wrote: > > Add a CONFIG_SPL_DEVRES option > > Signed-off-by: Angus Ainslie > --- > > Changes since v1: > > Ins

Re: [RFC] serial: mxc: get the clock frequency from the used clock for the device

2022-03-17 Thread Angus Ainslie
Hi Heiko, On 2022-03-17 05:41, Heiko Thiery wrote: With the clock driver enabled for the imx8mq, it was noticed that the frequency used to calculate the baud rate is always taken from the root clock of UART1. This can cause problems if UART1 is not used as console and the settings are different

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-16 Thread Angus Ainslie
Hi Heiko, On 2022-03-16 08:55, Heiko Thiery wrote: Hi Angus, [snip] > > But then something went wrong when probing uart3 ... the baudrate > > switched for the uart2 (console) and the serial output became broken. > > Later when the kernel starts the output becomes correct again. So the > >

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-16 Thread Angus Ainslie
On 2022-03-16 07:02, Heiko Thiery wrote: Hi Angus, [snip] > > Meanwhile I figured out what the problem is with the 'No serial driver > found'. In the used dtb there are 'assigned-clocks' and > 'assigned-clock-parents' set in the uart nodes. When removing this the > serial will work. I have to

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-16 Thread Angus Ainslie
On 2022-03-16 05:26, Heiko Thiery wrote: Hi, Am Mi., 16. März 2022 um 08:14 Uhr schrieb Heiko Thiery : Hi Angus, Am Di., 15. März 2022 um 16:46 Uhr schrieb Angus Ainslie : > > Hi Heiko, > > On 2022-03-15 08:35, Heiko Thiery wrote: > > Hi Angus and all, > > > >

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-15 Thread Angus Ainslie
On 2022-03-15 08:46, Angus Ainslie wrote: Hi Heiko, On 2022-03-15 08:35, Heiko Thiery wrote: Hi Angus and all, Am Di., 15. März 2022 um 14:09 Uhr schrieb Angus Ainslie : This is a DM clock driver based off the imx8mm u-boot driver and the linux kernel driver. All

Re: [PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-15 Thread Angus Ainslie
Hi Heiko, On 2022-03-15 08:35, Heiko Thiery wrote: Hi Angus and all, Am Di., 15. März 2022 um 14:09 Uhr schrieb Angus Ainslie : This is a DM clock driver based off the imx8mm u-boot driver and the linux kernel driver. All of the PLLs and clocks are initialized so

[PATCH v4 4/4] clk: imx8m: remove code duplication

2022-03-15 Thread Angus Ainslie
All of the imx8m[nmpq] use the same clk_ops functions so move them to a common file. Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut --- drivers/clk/imx/Makefile | 8 +-- drivers/clk/imx/clk-imx8m.c | 108 +++ drivers/clk/imx/clk-imx8m.h | 12

[PATCH v4 3/4] clk: imx8m: reduce rate table duplication

2022-03-15 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie --- drivers/clk/imx/clk-imx8mm.c | 60 +++- drivers/clk/imx/cl

[PATCH v4 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-15 Thread Angus Ainslie
) DRAM Signed-off-by: Angus Ainslie --- drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 575 +++ 3 files changed, 593 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mq.c diff --git a/drivers/clk

[PATCH v4 1/4] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-15 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie Reviewed-by: Marek Vasut --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/

[PATCH v4 0/4] Add a clock driver for the imx8mq

2022-03-15 Thread Angus Ainslie
: Added kernel commit IDs Re-factored rate table code to remove duplication Remove duplicate code by creating a common clk-imx8m Changes since v1: More verbose clock driver description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel Angus Ainslie (4): dt-bindings: imx8mq

Re: [PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Angus Ainslie
On 2022-03-14 11:57, Marek Vasut wrote: On 3/14/22 19:22, Angus Ainslie wrote: Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie

[PATCH v3 4/4] clk: imx8m: remove code duplication

2022-03-14 Thread Angus Ainslie
All of the imx8m[nmpq] use the same clk_ops functions so move them to a common file. Signed-off-by: Angus Ainslie --- drivers/clk/imx/Makefile | 8 +-- drivers/clk/imx/clk-imx8m.c | 108 +++ drivers/clk/imx/clk-imx8m.h | 12 drivers/clk/imx/clk

[PATCH v3 2/4] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-14 Thread Angus Ainslie
) DRAM Signed-off-by: Angus Ainslie --- drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 575 +++ 3 files changed, 593 insertions(+) create mode 100644 drivers/clk/imx/clk-imx8mq.c diff --git a/drivers/clk

[PATCH v3 3/4] clk: imx8m: reduce rate table duplication

2022-03-14 Thread Angus Ainslie
Re-factor the imx8m[nmpq] rate tables into the common pll1416x clock driver. 43cdaa1567ad3 ("clk: imx8mm: Move 1443X/1416X PLL clock structure to common place") Signed-off-by: Angus Ainslie --- drivers/clk/imx/clk-imx8mm.c | 60 +++- drivers/clk/imx/cl

[PATCH v3 1/4] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-14 Thread Angus Ainslie
Sync the clock ids with the mainline kernel 077de6e1c9f ("clk: imx8mq: add PLL monitor output") Signed-off-by: Angus Ainslie --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/cl

[PATCH v3 0/4] Add a clock driver for the imx8mq

2022-03-14 Thread Angus Ainslie
by creating a common clk-imx8m Changes since v1: More verbose clock driver description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel Angus Ainslie (4): dt-bindings: imx8mq-clock: add mainline definitions clk: imx8mq: Add a clock driver for the imx8mq clk: imx8m

Re: [PATCH v2 2/2] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
On 2022-03-11 11:19, Marek Vasut wrote: On 3/11/22 19:41, Angus Ainslie wrote: On 2022-03-11 10:05, Marek Vasut wrote: On 3/11/22 18:02, Angus Ainslie wrote: On 2022-03-11 08:57, Marek Vasut wrote: On 3/11/22 17:35, Angus Ainslie wrote: All of the PLLs and clocks are initialized so

Re: [PATCH v2 2/2] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
On 2022-03-11 10:05, Marek Vasut wrote: On 3/11/22 18:02, Angus Ainslie wrote: On 2022-03-11 08:57, Marek Vasut wrote: On 3/11/22 17:35, Angus Ainslie wrote: All of the PLLs and clocks are initialized so the subsystems below are functional and tested. 1) USB host and peripheral 2) ECSPI 3

[PATCH v2] board: purism: add the Purism Librem5 phone

2022-03-11 Thread Angus Ainslie
Initial commit of Librem5 phone u-boot and SPL Using this u-boot the phone can boot from eMMC or USB via SDP. USB host is also active so the kernel can be loaded from USB storage or one of the boot methods above. Signed-off-by: Angus Ainslie Co-developed-by: Sebastian Krzyszkowiak Signed-off

Re: [PATCH v2 2/2] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
On 2022-03-11 08:57, Marek Vasut wrote: On 3/11/22 17:35, Angus Ainslie wrote: This is a DM clock drvier based off the imx8mm u-boot driver and the linux kernel driver. s@drvier@driver@ Thanks All of the PLLs and clocks are initialized so the subsystems below are functional and tested. 1

[PATCH v2 2/2] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
) DRAM The PLL rate tables are from the kernel https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=43cdaa1567ad3931fbde438853947d45238cc040 Signed-off-by: Angus Ainslie --- drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk

[PATCH v2 0/2] Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
This is a DM clock driver for the imx8mq based on the linux kernel driver and the u-boot imx8mm clock driver. Changes since v1: More verbose clock driver description Added forgotten dt-bindings Synced PLL frequencies with mainline kernel Angus Ainslie (2): dt-bindings: imx8mq-clock: add

[PATCH v2 1/2] dt-bindings: imx8mq-clock: add mainline definitions

2022-03-11 Thread Angus Ainslie
Sync the clock ids with the mainline kernel Signed-off-by: Angus Ainslie --- include/dt-bindings/clock/imx8mq-clock.h | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/imx8mq-clock.h b/include/dt-bindings/clock/imx8mq-clock.h index

Re: [PATCH] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-11 Thread Angus Ainslie
On 2022-03-11 02:18, Marek Vasut wrote: On 3/11/22 01:53, Angus Ainslie wrote: Based off the imx8mm u-boot driver and the linux kernel driver What does this patch do again ? (it is impossible to tell from the one-line commit message above unless you have it back-to-back with Subject). Also

[PATCH] clk: imx8mq: Add a clock driver for the imx8mq

2022-03-10 Thread Angus Ainslie
Based off the imx8mm u-boot driver and the linux kernel driver Signed-off-by: Angus Ainslie --- drivers/clk/imx/Kconfig | 16 + drivers/clk/imx/Makefile | 2 + drivers/clk/imx/clk-imx8mq.c | 593 +++ 3 files changed, 611 insertions(+) create mode

[PATCH v2] core: devres: optionally build devres into the SPL

2022-02-28 Thread Angus Ainslie
Add a CONFIG_SPL_DEVRES option Signed-off-by: Angus Ainslie --- Changes since v1: Instead of gaurding the source add an SPL_DEVRES option drivers/core/Kconfig | 13 + drivers/core/Makefile | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/core

Re: [PATCH] core: devres: don't use devres code when CONFIG_DEVRES is not defined

2022-02-21 Thread Angus Ainslie
Hi Simon, On 2022-02-19 14:12, Simon Glass wrote: On Wed, 2 Feb 2022 at 16:16, Angus Ainslie wrote: Put guards around the devres code so that it isn't compiled during the SPL. Signed-off-by: Angus Ainslie --- drivers/core/devres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks

2022-02-15 Thread Angus Ainslie
On 2022-02-15 08:45, Marek Vasut wrote: On 2/15/22 15:55, Angus Ainslie wrote: On 2022-02-15 00:01, Marek Vasut wrote: On 2/15/22 01:51, Angus Ainslie wrote: On 2022-02-14 16:25, Marek Vasut wrote: On 2/14/22 21:51, Angus Ainslie wrote: Enable the clocks for spi buses 1 through 3 Signed

Re: [PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks

2022-02-15 Thread Angus Ainslie
On 2022-02-15 00:01, Marek Vasut wrote: On 2/15/22 01:51, Angus Ainslie wrote: On 2022-02-14 16:25, Marek Vasut wrote: On 2/14/22 21:51, Angus Ainslie wrote: Enable the clocks for spi buses 1 through 3 Signed-off-by: Angus Ainslie --- Changes since v1: added MXC_CSPI_CLK

Re: [PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks

2022-02-14 Thread Angus Ainslie
Hi Marek, On 2022-02-14 16:25, Marek Vasut wrote: On 2/14/22 21:51, Angus Ainslie wrote: Enable the clocks for spi buses 1 through 3 Signed-off-by: Angus Ainslie --- Changes since v1: added MXC_CSPI_CLK to ECSPI1_CLK_ROOT mapping arch/arm/include/asm/arch-imx8m/imx-regs.h | 9

[PATCH v2] imx8m: clock_imx8mq: Add the ecspi clocks

2022-02-14 Thread Angus Ainslie
Enable the clocks for spi buses 1 through 3 Signed-off-by: Angus Ainslie --- Changes since v1: added MXC_CSPI_CLK to ECSPI1_CLK_ROOT mapping arch/arm/include/asm/arch-imx8m/imx-regs.h | 9 + arch/arm/mach-imx/imx8m/clock_imx8mq.c | 40 ++ 2 files changed, 49

[PATCH] phy: phy-uclass: check the parents for phys

2022-02-03 Thread Angus Ainslie
The port/hub leaf nodes don't contain the phy definitions in some dts files so check the parents. Signed-off-by: Angus Ainslie --- drivers/phy/phy-uclass.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy

[PATCH] core: devres: don't use devres code when CONFIG_DEVRES is not defined

2022-02-02 Thread Angus Ainslie
Put guards around the devres code so that it isn't compiled during the SPL. Signed-off-by: Angus Ainslie --- drivers/core/devres.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/core/devres.c b/drivers/core/devres.c index 313ddc7089..92a237c64c 100644

[PATCH 1/2] usb: dwc3: dwc3-generic: check the parent nodes

2022-02-02 Thread Angus Ainslie
#size-cells = <0>; mass-storage@1 { compatible = "usb424,4041"; reg = <1>; }; }; }; Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/dwc3-generic.c | 25 - 1 file change

[PATCH 2/2] usb: dwc3: core: stop the core when it's removed

2022-02-02 Thread Angus Ainslie
If u-boot doesn't stop the core when it's finished with it then linux can't find it. Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index ce1c0e88c2..b592a487e0 100644

[PATCH 0/2] Fixes for the dwc3 driver

2022-02-02 Thread Angus Ainslie
dwc3 driver fixes to work better with the linux kernel. Angus Ainslie (2): usb: dwc3: dwc3-generic: check the parent nodes usb: dwc3: core: stop the core when it's removed drivers/usb/dwc3/core.c | 9 + drivers/usb/dwc3/dwc3-generic.c | 25 - 2 files

[PATCH] mach-imx: iomux-v3: add a define for the SION bit

2022-02-02 Thread Angus Ainslie
SION (Software Input On Field) - force the select mode input path Signed-off-by: Angus Ainslie --- arch/arm/include/asm/mach-imx/iomux-v3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index 9330a32fe9

  1   2   >