[PATCH] rtc: add ds1672 driver

2025-06-02 Thread Tim Harvey
Add support for Dallas/Maxim ds1672 32bit counter RTC. Signed-off-by: Tim Harvey --- drivers/rtc/Kconfig | 7 +++ drivers/rtc/Makefile | 1 + drivers/rtc/ds1672.c | 117 +++ 3 files changed, 125 insertions(+) create mode 100644 drivers/rtc/ds1672.c

Re: [PATCH v2] caam: bugfix CAAM error on startup

2025-05-30 Thread Tim Harvey
On Fri, May 30, 2025 at 5:13 AM Fabio Estevam wrote: > > On Fri, May 30, 2025 at 9:09 AM Fabio Estevam wrote: > > > u-boot=> rng 0 10 > > Reading RNG failed > > u-boot=> rng 0 10 > > : 27 42 f0 b8 92 c8 ca 29 6f 6a c3 98 ff 61 2b ae 'B.)oj...a+. > > u-boot=> rng 0 10 > > : 48

[PATCH v2 1/5] net: lwip: call sys_check_timeouts and schedule on rx

2025-05-30 Thread Tim Harvey
. Suggested-by: Jerome Forissier Signed-off-by: Tim Harvey --- v2: - remove duplication of sys_check_timeouts() from functions that call net_lwip_rx() --- net/lwip/dhcp.c | 1 - net/lwip/dns.c | 1 - net/lwip/net-lwip.c | 7 +++ net/lwip/ping.c | 1 - net/lwip/tftp.c | 1 - net

[PATCH v2 2/5] net: lwip: enable IP_FRAG and IP_REASSEMBLY

2025-05-30 Thread Tim Harvey
Enable IP_FRAG and IP_REASSEMBLY to allow packets larger than MTU. Signed-off-by: Tim Harvey Reviewed-by: Jerome Forissier --- v2: - added tags --- lib/lwip/u-boot/lwipopts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwip/u-boot/lwipopts.h b/lib/lwip/u-boot

Re: [PATCH 0/3] sntp for NET_LWIP

2025-05-30 Thread Tim Harvey
| 23 +- > 11 files changed, 195 insertions(+), 26 deletions(-) > create mode 100644 net/lwip/sntp.c > Hi Jerome, Thanks for the continued work on lwIP! For the series: Reviewed-by: Tim Harvey Note that if this is merged before my series we'll want to have a followup

[PATCH v2 5/5] net: lwip: wget: initialize dns if a hostname is used in a URL

2025-05-30 Thread Tim Harvey
Initialize dns servers if a hostname (vs ipaddr) is used in a URL. Otherwise the wget will fail without displaying an error due to dns_gethostbyname failing silently when no DNS servers are set unless you have previously performed a 'dns ' command. Signed-off-by: Tim Harvey Acked-

[PATCH v2 4/5] net: lwip: move dns init to common function

2025-05-30 Thread Tim Harvey
move the dns init including setting the dns servers from env vars to a common function as other commands that support hostname lookups will need this. Signed-off-by: Tim Harvey Reviewed-by: Jerome Forissier --- v2: - added tags --- include/net-lwip.h | 1 + net/lwip/dns.c | 20

[PATCH v2 3/5] net: lwip: tftp: add support for setting blocksize at runtime

2025-05-30 Thread Tim Harvey
Add support for setting the blocksize at runtime via the tftpblocksize env variable as such is done with the legacy stack (CONFIG_NET). Signed-off-by: Tim Harvey Reviewed-by: Jerome Forissier --- v2: - added tags --- net/lwip/tftp.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion

Re: [PATCH 6/6] net: lwip: wget: use loadaddr env var for default address

2025-05-30 Thread Tim Harvey
On Fri, May 30, 2025 at 1:03 AM Jerome Forissier wrote: > > > > On 5/29/25 23:49, Tim Harvey wrote: > > The loadAddress is optional and defaults to image_load_address > > which should be initialized to the 'loadaddr' env variable like the > > legacy stack

[PATCH 6/6] net: lwip: wget: use loadaddr env var for default address

2025-05-29 Thread Tim Harvey
The loadAddress is optional and defaults to image_load_address which should be initialized to the 'loadaddr' env variable like the legacy stack (CONFIG_NET) does. Signed-off-by: Tim Harvey --- net/lwip/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/lwi

[PATCH 5/6] net: lwip: wget: initialize dns if a hostname is used in a URL

2025-05-29 Thread Tim Harvey
Initialize dns servers if a hostname (vs ipaddr) is used in a URL. Otherwise the wget will fail without displaying an error due to dns_gethostbyname failing silently when no DNS servers are set unless you have previously performed a 'dns ' command. Signed-off-by: Tim Harvey --- net/l

[PATCH 4/6] net: lwip: move dns init to common function

2025-05-29 Thread Tim Harvey
move the dns init including setting the dns servers from env vars to a common function as other commands that support hostname lookups will need this. Signed-off-by: Tim Harvey --- include/net-lwip.h | 1 + net/lwip/dns.c | 20 +--- net/lwip/net-lwip.c | 30

[PATCH 3/6] net: lwip: tftp: add support for setting blocksize at runtime

2025-05-29 Thread Tim Harvey
Add support for setting the blocksize at runtime via the tftpblocksize env variable as such is done with the legacy stack (CONFIG_NET). Signed-off-by: Tim Harvey --- net/lwip/tftp.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/lwip/tftp.c b/net/lwip/tftp.c index

[PATCH 1/6] net: lwip: call sys_check_timeouts and schedule on rx

2025-05-29 Thread Tim Harvey
Call sys_check_timeouts to service lwIP timers and schedule to service U-Boot tasks and actions during packet rx. This resolves the issue of an active watchdog resetting the board on long network activities. Suggested-by: Jerome Forissier Signed-off-by: Tim Harvey --- net/lwip/net-lwip.c | 7

[PATCH 2/6] net: lwip: enable IP_FRAG and IP_REASSEMBLY

2025-05-29 Thread Tim Harvey
Enable IP_FRAG and IP_REASSEMBLY to allow packets larger than MTU. Signed-off-by: Tim Harvey --- lib/lwip/u-boot/lwipopts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwip/u-boot/lwipopts.h b/lib/lwip/u-boot/lwipopts.h index edac74ff7a21..1818a445dc5e 100644

Re: [PATCH v2] caam: bugfix CAAM error on startup

2025-05-29 Thread Tim Harvey
On Tue, May 20, 2025 at 5:29 AM Olaf Baehring wrote: > > In rare cases U-Boot returns an error message when intantiating the RNG > of the CAAM device: > “SEC0: RNG4 SH0 instantiation failed with error 0x” > This means, that even when the CAAM device reports a finished > descriptor, none

Re: lwip tftp not working on imx8mm

2025-05-28 Thread Tim Harvey
On Wed, May 28, 2025 at 10:23 AM Peter Robinson wrote: > > On Wed, 28 May 2025 at 17:59, Tim Harvey wrote: > > > > On Wed, May 28, 2025 at 5:24 AM Jerome Forissier > > wrote: > > > > > > > > > > > > On 5/27/25 18:35, Tim Harvey wro

Re: lwip tftp not working on imx8mm

2025-05-28 Thread Tim Harvey
On Wed, May 28, 2025 at 5:24 AM Jerome Forissier wrote: > > > > On 5/27/25 18:35, Tim Harvey wrote: > > On Mon, May 26, 2025 at 5:17 AM Jerome Forissier > > wrote: > >> > >> Hi Tim, > >> > >> On 5/23/25 20:31, Tim Harvey wrote: > &

Re: lwIP watchdog not being serviced

2025-05-28 Thread Tim Harvey
On Wed, May 28, 2025 at 12:57 AM Jerome Forissier wrote: > > Hi Tim, > > On 5/27/25 21:07, Tim Harvey wrote: > > Hi Jerome, > > > > In my continued evaluation to see if I want to switch my boards over > > to use lwIP I've noticed that the watchdog does

lwIP watchdog not being serviced

2025-05-27 Thread Tim Harvey
Hi Jerome, In my continued evaluation to see if I want to switch my boards over to use lwIP I've noticed that the watchdog does not get serviced during at least http/tftp which surprised me. This causes board resets when transferring large files such as disk images. It seems lwIP is missing some

Re: lwip tftp not working on imx8mm

2025-05-27 Thread Tim Harvey
On Mon, May 26, 2025 at 6:25 AM Peter Robinson wrote: > > Hi Tim, > > > I've enabled LWIP on imx8mm_venice to see how it's doing and while > > dhcp/dns/ping/wget appear to work great, tftp is broken. > > > > Enabling LWIP_DEBUG shows the following: > > ip4_input: packet accepted on interface et >

Re: lwip tftp not working on imx8mm

2025-05-27 Thread Tim Harvey
On Mon, May 26, 2025 at 5:17 AM Jerome Forissier wrote: > > Hi Tim, > > On 5/23/25 20:31, Tim Harvey wrote: > > Hi Jerome, > > > > I've enabled LWIP on imx8mm_venice to see how it's doing and while > > dhcp/dns/ping/wget appear to work great, tftp is

lwip tftp not working on imx8mm

2025-05-23 Thread Tim Harvey
Hi Jerome, I've enabled LWIP on imx8mm_venice to see how it's doing and while dhcp/dns/ping/wget appear to work great, tftp is broken. Enabling LWIP_DEBUG shows the following: ip4_input: packet accepted on interface et IP packet dropped since it was fragmented (0x2000) (while IP_REASSEMBLY == 0).

[PATCH 12/13] board: venice: append configuration string to model

2025-05-23 Thread Tim Harvey
Append the optional board configuration string to the model info. Signed-off-by: Tim Harvey --- board/gateworks/venice/eeprom.c | 9 + board/gateworks/venice/eeprom.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/board/gateworks/venice/eeprom.c b/board/gateworks

[PATCH 11/13] board: venice: update model representation for venice-flex

2025-05-23 Thread Tim Harvey
Update the model string representation for the Venice-Flex product family (GW8xxx). Signed-off-by: Tim Harvey --- board/gateworks/venice/eeprom.c | 104 +++- 1 file changed, 102 insertions(+), 2 deletions(-) diff --git a/board/gateworks/venice/eeprom.c b/board

[PATCH 13/13] imx8mp-venice-gw74xx: add w_disable2 gpio configuration

2025-05-23 Thread Tim Harvey
The GW74xx D revision has added a M2SKT_WDIS2# GPIO which routes to the W_DISABLE2# pin of the M.2 socket. Add the iomux and a line name for this and rename the existing m2_wdis# signal to m2_wdis1#. Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi | 11

[PATCH 10/13] board: venice: add FSA support

2025-05-23 Thread Tim Harvey
expander can not be used. This also requires livetree as the gpio expander node if not present must be disabled. Signed-off-by: Tim Harvey --- board/gateworks/fsa.c | 736 board/gateworks/fsa.h | 51 +++ board/gateworks/venice/Makefile |

[PATCH 08/13] board: venice: flip logic for GSC supervisor enable

2025-05-23 Thread Tim Harvey
Flip the logic used to determine if a board has the proper hardware to support enabling the GSC voltage supervisor so that we do not need to keep adding new models to the list. Signed-off-by: Tim Harvey --- board/gateworks/venice/spl.c | 18 ++ 1 file changed, 10 insertions

[PATCH 09/13] board: venice: add imx8mp-gw82xx support

2025-05-23 Thread Tim Harvey
- magnetometer - off-board connectors for: SPI, GPIO, I2C, ADC - Wide range DC power input - support for 802.3at PoE (via adapter) Add support for it by providing its device-tree. Signed-off-by: Tim Harvey --- .../dts/imx8mp-venice-gw82xx-2x-u-boot.dtsi | 49 +++ configs

[PATCH 04/13] board: venice: fix dram bus config for GW7902/GW7903/GW7904

2025-05-23 Thread Tim Harvey
bus layout. Signed-off-by: Tim Harvey --- board/gateworks/venice/lpddr4_timing_imx8mm.c | 46 +-- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/board/gateworks/venice/lpddr4_timing_imx8mm.c b/board/gateworks/venice/lpddr4_timing_imx8mm.c index 39e4e46490fd

[PATCH 06/13] board: venice: use baseboard model for family

2025-05-23 Thread Tim Harvey
The venice family of baseboards which is normally GW7xxx is being expanded to GW8xxx so we need to use the baseboard number instead of the som. Signed-off-by: Tim Harvey --- board/gateworks/venice/eeprom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks

[PATCH 03/13] board: venice: move soc-specific dram config into soc-specific files

2025-05-23 Thread Tim Harvey
Move the determination of the dram timings into the soc-specific files. Signed-off-by: Tim Harvey --- board/gateworks/venice/lpddr4_timing.h| 14 +-- board/gateworks/venice/lpddr4_timing_imx8mm.c | 57 board/gateworks/venice/lpddr4_timing_imx8mn.c | 31 ++- board

[PATCH 07/13] board: venice: use SOM model for PMIC adjustment on SOM

2025-05-23 Thread Tim Harvey
Use the SOM model to adjust PMIC settings on SOM's. Signed-off-by: Tim Harvey --- board/gateworks/venice/eeprom.c | 7 +++ board/gateworks/venice/eeprom.h | 1 + board/gateworks/venice/spl.c| 6 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/board/gate

[PATCH 05/13] board: venice: fix dram size for GW7901-SP486

2025-05-23 Thread Tim Harvey
The GW7901-SP486 with the exception of the -C revision has 2GB DRAM loaded but incorrectly specifies 1GB in the EEPROM. Adjust the DRAM size to account for this. Signed-off-by: Tim Harvey --- board/gateworks/venice/eeprom.c | 5 + 1 file changed, 5 insertions(+) diff --git a/board

[PATCH 02/13] configs: imx8m*_venice: enable GPT support

2025-05-23 Thread Tim Harvey
Enable support for working with General Partition Tables via the 'gpt' command. Also enable support for generating random UUID's for GPT. See: doc/README.gpt for examples Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 2 ++ configs/imx8mn_venice_defconfig

[PATCH 01/13] configs: imx8m*_venice: enable several commands useful for scripting

2025-05-23 Thread Tim Harvey
enable cat, xxd, and the ability for setexpr to return values in variables which are all useful for scripting. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 3 +++ configs/imx8mn_venice_defconfig | 3 +++ configs/imx8mp_venice_defconfig | 3 +++ 3 files changed, 9 insertions

Re: [PATCH] net: fsl_enetc: fix imdio register calculation

2025-05-06 Thread Tim Harvey
; /* register internal MDIO for debug purposes */ >> > > > if (enetc_read_pcapr_mdio(dev)) { >> > > > priv->imdio.read = enetc_mdio_read; >> > > > priv->imdio.write = enetc_mdio_write; >> > > > - priv->imdio.priv = priv->port_regs + ENETC_PM_IMDIO_BASE; >> > > > + priv->imdio.priv = priv->port_regs + data->reg_offset_mac + >> > > > +ENETC_PM_IMDIO_BASE; >> > > > strlcpy(priv->imdio.name, dev->name, MDIO_NAME_LEN); >> > > > if (!miiphy_get_dev_by_name(priv->imdio.name)) >> > > > mdio_register(&priv->imdio); >> > > >> > >> > Reviewed-by: Vladimir Oltean >> > Tested-by: Vladimir Oltean # LS1028A >> > >> > +Fang Wei to confirm/test for i.MX95. >> >> Hi Alice, >> >> Can you help check this patch on i.MX95? > > > Friendly reminder, are you able to confirm that? > > > BR, > Heiko Hi Heiko, I was able to test this on top of master with an imx95_19x19_evk - enetc (1gb) interface works before and after the patch. Was there something more specific that needs testing? Tested-by: Tim Harvey # imx95_19x19_evk Best Regards, Tim

Re: [PATCH] imx8m: Guard binman nodes with CONFIG_OPTEE

2025-01-16 Thread Tim Harvey
Environment (OP-TEE) and build with TEE=/path/to/tee.bin > > Some images are invalid > make: *** [Makefile:1135: .binman_stamp] Error 103 > > Reported-by: Tim Harvey > Signed-off-by: Fabio Estevam > --- > arch/arm/dts/imx8mm-u-boot.dtsi | 2 ++ > arch/arm/dts/imx8mn-u-boot.

Re: [PATCH v3 1/6] arm: imx8m: add OP-TEE node

2025-01-16 Thread Tim Harvey
On Thu, Jan 16, 2025 at 2:57 PM Fabio Estevam wrote: > > On Thu, Jan 16, 2025 at 7:45 PM Tim Harvey wrote: > > > Hi Yannic, > > > > As I mentioned before, I still don't see how this builds when tee.bin > > is missing because someone isn't using tee?

Re: [PATCH v4 20/20] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-16 Thread Tim Harvey
On Thu, Jan 16, 2025 at 11:42 AM Tim Harvey wrote: > > On Thu, Jan 16, 2025 at 11:38 AM Tim Harvey wrote: > > > > On Wed, Jan 15, 2025 at 5:30 AM Alice Guo wrote: > > > > > > From: Ye Li > > > > > > This patch adds i.MX95 19x19 EVK board

Re: [PATCH v3 1/6] arm: imx8m: add OP-TEE node

2025-01-16 Thread Tim Harvey
On Fri, Jan 10, 2025 at 4:35 AM Yannic Moog wrote: > > Add tee node in SoC u-boot device trees. Use a kconfig entry to specify > load and entry addresses for the op-tee image in the respective > defconfig. > Default IMX8M_OPTEE_LOAD_ADDR is supplied. To keep it simple, the same > addresses are use

Re: [PATCH 13/13] net: fsl_enetc: Update enetc driver to support i.MX95

2025-01-16 Thread Tim Harvey
ff-by: Marek Vasut # Clean up > Signed-off-by: Ye Li > --- Hi Marek and Alice, Reviewed-by: Tim Harvey This is very clean and works for me on the imx95-evk after: - arm64: dts: imx95: add NETC related nodes (upstream linux commit 4511acd9eb3c52efa0252cdd7e6438ab3073bfaa) - arm64: dts: imx

Re: [PATCH v4 20/20] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-16 Thread Tim Harvey
On Thu, Jan 16, 2025 at 11:38 AM Tim Harvey wrote: > > On Wed, Jan 15, 2025 at 5:30 AM Alice Guo wrote: > > > > From: Ye Li > > > > This patch adds i.MX95 19x19 EVK board basic support. > > > > Messaging unit for EdgeLock Secure Enclave, messaging unit

Re: [PATCH v4 20/20] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-16 Thread Tim Harvey
On Wed, Jan 15, 2025 at 5:30 AM Alice Guo wrote: > > From: Ye Li > > This patch adds i.MX95 19x19 EVK board basic support. > > Messaging unit for EdgeLock Secure Enclave, messaging unit for System > Manager, uSDHC for SD Card, gpio, lpuart are supported now. > > Signed-off-by: Ye Li > Signed-off

Re: [PATCH v3 17/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-15 Thread Tim Harvey
On Tue, Jan 14, 2025 at 3:30 PM Marek Vasut wrote: > > On 1/14/25 11:34 PM, Tim Harvey wrote: > > On Thu, Jan 2, 2025 at 10:47 PM Alice Guo wrote: > >> > >> From: Ye Li > >> > >> This patch adds i.MX95 19x19 EVK board basic support. > >>

Re: [PATCH v3 17/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-14 Thread Tim Harvey
On Thu, Jan 2, 2025 at 10:47 PM Alice Guo wrote: > > From: Ye Li > > This patch adds i.MX95 19x19 EVK board basic support. > Hi Alice, Could you add in the commit log what is and/or what is not supported? >From what I see: the following is supported: - gpio - pci - i2c - mmc the following ar

Re: [PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2025-01-02 Thread Tim Harvey
On Thu, Dec 19, 2024 at 6:57 PM Alice Guo wrote: > > From: Ye Li > > This patch adds i.MX95 19x19 EVK board basic support. > > Signed-off-by: Ye Li > Signed-off-by: Alice Guo > Reviewed-by: Peng Fan > --- > arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 224 > ++ > a

Re: [EXT] Re: [PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2024-12-31 Thread Tim Harvey
CAT u-boot-dtb.bin COPY u-boot.bin SYM u-boot.sym MKIMAGE u-boot.img COPYu-boot.dtb MKIMAGE u-boot-dtb.img LDS u-boot-elf.lds LD u-boot.elf BINMAN .binman_stamp OFCHK .config -rw-r--r-- 1 tharvey Tim Harvey 922624 Dec 31 11:08 imx-boot-imx95.bin ^^^

Re: [PATCH v2 16/17] imx95_evk: add i.MX95 19x19 EVK board basic support

2024-12-27 Thread Tim Harvey
On Thu, Dec 19, 2024 at 6:57 PM Alice Guo wrote: > > From: Ye Li > > This patch adds i.MX95 19x19 EVK board basic support. > > Signed-off-by: Ye Li > Signed-off-by: Alice Guo > Reviewed-by: Peng Fan > --- > arch/arm/dts/imx95-19x19-evk-u-boot.dtsi | 224 > ++ > a

[PATCH] board: gateworks: venice: rename GW7905 to GW7500

2024-12-27 Thread Tim Harvey
The GW7905 was renamed to GW7500 before release. Change the various names in the dt files and references. Signed-off-by: Tim Harvey --- ...w7905-0x-u-boot.dtsi => imx8mm-venice-gw75xx-0x-u-boot.dtsi} | 0 ...w7905-2x-u-boot.dtsi => imx8mp-venice-gw75xx-2x-u-boot.dtsi} | 0 board/gat

Re: DT subtree sync for v6.12

2024-12-27 Thread Tim Harvey
On Thu, Dec 26, 2024, 7:17 AM Tom Rini wrote: > > On Tue, Dec 24, 2024 at 12:07:58PM -0600, Tom Rini wrote: > > On Tue, Dec 24, 2024 at 12:54:22PM +0530, Sumit Garg wrote: > > > > > Hi Tom, > > > > > > Do you plan to perform DT subtree sync for v6.12 which seems to be due > > > for some time now?

[PATCH v2] arm: dts: imx8mp-venice-gw7*xx: fix TPM reset

2024-12-18 Thread Tim Harvey
With an IMX8MP based SOM the SPI RST is gpio4_9 instead of gpio1_11. Fix this. Signed-off-by: Tim Harvey --- v2: include additional boards affected by this --- arch/arm/dts/imx8mp-venice-gw71xx-2x-u-boot.dtsi | 16 +++- arch/arm/dts/imx8mp-venice-gw72xx-2x-u-boot.dtsi | 16

[PATCH] arm: dts: imx8mp-venice-gw72xx: fix TPM device

2024-12-18 Thread Tim Harvey
With an IMX8MP based SOM the SPI RST is gpio4_9 instead of gpio1_11. Fix this. Fixes: c0689191f120 arm: dts: imx8mp-venice-gw72xx: add TPM device Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw72xx-2x-u-boot.dtsi | 16 +++- 1 file changed, 7 insertions(+), 9 deletions

[PATCH] imx8m*-venice: define suitable address for SPL_LOAD_FIT_ADDRESS

2024-12-18 Thread Tim Harvey
define a suitable default address for CONFIG_SPL_LOAD_FIT_ADDRESS to make it easier on folks enabling HABv4. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 1 + configs/imx8mn_venice_defconfig | 1 + configs/imx8mp_venice_defconfig | 1 + 3 files changed, 3 insertions(+) diff

[PATCH 1/2] drivers: misc: gsc: add support for fan controller

2024-12-18 Thread Tim Harvey
Add support for Gateworks System Controller fan tach input. Signed-off-by: Tim Harvey --- drivers/misc/gsc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/gsc.c b/drivers/misc/gsc.c index dee0bdd9663a..bab405bb7226 100644 --- a/drivers/misc/gsc.c +++ b/drivers/misc/gsc.c

[PATCH 2/2] drivers: misc: gsc: add support for prescaled

2024-12-18 Thread Tim Harvey
Add support for Gateworks System Controller pre-scaled ADC input. Signed-off-by: Tim Harvey --- drivers/misc/gsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/gsc.c b/drivers/misc/gsc.c index bab405bb7226..72a13abaaeed 100644 --- a/drivers/misc/gsc.c +++ b/drivers/misc

[PATCH] spi: mxc_spi: use proper clock for SPI bus

2024-12-18 Thread Tim Harvey
ed or configured. In the case you are not using the first bus you will not get the proper clock. Fix this by obtaining the clock rate from the bus clock. This resolves an invalid SPI clock frequency configuration for SPI2 on a board where SPI1 is not used. Signed-off-by: Tim Harvey --- driver

Re: [PATCH v2 1/6] arm: imx8m: add OP-TEE node

2024-11-08 Thread Tim Harvey
On Fri, Nov 8, 2024 at 5:49 AM Adam Ford wrote: > > On Thu, Nov 7, 2024 at 2:42 AM Yannic Moog wrote: > > > > Add tee node in SoC u-boot device trees. Use a kconfig entry to specify > > load and entry addresses for the op-tee image in the respective > > defconfig. > > > > Signed-off-by: Yannic Mo

Re: [PATCH v2 1/6] arm: imx8m: add OP-TEE node

2024-11-07 Thread Tim Harvey
On Thu, Nov 7, 2024 at 12:24 AM Yannic Moog wrote: > > Add tee node in SoC u-boot device trees. Use a kconfig entry to specify > load and entry addresses for the op-tee image in the respective > defconfig. > > Signed-off-by: Yannic Moog > --- > arch/arm/dts/imx8mm-u-boot.dtsi | 17 ++

Re: [PATCH RFC 0/6] imx8(m): add optee node to binman FIT image

2024-10-25 Thread Tim Harvey
On Fri, Oct 25, 2024 at 5:36 AM Yannic Moog wrote: > > Hey Tim > > On Thu, 2024-10-24 at 08:37 -0700, Tim Harvey wrote: > > On Thu, Oct 24, 2024 at 12:04 AM Yannic Moog > > wrote: > > > > > > There have been attempts to get op-tee node integrated up

Re: [PATCH RFC 0/6] imx8(m): add optee node to binman FIT image

2024-10-24 Thread Tim Harvey
On Thu, Oct 24, 2024 at 12:04 AM Yannic Moog wrote: > > There have been attempts to get op-tee node integrated upstream in the > past [1][2]. The challenge is on how to handle the load and entry > addresses where the op-tee image should be loaded to. > Different SoC families and architectures have

Re: [PATCH RFC 1/6] arm: dts: imx8m: add fit optee node

2024-10-24 Thread Tim Harvey
On Thu, Oct 24, 2024 at 12:04 AM Yannic Moog wrote: > > Add tee node in SoC u-boot device trees. Each board adds their specific > load and entry addresses for the op-tee image in the respective > board-u-boot.dtsi file. > > Signed-off-by: Yannic Moog > --- > arch/arm/dts/imx8mm-u-boot.dtsi | 15

[PATCH 2/4] imx: power-domain: Convert to use livetree API for fdt access

2024-10-23 Thread Tim Harvey
Convert to using livetree API functions. Without this if livetree is enabled (OF_LIVE) the imx8m-power-domain driver will (silently) fail to probe its children leaving you with no power domain support causing issues with certain devices. Signed-off-by: Tim Harvey --- drivers/power/domain/imx8m

[PATCH 3/4] i2c: mxc_i2c: Convert to use livetree API for fdt access

2024-10-23 Thread Tim Harvey
Convert to using livetree API functions. Without this if livetree is enabled (OF_LIVE) the mxc-i2c driver will fail to support scl-gpios and sda-gpios for i2c bus recovery. Signed-off-by: Tim Harvey --- drivers/i2c/mxc_i2c.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions

[PATCH 4/4] mmc: fsl_esdhc: Convert to use livetree API for fdt access

2024-10-23 Thread Tim Harvey
Convert to using livetree API functions. Without this if livetree is enabled (OF_LIVE) the fsl_esdhc_imx driver will fail to read vendor-specific properties from the dt. Signed-off-by: Tim Harvey --- drivers/mmc/fsl_esdhc_imx.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions

[PATCH 1/4] pinctrl: imx: Convert to use livetree API for fdt access

2024-10-23 Thread Tim Harvey
Convert to using livetree API functions. Without this if livetree is enabled (OF_LIVE) the imx8mq-pinctrl driver will (silently) fail to probe causing issues with multiple devices. Signed-off-by: Tim Harvey --- drivers/pinctrl/nxp/pinctrl-imx.c | 25 - 1 file changed

Re: modify live DT with OF_LIVE breaking phy_connect?

2024-10-15 Thread Tim Harvey
On Mon, Oct 14, 2024 at 1:20 PM Simon Glass wrote: > > Hi Tim, > > On Thu, 10 Oct 2024 at 16:05, Tim Harvey wrote: > > > > On Tue, Oct 8, 2024 at 6:56 PM Simon Glass wrote: > > > > > > Hi Tim, > > > > > > On Mon, 7 Oct

Re: modify live DT with OF_LIVE breaking phy_connect?

2024-10-10 Thread Tim Harvey
On Tue, Oct 8, 2024 at 6:56 PM Simon Glass wrote: > > Hi Tim, > > On Mon, 7 Oct 2024 at 14:16, Tim Harvey wrote: > > > > Greetings, > > > > I have a need to adjust the U-Boot device-tree live with some board > > revision specific fixups. It would seem

modify live DT with OF_LIVE breaking phy_connect?

2024-10-07 Thread Tim Harvey
Greetings, I have a need to adjust the U-Boot device-tree live with some board revision specific fixups. It would seem I need to enable OF_LIVE to do so but when I do this on imx8mm U-Boot proper seems to fail phy_connect() called from the network device probe. The board I'm working with is an im

[PATCH] configs: venice: enable DM_RNG

2024-09-05 Thread Tim Harvey
Enable DM_RNG so that the kaslr-seed property is set in the dt allowing Linux KASLR. Signed-off-by: Tim Harvey --- configs/imx8mm_venice_defconfig | 1 - configs/imx8mn_venice_defconfig | 1 - configs/imx8mp_venice_defconfig | 1 - 3 files changed, 3 deletions(-) diff --git a/configs

Re: [RESEND PATCH v4 0/3] provide names for emmc hardware partitions

2024-09-05 Thread Tim Harvey
On Mon, Aug 12, 2024 at 12:25 PM Tim Harvey wrote: > > On Tue, Jul 2, 2024 at 12:23 PM Tom Rini wrote: > > > > On Tue, Jul 02, 2024 at 11:14:15AM -0700, Tim Harvey wrote: > > > On Fri, May 31, 2024 at 8:36 AM Tim Harvey wrote: > > > > > > >

Re: [PATCH v2 4/4] imx: Remove CFG_MXC_USB_PORTSC

2024-08-27 Thread Tim Harvey
sb/host/ehci-mx6.c. > > Suggested-by: Tim Harvey > Signed-off-by: Fabio Estevam > --- > Changes since v1: > - Also remove the related context such as comments > or ifdefs. (Soeren, Tim). > > include/configs/apalis_imx6.h| 4 > include/configs/ari

Re: [PATCH 3/3] imx: Remove CFG_MXC_USB_PORTSC

2024-08-27 Thread Tim Harvey
drivers/usb/host/ehci-mx6.c. > > Suggested-by: Tim Harvey > Signed-off-by: Fabio Estevam > --- > #ifdef CONFIG_CMD_NET > diff --git a/include/configs/m53menlo.h b/include/configs/m53menlo.h > index 1491c509820d..a668eb70fc73 100644 > --- a/include/configs/m53menlo.h

Re: [PATCH] gw_ventana: Remove unneeded comments

2024-08-26 Thread Tim Harvey
#define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE > > -/* > - * MTD Command for mtdparts > - */ > - > -/* Persistent Environment Config */ > - > -/* Environment */ > - > #endif/* __CONFIG_H */ > -- > 2.34.1 > Hi Fabio, Acked-by: Tim Harvey

Re: [RESEND PATCH v4 0/3] provide names for emmc hardware partitions

2024-08-12 Thread Tim Harvey
On Tue, Jul 2, 2024 at 12:23 PM Tom Rini wrote: > > On Tue, Jul 02, 2024 at 11:14:15AM -0700, Tim Harvey wrote: > > On Fri, May 31, 2024 at 8:36 AM Tim Harvey wrote: > > > > > > Modern eMMC v4+ devices have multiple hardware partitions per the JEDEC > > >

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-17 Thread Tim Harvey
On Tue, Jul 16, 2024 at 7:00 PM Tim Harvey wrote: > > On Fri, Jul 12, 2024 at 5:23 PM Tim Harvey wrote: > > > > On Tue, Jun 4, 2024 at 9:36 AM Sebastian Reichel > > wrote: > > > > > > This adds TCPM framework in preparation for fusb302 support, which ca

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-16 Thread Tim Harvey
On Fri, Jul 12, 2024 at 5:23 PM Tim Harvey wrote: > > On Tue, Jun 4, 2024 at 9:36 AM Sebastian Reichel > wrote: > > > > This adds TCPM framework in preparation for fusb302 support, which can > > handle USB power delivery messages. This is needed to solve issues with &g

Re: [PATCH v2 1/5] usb: tcpm: add core framework

2024-07-12 Thread Tim Harvey
On Tue, Jun 4, 2024 at 9:36 AM Sebastian Reichel wrote: > > This adds TCPM framework in preparation for fusb302 support, which can > handle USB power delivery messages. This is needed to solve issues with > devices, that are running from a USB-C port supporting USB-PD, but not > having a battery.

Re: [RESEND PATCH v4 0/3] provide names for emmc hardware partitions

2024-07-02 Thread Tim Harvey
On Tue, Jul 2, 2024 at 11:25 AM Dragan Simic wrote: > > Hello Tim, > > On 2024-07-02 20:14, Tim Harvey wrote: > > On Fri, May 31, 2024 at 8:36 AM Tim Harvey > > wrote: > >> > >> Modern eMMC v4+ devices have multiple hardware partitions per the

Re: [RESEND PATCH v4 0/3] provide names for emmc hardware partitions

2024-07-02 Thread Tim Harvey
On Fri, May 31, 2024 at 8:36 AM Tim Harvey wrote: > > Modern eMMC v4+ devices have multiple hardware partitions per the JEDEC > specification described as: > Boot Area Partition 1 > Boot Area Partition 2 > RPMB Partition > General Purpose Partition 1 > General Purpos

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-07-01 Thread Tim Harvey
On Mon, Jul 1, 2024 at 2:58 AM Jerome Forissier wrote: > > > > On 6/28/24 17:48, Tim Harvey wrote: > > On Fri, Jun 28, 2024 at 2:50 AM Jerome Forissier > > wrote: > >> > >> Hi Tim, > >> > >> On 6/26/24 18:00, Tim Harvey wrote: > &g

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-28 Thread Tim Harvey
On Fri, Jun 28, 2024 at 2:50 AM Jerome Forissier wrote: > > Hi Tim, > > On 6/26/24 18:00, Tim Harvey wrote: > > On Tue, Jun 25, 2024 at 1:02 AM Jerome Forissier > > wrote: > >> > >> On 6/25/24 00:28, Tim Harvey wrote: > >>> On Sat, Jun 22,

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-26 Thread Tim Harvey
On Tue, Jun 25, 2024 at 1:02 AM Jerome Forissier wrote: > > On 6/25/24 00:28, Tim Harvey wrote: > > On Sat, Jun 22, 2024 at 1:09 AM Maxim Uvarov wrote: > >> > >> пт, 21 июн. 2024 г. в 21:42, Fabio Estevam : > >>> > >>> Hi Tim and Jerome,

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-24 Thread Tim Harvey
On Sat, Jun 22, 2024 at 1:09 AM Maxim Uvarov wrote: > > пт, 21 июн. 2024 г. в 21:42, Fabio Estevam : > > > > Hi Tim and Jerome, > > > > On Fri, Jun 21, 2024 at 1:08 PM Tim Harvey wrote: > > > > > I tried your to-upstream/v5-wip branch > >

Re: [PATCH v2 0/5] FUSB302 USB-C controller support

2024-06-24 Thread Tim Harvey
On Tue, Jun 4, 2024 at 9:35 AM Sebastian Reichel wrote: > > Hi, > > On ROCK 5B power is usually supplied via it's USB-C port. This port has the > data lines connected to RK3588, VBUS connected to the input regulator and > CC pins connected to FUSB302. FUSB302 is a USB-C controller, which can be >

Re: USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Tim Harvey
On Mon, Jun 24, 2024 at 12:54 PM Adam Ford wrote: > > On Mon, Jun 24, 2024 at 2:39 PM Tim Harvey wrote: > > > > Greetings, > > > > What is missing in U-Boot for the DWC3 host controller to support OTG > > mode for usb_ether (USB Ethernet gadget)? I'm una

USB OTG mode for DWC3 (ie imx8mp) host controller with usb_ether USB Ethernet gadget?

2024-06-24 Thread Tim Harvey
Greetings, What is missing in U-Boot for the DWC3 host controller to support OTG mode for usb_ether (USB Ethernet gadget)? I'm unable to get the usb ethernet gadget to work for the imx8mp as it errors out with 'No UDC available in the system'. The ums/acm/sdp gadget's all call udc_device_get_by_i

Re: [PATCH v7 1/4] Add fdt_kaslrseed function to add kaslr-seed to chosen node

2024-06-24 Thread Tim Harvey
On Thu, Jun 20, 2024 at 6:58 AM Caleb Connolly wrote: > > Hi Tim, > > On 18/06/2024 23:06, Tim Harvey wrote: > > If RANDOMIZE_BASE is enabled in the Linux kernel instructing it to > > randomize the virtual address at which the kernel image is loaded, it > > expects

USB gadget device (USB_ETHER) with ChipIdea device controller (imx)

2024-06-21 Thread Tim Harvey
Greetings, Is anyone successfully using USB gadget device (USB_ETHER) on any imx that has the ChipIdea device controller? (imx6/imx7/imx8mm): I've never been able to get this to work as when usb_setup_ehci_gadget() is called from ci_udc's usb_gadget_register_driver() it first removes the usb cont

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-21 Thread Tim Harvey
On Fri, Jun 21, 2024 at 5:59 AM Jerome Forissier wrote: > > > > On 6/20/24 19:10, Tim Harvey wrote: > > On Mon, Jun 17, 2024 at 8:33 AM Jerome Forissier > > wrote: > >> > >> This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip &g

Re: [PATCH] imx8mp-venice-gw702x: Drop EQos clock workaround

2024-06-21 Thread Tim Harvey
On Fri, Jun 21, 2024 at 7:24 AM Fabio Estevam wrote: > > Hi Tim, > > On Wed, Jun 19, 2024 at 10:30 PM Tim Harvey wrote: > > > > The assigned-clock no longer have to be dropped, the clock are now > > defined in clk-imx8mp.c and used by DWMAC driver to configure

[PATCH] board: gateworks: venice: Simplify Ethernet initialization

2024-06-20 Thread Tim Harvey
With DM enabled, there is no need for board code to initialize the Ethernet interfaces. Specifically board_interface_eth_init will handle the configuration of GPR1. Signed-off-by: Tim Harvey --- board/gateworks/venice/venice.c | 19 --- 1 file changed, 19 deletions(-) diff

Re: [PATCH v4 00/14] Introduce the lwIP network stack

2024-06-20 Thread Tim Harvey
On Mon, Jun 17, 2024 at 8:33 AM Jerome Forissier wrote: > > This is a rework of a patch series by Maxim Uvarov: "net/lwip: add lwip > library for the network stack" [1]. The goal is to introduce the lwIP TCP/IP > stack [2] [3] as an alternative to the current implementation in net/, > selectable w

Re: obscure microsd detection issue between U-Boot and kernel

2024-06-20 Thread Tim Harvey
On Tue, Jun 4, 2024 at 1:14 AM Michael Walle wrote: > > On Tue Jun 4, 2024 at 9:47 AM CEST, Christian Loehle wrote: > > On 6/3/24 22:28, Tim Harvey wrote: > > > On Mon, Jun 3, 2024 at 1:18 AM Christian Loehle > > > wrote: > > >> > > >>

[PATCH] imx8mp-venice-gw702x: Drop EQos clock workaround

2024-06-19 Thread Tim Harvey
arm64: dts: imx8mp: Drop EQoS clock workaround"). Fixes: 48c6f9777cee ("board: gateworks: venice: add imx8mp-gw7905-2x support") Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw702x-u-boot.dtsi | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/arm/dts/im

[PATCH v2] imx8mp-venice-gw74xx: default USB1 to host mode

2024-06-19 Thread Tim Harvey
The GW74xx USB1 controller connects to a dual-role connector using a GPIO for role detection via the usb-connector Linux driver (usb-conn-gpio.c). This drive does not exist yet in U-Boot so for now we will just default USB1 to host mode. Signed-off-by: Tim Harvey --- v2: provide missing commit

[PATCH] imx8mp-venice-gw74xx: fix USB host

2024-06-19 Thread Tim Harvey
Signed-off-by: Tim Harvey --- arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi b/arch/arm/dts/imx8mp-venice-gw74xx-u-boot.dtsi index 240fbc1b568f..a90794d8108a 100644 --- a/arch/arm/dts/imx8mp

[PATCH] imx8m{m,p}_venice: add NVMe to boot devices

2024-06-19 Thread Tim Harvey
Add nvme device 0 to available boot devices. Signed-off-by: Tim Harvey --- include/configs/imx8mm_venice.h | 1 + include/configs/imx8mp_venice.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/configs/imx8mm_venice.h b/include/configs/imx8mm_venice.h index 046d5685d04d

[PATCH] board: gateworks: venice: add print for GPY111 PHY name

2024-06-19 Thread Tim Harvey
[PRIME] Signed-off-by: Tim Harvey --- board/gateworks/venice/venice.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index 5b105d7659e4..3080ff20cb02 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice

[PATCH] board: gateworks: venice: delay before reading GSC EEPROM

2024-06-19 Thread Tim Harvey
=2020 i2c_init_transfer: failed for chip 0x20 retry=0 Signed-off-by: Tim Harvey --- board/gateworks/venice/spl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c index 9a22eeef36ba..ec3c394d24d8 100644 --- a/board/gateworks/venice/spl.c

  1   2   3   4   5   6   7   8   9   10   >