Re: [U-Boot] [PATCH] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin
Hi Martyn, > On Thu, 2018-11-15 at 01:25 +0100, Lukasz Majewski wrote: > > Hi Martyn, > > > > > Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. > > > Based on the PHYTEC phyCORE-i.MX6UL SOM (PCL063). This port > > > provides > > > both SPL and DCD based boot options (hence the two defconfigs). > > > > > > CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz) > > > CPU: Industrial temperature grade (-40C to 105C) at 44C > > > Reset cause: POR > > > Board: PHYTEC phyCORE-i.MX6UL > > > I2C: ready > > > DRAM: 256 MiB > > > NAND: 512 MiB > > > MMC: FSL_SDHC: 0 > > > In:serial > > > Out: serial > > > Err: serial > > > Net: FEC0 > > > > > > Working: > > > - Eth0 > > > - Eth1 > > > - i2C > > > - MMC/SD > > > - NAND > > > - UART (1 & 5) > > > - USB (host & otg) > > > > Could you double check if maybe you could use Driver Model versions > > of > > some drivers? To be more specific - the ETH interfaces, I2C, eMMC, > > etc. > > > > Hi Lukasz, > > I've so far managed to get SD card, i2c and USB working via the driver > model, though I'm stuggling to get the Eth interfaces working - the > driver model probe doesn't seem to get the PHY addresses from the > device tree I've managed to make this working on imx53 (imx53-kp.dts) and now on NXP's Vybrid. There is one single driver for it - the ./drivers/net/fec_mxc.c > and I suspect it's also not able to pick up that both phys > are on the same MDIO bus form it either. Is this support still work in > progress? IMHO there is no point in adding board without cutting edge DM support - drivers, which doesn't support it will be removed soon, and your board will be eligible for removal as well. > > Martyn > > > > Signed-off-by: Martyn Welch > > > > > > --- > > > > > > arch/arm/mach-imx/mx6/Kconfig| 8 + > > > board/phytec/pcl063/Kconfig | 12 + > > > board/phytec/pcl063/MAINTAINERS | 7 + > > > board/phytec/pcl063/Makefile | 7 + > > > board/phytec/pcl063/README | 43 +++ > > > board/phytec/pcl063/imximage.cfg | 177 + > > > board/phytec/pcl063/pcl063.c | 379 > > > +++ board/phytec/pcl063/spl.c| > > > 118 + configs/phycore_pcl063_defconfig | 47 > > > configs/phycore_pcl063_spl_defconfig | 55 > > > include/configs/pcl063.h | 107 > > > 11 files changed, 960 insertions(+) > > > create mode 100644 board/phytec/pcl063/Kconfig > > > create mode 100644 board/phytec/pcl063/MAINTAINERS > > > create mode 100644 board/phytec/pcl063/Makefile > > > create mode 100644 board/phytec/pcl063/README > > > create mode 100644 board/phytec/pcl063/imximage.cfg > > > create mode 100644 board/phytec/pcl063/pcl063.c > > > create mode 100644 board/phytec/pcl063/spl.c > > > create mode 100644 configs/phycore_pcl063_defconfig > > > create mode 100644 configs/phycore_pcl063_spl_defconfig > > > create mode 100644 include/configs/pcl063.h > > > > > > diff --git a/arch/arm/mach-imx/mx6/Kconfig > > > b/arch/arm/mach-imx/mx6/Kconfig index 06c25bae36..22aea99f8f > > > 100644 --- a/arch/arm/mach-imx/mx6/Kconfig > > > +++ b/arch/arm/mach-imx/mx6/Kconfig > > > @@ -428,6 +428,13 @@ config TARGET_PFLA02 > > > select MX6QDL > > > select SUPPORT_SPL > > > > > > +config TARGET_PCL063 > > > + bool "PHYTEC PCL063 (phyCORE-i.MX6UL)" > > > + select MX6UL > > > + select DM > > > + select DM_THERMAL > > > + select SUPPORT_SPL > > > > Your board is only selecting DM_THERMAL. > > > > One good way to check the list of DM aware (used) blocks is to run > > "dm > > list" > > > > > + > > > config TARGET_SECOMX6 > > > bool "secomx6 boards" > > > > > > @@ -550,6 +557,7 @@ source "board/freescale/mx6ullevk/Kconfig" > > > source "board/grinn/liteboard/Kconfig" > > > source "board/phytec/pcm058/Kconfig" > > > source "board/phytec/pfla02/Kconfig" > > > +source "board/phytec/pcl063/Kconfig" > > > source "board/gateworks/gw_ventana/Kconfig" > > > source "board/kosagi/novena/Kconfig" > > > source "board/samtec/vining_2000/Kconfig" > > > diff --git a/board/phytec/pcl063/Kconfig > > > b/board/phytec/pcl063/Kconfig > > > new file mode 100644 > > > index 00..977db70f64 > > > --- /dev/null > > > +++ b/board/phytec/pcl063/Kconfig > > > @@ -0,0 +1,12 @@ > > > +if TARGET_PCL063 > > > + > > > +config SYS_BOARD > > > + default "pcl063" > > > + > > > +config SYS_VENDOR > > > + default "phytec" > > > + > > > +config SYS_CONFIG_NAME > > > + default "pcl063" > > > + > > > +endif > > > diff --git a/board/phytec/pcl063/MAINTAINERS > > > b/board/phytec/pcl063/MAINTAINERS new file mode 100644 > > > index 00..8edc45827c > > > --- /dev/null > > > +++ b/board/phytec/pcl063/MAINTAINERS > > > @@ -0,0 +1,7 @@ > > > +PCL063 BOARD > > > +M: Martyn Welch > > > +S: Maintained > > > +F: board/phytec/pcl063/ > > > +F: configs/phycore_pcl063_defconfig > > > +F:
Re: [U-Boot] [PATCH] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin
On Thu, 2018-11-15 at 01:25 +0100, Lukasz Majewski wrote: > Hi Martyn, > > > Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. > > Based on the PHYTEC phyCORE-i.MX6UL SOM (PCL063). This port > > provides > > both SPL and DCD based boot options (hence the two defconfigs). > > > > CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz) > > CPU: Industrial temperature grade (-40C to 105C) at 44C > > Reset cause: POR > > Board: PHYTEC phyCORE-i.MX6UL > > I2C: ready > > DRAM: 256 MiB > > NAND: 512 MiB > > MMC: FSL_SDHC: 0 > > In:serial > > Out: serial > > Err: serial > > Net: FEC0 > > > > Working: > > - Eth0 > > - Eth1 > > - i2C > > - MMC/SD > > - NAND > > - UART (1 & 5) > > - USB (host & otg) > > Could you double check if maybe you could use Driver Model versions > of > some drivers? To be more specific - the ETH interfaces, I2C, eMMC, > etc. > Hi Lukasz, I've so far managed to get SD card, i2c and USB working via the driver model, though I'm stuggling to get the Eth interfaces working - the driver model probe doesn't seem to get the PHY addresses from the device tree and I suspect it's also not able to pick up that both phys are on the same MDIO bus form it either. Is this support still work in progress? Martyn > > Signed-off-by: Martyn Welch > > > > --- > > > > arch/arm/mach-imx/mx6/Kconfig| 8 + > > board/phytec/pcl063/Kconfig | 12 + > > board/phytec/pcl063/MAINTAINERS | 7 + > > board/phytec/pcl063/Makefile | 7 + > > board/phytec/pcl063/README | 43 +++ > > board/phytec/pcl063/imximage.cfg | 177 + > > board/phytec/pcl063/pcl063.c | 379 > > +++ board/phytec/pcl063/spl.c| > > 118 + configs/phycore_pcl063_defconfig | 47 > > configs/phycore_pcl063_spl_defconfig | 55 > > include/configs/pcl063.h | 107 > > 11 files changed, 960 insertions(+) > > create mode 100644 board/phytec/pcl063/Kconfig > > create mode 100644 board/phytec/pcl063/MAINTAINERS > > create mode 100644 board/phytec/pcl063/Makefile > > create mode 100644 board/phytec/pcl063/README > > create mode 100644 board/phytec/pcl063/imximage.cfg > > create mode 100644 board/phytec/pcl063/pcl063.c > > create mode 100644 board/phytec/pcl063/spl.c > > create mode 100644 configs/phycore_pcl063_defconfig > > create mode 100644 configs/phycore_pcl063_spl_defconfig > > create mode 100644 include/configs/pcl063.h > > > > diff --git a/arch/arm/mach-imx/mx6/Kconfig > > b/arch/arm/mach-imx/mx6/Kconfig index 06c25bae36..22aea99f8f 100644 > > --- a/arch/arm/mach-imx/mx6/Kconfig > > +++ b/arch/arm/mach-imx/mx6/Kconfig > > @@ -428,6 +428,13 @@ config TARGET_PFLA02 > > select MX6QDL > > select SUPPORT_SPL > > > > +config TARGET_PCL063 > > + bool "PHYTEC PCL063 (phyCORE-i.MX6UL)" > > + select MX6UL > > + select DM > > + select DM_THERMAL > > + select SUPPORT_SPL > > Your board is only selecting DM_THERMAL. > > One good way to check the list of DM aware (used) blocks is to run > "dm > list" > > > + > > config TARGET_SECOMX6 > > bool "secomx6 boards" > > > > @@ -550,6 +557,7 @@ source "board/freescale/mx6ullevk/Kconfig" > > source "board/grinn/liteboard/Kconfig" > > source "board/phytec/pcm058/Kconfig" > > source "board/phytec/pfla02/Kconfig" > > +source "board/phytec/pcl063/Kconfig" > > source "board/gateworks/gw_ventana/Kconfig" > > source "board/kosagi/novena/Kconfig" > > source "board/samtec/vining_2000/Kconfig" > > diff --git a/board/phytec/pcl063/Kconfig > > b/board/phytec/pcl063/Kconfig > > new file mode 100644 > > index 00..977db70f64 > > --- /dev/null > > +++ b/board/phytec/pcl063/Kconfig > > @@ -0,0 +1,12 @@ > > +if TARGET_PCL063 > > + > > +config SYS_BOARD > > + default "pcl063" > > + > > +config SYS_VENDOR > > + default "phytec" > > + > > +config SYS_CONFIG_NAME > > + default "pcl063" > > + > > +endif > > diff --git a/board/phytec/pcl063/MAINTAINERS > > b/board/phytec/pcl063/MAINTAINERS new file mode 100644 > > index 00..8edc45827c > > --- /dev/null > > +++ b/board/phytec/pcl063/MAINTAINERS > > @@ -0,0 +1,7 @@ > > +PCL063 BOARD > > +M: Martyn Welch > > +S: Maintained > > +F: board/phytec/pcl063/ > > +F: configs/phycore_pcl063_defconfig > > +F: configs/phycore_pcl063_spl_defconfig > > +F: include/configs/pcl063.h > > diff --git a/board/phytec/pcl063/Makefile > > b/board/phytec/pcl063/Makefile new file mode 100644 > > index 00..53c73c9b08 > > --- /dev/null > > +++ b/board/phytec/pcl063/Makefile > > @@ -0,0 +1,7 @@ > > +# Copyright (C) 2018 Collabora Ltd. > > +# > > +# SPDX-License-Identifier: GPL-2.0+ > > +# > > + > > +obj-y := pcl063.o > > +obj-$(CONFIG_SPL_BUILD) += spl.o > > diff --git a/board/phytec/pcl063/README > > b/board/phytec/pcl063/README > > new file mode 100644 > > index 00..d73e90e83d > > --- /dev/null > > +++ b/board/phytec/pcl063/README > > @@ -0,0
Re: [U-Boot] [PATCH] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin
Hi Martyn, > Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. > Based on the PHYTEC phyCORE-i.MX6UL SOM (PCL063). This port provides > both SPL and DCD based boot options (hence the two defconfigs). > > CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz) > CPU: Industrial temperature grade (-40C to 105C) at 44C > Reset cause: POR > Board: PHYTEC phyCORE-i.MX6UL > I2C: ready > DRAM: 256 MiB > NAND: 512 MiB > MMC: FSL_SDHC: 0 > In:serial > Out: serial > Err: serial > Net: FEC0 > > Working: > - Eth0 > - Eth1 > - i2C > - MMC/SD > - NAND > - UART (1 & 5) > - USB (host & otg) Could you double check if maybe you could use Driver Model versions of some drivers? To be more specific - the ETH interfaces, I2C, eMMC, etc. > > Signed-off-by: Martyn Welch > > --- > > arch/arm/mach-imx/mx6/Kconfig| 8 + > board/phytec/pcl063/Kconfig | 12 + > board/phytec/pcl063/MAINTAINERS | 7 + > board/phytec/pcl063/Makefile | 7 + > board/phytec/pcl063/README | 43 +++ > board/phytec/pcl063/imximage.cfg | 177 + > board/phytec/pcl063/pcl063.c | 379 > +++ board/phytec/pcl063/spl.c| > 118 + configs/phycore_pcl063_defconfig | 47 > configs/phycore_pcl063_spl_defconfig | 55 > include/configs/pcl063.h | 107 > 11 files changed, 960 insertions(+) > create mode 100644 board/phytec/pcl063/Kconfig > create mode 100644 board/phytec/pcl063/MAINTAINERS > create mode 100644 board/phytec/pcl063/Makefile > create mode 100644 board/phytec/pcl063/README > create mode 100644 board/phytec/pcl063/imximage.cfg > create mode 100644 board/phytec/pcl063/pcl063.c > create mode 100644 board/phytec/pcl063/spl.c > create mode 100644 configs/phycore_pcl063_defconfig > create mode 100644 configs/phycore_pcl063_spl_defconfig > create mode 100644 include/configs/pcl063.h > > diff --git a/arch/arm/mach-imx/mx6/Kconfig > b/arch/arm/mach-imx/mx6/Kconfig index 06c25bae36..22aea99f8f 100644 > --- a/arch/arm/mach-imx/mx6/Kconfig > +++ b/arch/arm/mach-imx/mx6/Kconfig > @@ -428,6 +428,13 @@ config TARGET_PFLA02 > select MX6QDL > select SUPPORT_SPL > > +config TARGET_PCL063 > + bool "PHYTEC PCL063 (phyCORE-i.MX6UL)" > + select MX6UL > + select DM > + select DM_THERMAL > + select SUPPORT_SPL Your board is only selecting DM_THERMAL. One good way to check the list of DM aware (used) blocks is to run "dm list" > + > config TARGET_SECOMX6 > bool "secomx6 boards" > > @@ -550,6 +557,7 @@ source "board/freescale/mx6ullevk/Kconfig" > source "board/grinn/liteboard/Kconfig" > source "board/phytec/pcm058/Kconfig" > source "board/phytec/pfla02/Kconfig" > +source "board/phytec/pcl063/Kconfig" > source "board/gateworks/gw_ventana/Kconfig" > source "board/kosagi/novena/Kconfig" > source "board/samtec/vining_2000/Kconfig" > diff --git a/board/phytec/pcl063/Kconfig b/board/phytec/pcl063/Kconfig > new file mode 100644 > index 00..977db70f64 > --- /dev/null > +++ b/board/phytec/pcl063/Kconfig > @@ -0,0 +1,12 @@ > +if TARGET_PCL063 > + > +config SYS_BOARD > + default "pcl063" > + > +config SYS_VENDOR > + default "phytec" > + > +config SYS_CONFIG_NAME > + default "pcl063" > + > +endif > diff --git a/board/phytec/pcl063/MAINTAINERS > b/board/phytec/pcl063/MAINTAINERS new file mode 100644 > index 00..8edc45827c > --- /dev/null > +++ b/board/phytec/pcl063/MAINTAINERS > @@ -0,0 +1,7 @@ > +PCL063 BOARD > +M: Martyn Welch > +S: Maintained > +F: board/phytec/pcl063/ > +F: configs/phycore_pcl063_defconfig > +F: configs/phycore_pcl063_spl_defconfig > +F: include/configs/pcl063.h > diff --git a/board/phytec/pcl063/Makefile > b/board/phytec/pcl063/Makefile new file mode 100644 > index 00..53c73c9b08 > --- /dev/null > +++ b/board/phytec/pcl063/Makefile > @@ -0,0 +1,7 @@ > +# Copyright (C) 2018 Collabora Ltd. > +# > +# SPDX-License-Identifier: GPL-2.0+ > +# > + > +obj-y := pcl063.o > +obj-$(CONFIG_SPL_BUILD) += spl.o > diff --git a/board/phytec/pcl063/README b/board/phytec/pcl063/README > new file mode 100644 > index 00..d73e90e83d > --- /dev/null > +++ b/board/phytec/pcl063/README > @@ -0,0 +1,43 @@ > +How to use U-Boot on PHYTEC phyBOARD-i.MX6UL-Segin > +-- > + > +- Clean U-Boot tree: > + > +$ make mrproper > + > +- Configure U-Boot for phyCORE-i.MX6UL (using DCD): > + > +$ make phycore_pcl063_defconfig > + > + Or for build with SPL: > + > +$ make phycore_pcl063_spl_defconfig > + > +- Build U-Boot > + > +$ make > + > + This will either generate an u-boot.imx image or SPL and > u-boot-dtb.img > + images depending on the config chosen. > + > +- When an u-boot.imx image has been built, flash this into a micro > SD card as > + follows: > + > +$ sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync > + >
[U-Boot] [PATCH] imx: Add PHYTEC phyBOARD-i.MX6UL-Segin
Port for the PHYTEC phyBOARD-i.MX6UL-Segin single board computer. Based on the PHYTEC phyCORE-i.MX6UL SOM (PCL063). This port provides both SPL and DCD based boot options (hence the two defconfigs). CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz) CPU: Industrial temperature grade (-40C to 105C) at 44C Reset cause: POR Board: PHYTEC phyCORE-i.MX6UL I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: FSL_SDHC: 0 In:serial Out: serial Err: serial Net: FEC0 Working: - Eth0 - Eth1 - i2C - MMC/SD - NAND - UART (1 & 5) - USB (host & otg) Signed-off-by: Martyn Welch --- arch/arm/mach-imx/mx6/Kconfig| 8 + board/phytec/pcl063/Kconfig | 12 + board/phytec/pcl063/MAINTAINERS | 7 + board/phytec/pcl063/Makefile | 7 + board/phytec/pcl063/README | 43 +++ board/phytec/pcl063/imximage.cfg | 177 + board/phytec/pcl063/pcl063.c | 379 +++ board/phytec/pcl063/spl.c| 118 + configs/phycore_pcl063_defconfig | 47 configs/phycore_pcl063_spl_defconfig | 55 include/configs/pcl063.h | 107 11 files changed, 960 insertions(+) create mode 100644 board/phytec/pcl063/Kconfig create mode 100644 board/phytec/pcl063/MAINTAINERS create mode 100644 board/phytec/pcl063/Makefile create mode 100644 board/phytec/pcl063/README create mode 100644 board/phytec/pcl063/imximage.cfg create mode 100644 board/phytec/pcl063/pcl063.c create mode 100644 board/phytec/pcl063/spl.c create mode 100644 configs/phycore_pcl063_defconfig create mode 100644 configs/phycore_pcl063_spl_defconfig create mode 100644 include/configs/pcl063.h diff --git a/arch/arm/mach-imx/mx6/Kconfig b/arch/arm/mach-imx/mx6/Kconfig index 06c25bae36..22aea99f8f 100644 --- a/arch/arm/mach-imx/mx6/Kconfig +++ b/arch/arm/mach-imx/mx6/Kconfig @@ -428,6 +428,13 @@ config TARGET_PFLA02 select MX6QDL select SUPPORT_SPL +config TARGET_PCL063 + bool "PHYTEC PCL063 (phyCORE-i.MX6UL)" + select MX6UL + select DM + select DM_THERMAL + select SUPPORT_SPL + config TARGET_SECOMX6 bool "secomx6 boards" @@ -550,6 +557,7 @@ source "board/freescale/mx6ullevk/Kconfig" source "board/grinn/liteboard/Kconfig" source "board/phytec/pcm058/Kconfig" source "board/phytec/pfla02/Kconfig" +source "board/phytec/pcl063/Kconfig" source "board/gateworks/gw_ventana/Kconfig" source "board/kosagi/novena/Kconfig" source "board/samtec/vining_2000/Kconfig" diff --git a/board/phytec/pcl063/Kconfig b/board/phytec/pcl063/Kconfig new file mode 100644 index 00..977db70f64 --- /dev/null +++ b/board/phytec/pcl063/Kconfig @@ -0,0 +1,12 @@ +if TARGET_PCL063 + +config SYS_BOARD + default "pcl063" + +config SYS_VENDOR + default "phytec" + +config SYS_CONFIG_NAME + default "pcl063" + +endif diff --git a/board/phytec/pcl063/MAINTAINERS b/board/phytec/pcl063/MAINTAINERS new file mode 100644 index 00..8edc45827c --- /dev/null +++ b/board/phytec/pcl063/MAINTAINERS @@ -0,0 +1,7 @@ +PCL063 BOARD +M: Martyn Welch +S: Maintained +F: board/phytec/pcl063/ +F: configs/phycore_pcl063_defconfig +F: configs/phycore_pcl063_spl_defconfig +F: include/configs/pcl063.h diff --git a/board/phytec/pcl063/Makefile b/board/phytec/pcl063/Makefile new file mode 100644 index 00..53c73c9b08 --- /dev/null +++ b/board/phytec/pcl063/Makefile @@ -0,0 +1,7 @@ +# Copyright (C) 2018 Collabora Ltd. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := pcl063.o +obj-$(CONFIG_SPL_BUILD) += spl.o diff --git a/board/phytec/pcl063/README b/board/phytec/pcl063/README new file mode 100644 index 00..d73e90e83d --- /dev/null +++ b/board/phytec/pcl063/README @@ -0,0 +1,43 @@ +How to use U-Boot on PHYTEC phyBOARD-i.MX6UL-Segin +-- + +- Clean U-Boot tree: + +$ make mrproper + +- Configure U-Boot for phyCORE-i.MX6UL (using DCD): + +$ make phycore_pcl063_defconfig + + Or for build with SPL: + +$ make phycore_pcl063_spl_defconfig + +- Build U-Boot + +$ make + + This will either generate an u-boot.imx image or SPL and u-boot-dtb.img + images depending on the config chosen. + +- When an u-boot.imx image has been built, flash this into a micro SD card as + follows: + +$ sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1; sync + +- If the SPL and u-boot-dtb.img image have been built both need to be flashed + into the micro SD card: + +$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync +$ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync + +- Jumper settings: + + JP1: Open: Boot from NAND + Closed: Boot from SD/MMC1 + +- Connect the Serial cable to UART0 and the PC for the console. + +- Insert the micro SD card in the board and power it up. + +- U-Boot messages should come up. diff --git a/board/phytec/pcl063/imximage.cfg