R_NET_MACB.
Signed-off-by: Michael Tretter
---
arch/arm/configs/zynqmp_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/configs/zynqmp_defconfig
b/arch/arm/configs/zynqmp_defconfig
index 50b7556081..762103c541 100644
--- a/arch/arm/configs/zynqmp_defconfig
+++ b/arch/a
The config item has been renamed from FIRMWARE_ZYNQMP_PL to
FIRMWARE_ZYNQMP_FPGA, but the defconfig has not been updated. Update it
now.
Signed-off-by: Michael Tretter
---
arch/arm/configs/zynqmp_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/configs
On Thu, 24 Oct 2019 10:26:51 +, Thomas Hämmerle wrote:
> From: Thomas Haemmerle
>
> Port functions from xlnx-linux to get FPGA status and invoke bitstream
> loading.
>
> Signed-off-by: Thomas Haemmerle
Reviewed-by: Michael Tretter
> ---
> arch/arm/mach-
On Thu, 24 Oct 2019 10:26:51 +, Thomas Hämmerle wrote:
> From: Thomas Haemmerle
>
> The driver provides functionalities to check and load a bitstream to FPGA.
> A boolean parameter to check if FPGA is already programmed is
> added.
>
> Signed-off-by: Thomas Haemmerle
> ---
>
On Thu, 24 Oct 2019 10:26:50 +, Thomas Hämmerle wrote:
> From: Michael Tretter
>
> The firmware node will be added to the mainline device tree. As it will
> eventually enter Barebox via a device tree sync, add it to the src tree
> already.
Not sure, but I think that
with blspec entries, e.g.:
boot -l bootchooser /mnt/nfs
Check if a bootentry is a blspec entry by testing if the boot function
is blspec_boot.
Reported-by: Thomas Hämmerle
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2:
- fix compilation error
---
common/blspec.c |
On Mon, 23 Sep 2019 20:30:35 +0200, Ahmad Fatoum wrote:
> On 9/20/19 2:44 PM, Michael Tretter wrote:
> > The list of boot entries can contain items that are not blspec entries.
> > For example, the bootchooser also adds an item to this list. Therefore,
> > blspec cannot unco
with blspec entries, e.g.:
boot -l bootchooser /mnt/nfs
Check if a bootentry is a blspec entry by testing if the boot function
is blspec_boot.
Reported-by: Thomas Hämmerle
Signed-off-by: Michael Tretter
---
common/blspec.c | 10 ++
1 file changed, 10 insertions(+)
diff --git
to
whatever tree is fixed. This is necessary to apply the overlay to
devicetrees that are passed to Linux, which might differ from the
devicetree that is currently live in Barebox.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3: none
v1->v2:
- export function for applying a device tree o
Allows to get the firmware manager using a phandle from the devicetree.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3:
- new separate patch for adding the function
---
common/firmware.c | 18 ++
include/firmware.h | 15 +++
2 files changed, 33 inserti
, finds the responsible firmware_mgr and loads the
firmware.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3:
- move functions from firmware to new module of_firmware
- rename function accordingly
- return success whenever there is no firmware in the overlay
v1->v2: none
---
d
blspec handling
- document ownership of overlay memory
rfc -> v1:
- new of_overlay command
- no more notifiers for device tree overlays
Michael Tretter (8):
of: add support for devicetree overlays
blspec: add support for devicetree overlays
of: add iterator for overlays
firmware: add
If a device tree overlay referenced by the blspec depends on firmware,
try to load the firmware from the default Linux firmware search path
/lib/firmware in the about to be started rootfs.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3:
- fix name of of_firmware_load_overlay()
- pr
Read the devicetree-overlay property from the blspec entry and register
the overlays when booting the blspec entry.
Do not fail the boot if an overlay cannot be loaded, because if Linux
fails to boot without an overlay, the base device tree is broken.
Signed-off-by: Michael Tretter
Add a new command "of_overlay" for applying device tree overlays,
because it does not really fit into any other device tree related
command and would create a mess with the command options.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3:
- select OF_OVERLAY from CMD_OF_OVERL
tree overlay internal information in
other modules.
Signed-off-by: Michael Tretter
---
Changelog:
v2->v3:
- clarify warning if process fails
- move phandle resolving step to caller
v1->v2:
- add static inline for function stub
---
drivers/of/overlay.
-by: Michael Tretter
---
Changelog:
v2->v3:
- make __symbols__ configurable
v1->v2: none
---
drivers/of/Kconfig | 17 +
scripts/Makefile.lib | 4
2 files changed, 21 insertions(+)
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 1bb6639c5a..fd820b26f5
On Wed, 11 Sep 2019 09:55:34 +0200, Ahmad Fatoum wrote:
> On 9/6/19 3:20 PM, Michael Tretter wrote:
> > Add a new command "of_overlay" for applying device tree overlays,
> > because it does not really fit into any other device tree related
> > command and would
to
whatever tree is fixed. This is necessary to apply the overlay to
devicetrees that are passed to Linux, which might differ from the
devicetree that is currently live in Barebox.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2:
- export function for applying a device tree overlay
- def
tree overlay internal information in
other modules.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2:
- add static inline for function stub
---
drivers/of/overlay.c | 45
include/of.h | 13 +
2 files changed, 58 inserti
If a device tree overlay referenced by the blspec depends on firmware,
try to load the firmware from the default Linux firmware search path
/lib/firmware in the about to be started rootfs.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2: none
---
common/blspec.c | 16
, finds the responsible firmware_mgr and loads the
firmware.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2: none
---
common/firmware.c | 77 ++
include/firmware.h | 3 ++
2 files changed, 80 insertions(+)
diff --git a/common/firmware.c b/com
The devicetree overlay driver requires the __symbols__ node to resolve
phandles to the base devicetree. As Barebox applies the overlay to the
live devicetree, the build-in devicetree must be built with the
__symbols__ node.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2: n
Add a new command "of_overlay" for applying device tree overlays,
because it does not really fit into any other device tree related
command and would create a mess with the command options.
Signed-off-by: Michael Tretter
---
Changelog:
v1->v2: none
---
commands/Kcon
g/memory leak in blspec handling
- document ownership of overlay memory
rfc -> v1:
- new of_overlay command
- no more notifiers for device tree overlays
Michael Tretter (7):
dtc: add -@ option to enable __symbols__
of: add support for devicetree overlays
blspec: add support for dev
On Thu, 05 Sep 2019 17:24:08 +0200, Ahmad Fatoum wrote:
> On 9/5/19 12:51 PM, Michael Tretter wrote:
> > The devicetree overlay support is based on the Linux driver for device
> > tree overlays, but many features that are not required in Barebox are
> > left out.
> &g
to
whatever tree is fixed. This is necessary to apply the overlay to
devicetrees that are passed to Linux, which might differ from the
devicetree that is currently live in Barebox.
Signed-off-by: Michael Tretter
---
drivers/of/Kconfig| 9 ++
drivers/of/Makefile | 1 +
drivers/of/overlay.c
Add a new command "of_overlay" for applying device tree overlays,
because it does not really fit into any other device tree related
command and would create a mess with the command options.
Signed-off-by: Michael Tretter
---
commands/Kconfig | 12 ++
commands/Makefil
If a device tree overlay referenced by the blspec depends on firmware,
try to load the firmware from the default Linux firmware search path
/lib/firmware in the about to be started rootfs.
Signed-off-by: Michael Tretter
---
common/blspec.c | 16
1 file changed, 16 insertions
, finds the responsible firmware_mgr and loads the
firmware.
Signed-off-by: Michael Tretter
---
common/firmware.c | 77 ++
include/firmware.h | 3 ++
2 files changed, 80 insertions(+)
diff --git a/common/firmware.c b/common/firmware.c
index 9d55d73e7a
tree overlay internal information in
other modules.
Signed-off-by: Michael Tretter
---
drivers/of/overlay.c | 45
include/of.h | 13 +
2 files changed, 58 insertions(+)
diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c
index
rlay command
- no more notifiers for device tree overlays
Michael Tretter (7):
dtc: add -@ option to enable __symbols__
of: add support for devicetree overlays
blspec: add support for devicetree overlays
of: add iterator for overlays
firmware: add support to load firmware from dt overlay
The devicetree overlay driver requires the __symbols__ node to resolve
phandles to the base devicetree. As Barebox applies the overlay to the
live devicetree, the build-in devicetree must be built with the
__symbols__ node.
Signed-off-by: Michael Tretter
---
scripts/Makefile.lib | 2 +-
1 file
: "CLK_MUX_READ_ONLY"
redefined
In file included from drivers/clk/zynqmp/clk-mux-zynqmp.c:13:0:
include/linux/clk.h:350:0: note: this is the location of the previous
definition
Signed-off-by: Michael Tretter
---
drivers/clk/zynqmp/clk-mux-zynqmp.c | 4 ++--
1 file changed, 2
Signed-off-by: Michael Tretter
---
lib/libfile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/libfile.c b/lib/libfile.c
index f6c588d737..3f3ec21fdb 100644
--- a/lib/libfile.c
+++ b/lib/libfile.c
@@ -242,9 +242,9 @@ EXPORT_SYMBOL(read_file_2);
*
* This function
on
CPU_V8, the generic implementation also should be used if CPU_V8 is
selected.
Reported-by: Thomas Hämmerle
Signed-off-by: Michael Tretter
---
arch/arm/cpu/Kconfig | 1 +
arch/arm/include/asm/bitops.h | 8
2 files changed, 9 insertions(+)
diff --git a/arch/arm/cpu/Kconfig b/arch
-by: Michael Tretter
---
commands/crc.c| 4 ++--
commands/firmwareload.c | 4 ++--
commands/of_display_timings.c | 8
commands/of_dump.c| 6 +++---
commands/of_fixup_status.c| 2 +-
commands/oftree.c | 4 ++--
6 files changed, 14 insertions(+), 14
when an overlay is registered and
will be notified before and after the overlay has been registered. The
target of the overlay in the notification is the live devicetree to
allow drivers to act on the current state of the system.
Signed-off-by: Michael Tretter
---
drivers/of/Kconfig| 9
The devicetree overlay driver requires the __symbols__ node to resolve
phandles to the base devicetree. As Barebox applies the overlay to the
live devicetree, the build-in devicetree must be built with the
__symbols__ node.
Signed-off-by: Michael Tretter
---
scripts/Makefile.lib | 2 +-
1 file
Extend the oftree command to allow to register devicetree overlays.
Signed-off-by: Michael Tretter
---
commands/oftree.c | 37 ++---
include/of.h | 2 +-
2 files changed, 35 insertions(+), 4 deletions(-)
diff --git a/commands/oftree.c b/commands/oftree.c
and allows other drivers or the
user to specify the search path. Not sure if this is a good variable name for
that.
I extended the blspec and allow to specify a device tree overlay with the
"devicetree-overlay" key. The overlay is applied before booting the OS from
that blspec entry.
Michae
the firmware handler using its device
tree node.
Signed-off-by: Michael Tretter
---
common/firmware.c | 18 ++
include/firmware.h | 1 +
2 files changed, 19 insertions(+)
diff --git a/common/firmware.c b/common/firmware.c
index 9d55d73e7a..609cf11822 100644
--- a/common/firmware.c
Read the devicetree-overlay property from the blspec entry, set the
firmware search-path based on the blspec root and register a devicetree
overlay when booting the blspec entry.
Signed-off-by: Michael Tretter
---
Documentation/user/booting-linux.rst | 4
common/blspec.c
the specified firmware image.
Signed-off-by: Michael Tretter
---
drivers/firmware/Kconfig | 7 ++
drivers/firmware/Makefile | 1 +
drivers/firmware/of-fpga-region.c | 153 ++
3 files changed, 161 insertions(+)
create mode 100644 drivers/firmware/of-fpga
.
Signed-off-by: Michael Tretter
---
drivers/clk/Makefile| 1 +
drivers/clk/zynqmp/Makefile | 5 +
drivers/clk/zynqmp/clk-divider-zynqmp.c | 111 +
drivers/clk/zynqmp/clk-gate-zynqmp.c| 93
drivers/clk/zynqmp/clk-mux-zynqmp.c | 102 +
drivers
From: Thomas Haemmerle
The zynqmp_firmware node has sub-nodes for the various APIs to expose
the platform management, as e.g. clock management. Therefore, the driver
must populate the subnodes to initialize these drivers.
Signed-off-by: Thomas Haemmerle
Signed-off-by: Michael Tretter
In order to use the query() call, the users of the firmware driver need
to know the number of arguments.
Signed-off-by: Michael Tretter
---
arch/arm/mach-zynqmp/firmware-zynqmp.c | 2 --
arch/arm/mach-zynqmp/include/mach/firmware-zynqmp.h | 2 ++
2 files changed, 2 insertions(+), 2
in the Barebox
device tree for now.
Signed-off-by: Michael Tretter
---
arch/arm/dts/zynqmp-clk.dtsi| 155
arch/arm/dts/zynqmp-zcu104-revA.dts | 1 +
2 files changed, 156 insertions(+)
create mode 100644 arch/arm/dts/zynqmp-clk.dtsi
diff --git a/arch/arm/dts/zynqmp
.
Patch 3 provides the size of the return value from the ZynqMP firmware to
firmware client drivers. This is necessary to use the "query" call.
Patch 4 adds the actual driver.
Patches 5 and 6 add the firmware to the device tree and connect various
devices to the clock controller.
Michae
From: Thomas Haemmerle
Add firmware DT node in ZynqMP device tree. This node uses bindings as
per new firmware interface driver.
Signed-off-by: Thomas Haemmerle
Signed-off-by: Michael Tretter
---
arch/arm/dts/zynqmp-zcu104-revA.dts | 1 +
arch/arm/dts/zynqmp.dtsi| 17
From: Thomas Haemmerle
The sub-nodes of "/firmware" are not populated, since it has no
"compatible" property. Copy the behavior of Linux and call
of_platform_populate() on the "/firmware" node to probe firmware
drivers.
Signed-off-by: Thomas Haemmerle
On Wed, 30 Jan 2019 07:11:19 +0100, Sascha Hauer wrote:
> Hi Thomas,
>
> On Tue, Jan 29, 2019 at 11:13:36AM +0100, thomas.haemmerle1...@gmail.com
> wrote:
> > From: Thomas Haemmerle
> >
> > macb supports Xilinx ZynqMP GEM, so select HAS_MACB by default.
>
> I think this should be solved by
have to add the
Barebox binary to a boot image as described in "Chapter 11: Boot and
Configuration" of "Zynq Ultrascale+ Device Technical Reference Manual".
Signed-off-by: Michael Tretter
---
Changelog:
v3:
- add more SPDX-License-Identifiers
v2:
- introduce ENTRY_PROC
rce files
v1 -> v2:
- move ENTRY_PROC to a more generic location
- add separate patch for ENTRY_PROC
- rebase onto piggydata patches
- remove empty zynqmp.c and board.c
- use SPDX-License-Identifiers
Michael Tretter (4):
ARM: lib64: .gitignore barebox.lds
ARM: aarch64: compile with general-reg
the general-regs-only flag
to prevent usage of floating point and Advanced SIMD register.
Signed-off-by: Michael Tretter
---
arch/arm/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 5db67b9db8..50958b787f 100644
--- a/arch/arm/Makefile
+++ b
if
the entry is a C function.
Provide a macro to implement the entry in assembly to be able to setup the
stack before entering the low level entry function.
Signed-off-by: Michael Tretter
---
v3:
- add SPDX-License-Identifier
---
arch/arm/include/asm/barebox-arm64.h | 35
1
.lds files.
Copy the .gitignore from lib32 to lib64.
Signed-off-by: Michael Tretter
---
arch/arm/lib64/.gitignore | 1 +
1 file changed, 1 insertion(+)
create mode 100644 arch/arm/lib64/.gitignore
diff --git a/arch/arm/lib64/.gitignore b/arch/arm/lib64/.gitignore
new file mode 100644
index
the general-regs-only flag
to prevent usage of floating point and Advanced SIMD register.
Signed-off-by: Michael Tretter
---
arch/arm/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 5db67b9db8..50958b787f 100644
--- a/arch/arm/Makefile
+++ b
ther arm64 architectures as well.
Changelog:
v1 -> v2:
- move ENTRY_PROC to a more generic location
- add separate patch for ENTRY_PROC
- rebase onto piggydata patches
- remove empty zynqmp.c and board.c
- use SPDX-License-Identifiers
Michael Tretter (4):
ARM: lib64: .gitignore barebox.lds
if
the entry is a C function.
Provide a macro to implement the entry in assembly to be able to setup the
stack before entering the low level entry function.
Signed-off-by: Michael Tretter
---
arch/arm/include/asm/barebox-arm64.h | 34
1 file changed, 34 insertions(+)
create
have to add the
Barebox binary to a boot image as described in "Chapter 11: Boot and
Configuration" of "Zynq Ultrascale+ Device Technical Reference Manual".
Signed-off-by: Michael Tretter
---
Changelog:
v2:
- introduce ENTRY_PROC in a separate patch
- move ENTRY_PROC to a
.lds files.
Copy the .gitignore from lib32 to lib64.
Signed-off-by: Michael Tretter
---
arch/arm/lib64/.gitignore | 1 +
1 file changed, 1 insertion(+)
create mode 100644 arch/arm/lib64/.gitignore
diff --git a/arch/arm/lib64/.gitignore b/arch/arm/lib64/.gitignore
new file mode 100644
index
On Fri, 23 Nov 2018 16:08:18 +0100, Oleksij Rempel wrote:
> Hi Michael,
>
> Am 23.11.18 um 14:35 schrieb Michael Tretter:
> > Add support for the Xilinx Zynq Ultrascale+ MPSoC architecture (ZynqMP)
> > and the Xilinx ZCU104 board.
> >
> > Barebox is booted as BL
On Fri, 23 Nov 2018 14:35:53 +0100, Michael Tretter wrote:
> Add support for the Xilinx Zynq Ultrascale+ MPSoC architecture (ZynqMP)
> and the Xilinx ZCU104 board.
>
> Barebox is booted as BL33 in EL-1 and expects that a BL2 (i.e. the FSBL)
> already took care of initializin
boot.bin binary first. See "mkimage -T
zynqmpbif" from U-Boot for how to generate such an image.
I'm not really happy how the entry function is implemented in
arch/arm/boards/xilinx-zcu104/lowlevel_init.S and any suggestions for
improvement are welcome.
Michael
Michael Tretter (3):
a function prologue to
the entry function which writes to the stack, but the stack is not set
up. Thus, the entry has to be implemented in assembly.
Signed-off-by: Michael Tretter
---
arch/arm/Kconfig | 14 +++
arch/arm/Makefile |
usage of floating point and Advanced SIMD register.
Signed-off-by: Michael Tretter
---
arch/arm/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 5db67b9db8..50958b787f 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -27,6 +27,10
.lds files.
Copy the .gitignore from lib32 to lib64.
Signed-off-by: Michael Tretter
---
arch/arm/lib64/.gitignore | 1 +
1 file changed, 1 insertion(+)
create mode 100644 arch/arm/lib64/.gitignore
diff --git a/arch/arm/lib64/.gitignore b/arch/arm/lib64/.gitignore
new file mode 100644
index
sual case in which a USB network adapter shall be used
> even when an internal network interface is present we introduce the
> global variable "global.net.ifup_force_detect" which can be used to
> force detection of devices.
>
> Signed-off-by: Sascha Hauer <s.ha...
The usdhc3 pin group wrongly referred the SD4 pads instead of the SD3 pads.
This leads to issues when muxing the SD4_CMD and SD4_CLK pads for uart3.
This regression was introduced by code refactoring in commit a5207a6 ("ARM:
dts: i.MX6: drop usage of pin group defines").
Signed-off-b
101 - 170 of 170 matches
Mail list logo