[U-Boot] [PATCH v2 13/20] phy: marvell: a3700: Save/restore selector reg in SGMII init

2018-04-24 Thread Marek Behún
In SGMII initialization PIN_PIPE_SEL has to be zero when resetting the PHY. Since comphy_mux already set the selector register to correct values, we have to store it's value before setting it to 0 and restore it after SGMII init. Signed-off-by: Marek Behun Reviewed-by: Stefan

[U-Boot] [PATCH v2 12/20] phy: marvell: a3700: Use comphy_mux on Armada 37xx.

2018-04-24 Thread Marek Behún
Lane 0 supports SGMII1 and USB3. Lane 1 supports SGMII0 and PEX0. Lane 2 supports SATA0 and USB3. This is needed for Armada 37xx. This introduces new device tree bindings. AFAIK there is currently no driver for Armada 37xx comphy in Linux. When such a driver will be pushed into Linux, this will

[U-Boot] [PATCH v2 10/20] phy: marvell: mux: Support nontrivial node order in selector register

2018-04-24 Thread Marek Behún
Currently comphy_mux supports only trivial order of nodes in pin selector register, that is lane N on position N*bitcount. Add support for nontrivial order, with map stored in device tree property mux-lane-order. This is needed for Armada 37xx. As far as I know, there is no driver for Armada

[U-Boot] [PATCH v2 18/20] net: mvneta: Fix fault when wrong device tree

2018-04-24 Thread Marek Behún
The driver does not check id phy_connect failed (for example on wrong property name in device tree). In such a case a fault occurs and the CPU is restarted. Signed-off-by: Marek Behun Reviewed-by: Stefan Roese --- drivers/net/mvneta.c | 4 1 file changed,

[U-Boot] [PATCH v2 07/20] phy: marvell: a3700: Access USB3 register indirectly on lane 2

2018-04-24 Thread Marek Behún
When USB3 is on comphy lane 2 on the Armada 37xx, the registers have to be accessed indirectly via SATA indirect access. This is the case of the Turris Mox board from CZ.NIC. Signed-off-by: Marek Behun --- drivers/phy/marvell/comphy_a3700.c | 102

[U-Boot] [PATCH v2 19/20] watchdog: Add support for Armada 37xx CPU watchdog

2018-04-24 Thread Marek Behún
This adds support for the CPU watchdog found on Marvell Armada 37xx SoCs. There are 4 counters which can be set as CPU watchdog counters. This driver uses the second counter (ID 1, counting from 0) (Marvell's Linux also uses second counter by default). In the future it could be adapted to use

[U-Boot] [PATCH] fs: btrfs: Remove unused debug code left from development

2018-03-19 Thread Marek Behún
Signed-off-by: Marek Behun --- fs/btrfs/btrfs.c | 4 fs/btrfs/ctree.c | 10 -- 2 files changed, 14 deletions(-) diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index 4140e2bc20..b01b111bfb 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -221,7 +221,3

Re: [U-Boot] [PATCH v1 10/19] phy: marvell: mux: Support nontrivial node order in selector register

2018-03-23 Thread Marek Behún
On Wed, 21 Mar 2018 10:19:16 +0100 Stefan Roese wrote: > I currently have no overview of the (ongoing ?) PHY support for > A37xx in Linux. I know that we don't match the Linux upstream dts > files in U-Boot currently. But we should strive to move to the > "official" DT properties

[U-Boot] [PATCH] pinctrl: Kconfig: Fix typo

2018-03-02 Thread Marek Behún
Signed-off-by: Marek Behun --- drivers/pinctrl/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 0a4dd3c0cf..ad0b8daba6 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig

[U-Boot] [PATCH usb RFC] usb: Make vbus-supply code common

2018-11-08 Thread Marek Behún
The code for vbus-supply regulator enabling/disabling is repeated in several drivers. Create a header file with static inline definitions of the funtions and use them in some of those drivers. Signed-off-by: Marek Behún --- drivers/usb/host/dwc2.c | 61

[U-Boot] ARM64: armada3720: strange u-boot freeze (how to debug?)

2018-11-08 Thread Marek Behún
Hello, during my development for U-Boot on Turris Mox I keep encountering this strange bug when sometimes U-Boot gets compiled in such a way that it freezes after printing the first line: U-Boot 2018.11-rc3-00065-gfc69da4cb1-dirty (Nov 08 2018 - 15:51:52 +0100) This bug disappears if I

Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-10-02 Thread Marek Behún
Tested-by: Marek Behún Hello Tom, could you please apply the patch by Yevgeny? Marek On Fri, 7 Sep 2018 12:59:30 +0300 Yevgeny Popovych wrote: > When traversing slots in a btree (via btrfs_path) with > btrfs_next_slot(), we didn't correctly identify that the last slot in >

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Behún
On Tue, 2 Oct 2018 13:43:55 +0200 Marek Vasut wrote: > On 10/02/2018 01:27 PM, Marek Behún wrote: > > Tested-by: Marek Behún > > btw don't you see those warnings/problems on the Armada platform ? I > presume this is mostly used on the Omnia. Maybe the cache al

Re: [U-Boot] [PATCH] fs: btrfs: Fix cache alignment bugs

2018-10-02 Thread Marek Behún
Tested-by: Marek Behún On Sat, 22 Sep 2018 04:13:35 +0200 Marek Vasut wrote: > The btrfs implementation passes cache-unaligned buffers into the > block layer, which triggers cache alignment problems down in the > block device drivers. Align the buffers to prevent this. >

Re: [U-Boot] [PATCH] fs: btrfs: Fix tree traversal with btrfs_next_slot()

2018-10-01 Thread Marek Behún
I shall test this today or tomorrow, but have too many things on my head, sorry :( You saying that this will fix reading large files? I haven't encountered such an error yet, but can try creating a large enough file. How large should it be? On Mon, 1 Oct 2018 08:50:11 +0300 Yevgeny Popovych

Re: [U-Boot] [PATCH u-boot-marvell v3 06/10] watchdog: armada_37xx: Fix compliance with kernel's driver

2018-12-11 Thread Marek Behún
. Marek On Thu, 29 Nov 2018 14:03:27 +0100 Stefan Roese wrote: > On 20.11.18 13:04, Marek Behún wrote: > > The Armada 37xx watchdog driver was recently accepted for mainline > > kernel by watchdog subsystem maintainer, but the driver works a > > little different than the one

[U-Boot] [PATCH v4 04/10] arm: mvebu: dts: Fix Turris Mox device tree

2018-12-17 Thread Marek Behún
the comphy driver for PCI Express, but should be 5 GHz nonetheless). Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- arch/arm/dts/armada-3720-turris-mox.dts | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/armada-3720-turris-mox.dts b/arch/arm/dts

[U-Boot] [PATCH v4 00/10] Changes for Turris Mox

2018-12-17 Thread Marek Behún
This is the fourth version of patches for Turris Mox. Changes from previous version: - changed patch subject prefix from board: turris_mox to arm: mvebu: turris_mox as requested by Stefan - added Reviewed-by Stefan - add description of the changes for watchdog in patch 6 - patch 9 reworked

[U-Boot] [PATCH v4 05/10] arm: mvebu: turris_mox: Update defconfig

2018-12-17 Thread Marek Behún
controller is initialized. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_mox_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 749ed31acd..e89e6617ca 100644 --- a/configs/turris_mox_defconfig

[U-Boot] [PATCH v4 07/10] MAINTAINERS: Add entry for CZ.NIC's Turris project

2018-12-17 Thread Marek Behún
Add myself as the maintainer of CZ.NIC's Turris Omnia and Turris Mox projects. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0fb089807c..83f7d8fc08 100644 --- a/MAINTAINERS +++ b

[U-Boot] [PATCH v4 10/10] arm: mvebu: configs: turris_mox: Add 64 MiB of boot memory

2018-12-17 Thread Marek Behún
This is needed for some scenarios, such as booting large FIT image. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- include/configs/turris_mox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/turris_mox.h b/include/configs/turris_mox.h index 0aebe2100b

[U-Boot] [PATCH v4 06/10] watchdog: armada_37xx: Fix compliance with kernel's driver

2018-12-17 Thread Marek Behún
counting from the set timeout again. So Counter 1 is set to be reset on Counter 0 expiry event event and pinging is done by forcing an immediate expiry event on Counter 0. Signed-off-by: Marek Behún --- drivers/watchdog/armada-37xx-wdt.c | 109 ++--- 1 file changed, 67

[U-Boot] [PATCH v4 09/10] arm: mvebu: turris_mox: Support 1 GB version of Turris Mox

2018-12-17 Thread Marek Behún
Use get_ram_size to determine if the RAM size on Turris Mox is 512 MiB or 1 GiB. Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/arm64-common.c | 4 ++-- board/CZ.NIC/turris_mox/turris_mox.c | 16 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm

[U-Boot] [PATCH v4 02/10] arm: mvebu: turris_mox: Change SERDES map depending on module topology

2018-12-17 Thread Marek Behún
When SFP module is connected directly to CPU module we want the SGMII lane speed at 1.25 Gbps. This is a temporary solution till there is a comphy driver in the kernel capable of changing SGMII speed at runtime. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_mox

[U-Boot] [PATCH v4 08/10] arm: mvebu: turris_mox: Read info (and ethaddrs) from OTP

2018-12-17 Thread Marek Behún
Add support for reading One-Time Programmable memory via mailbox, which communicates with CZ.NIC's firmware on the Secure Processor (Cortex-M3) of Armada 3720. Display product serial number and additional info, and also set MAC addresses. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese

[U-Boot] [PATCH v4 01/10] arm: mvebu: turris_mox: Cosmetic restructurization

2018-12-17 Thread Marek Behún
Restructure the board initialization source. Remove the module_topology environment variable since it won't be needed. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_mox/turris_mox.c | 136 ++- 1 file changed, 89 insertions(+), 47 deletions

[U-Boot] [PATCH v4 03/10] arm: mvebu: turris_mox: Check and configure modules

2018-12-17 Thread Marek Behún
Check if Mox modules are connected in supported mode, then configure the MDIO addresses of switch modules. Signed-off-by: Marek Behún --- arch/arm/dts/armada-3720-turris-mox.dts | 11 ++ board/CZ.NIC/turris_mox/turris_mox.c| 234 +++- 2 files changed, 244 insertions

Re: [U-Boot] [PATCH u-boot-marvell v3 09/10] board: turris_mox: Support 1 GB version of Turris Mox

2018-12-11 Thread Marek Behún
: > On 20.11.18 13:04, Marek Behún wrote: > > Depending on the data in the OTP memory, differentiate between the > > 512 MiB and 1 GiB versions of Turris Mox and report these RAM sizes > > in dram_init and dram_init_banksize. > > > > Signed-off-by: Marek Behún

Re: [U-Boot] FOSDEM Hardware Enablement Devroom

2018-12-04 Thread Marek Behún
Hello, do you know when the results about which proposals were accepted will be available? Thanks. Marek On Mon, 13 Nov 2017 11:57:31 +0100 Paul Kocialkowski wrote: > A Hardware Enablement devroom will be taking place at FOSDEM this > year, on Sunday 10 December 2017. This newly-created devroom

[U-Boot] [PATCH u-boot-marvell v3 08/10] board: turris_mox: Read info (and ethaddrs) from OTP

2018-11-20 Thread Marek Behún
Add support for reading One-Time Programmable memory via mailbox, which communicates with CZ.NIC's firmware on the Secure Processor (Cortex-M3) of Armada 3720. Display product serial number and additional info, and also set MAC addresses. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_mox

[U-Boot] [PATCH u-boot-marvell v3 06/10] watchdog: armada_37xx: Fix compliance with kernel's driver

2018-11-20 Thread Marek Behún
The Armada 37xx watchdog driver was recently accepted for mainline kernel by watchdog subsystem maintainer, but the driver works a little different than the one in U-Boot. This patch fixes this. Signed-off-by: Marek Behún --- drivers/watchdog/armada-37xx-wdt.c | 109

[U-Boot] [PATCH u-boot-marvell v3 10/10] configs: turris_mox: Add 64 MiB of boot memory

2018-11-20 Thread Marek Behún
This is needed for some scenarios, such as booting large FIT image. Signed-off-by: Marek Behún --- include/configs/turris_mox.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/turris_mox.h b/include/configs/turris_mox.h index 0aebe2100b..82cdccecc1 100644 --- a/include

[U-Boot] [PATCH u-boot-marvell v3 05/10] board: turris_mox: Update defconfig

2018-11-20 Thread Marek Behún
controller is initialized. Signed-off-by: Marek Behún --- configs/turris_mox_defconfig | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig index 749ed31acd..e89e6617ca 100644 --- a/configs/turris_mox_defconfig +++ b/configs

[U-Boot] [PATCH u-boot-marvell v3 02/10] board: turris_mox: Change SERDES map depending on module topology

2018-11-20 Thread Marek Behún
When SFP module is connected directly to CPU module we want the SGMII lane speed at 1.25 Gbps. This is a temporary solution till there is a comphy driver in the kernel capable of changing SGMII speed at runtime. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_mox/turris_mox.c | 33

[U-Boot] [PATCH u-boot-marvell v3 03/10] board: turris_mox: Check and configure modules

2018-11-20 Thread Marek Behún
Check if Mox modules are connected in supported mode, then configure the MDIO addresses of switch modules. Signed-off-by: Marek Behún --- arch/arm/dts/armada-3720-turris-mox.dts | 11 ++ board/CZ.NIC/turris_mox/turris_mox.c| 251 +++- 2 files changed, 261 insertions

[U-Boot] [PATCH u-boot-marvell v3 01/10] board: turris_mox: Cosmetic restructurization

2018-11-20 Thread Marek Behún
Restructure the board initialization source. Remove the module_topology environment variable since it won't be needed. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_mox/turris_mox.c | 136 ++- 1 file changed, 89 insertions(+), 47 deletions(-) diff --git a/board

[U-Boot] [PATCH u-boot-marvell v3 07/10] MAINTAINERS: Add entry for CZ.NIC's Turris project

2018-11-20 Thread Marek Behún
Add myself as the maintainer of CZ.NIC's Turris Omnia and Turris Mox projects. Signed-off-by: Marek Behún --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index abdb6dcdb5..57a3b35bad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -118,6

[U-Boot] [PATCH u-boot-marvell v3 09/10] board: turris_mox: Support 1 GB version of Turris Mox

2018-11-20 Thread Marek Behún
Depending on the data in the OTP memory, differentiate between the 512 MiB and 1 GiB versions of Turris Mox and report these RAM sizes in dram_init and dram_init_banksize. Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/arm64-common.c | 7 ++- board/CZ.NIC/turris_mox/turris_mox.c | 27

[U-Boot] [PATCH u-boot-marvell v3 04/10] arch/arm/dts: Fix Turris Mox device tree

2018-11-20 Thread Marek Behún
the comphy driver for PCI Express, but should be 5 GHz nonetheless). Signed-off-by: Marek Behún --- arch/arm/dts/armada-3720-turris-mox.dts | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/armada-3720-turris-mox.dts b/arch/arm/dts/armada-3720-turris-mox.dts

Re: [U-Boot] [PATCH u-boot] pci: ensure enumeration of all devices in pci_init

2019-05-22 Thread Marek Behún
On Tue, 21 May 2019 13:43:54 +0200 Stefan Roese wrote: > (Added Simon & Bin to Cc) > > On 21.05.19 12:04, Marek Behún wrote: > > Use the uclass_first_device_check and uclass_next_device_check > > functions instead of uclass_first_device and uclass_next_device in &

[U-Boot] [PATCH v2 u-boot-marvell 1/7] arm: mvebu: turris_omnia: set default ethernet adapter

2019-05-24 Thread Marek Behún
Set default value for the ethact variable to the WAN port. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 018f54428b..290828d73e 100644 --- a/include/configs

[U-Boot] [PATCH v2 u-boot-marvell 0/7] More fixes for Turris Omnia

2019-05-24 Thread Marek Behún
Hi Stefan, here is v2 of the last fixes for Turris Omnia. Changes: - removed the #ifdef you asked for - added a patch changing the bootargs setting in Omnia rescue bootcmd Marek Marek Behún (7): arm: mvebu: turris_omnia: set default ethernet adapter arm: mvebu: turris_omnia: fix adapters

[U-Boot] [PATCH v2 u-boot-marvell 2/7] arm: mvebu: turris_omnia: fix adapters MAC addresses

2019-05-24 Thread Marek Behún
to the description on the stickers sticked on actual Omnias. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index ad6e29021e

[U-Boot] [PATCH v2 u-boot-marvell 4/7] arm: mvebu: turris_omnia: remove unneeded macro from board config

2019-05-24 Thread Marek Behún
This is not needed here since Omnia is using DM_PCI now. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 8e3d5cc8cf..26f85466a4 100644 --- a/include

[U-Boot] [PATCH v2 u-boot-marvell 5/7] arm: mvebu: turris_omnia: prefer SCSI booting before USB

2019-05-24 Thread Marek Behún
If SCSI and USB boot options are both available, try to boot from SCSI first. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 26f85466a4

[U-Boot] [PATCH v2 u-boot-marvell 6/7] arm: mvebu: turris_omnia: call pci_init from board init code

2019-05-24 Thread Marek Behún
We always want to enumerate PCIe devices, because withouth this they won't work in Linux. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia

[U-Boot] [PATCH v2 u-boot-marvell 7/7] arm: mvebu: turris_omnia: fix rescue mode bootcmd bootargs setting

2019-05-24 Thread Marek Behún
nformation and the omniarescue paramterer). Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index eee150892a..5f6ea35e5f 100644 -

[U-Boot] [PATCH v2 u-boot-marvell 3/7] arm: mvebu: turris_omnia: change environment address in SPI flash

2019-05-24 Thread Marek Behún
The U-Boot partition is 1 MiB and environment is 64 KiB. It does not make sense to have environment at 0xc when it could be at 0xf and we can have more space for U-Boot binary. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH u-boot-marvell 5/6] arm: mvebu: turris_omnia: prefer SCSI booting before USB

2019-05-09 Thread Marek Behún
If SCSI and USB boot options are both available, try to boot from SCSI first. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 26f85466a4

[U-Boot] [PATCH u-boot-marvell 3/6] arm: mvebu: turris_omnia: change environment address in SPI flash

2019-05-09 Thread Marek Behún
The U-Boot partition is 1 MiB and environment is 64 KiB. It does not make sense to have environment at 0xc when it could be at 0xf and we can have more space for U-Boot binary. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH u-boot-marvell 2/6] arm: mvebu: turris_omnia: fix adapters MAC addresses

2019-05-09 Thread Marek Behún
to the description on the stickers sticked on actual Omnias. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index ad6e29021e

[U-Boot] [PATCH u-boot-marvell 4/6] arm: mvebu: turris_omnia: remove unneeded macro from board config

2019-05-09 Thread Marek Behún
This is not needed here since Omnia is using DM_PCI now. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 8e3d5cc8cf..26f85466a4 100644 --- a/include

[U-Boot] [PATCH u-boot-marvell 6/6] arm: mvebu: turris_omnia: call pci_init from board init code

2019-05-09 Thread Marek Behún
We always want to enumerate PCIe devices, because withouth this they won't work in Linux. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia

[U-Boot] [PATCH 1/1] pci: pci_mvebu: ignore the local device

2019-05-09 Thread Marek Behún
t solution here in my opinion is to just ignore the local device in this driver's read/write methods. This fixes PCIe issues for me. Signed-off-by: Marek Behún Cc: Stefan Roese Cc: Anton Schubert Cc: Dirk Eibach Cc: Mario Six Cc: Chris Packham Cc: Phil Sutter Cc: VlaoMao --- drivers/pci/p

[U-Boot] [PATCH u-boot-marvell 0/6] More fixes for Turris Omnia

2019-05-09 Thread Marek Behún
Hi Stefan, I am sending five another fixes for Turris Omnia. Marek Marek Behún (6): arm: mvebu: turris_omnia: set default ethernet adapter arm: mvebu: turris_omnia: fix adapters MAC addresses arm: mvebu: turris_omnia: change environment address in SPI flash arm: mvebu: turris_omnia

[U-Boot] [PATCH u-boot-marvell 1/6] arm: mvebu: turris_omnia: set default ethernet adapter

2019-05-09 Thread Marek Behún
Set default value for the ethact variable to the WAN port. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 018f54428b..290828d73e 100644 --- a/include/configs

[U-Boot] [PATCH u-boot] pci: ensure enumeration of all devices in pci_init

2019-05-21 Thread Marek Behún
the failed device are not probed. Signed-off-by: Marek Behún Cc: Stefan Roese Cc: Anton Schubert Cc: Dirk Eibach Cc: Mario Six Cc: Chris Packham Cc: Phil Sutter Cc: VlaoMao Cc: Tom Rini --- drivers/pci/pci-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: fix bus enumeration if some buses have empty slots

2019-05-16 Thread Marek Behún
Hi Mario, you are right. I shall send a new patch chaning pci_init to use the _check functions after I test it. Marek On Wed, 15 May 2019 07:05:43 +0200 Mario Six wrote: > Hi Marek, > > On Tue, May 14, 2019 at 5:12 PM Marek Behún > wrote: > > > > The documentation fo

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: fix bus enumeration if some buses have empty slots

2019-05-14 Thread Marek Behún
On Tue, 14 May 2019 16:58:59 +0200 Marek Behún wrote: > The ofdata_to_platdata method for this driver returns -ENODEV if link > is down for a given bus, for example if there is no device in the > slot. This causes the uclass_{first,next}_device to return NULL for > thi

Re: [U-Boot] [PATCH 1/1] pci: pci_mvebu: fix bus enumeration if some buses have empty slots

2019-05-14 Thread Marek Behún
The documentation for the uclass_next_device says this: @devp: On entry, pointer to device to lookup. On exit, returns pointer to the next device in the uclass if no error occurred, or NULL if there is no next device, or an error occurred with that next device. But this is useless, because

[U-Boot] [PATCH 1/1] pci: pci_mvebu: fix bus enumeration if some buses have empty slots

2019-05-14 Thread Marek Behún
. So if the slot on the first bus is empty on Turris Omnia, and the slot on second bus has a device connected, the device is not probed in U-Boot. On Turris Omnia the PCIe devices have to be probed in U-Boot to work correctly in Linux. Therefore we need this fix. Signed-off-by: Marek Behún Cc: Stefan

[U-Boot] [PATCH u-boot-marvell v2.1 15/15] i2c: mvtwsi: fix reading status register after interrupt

2019-05-01 Thread Marek Behún
does not appear if I add a small delay before reading status register. Wait 100ns (which in U-Boot currently means 1 us, because ndelay(i) function calls udelay(DIV_ROUND_UP(i, 1000))) before reading the status register. Signed-off-by: Marek Behún Acked-by: Heiko Schocher Cc: Mario Six Cc

[U-Boot] [PATCH v2 0/3] fs: btrfs: Add zstd decompression support

2019-04-29 Thread Marek Behún
since v1: - changed xxhash and zstd sources to use SPDX license identifiers Marek Behún (3): lib: Add xxhash support lib: add Zstandard decompression support fs: btrfs: add zstd decompression support fs/btrfs/Kconfig |1 + fs/btrfs/btrfs_tree.h |5 +- fs/btrfs

[U-Boot] [PATCH v2 1/3] lib: Add xxhash support

2019-04-29 Thread Marek Behún
d. Signed-off-by: Marek Behún --- include/linux/xxhash.h | 229 lib/Kconfig| 3 + lib/Makefile | 1 + lib/xxhash.c | 467 + 4 files changed, 700 insertions(+) create mode 100644 include/linux/xxhash

[U-Boot] [PATCH v2 3/3] fs: btrfs: add zstd decompression support

2019-04-29 Thread Marek Behún
This adds decompression support for Zstandard, which has been included in Linux btrfs driver for some time. Signed-off-by: Marek Behún --- fs/btrfs/Kconfig | 1 + fs/btrfs/btrfs_tree.h | 5 ++-- fs/btrfs/compression.c | 59 ++ 3 files changed, 63

[U-Boot] [PATCH u-boot-marvell v2 15/15] i2c: mvtwsi: fix reading status register after interrupt

2019-04-29 Thread Marek Behún
does not appear if I add a small delay before reading status register. Wait 100ns (which in U-Boot currently means 1 us, because ndelay(i) function calls udelay(DIV_ROUND_UP(i, 1000))) before reading the status register. Signed-off-by: Marek Behún Cc: Mario Six Cc: Stefan Roese Cc: Baruch

[U-Boot] [PATCH u-boot-marvell v2 10/15] arm: mvebu: turris_omnia: refactor more code

2019-04-29 Thread Marek Behún
Refactor RAM size reading from EEPROM in preparation for next patch. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 58 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC

[U-Boot] [PATCH u-boot-marvell v2 12/15] arm: mvebu: turris_*: remove watchdog include

2019-04-29 Thread Marek Behún
Since board watchdog is now unified and not handled in board files, remove the unnecessary includes. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_mox/turris_mox.c | 4 board/CZ.NIC/turris_omnia/turris_omnia.c | 4 2 files changed, 8 deletions(-) diff --git a/board/CZ.NIC

[U-Boot] [PATCH u-boot-marvell v2 11/15] arm: mvebu: turris_omnia: print board info as Turris Mox

2019-04-29 Thread Marek Behún
Unify the way how Omnia and Mox print board information (RAM size and serial number). Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC

[U-Boot] [PATCH u-boot-marvell v2 02/15] arm: mvebu: turris_omnia: add XHCI to defconfig

2019-04-29 Thread Marek Behún
Add XHCI_HOST and XHCI_MVEBU to defconfig, so that user's can by default boot from USB on Turris Omnia. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

[U-Boot] [PATCH u-boot-marvell v2 03/15] arm: mvebu: turris_omnia: use AHCI and SATA driver model

2019-04-29 Thread Marek Behún
Enable AHCI, SCSI and SATA for compliance with the driver model migration. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 2ad2f6e431..5086da13a5 100644

[U-Boot] [PATCH u-boot-marvell v2 07/15] arm: mvebu: turris_omnia: refactor I2C accessing code

2019-04-29 Thread Marek Behún
Refactor code which accesses the microcontroller and EEPROM via I2C. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 205 --- 1 file changed, 109 insertions(+), 96 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC

[U-Boot] [PATCH u-boot-marvell v2 08/15] arm: mvebu: turris_omnia: fix checkpatch warnings

2019-04-29 Thread Marek Behún
Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 6b8fa53c98..d4fb89f15f 100644 --- a/board/CZ.NIC

[U-Boot] [PATCH u-boot-marvell v2 05/15] arm: mvebu: turris_omnia: move I2C dependencies to Kconfig

2019-04-29 Thread Marek Behún
The I2C dependencies are defined in include/configs/turris_omnia.h, because Turris Omnia won't boot correctly without I2C support. Move these dependencies to Kconfig, so that they are selected if Turris Omnia is selected as target. Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/Kconfig

[U-Boot] [PATCH u-boot-marvell v2 09/15] arm: mvebu: turris_omnia: move ATSHA204A from defconfig to Kconfig

2019-04-29 Thread Marek Behún
This driver is required for Turris Omnia to read ethernet addresses. Move the dependency from turris_omnia_defconfig to Kconfig. Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/Kconfig | 1 + board/CZ.NIC/turris_omnia/turris_omnia.c | 11 --- configs

[U-Boot] [PATCH u-boot-marvell v2 14/15] arm: mvebu: turris_omnia: add RESET button handling

2019-04-29 Thread Marek Behún
-by: Marek Behún --- arch/arm/mach-mvebu/Kconfig | 43 board/CZ.NIC/turris_omnia/turris_omnia.c | 23 + 2 files changed, 66 insertions(+) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index fc29c3b084..4229a505d1 100644

[U-Boot] [PATCH u-boot-marvell v2 06/15] arm: mvebu: turris_omnia: add SCSI as boot target

2019-04-29 Thread Marek Behún
If SCSI is enabled, U-Boot should try to boot also from SCSI device on Turris Omnia. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 5a7539c9be

[U-Boot] [PATCH u-boot-marvell v2 04/15] arm: mvebu: turris_omnia: remove legacy macros from board header

2019-04-29 Thread Marek Behún
These are not needed if MMC and SCSI DM drivers are used. Signed-off-by: Marek Behún --- include/configs/turris_omnia.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 0e65a12345..5e692e6829 100644

[U-Boot] [PATCH u-boot-marvell v2 01/15] arm: mvebu: turris_omnia: remove redundant code

2019-04-29 Thread Marek Behún
The i2c slave disabling is done by mvtwsi driver and is not needed here. Signed-off-by: Marek Behún --- board/CZ.NIC/turris_omnia/turris_omnia.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c

[U-Boot] [PATCH u-boot-marvell v2 00/15] Fixes for Turris Omnia

2019-04-29 Thread Marek Behún
the button on the back side of Omnia, the purpose of which is factory reset 15. fix I2C driver, which sometimes breaks the I2C controller until the device is powered off Marek Marek Behún (15): arm: mvebu: turris_omnia: remove redundant code arm: mvebu: turris_omnia: add XHCI to defconfig

[U-Boot] [PATCH u-boot-marvell v2 13/15] arm: mvebu: turris_omnia: fix regdomain env var setting

2019-04-29 Thread Marek Behún
The regdomain environment variable is set according to value read from EEPROM. This has to be done in board_late_init, after the environment variables are read from SPI. Select CONFIG_BOARD_LATE_INIT in Kconfig for the Turris Omnia target. Signed-off-by: Marek Behún --- board/CZ.NIC

Re: [U-Boot] [PATCH] turris_omnia: fix eeprom/mcu device names

2019-04-18 Thread Marek Behún
Pierre, please add Reviewed-by: Marek Behún and send also to Stefan Roese Marek On Thu, 11 Apr 2019 01:00:23 +0200 Pierre Bourdon wrote: > Commit c4bd12a7dad4 ("i2c: mux: Generate longer i2c mux name") changed > the naming scheme of i2c devices within a mux. This broke ref

[U-Boot] [PATCH u-boot-marvell v3 01/17] arm: mvebu: turris_omnia: remove redundant code

2019-05-02 Thread Marek Behún
The i2c slave disabling is done by mvtwsi driver and is not needed here. Signed-off-by: Marek Behún Acked-by: Heiko Schocher Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 13 - 1 file changed, 13 deletions(-) diff --git a/board/CZ.NIC/turris_omnia

[U-Boot] [PATCH u-boot-marvell v3 03/17] arm: mvebu: turris_omnia: use AHCI and SATA driver model

2019-05-02 Thread Marek Behún
Enable AHCI, SCSI and SATA for compliance with the driver model migration. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_omnia_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index

[U-Boot] [PATCH u-boot-marvell v3 04/17] arm: mvebu: turris_omnia: remove legacy macros from board header

2019-05-02 Thread Marek Behún
These are not needed if MMC and SCSI DM drivers are used. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- include/configs/turris_omnia.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h index 0e65a12345

[U-Boot] [PATCH u-boot-marvell v3 14/17] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Marek Behún
on the front panel to green and then tries to load the rescue image from the SPI flash memory and boot it. Signed-off-by: Marek Behún --- arch/arm/mach-mvebu/Kconfig | 1 + board/CZ.NIC/turris_omnia/turris_omnia.c | 38 2 files changed, 39 insertions(+) diff --git

[U-Boot] [PATCH u-boot-marvell v3 00/17] Fixes for Turris Omnia

2019-05-02 Thread Marek Behún
- patch 15: added comment as requested by Heiko Marek Behún (17): arm: mvebu: turris_omnia: remove redundant code arm: mvebu: turris_omnia: add XHCI to defconfig arm: mvebu: turris_omnia: use AHCI and SATA driver model arm: mvebu: turris_omnia: remove legacy macros from board header arm

[U-Boot] [PATCH u-boot-marvell v3 02/17] arm: mvebu: turris_omnia: add XHCI to defconfig

2019-05-02 Thread Marek Behún
Add XHCI_HOST and XHCI_MVEBU to defconfig, so that user's can by default boot from USB on Turris Omnia. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- configs/turris_omnia_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs

[U-Boot] [PATCH] fs: btrfs: fix btrfs methods return values on failure

2019-05-02 Thread Marek Behún
ues of these methods to -1 instead of 1 on failure. Signed-off-by: Marek Behún --- fs/btrfs/btrfs.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index 6f35854823..cb7e182742 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrf

[U-Boot] [PATCH] cmd: pxe: add board specific PXE default path

2019-05-02 Thread Marek Behún
quot; path. Signed-off-by: Marek Behún --- cmd/pxe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/pxe.c b/cmd/pxe.c index 274555319b..127751642e 100644 --- a/cmd/pxe.c +++ b/cmd/pxe.c @@ -22,6 +22,9 @@ const char *pxe_default_paths[] = { #ifdef CONFIG_SYS_SOC +#ifdef CONFIG

Re: [U-Boot] [PATCH u-boot-marvell v2 14/15] arm: mvebu: turris_omnia: add RESET button handling

2019-05-02 Thread Marek Behún
On Thu, 2 May 2019 11:43:12 +0200 Stefan Roese wrote: > Please do so. If someone whats to disable this functionality or change > the reset button bootcmd, then he/she/it must do some changes > (defconfig or code). So should I remove the options from Kconfig or enable them by default? BTW: We

[U-Boot] [PATCH u-boot-marvell v3 10/17] arm: mvebu: turris_omnia: refactor more code

2019-05-02 Thread Marek Behún
Refactor RAM size reading from EEPROM in preparation for next patch. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 58 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/board/CZ.NIC/turris_omnia

[U-Boot] [PATCH u-boot-marvell v3 11/17] arm: mvebu: turris_omnia: print board info as Turris Mox

2019-05-02 Thread Marek Behún
Unify the way how Omnia and Mox print board information (RAM size and serial number). Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/board/CZ.NIC/turris_omnia

[U-Boot] [PATCH u-boot-marvell v3 17/17] arm: mvebu: turris_omnia: enable defconfig options needed by vendor

2019-05-02 Thread Marek Behún
This options will be enabled by default by CZ.NIC shipped U-Boot. Enable them in defconfig. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index bba14bbcaf

[U-Boot] [PATCH u-boot-marvell v3 05/17] arm: mvebu: turris_omnia: move I2C dependencies to Kconfig

2019-05-02 Thread Marek Behún
The I2C dependencies are defined in include/configs/turris_omnia.h, because Turris Omnia won't boot correctly without I2C support. Move these dependencies to Kconfig, so that they are selected if Turris Omnia is selected as target. Signed-off-by: Marek Behún Reviewed-by: Heiko Schocher

[U-Boot] [PATCH u-boot-marvell v3 16/17] arm: mvebu: turris_omnia: add GPIO support to defconfig

2019-05-02 Thread Marek Behún
Add support for the gpio command and driver for the I2C connected pca9538 controller, to be able to determine if SFP module is present in the Turris Omnia router. Signed-off-by: Marek Behún --- configs/turris_omnia_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs

[U-Boot] [PATCH u-boot-marvell v3 08/17] arm: mvebu: turris_omnia: fix checkpatch warnings

2019-05-02 Thread Marek Behún
Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- board/CZ.NIC/turris_omnia/turris_omnia.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c index 6b8fa53c98

[U-Boot] [PATCH u-boot-marvell v3 15/17] i2c: mvtwsi: fix reading status register after interrupt

2019-05-02 Thread Marek Behún
does not appear if I add a small delay before reading status register. Wait 100ns (which in U-Boot currently means 1 us, because ndelay(i) function calls udelay(DIV_ROUND_UP(i, 1000))) before reading the status register. Signed-off-by: Marek Behún Reviewed-by: Heiko Schocher Reviewed-by: Stefan

[U-Boot] [PATCH u-boot-marvell v3 09/17] arm: mvebu: turris_omnia: move ATSHA204A from defconfig to Kconfig

2019-05-02 Thread Marek Behún
This driver is required for Turris Omnia to read ethernet addresses. Move the dependency from turris_omnia_defconfig to Kconfig. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese --- arch/arm/mach-mvebu/Kconfig | 1 + board/CZ.NIC/turris_omnia/turris_omnia.c | 11

[U-Boot] [PATCH u-boot-marvell v3 13/17] arm: mvebu: turris_omnia: fix regdomain env var setting

2019-05-02 Thread Marek Behún
The regdomain environment variable is set according to value read from EEPROM. This has to be done in board_late_init, after the environment variables are read from SPI. Select CONFIG_BOARD_LATE_INIT in Kconfig for the Turris Omnia target. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese

<    1   2   3   4   5   6   7   8   9   10   >