Re: [U-Boot] [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-25 Thread Samuel Holland
On 01/25/18 09:27, Maxime Ripard wrote: > On Wed, Jan 24, 2018 at 07:13:54AM -0600, Samuel Holland wrote: >> On 01/24/18 02:38, Maxime Ripard wrote: >>> Hi! >>> >>> On Tue, Jan 23, 2018 at 04:18:13PM -0600, Samuel Holland wrote: >>>> If raw mode is d

[U-Boot] [PATCH] net: sun8i_emac: Fix PHY initialization

2018-01-27 Thread Samuel Holland
. Fix this by using the correct function to start up the PHY. Signed-off-by: Samuel Holland <sam...@sholland.org> --- drivers/net/sun8i_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 3ccc6b0bb6..be43472b1a

Re: [U-Boot] [PATCH v2 4/7] arm: dts: sunxi: update A64 to new EMAC binding

2018-02-09 Thread Samuel Holland
On 02/08/18 19:30, Andre Przywara wrote: > The U-Boot driver for the sun8i-emac was using some preliminary DT > binding. Now since Linux got its own driver in v4.15 and our driver > can now cope with both bindings, let's convert the DT nodes used for the > Pine64+ board over to the new bindings

[U-Boot] [PATCH 3/7] sun50i: a64: Move ethernet nodes to SoC DTS

2018-01-23 Thread Samuel Holland
These nodes were previously in an unused file specific to the Pine64. Move them to the base SoC device tree for use by other boards. Require individual boards to enable the emac and provide a pin configuration. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun5

[U-Boot] [PATCH 4/7] sun50i: a64: Update OrangePi Win defconfig and DTS

2018-01-23 Thread Samuel Holland
Enable Ethernet support in the device tree and add the necessary MACPWR configuration. Also fix spacing in USB device tree nodes and add the relevant configuration options. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-a64-orangepi-win.dt

[U-Boot] [PATCH 6/7] sun50i: h5: Enable remaining USB ports on OrangePi PC2

2018-01-23 Thread Samuel Holland
The OrangePi PC 2 has three USB type A ports, with one connected to each EHCI/OHCI controller. Enable the controllers for the other two ports. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 16 1 file changed, 16 inse

[U-Boot] [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-23 Thread Samuel Holland
If raw mode is disabled, CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not defined, which breaks compiling the device trees. Only enable the size check when it actually matters--that is, when MMC raw mode is enabled. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/s

[U-Boot] [PATCH 0/7] sun50i device tree changes

2018-01-23 Thread Samuel Holland
These patches fix one general build issue, improve support for two existing boards, and add support for the Orange Pi Zero Plus. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 5/7] sun50i: h5: Clean up OrangePi PC 2 device tree

2018-01-23 Thread Samuel Holland
Sort nodes alphabetically, and remove the ethernet alias duplicated from the SoC device tree. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-h5-orangepi-pc2.dts | 41 - 1 file changed, 20 insertions(+), 21 deletions(-) diff

[U-Boot] [PATCH 7/7] sun50i: h5: Add support for the Orange Pi Zero Plus

2018-01-23 Thread Samuel Holland
The Orange Pi Zero Plus is a single board computer based on the Allwinner H5 SoC. It has 512MiB RAM, gigabit Ethernet, and one USB 2.0 port, with headers for two additional ports. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/Makefile | 1 +

[U-Boot] [PATCH 2/7] sun50i: a64: Fix USB clock/reset properties

2018-01-23 Thread Samuel Holland
Move the CLK_USB_OHCI0/1 clocks to the OHCI nodes where they belong, and make the format consistent with the H3/H5 nodes. While here, also remove leading zeros from the USB nodes' unit addresses. Signed-off-by: Samuel Holland <sam...@sholland.org> --- arch/arm/dts/sun50i-a64.dts

Re: [U-Boot] [PATCH 1/7] sunxi: binman: Fix U-Boot binary size check

2018-01-24 Thread Samuel Holland
On 01/24/18 02:38, Maxime Ripard wrote: > Hi! > > On Tue, Jan 23, 2018 at 04:18:13PM -0600, Samuel Holland wrote: >> If raw mode is disabled, CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR is not >> defined, which breaks compiling the device trees. Only enable the size >> che

Re: [U-Boot] [PATCH 2/7] sun50i: a64: Fix USB clock/reset properties

2018-01-24 Thread Samuel Holland
On 01/24/18 02:42, Maxime Ripard wrote: > On Tue, Jan 23, 2018 at 04:18:14PM -0600, Samuel Holland wrote: >> Move the CLK_USB_OHCI0/1 clocks to the OHCI nodes where they belong, and >> make the format consistent with the H3/H5 nodes. While here, also remove >> leading zer

Re: [U-Boot] [PATCH 7/7] sun50i: h5: Add support for the Orange Pi Zero Plus

2018-01-24 Thread Samuel Holland
On 01/24/18 02:45, Maxime Ripard wrote: > On Tue, Jan 23, 2018 at 04:18:19PM -0600, Samuel Holland wrote: >> diff --git a/arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts >> b/arch/arm/dts/sun50i-h5-orangepi-zero-plus2.dts >> index 3f4baba310..e44e75733e 100644 >> -

Re: [U-Boot] [PATCH] arm: timer: sunxi: fix a64 spurious timeout issues

2019-03-17 Thread Samuel Holland
On 03/17/19 13:41, Oskari Lemmelä wrote: > On 3/17/19 6:04 PM, Peter Robinson wrote: >> On Sun, Mar 17, 2019 at 2:56 PM Oskari Lemmela wrote: >>> Fixes spurious timeouts which have been seen during testing >>> SPI_SUNXI driver. The false timeouts disappear when number of >>> bits reduced to 10 in

Re: [PATCH 2/3] mksunxi_fit_atf.sh: Update FIT component descriptions

2020-05-09 Thread Samuel Holland
use-case, so I like that one! > > Patrick > > On Thu, May 07, 2020 at 06:20:34PM -0500, Samuel Holland wrote: >> Since commit d879616e9e64 ("spl: fit: simplify logic for FDT loading for >> non-OS boots"), the SPL looks at the "os" properties of FIT

Re: [PATCH V2] mkimage: fit: Do not tail-pad fitImage with external data

2020-05-07 Thread Samuel Holland
On 5/6/20 12:02 PM, trini at konsulko.com (Tom Rini) wrote: > I'm not sure that it is. Can we easily/safely memmove the data to be > aligned? Is that really a better option in this case than ensuring > alignment within the file? Can't we use the new mkimage -B option to

[PATCH] spl: Always define preloader_console_init

2020-05-07 Thread Samuel Holland
that did check for CONFIG_SPL_SERIAL before calling preloader_console_init, remove the checks, since the function can now be called unconditionally. Signed-off-by: Samuel Holland --- arch/arm/mach-omap2/boot-common.c | 3 +-- arch/arm/mach-uniphier/spl_board_init.c | 2 -- common/spl/spl.c

[PATCH] sunxi: Silence warning about non-static inline function

2020-05-07 Thread Samuel Holland
| debug("MBUS port %d cfg0 %08x cfg1 %08x\n", port, cfg0, cfg1); | ^ Fix this by updating the function accordingly. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/dram_sunxi_dw.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH 3/3] sunxi: H6: Enable Ethernet on the Pine H64

2020-05-07 Thread Samuel Holland
Now that the EMAC driver supports the H6 SoC, we can enable the Ethernet hardware on the Pine H64 board. Signed-off-by: Samuel Holland --- configs/pine_h64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pine_h64_defconfig b/configs/pine_h64_defconfig index 8937c51bd0

[PATCH 2/3] net: sun8i_emac: Add support for the H6 variant

2020-05-07 Thread Samuel Holland
The H6 EMAC is very similar to the H3 variant, except that it uses the same pinmux as R40. Add support for it. Signed-off-by: Samuel Holland --- drivers/net/sun8i_emac.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net

[PATCH 1/3] net: sun8i_emac: Use consistent clock bitfield definitions

2020-05-07 Thread Samuel Holland
are not present. Signed-off-by: Samuel Holland --- drivers/net/sun8i_emac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index 1ae776b446..dcd18833a2 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c

[PATCH 1/3] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY

2020-05-07 Thread Samuel Holland
U-Boot loadables with CONFIG_SPL_FIT_IMAGE_TINY=y. This adds about 300 bytes, much less than the 7400 bytes added by CONFIG_SPL_FIT_IMAGE_TINY=n. Signed-off-by: Samuel Holland --- common/spl/Kconfig | 4 +--- common/spl/spl_fit.c | 17 - 2 files changed, 17 insertions(+), 4 deleti

[PATCH 3/3] sunxi: Add support for including SCP firmware

2020-05-07 Thread Samuel Holland
without it, but system suspend will be unavailable. Since all communication with the SCP is mediated by ATF, the only thing U-Boot needs to do is load the firmware into SRAM. The SCP firmware occupies the last 16KiB of SRAM A2, immediately following ATF. Signed-off-by: Samuel Holland --- board

[PATCH 2/3] mksunxi_fit_atf.sh: Update FIT component descriptions

2020-05-07 Thread Samuel Holland
ecute the next stage of the boot process, as in 1d3790905d9c ("spl: atf: introduce spl_invoke_atf and make bl31_entry private"). To support this additional functionality, and to properly model the boot process, where ATF runs before U-Boot, add the "os" properties and swap the firmware/load

Re: [PATCH v3 06/12] binman: Support generating FITs with multiple dtbs

2020-09-05 Thread Samuel Holland
On 9/1/20 6:13 AM, Simon Glass wrote: > In some cases it is useful to generate a FIT which has a number of DTB > images, selectable by configuration. Add support for this in binman, > using a simple iterator and string substitution. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > -

Re: [PATCH v3 08/12] sunxi: Convert 64-bit boards to use binman

2020-09-05 Thread Samuel Holland
On 9/5/20 6:10 PM, Samuel Holland wrote: > On 9/1/20 6:14 AM, Simon Glass wrote: >> At present 64-bit sunxi boards use the Makefile to create a FIT, using >> USE_SPL_FIT_GENERATOR. This is deprecated. >> >> Update sunxi to use binman instead. >&

Re: [PATCH v3 05/12] binman: Add support for ATF BL31

2020-09-05 Thread Samuel Holland
On 9/1/20 6:13 AM, Simon Glass wrote: > Add an entry for ARM Trusted Firmware's 'BL31' payload, which is the > device's main firmware. Typically this is U-Boot. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Rebase on top of earlier binman series > > Changes in v2: > - Add the URL

Re: [PATCH v3 06/12] binman: Support generating FITs with multiple dtbs

2020-09-05 Thread Samuel Holland
On 9/5/20 5:41 PM, Samuel Holland wrote: > On 9/1/20 6:13 AM, Simon Glass wrote: >> In some cases it is useful to generate a FIT which has a number of DTB >> images, selectable by configuration. Add support for this in binman, >> using a simple iterator and string substitut

Re: [PATCH v3 08/12] sunxi: Convert 64-bit boards to use binman

2020-09-05 Thread Samuel Holland
On 9/1/20 6:14 AM, Simon Glass wrote: > At present 64-bit sunxi boards use the Makefile to create a FIT, using > USE_SPL_FIT_GENERATOR. This is deprecated. > > Update sunxi to use binman instead. > > Signed-off-by: Simon Glass > --- > > (no changes since v2) > > Changes in v2: > - Add a

[PATCH v3 0/9] sunxi: binman fixes and SCP firmware support

2020-09-05 Thread Samuel Holland
. - Patches 4-6 fix small issues in the new sunxi binman description. - Patches 7-9 implement the same functionality as previous versions of this series, but using binman instead of a shell script. Samuel Holland (9): Makefile: Only define u-boot.itb rule when applicable binman: Only write FDT once

[PATCH v3 5/9] sunxi: binman: Provide a default BL31 filename

2020-09-05 Thread Samuel Holland
in case no entry arg is provided, which will be the case if the environment variable is unset. Signed-off-by: Samuel Holland --- I tested this and verified it to work. The key code is from tools/binman/etype/blob_named_by_arg.py: super().__init__(...) filename, = self

[PATCH v3 3/9] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY

2020-09-05 Thread Samuel Holland
U-Boot loadables with CONFIG_SPL_FIT_IMAGE_TINY=y. This adds about 300 bytes, much less than the 7400 bytes added by CONFIG_SPL_FIT_IMAGE_TINY=n. Acked-by: Patrick Wildt Signed-off-by: Samuel Holland --- common/spl/Kconfig | 4 +--- common/spl/spl_fit.c | 17 - 2 files change

Re: [PATCH v3 08/12] sunxi: Convert 64-bit boards to use binman

2020-09-05 Thread Samuel Holland
Simon, On 9/5/20 7:18 PM, Simon Glass wrote: > On Sat, 5 Sep 2020 at 17:10, Samuel Holland wrote: >> On 9/1/20 6:14 AM, Simon Glass wrote: >>> At present 64-bit sunxi boards use the Makefile to create a FIT, using >>> USE_SPL_FIT_GENERATOR. This is deprecated. >>

[PATCH v3 9/9] sunxi: binman: Add support for including SCP firmware

2020-09-05 Thread Samuel Holland
and run without it, but system suspend will be unavailable. Since all communication with the SCP is mediated by ATF, the only thing U-Boot needs to do is load the firmware into SRAM. The SCP firmware occupies the last 16KiB of SRAM A2, immediately following ATF. Signed-off-by: Samuel Holland

[PATCH v3 6/9] sunxi: binman: Use a macro for the BL31 load address

2020-09-05 Thread Samuel Holland
This consolidates the SoC-specific part at the top of the file to avoid cluttering it up with preprocessor conditions. Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/sunxi-u

[PATCH v3 8/9] binman: Add support for SCP firmware

2020-09-05 Thread Samuel Holland
Add an entry type for a firmware blob for a Sytem Control Processor, given by an entry arg. This firmware is a raw binary blob. Signed-off-by: Samuel Holland --- Makefile | 2 +- tools/binman/etype/scp.py | 19 +++ 2 files changed, 20 insertions(+), 1 deletion

[PATCH v3 1/9] Makefile: Only define u-boot.itb rule when applicable

2020-09-05 Thread Samuel Holland
is not something that can be made. This will reduce confusion as platforms move away from CONFIG_USE_SPL_FIT_GENERATOR, as u-boot.itb was previously a valid goal for those platforms. Signed-off-by: Samuel Holland --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index

[PATCH v3 4/9] sunxi: binman: Fix spacing between nodes

2020-09-05 Thread Samuel Holland
Nodes should have a blank line separating them from sibling nodes and properties. Add the necessary lines. Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi

[PATCH v3 2/9] binman: Only write FDT once per node

2020-09-05 Thread Samuel Holland
Due to an extra level of indentation, the "data" property containing the FDT was being written repeatedly after every other property in the node. Move the block up one level, so the property is added exactly once. Signed-off-by: Samuel Holland --- tools/binman/etype/fit.py | 8 --

[PATCH v3 7/9] sunxi: binman: Update FIT component descriptions

2020-09-05 Thread Samuel Holland
he boot process, where ATF runs before U-Boot, add the "os" properties and swap the firmware/loadable images in the FIT image. Since this description was copied as an example in commit 70248d6a2916 ("binman: Support generating FITs with multiple dtbs"), update those example

Re: [PATCH v4 0/3] binman: Further updates for FIT support

2020-09-12 Thread Samuel Holland
On 9/7/20 3:44 AM, Michal Simek wrote: > Hi Simon, > > On 06. 09. 20 18:39, Simon Glass wrote: >> This series adds support for help messages when binary blobs are missing, >> as well as selecting the default FIT configuration. >> >> It includes the v3 patches from the earlier series that were not

[PATCH v4 7/9] sunxi: binman: Update FIT component descriptions

2020-09-12 Thread Samuel Holland
he boot process, where ATF runs before U-Boot, add the "os" properties and swap the firmware/loadable images in the FIT image. Since this description was copied as an example in commit 70248d6a2916 ("binman: Support generating FITs with multiple dtbs"), update those example

[PATCH v4 3/9] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY

2020-09-12 Thread Samuel Holland
U-Boot loadables with CONFIG_SPL_FIT_IMAGE_TINY=y. This adds about 300 bytes, much less than the 7400 bytes added by CONFIG_SPL_FIT_IMAGE_TINY=n. Acked-by: Patrick Wildt Signed-off-by: Samuel Holland --- common/spl/Kconfig | 4 +--- common/spl/spl_fit.c | 17 - 2 files change

[PATCH v4 8/9] binman: Add support for SCP firmware

2020-09-12 Thread Samuel Holland
Add an entry type for a firmware blob for a Sytem Control Processor, given by an entry arg. This firmware is a raw binary blob. Signed-off-by: Samuel Holland --- Makefile | 2 +- tools/binman/etype/scp.py | 19 +++ tools/binman/ftest.py | 7

[PATCH v4 2/9] binman: Only write FDT once per node

2020-09-12 Thread Samuel Holland
Due to an extra level of indentation, the "data" property containing the FDT was being written repeatedly after every other property in the node. Move the block up one level, so the property is added exactly once. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- tools/bi

[PATCH v4 6/9] sunxi: binman: Use a macro for the BL31 load address

2020-09-12 Thread Samuel Holland
This consolidates the SoC-specific part at the top of the file to avoid cluttering it up with preprocessor conditions. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v4 9/9] sunxi: binman: Add support for including SCP firmware

2020-09-12 Thread Samuel Holland
-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 16 - board/sunxi/README.sunxi64 | 43 -- 2 files changed, 51 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index ff3fff599f4

[PATCH v4 1/9] Makefile: Only define u-boot.itb rule when applicable

2020-09-12 Thread Samuel Holland
is not something that can be made. This will reduce confusion as platforms move away from CONFIG_USE_SPL_FIT_GENERATOR, as u-boot.itb was previously a valid goal for those platforms. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v4 5/9] sunxi: binman: Provide a default BL31 filename

2020-09-12 Thread Samuel Holland
in case no entry arg is provided, which will be the case if the environment variable is unset. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dt

[PATCH v4 0/9] sunxi: binman fixes and SCP firmware support

2020-09-12 Thread Samuel Holland
previous versions. - Patches 4-6 fix small issues in the new sunxi binman description. - Patches 7-9 implement the same functionality as previous versions of this series, but using binman instead of a shell script. Changes v3->v4: - Added a test for the SCP firmware entry type. Samuel Holland

[PATCH v4 4/9] sunxi: binman: Fix spacing between nodes

2020-09-12 Thread Samuel Holland
Nodes should have a blank line separating them from sibling nodes and properties. Add the necessary lines. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch

[PATCH 7/8] sunxi: DT: A64: update device tree files

2020-09-03 Thread Samuel Holland
support. Signed-off-by: Samuel Holland --- arch/arm/dts/Makefile | 4 + arch/arm/dts/axp803.dtsi | 82 +-- arch/arm/dts/sun50i-a64-amarula-relic.dts | 109 +++- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 118 ++-- arch/arm/dts/sun50i-a64-cpu

[PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-09-02 Thread Samuel Holland
There are two different publicly-released revisions of the PinePhone hardware, versions 1.1 and 1.2; and they need different device trees. Since some GPIO pins were rerouted, we can use that to distinguish between them. Signed-off-by: Samuel Holland --- arch/arm/mach-sunxi/Kconfig | 7

[PATCH 2/8] sunxi: board: Add a helper to get the SPL DT name

2020-09-02 Thread Samuel Holland
This moves the validity checking and typecasts all to one place away from the string comparison logic, and it detangles the compile-time and runtime control flow. The new helper will also be used by U-Boot proper in a future commit. Signed-off-by: Samuel Holland --- board/sunxi/board.c | 26

[PATCH 3/8] sunxi: board: Simplify Pine A64 DT selection logic

2020-09-02 Thread Samuel Holland
otherwise the logic would trigger when "sun50i-a64-pine64-lts" was written to the SPL header. Signed-off-by: Samuel Holland --- board/sunxi/board.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 5c9b

[PATCH 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-09-02 Thread Samuel Holland
-by: Samuel Holland --- board/sunxi/board.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 3d64ed18664..eaa40a1ea96 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -331,6 +331,21

[PATCH v2 2/3] mksunxi_fit_atf.sh: Update FIT component descriptions

2020-09-03 Thread Samuel Holland
e/loadable images in the FIT image. Acked-by: Patrick Wildt Signed-off-by: Samuel Holland --- Changes since v1: - Collect tags --- board/sunxi/mksunxi_fit_atf.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/sunxi/mksunxi_fit_atf.sh b/board/sunxi/mksunxi_fit_at

[PATCH v2 3/3] sunxi: Add support for including SCP firmware

2020-09-03 Thread Samuel Holland
without it, but system suspend will be unavailable. Since all communication with the SCP is mediated by ATF, the only thing U-Boot needs to do is load the firmware into SRAM. The SCP firmware occupies the last 16KiB of SRAM A2, immediately following ATF. Signed-off-by: Samuel Holland

[PATCH v2 1/3] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY

2020-09-03 Thread Samuel Holland
U-Boot loadables with CONFIG_SPL_FIT_IMAGE_TINY=y. This adds about 300 bytes, much less than the 7400 bytes added by CONFIG_SPL_FIT_IMAGE_TINY=n. Acked-by: Patrick Wildt Signed-off-by: Samuel Holland --- Changes since v1: - Collect tags --- common/spl/Kconfig | 4 +--- common/spl/spl_fit.c

[PATCH 0/8] PinePhone automatic device tree selection

2020-09-02 Thread Samuel Holland
patches can be merged independently, so I request that they be merged even if patches 7-8 are not. I am mainly including the last two patches for ease of testing. Samuel Holland (8): sunxi: board: Use a more descriptive variable name sunxi: board: Add a helper to get the SPL DT name sunxi

[PATCH 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-09-02 Thread Samuel Holland
of the previous commit, always matches the DT used by U-Boot proper), Linux also sees the same board as U-Boot/SPL, even if the boot script later loads a DT from disk. Signed-off-by: Samuel Holland --- board/sunxi/board.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/board/sunxi

[PATCH 8/8] sunxi: a64: Add a defconfig for the PinePhone

2020-09-02 Thread Samuel Holland
at boot, one config/image can support both boards. Signed-off-by: Samuel Holland --- configs/pinephone_defconfig | 12 1 file changed, 12 insertions(+) create mode 100644 configs/pinephone_defconfig diff --git a/configs/pinephone_defconfig b/configs/pinephone_defconfig new file

[PATCH 1/8] sunxi: board: Use a more descriptive variable name

2020-09-02 Thread Samuel Holland
r". Signed-off-by: Samuel Holland --- board/sunxi/board.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 71e2b758a3e..674e6816d2d 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -892,14 +892,14 @@ int

Re: [PATCH 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-09-21 Thread Samuel Holland
On 9/21/20 7:41 PM, André Przywara wrote: > On 03/09/2020 06:07, Samuel Holland wrote: >> This overwrites the name loaded from the SPL image. It will be different >> if there was previously no name provided, or if a more accurate name was >> determined by the board va

Re: [PATCH 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-09-21 Thread Samuel Holland
On 9/21/20 7:43 PM, André Przywara wrote: > On 03/09/2020 06:07, Samuel Holland wrote: > > Hi, > >> Previously, fdtfile was always the value in CONFIG_DEFAULT_DEVICE_TREE. >> This meant that, regardless of the DT chosen by SPL (either by changing >> the header in

[PATCH] usb: xhci-dwc3: Fix usage of bulk PHY API

2020-05-30 Thread Samuel Holland
xes: 6dfb8a8052ee ("usb: dwc3: use the phy bulk API to get phys") Signed-off-by: Samuel Holland --- drivers/usb/host/xhci-dwc3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index 563db1a426..9b22f271a7 100644

Re: [PATCH v4 5/9] sunxi: binman: Provide a default BL31 filename

2020-10-21 Thread Samuel Holland
On 10/21/20 1:49 PM, Jagan Teki wrote: > Hi Samuel, > > On Sun, Sep 13, 2020 at 3:05 AM Samuel Holland wrote: >> >> Prior to commit 7f7f8aca8257 ("sunxi: Convert 64-bit boards to use >> binman"), if the BL31 environment variable was not defined, the firmware

[PATCH v5 7/9] sunxi: binman: Update FIT component descriptions

2020-10-21 Thread Samuel Holland
he boot process, where ATF runs before U-Boot, add the "os" properties and swap the firmware/loadable images in the FIT image. Since this description was copied as an example in commit 70248d6a2916 ("binman: Support generating FITs with multiple dtbs"), update those example

[PATCH v5 1/9] Makefile: Only define u-boot.itb rule when applicable

2020-10-21 Thread Samuel Holland
is not something that can be made. This will reduce confusion as platforms move away from CONFIG_USE_SPL_FIT_GENERATOR, as u-boot.itb was previously a valid goal for those platforms. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v5 2/9] binman: Only write FDT once per node

2020-10-21 Thread Samuel Holland
imon Glass Signed-off-by: Samuel Holland --- tools/binman/etype/fit.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/binman/etype/fit.py b/tools/binman/etype/fit.py index de4745c5521..8a24f12aa59 100644 --- a/tools/binman/etype/fit.py +++ b/tools/binman/etype/fit.py

[PATCH v5 4/9] sunxi: binman: Provide a default BL31 filename

2020-10-21 Thread Samuel Holland
in case no entry arg is provided, which will be the case if the environment variable is unset. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dt

[PATCH v5 5/9] sunxi: binman: Use a macro for the BL31 load address

2020-10-21 Thread Samuel Holland
This consolidates the SoC-specific part at the top of the file to avoid cluttering it up with preprocessor conditions. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH v5 0/9] sunxi: binman fixes and SCP firmware support

2020-10-21 Thread Samuel Holland
ter in the series to emphasize that the binman fixes do not depend on it. - Rebase on top of u-boot/master. - Add a missing-msg for scp-sunxi. - Explain in documentation how to silence the binman messages. Changes v3->v4: - Added a test for the SCP firmware entry type. Samuel Holland (9): Ma

[PATCH v5 3/9] sunxi: binman: Fix spacing between nodes

2020-10-21 Thread Samuel Holland
Nodes should have a blank line separating them from sibling nodes and properties. Add the necessary lines. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch

Re: [PATCH 4/8] sunxi: board: Add PinePhone DT selection logic

2020-10-21 Thread Samuel Holland
On 10/21/20 1:56 PM, Jagan Teki wrote: > On Thu, Sep 3, 2020 at 10:37 AM Samuel Holland wrote: >> >> There are two different publicly-released revisions of the PinePhone >> hardware, versions 1.1 and 1.2; and they need different device trees. >> Since some GPIO pin

[PATCH v5 8/9] binman: Add support for SCP firmware

2020-10-21 Thread Samuel Holland
Add an entry type for a firmware blob for a System Control Processor, given by an entry arg. This firmware is a raw binary blob. Reviewed-by: Simon Glass Signed-off-by: Samuel Holland --- Makefile | 1 + tools/binman/etype/scp.py | 19 +++ tools/binman

[PATCH v5 9/9] sunxi: binman: Add support for including SCP firmware

2020-10-21 Thread Samuel Holland
-off-by: Samuel Holland --- arch/arm/dts/sunxi-u-boot.dtsi | 17 +++- board/sunxi/README.sunxi64 | 47 +- tools/binman/missing-blob-help | 4 +++ 3 files changed, 60 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts

[PATCH v5 6/9] spl: fit: Minimally parse OS properties with FIT_IMAGE_TINY

2020-10-21 Thread Samuel Holland
U-Boot loadables with CONFIG_SPL_FIT_IMAGE_TINY=y. This adds about 300 bytes, much less than the 7400 bytes added by CONFIG_SPL_FIT_IMAGE_TINY=n. Acked-by: Patrick Wildt Signed-off-by: Samuel Holland --- common/spl/Kconfig | 4 +--- common/spl/spl_fit.c | 17 - 2 files change

[PATCH v2 0/8] PinePhone automatic device tree selection

2020-10-24 Thread Samuel Holland
: - Removed unnecessary "else"s in DT selection logic - Updated DT tag reference from v5.9-rc3 to v5.9 (no code change) - Regenerated defconfig with `make savedefconfig` - Added Acked-by and Reviewed-by tags Samuel Holland (8): sunxi: board: Use a more descriptive variable name sunxi:

[PATCH v2 5/8] sunxi: board: Save the chosen DT name in the SPL header

2020-10-24 Thread Samuel Holland
-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland --- board/sunxi/board.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index bff5135c1a1..9d0e29788b1 100644 --- a/board/sunxi

[PATCH v2 2/8] sunxi: board: Add a helper to get the SPL DT name

2020-10-24 Thread Samuel Holland
-off-by: Samuel Holland --- board/sunxi/board.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index d7dfcc78eab..a8a05ec59c8 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -319,6 +319,17

[PATCH v2 1/8] sunxi: board: Use a more descriptive variable name

2020-10-24 Thread Samuel Holland
;. Acked-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland --- board/sunxi/board.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index a5cf0b65c7b..d7dfcc78eab 100644 --- a/board/sunxi/board

[PATCH v2 8/8] sunxi: a64: Add a defconfig for the PinePhone

2020-10-24 Thread Samuel Holland
at boot, one config/image can support both boards. Acked-by: Maxime Ripard Signed-off-by: Samuel Holland --- configs/pinephone_defconfig | 12 1 file changed, 12 insertions(+) create mode 100644 configs/pinephone_defconfig diff --git a/configs/pinephone_defconfig b/configs

[PATCH v2 3/8] sunxi: board: Simplify Pine A64 DT selection logic

2020-10-24 Thread Samuel Holland
otherwise the logic would trigger when "sun50i-a64-pine64-lts" was written to the SPL header. Acked-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland --- board/sunxi/board.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/b

[PATCH v2 4/8] sunxi: board: Add PinePhone DT selection logic

2020-10-24 Thread Samuel Holland
There are two different publicly-released revisions of the PinePhone hardware, versions 1.1 and 1.2; and they need different device trees. Since some GPIO pins were rerouted, we can use that to distinguish between them. Acked-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Samuel

[PATCH v2 6/8] sunxi: board: Set fdtfile to match the DT chosen by SPL

2020-10-24 Thread Samuel Holland
of the previous commit, always matches the DT used by U-Boot proper), Linux also sees the same board as U-Boot/SPL, even if the boot script later loads a DT from disk. Acked-by: Maxime Ripard Reviewed-by: Andre Przywara Signed-off-by: Samuel Holland --- board/sunxi/board.c | 11 +++ 1 file

[PATCH] rockchip: mkimage: Remove host endianness dependency

2020-10-24 Thread Samuel Holland
. Signed-off-by: Samuel Holland --- tools/rkcommon.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 61c392e27d5..d55cd2c2d5a 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -221,12 +221,13 @@ bool

[PATCH v2 7/8] sunxi: DT: A64: update device tree files

2020-10-24 Thread Samuel Holland
support. Acked-by: Maxime Ripard Signed-off-by: Samuel Holland --- arch/arm/dts/Makefile | 4 + arch/arm/dts/axp803.dtsi | 82 +-- arch/arm/dts/sun50i-a64-amarula-relic.dts | 109 +++- arch/arm/dts/sun50i-a64-bananapi-m64.dts | 118 ++-- arch

sunxi/arm64 build broken (was: [PATCH v4 12/27] x86: Makefile: Drop explicit targets built by binman)

2020-08-06 Thread Samuel Holland
On 8/5/20 1:25 PM, Simon Glass wrote: >>> The last build steps with your patch are: >>> >>> cat spl/sunxi-spl.bin u-boot.itb > u-boot-sunxi-with-spl.bin >>> ./tools/binman/binman --toolpath ./tools build -u -d u-boot.dtb -O . >>> -m --allow-missing -I . -I . -I ./board/sunxi >>> >>> The file

Re: [PATCH v2 1/1] arm: sunxi: increase SYS_MALLOC_F_LEN

2020-07-25 Thread Samuel Holland
Heinrich, On 7/25/20 2:49 AM, Heinrich Schuchardt wrote: > On 6/8/20 2:59 PM, Jagan Teki wrote: >> On Mon, Jun 8, 2020 at 8:25 AM Heinrich Schuchardt >> wrote: >>> On 08.06.20 13:50, Jagan Teki wrote: On Mon, Jun 8, 2020 at 6:59 AM Heinrich Schuchardt wrote: > > The current

Re: [linux-sunxi] [PATCH v2 05/21] sunxi: prcm: Add memory map for H6 like SoCs

2021-01-11 Thread Samuel Holland
ected in common prcm.h based on defined > macros. > > This commit doesn't do any functional change. > > Signed-off-by: Jernej Skrabec Reviewed-by: Samuel Holland Cheers, Samuel

Re: [linux-sunxi] [PATCH v2 02/21] sunxi: Introduce common symbol for H6 like SoCs

2021-01-11 Thread Samuel Holland
lower ifdef clutter, introduce common symbol for > them. > > Signed-off-by: Jernej Skrabec Reviewed-by: Samuel Holland Cheers, Samuel

Re: [linux-sunxi] [PATCH v2 07/21] sunxi: support loading with SPL > 32KB

2021-01-11 Thread Samuel Holland
or() will now compare pre-configured size with > that, reported in SPL header. If size in header is bigger, it will use > that value instead. > > In the process of function rework, also add missing function argument. Reviewed-by: Samuel Holland Cheers, Samuel

Re: [PATCH v4 0/3] tools/sunxi: Use mkimage for SPL generation

2021-01-07 Thread Samuel Holland
lude/sunxi_image.h | 82 > scripts/Makefile.spl | 8 +- > tools/Makefile| 1 + > tools/sunxi_egon.c| 136 ++++++++++ > 7 files changed, 226 insertions(+), 68 deletions(-) > create mode 100644 include/sunxi_image.h > create mode 100644 tools/sunxi_egon.c For the series: Reviewed-by: Samuel Holland Tested-by: Samuel Holland

Re: Pull request: u-boot-sunxi/master

2020-11-16 Thread Samuel Holland
On 11/16/20 10:58 AM, Tom Rini wrote: > On Mon, Nov 16, 2020 at 04:51:32PM +, André Przywara wrote: >> On 16/11/2020 16:13, Tom Rini wrote: >>> On Mon, Nov 16, 2020 at 04:09:42PM +, André Przywara wrote: On 16/11/2020 15:50, Tom Rini wrote: Hi Tom, > On Mon, Nov 16,

Re: [PATCH v3 2/3] tools: mkimage: Add Allwinner eGON support

2020-11-18 Thread Samuel Holland
On 11/18/20 11:32 AM, Andre Przywara wrote: > So far we used the separate mksunxiboot tool for generating a bootable > image for Allwinner SPLs, probably just for historical reasons. > > Use the mkimage framework to generate a so called eGON image the > Allwinner BROM expects. > The new image

Re: [PATCH v3 0/3] tools/sunxi: Use mkimage for SPL generation

2020-11-18 Thread Samuel Holland
unxi_egon.c| 136 ++ > 7 files changed, 226 insertions(+), 68 deletions(-) > create mode 100644 include/sunxi_image.h > create mode 100644 tools/sunxi_egon.c > For the series: Reviewed-by: Samuel Holland Tested-by: Samuel Holland

Re: [PATCH v2 1/2] tools: mkimage: Add Allwinner eGON support

2020-11-16 Thread Samuel Holland
ro byte. */ > + ((char *)header->string_pool)[51] = 0; > + } else > + header->spl_signature[3] = SPL_ENV_HEADER_VERSION; > + > + /* Calculate the checksum. Yes, it's that simple. */ > + for (i = 0; i < sbuf->st_size / 4; i++) > +

[PATCH v3] sunxi: a64: Add a defconfig for the PinePhone

2020-11-02 Thread Samuel Holland
at boot, one config/image can support both boards. Acked-by: Maxime Ripard Signed-off-by: Samuel Holland --- Changes v2->v3: - All other patches merged - Added entry to MAINTAINERS Changes v1->v2: - Regenerated defconfig with `make savedefconfig` - Added Acked-by tag board

  1   2   3   4   5   6   7   >