Re: AM335x broken

2019-02-11 Thread Sascha Hauer
Hi Teresa, On Mon, Feb 11, 2019 at 03:44:28PM +0100, Teresa Remmet wrote: > Hello, > > AM335x is broken on current master in multiple ways. > NAND and and SPI boot are not working right now as the image size can > not be found: > > barebox 2019.01.0-00305-g96abbe544e19 #1682 Mon Feb 11

[PATCH] net: phy: micrel: backport ksz9031 125MHz ref-clk workaround

2019-02-11 Thread Marco Felsch
This patch backports linux commit e1b505a60366 ("net: phy: micrel: add 125MHz reference clock workaround"). 8<- The original commit message --- net: phy: micrel: add 125MHz reference clock workaround The micrel KSZ9031 phy has a optional clock pin

Re: [PATCH 1/7] drivers: bus: Add ti-sysc bus driver

2019-02-11 Thread Andrey Smirnov
On Mon, Feb 11, 2019 at 7:16 AM Teresa Remmet wrote: > > Adds minimal support for the sysc interconnect target module found > on many TI SoCs. With this device tree includes have been rearagned. > We need the driver to probe the child devices of the bus. > > Signed-off-by: Teresa Remmet > --- >

[PATCH 3/3] ARM: i.MX8MQ: Add corner case for Rev 2.1 silicon

2019-02-11 Thread Andrey Smirnov
Rev 2.1 of i.MX8MQ silicon needs a special check different from predecessor. Add all of the neccessary code to do just that (based on similar code in vendor U-Boot tree). Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/imx8mq.h | 9 + 1 file changed, 9 insertions(+)

[PATCH 2/3] ARM: i.MX8MQ: Read only ROM version major

2019-02-11 Thread Andrey Smirnov
Don't read all 32-bits located at IMX8MQ_ROM_VERSION_*0 since that, besides ROM version major in LSB, willl also contain minor components which we don't account for in the following checks. Change the code to only read LSB instead. This is a port of a vendor U-Boot[1] commit

[PATCH 1/3] ARM: i.MX8MQ: Invert the logic in imx8mq_cpu_revision()

2019-02-11 Thread Andrey Smirnov
Invert the logic in imx8mq_cpu_revision() and convert it to use early return. This is done in perparation for more corner case logic added in the following commits. No functional change intended. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/include/mach/imx8mq.h | 26

[PATCH] ARM: i.MX8MQ: Add code to report HDMI/eDP firmware version

2019-02-11 Thread Andrey Smirnov
Port code found in cdn_dp_load_firmware() in Linux kernel to check if HDMI firmware is running and, if so, report its version. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/imx8mq.c | 37 + 1 file changed, 37 insertions(+) diff --git

[PATCH] nvmem: eeprom_93xx46: fix whitespaces

2019-02-11 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- drivers/nvmem/eeprom_93xx46.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/nvmem/eeprom_93xx46.c b/drivers/nvmem/eeprom_93xx46.c index d96ba32d07..49ed396dc2 100644 --- a/drivers/nvmem/eeprom_93xx46.c +++

Re: [PATCH 1/2] of: base: add helper to rename a node

2019-02-11 Thread Sascha Hauer
Hi Marco, On Mon, Feb 11, 2019 at 05:20:12PM +0100, Marco Felsch wrote: > Sometimes it can be necessary to rename a node, e.g. to override/create > a node which gets renamed upstream. > > Signed-off-by: Marco Felsch > --- > drivers/of/base.c | 18 ++ > include/of.h | 5

[PATCH 4/8] include: Sync up pci_ids.h with 4.20-rc1

2019-02-11 Thread Andrey Smirnov
Sync up pci_ids.h with 4.20-rc1 to get PCI IDs of devices currently not present in our copy of pci_ids.h. Signed-off-by: Andrey Smirnov --- include/linux/pci_ids.h | 2952 +++ 1 file changed, 2952 insertions(+) diff --git a/include/linux/pci_ids.h

[PATCH 7/8] include: Import min_not_zero() macro from Linux

2019-02-11 Thread Andrey Smirnov
Import min_not_zero() macro from Linux used by some kernel code. Signed-off-by: Andrey Smirnov --- include/linux/kernel.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index ee0b48e08..849c079d0 100644 ---

[PATCH 6/8] include: Import uuid.h for Linux

2019-02-11 Thread Andrey Smirnov
Import uuid.h for Linux as a requirement for NVMe subsystem. Signed-off-by: Andrey Smirnov --- include/linux/uuid.h | 96 +++ include/uapi/linux/uuid.h | 42 + 2 files changed, 138 insertions(+) create mode 100644 include/linux/uuid.h

[PATCH 8/8] drivers: Import a very basic NVME implementation from Linux

2019-02-11 Thread Andrey Smirnov
Import a very abridged NVME implementation from Linux kernel in order to be able to access NVME storage attached via PCIe. Signed-off-by: Andrey Smirnov --- drivers/Kconfig|1 + drivers/Makefile |1 + drivers/nvme/Kconfig |5 + drivers/nvme/Makefile

[PATCH 1/8] PCI: Fix to_pci_dev() macro

2019-02-11 Thread Andrey Smirnov
Rename argument of to_pci_dev() to avoid replacing both first and third parameters passed to container_of. All of the current users of the macro invoike it with a varible named "dev", so erroneous replacement doesn't cause any harm, however trying to pass variable with any other name will result

[PATCH 0/8] NVME support

2019-02-11 Thread Andrey Smirnov
Everyone: This series contains all of the changes I made in order to add support for NVME storage in Barebox. Majority of the code was adapted directly from Linux kernel and I tried to keep it as close to the original as possible. Only a very basic featureset was implemented: - For obvious

[PATCH 3/8] drivers: Make use of device_pci_driver()

2019-02-11 Thread Andrey Smirnov
Replace all of the generic PCI boilerplate with device_pci_driver(). Signed-off-by: Andrey Smirnov --- drivers/net/e1000/main.c| 7 +-- drivers/net/rtl8139.c | 7 +-- drivers/net/rtl8169.c | 7 +-- drivers/usb/host/xhci-pci.c | 7 +-- 4 files changed, 4

[PATCH 2/8] PCI: Introduce device_pci_driver()

2019-02-11 Thread Andrey Smirnov
Similar to varoius *_platfrom_drivers(), introduce device_pci_driver() to simplify PCI driver boilerplate. Signed-off-by: Andrey Smirnov --- include/linux/pci.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/pci.h b/include/linux/pci.h index 0022922fc..d92d70b6b 100644

[PATCH 5/8] include: Add definitnion for HZ

2019-02-11 Thread Andrey Smirnov
Add definitnion for HZ to simplify porting Linux kernel code. Signed-off-by: Andrey Smirnov --- include/clock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/clock.h b/include/clock.h index 5f2f53ab6..211748f3a 100644 --- a/include/clock.h +++ b/include/clock.h @@ -43,6 +43,8 @@

Re: [PATCH] LICENSES: adopt Linux-like LICENSES directory structure

2019-02-11 Thread Sascha Hauer
On Thu, Feb 07, 2019 at 03:58:03PM +0100, Ahmad Fatoum wrote: > At the moment > grep -R --exclude-dir=build --exclude-dir=.git -P > 'SPDX-License-Identifier:' | ack -v 'GPL-2.0' > > shows me 39 non-dually-licensed source code files (SoCFPGA) that have a > BSD-3-Clause license

Re: [PATCH v1] MIPS: ath79: art: fix SPDX-License-Identifier

2019-02-11 Thread Sascha Hauer
On Fri, Feb 08, 2019 at 06:53:48AM +0100, Oleksij Rempel wrote: > Signed-off-by: Oleksij Rempel > --- > arch/mips/mach-ath79/art.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/mach-ath79/art.c b/arch/mips/mach-ath79/art.c > index 984d087363..efc02d611d

Re: mci: SDHC generic driver? refactor dove-sdhci?

2019-02-11 Thread Sascha Hauer
Hi Yann, On Fri, Feb 08, 2019 at 04:49:09PM +0100, Yann Sionneau wrote: > Hello, > > I've written a driver for snps,dw-mshc, which is compatible with SDHC spec. Are you sure? "snps,dw-mshc" is not compatible to SDHCI and has a separate driver in Linux. We also have this driver in barebox, not

Re: [PATCH v1] MIPS: ath79: art: fix SPDX-License-Identifier

2019-02-11 Thread Oleksij Rempel
On 11.02.19 09:05, Sascha Hauer wrote: On Fri, Feb 08, 2019 at 06:53:48AM +0100, Oleksij Rempel wrote: Signed-off-by: Oleksij Rempel --- arch/mips/mach-ath79/art.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mach-ath79/art.c b/arch/mips/mach-ath79/art.c

Re: [PATCH 0/7] Harmonize barebox' and dt-utils' state code

2019-02-11 Thread Sascha Hauer
On Fri, Feb 08, 2019 at 08:15:19AM +0100, Ulrich Ölmann wrote: > These patches remove further differences between the common codebase of > barebox' > and dt-utils' state implementation. > > Ulrich Ölmann (7): > common: state: fix compiler warnings about wrong type conversion in > messages

Re: [PATCH] ARM: phyCORE-i.MX8M SOM support

2019-02-11 Thread Sascha Hauer
Hi Christian, On Wed, Feb 06, 2019 at 07:41:22PM +0100, Christian Hemp wrote: > The phyCORE-i.MX8M aka PCL-066 is a SoM containing a i.MX8M SoC. > > phyCORE-i.MX8M: > - 1GB LPDDR4 RAM > - eMMC > - microSD > - Ethernet > > + > diff --git a/arch/arm/dts/imx8mq-phytec-phycore-som.dts >

Accessing MMC/SD card storage on Raspberry Pi

2019-02-11 Thread Tomaž Šolc
Dear all, I've been trying to set up Barebox on a Raspberry Pi Compute Module 3. After some small fixes (see below) I've got 2019.01.0 to boot to a command line on the serial port. However I can't get access to the MMC storage to load a kernel ("no /dev/disk0.0. using default env") Looking

[PATCH 4/7] drivers: of: Add function to enable and register a device by alias

2019-02-11 Thread Teresa Remmet
In some cases node names are not unique and passing the full path is really long. So make add a new device by passing the alias string possible. Signed-off-by: Teresa Remmet --- drivers/of/platform.c | 19 +++ include/of.h | 8 2 files changed, 27

[PATCH 6/7] net: ethernet: cpsw: cpsw-phy-sel: Use phandle for phy sel

2019-02-11 Thread Teresa Remmet
With the usage of the interconnect target module hierarchy in device tree the cpsw-phy-sel node moved to the system control module. An phandle has been added instead to the device tree include. Try to use the cpsw-phy-sel phandle first then fall back looking for the cpsw-phy-sel child. This

[PATCH 5/7] arm: mach-omap: am335x_generic: Enable nodes by alias where needed

2019-02-11 Thread Teresa Remmet
With the interconnet target module hierarchy the node names used to enable boot devices are not unique any more. Find those nodes by alias now. Signed-off-by: Teresa Remmet --- arch/arm/mach-omap/am33xx_generic.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 7/7] arm: dts: am335x-phytec: Use phy-handle instead of phy_id

2019-02-11 Thread Teresa Remmet
Update am335x-phytec som device trees and use phy-handle instead of phy_id. Signed-off-by: Teresa Remmet --- arch/arm/dts/am335x-phytec-phycard-som.dtsi | 7 ++- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 7 ++- arch/arm/dts/am335x-phytec-phyflex-som.dtsi | 12 ++-- 3 files

[PATCH 1/7] drivers: bus: Add ti-sysc bus driver

2019-02-11 Thread Teresa Remmet
Adds minimal support for the sysc interconnect target module found on many TI SoCs. With this device tree includes have been rearagned. We need the driver to probe the child devices of the bus. Signed-off-by: Teresa Remmet --- drivers/bus/Kconfig | 7 +++ drivers/bus/Makefile | 1 +

[PATCH 0/7] Add ti-sysc bus driver

2019-02-11 Thread Teresa Remmet
Hello, with the device tree update to v5.0-rc2 most of the barebox devices could not be enabled or probed any more. The am33xx*.dtsi files have been updated to the interconnect target module hierarchy. To make barebox working again we need a ti-sysc bus driver to register the child devices of the

[PATCH 2/7] arm: configs: omap_defconfig: Enable ti-sysc bus driver

2019-02-11 Thread Teresa Remmet
Signed-off-by: Teresa Remmet --- arch/arm/configs/omap_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/omap_defconfig b/arch/arm/configs/omap_defconfig index 128027a6406b..8615283453d4 100644 --- a/arch/arm/configs/omap_defconfig +++

[PATCH 3/7] arm: configs: am33xx_mlo_defconfig: Enable ti-sysc bus driver

2019-02-11 Thread Teresa Remmet
Signed-off-by: Teresa Remmet --- arch/arm/configs/am335x_mlo_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/am335x_mlo_defconfig b/arch/arm/configs/am335x_mlo_defconfig index 58034b6cea15..b58b71a85937 100644 ---

Re: [PATCH 1/7] drivers: bus: Add ti-sysc bus driver

2019-02-11 Thread Sam Ravnborg
Hi Teresa. On Mon, Feb 11, 2019 at 04:16:34PM +0100, Teresa Remmet wrote: > Adds minimal support for the sysc interconnect target module found > on many TI SoCs. With this device tree includes have been rearagned. s/rearagned/rearranged" > We need the driver to probe the child devices of the

AM335x broken

2019-02-11 Thread Teresa Remmet
Hello, AM335x is broken on current master in multiple ways. NAND and and SPI boot are not working right now as the image size can not be found: barebox 2019.01.0-00305-g96abbe544e19 #1682 Mon Feb 11 15:20:00 CET 2019 Board: Phytec phyCORE AM335x nand: ONFI flash detected nand: NAND device:

Re: [PATCH] ARM: phyCORE-i.MX8M SOM support

2019-02-11 Thread Lucas Stach
Hi Christian, Am Mittwoch, den 06.02.2019, 19:41 +0100 schrieb Christian Hemp: > The phyCORE-i.MX8M aka PCL-066 is a SoM containing a i.MX8M SoC. > > phyCORE-i.MX8M: >  - 1GB LPDDR4 RAM >  - eMMC >  - microSD >  - Ethernet > > Signed-off-by: Christian Hemp > --- >  arch/arm/boards/Makefile 

Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable

2019-02-11 Thread Roland Hieber
On Fri, Feb 08, 2019 at 09:59:02AM +0100, Roland Hieber wrote: > I noticed that Linux usually removes the license headers and only keeps > the copyright lines, but I wasn't able to find any reason for that. Do > you have more insight here? I tried to google around a bit, and found several

Re: [PATCH 1/6] include: add SPDX GPL-2.0-only license tags where applicable

2019-02-11 Thread Roland Hieber
On Fri, Feb 08, 2019 at 10:09:19AM +0100, Ahmad Fatoum wrote: > > > On 8/2/19 09:59, Roland Hieber wrote: > > On Fri, Feb 08, 2019 at 06:48:26AM +0100, Oleksij Rempel wrote: > >> Hi Roland, > >> > >> please remove deprecated license headers in same patch. > > > > I decided to leave them to

[PATCH 1/2] of: base: add helper to rename a node

2019-02-11 Thread Marco Felsch
Sometimes it can be necessary to rename a node, e.g. to override/create a node which gets renamed upstream. Signed-off-by: Marco Felsch --- drivers/of/base.c | 18 ++ include/of.h | 5 + 2 files changed, 23 insertions(+) diff --git a/drivers/of/base.c

[PATCH 2/2] memory: of_fixup: adapt to new memory layout

2019-02-11 Thread Marco Felsch
Since kernel 4.16 the memory nodes got a @ suffix so the fixup won't work correctly anymore, because instead of adapting the extisting one it creates a new node. To be compatible with the old and new layout delete the found memory node and create a new one. The new node follows the new @ style.