[U-Boot] [PATCH v1 07/11] sunxi: Scan DT tree node '/clocks' on sunxi boards

2017-02-20 Thread Philipp Tomsich
and explicitly starts a DM scan of the subnodes. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- board/sunxi/board.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 89edf2e..838e89f

[U-Boot] [PATCH v1 2/2] sunxi: sun50i/a64: add r_pio (bank 'L') gpio support

2017-02-20 Thread Philipp Tomsich
Note that this assumes that R_PIO is already clocked (usually by ATF, which will need to enable the clock-gate to R_PIO when starting AXP communication through R_RSB). X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun5

[U-Boot] [PATCH v1 08/11] sun8i_emac: update to work with pinctrl-sunxi, reset-sunxi and clk-sunxi

2017-02-20 Thread Philipp Tomsich
the emac module out of reset and enabling the clock gates. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/sun8i_emac.c | 45 + 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/drivers/net/sun8i_em

[U-Boot] [PATCH v1 09/11] sunxi_mmc: convert to a device-model driver

2017-02-20 Thread Philipp Tomsich
We now support the device-model for configuration of the driver including the interface to the pinctrl, reset and clock frameworks. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- board/sunxi/board.c | 7 +- drivers/mmc/sunxi_mmc.c

[U-Boot] [PATCH v1 0/2] sunxi: A64: support GPIO

2017-02-20 Thread Philipp Tomsich
This changeset adds support for the PIO and the R_PIO block on the sun50iw1p1 (A64). Philipp Tomsich (2): sunxi: sun50i/a64: enabled GPIO via sunxi_gpio.c sunxi: sun50i/a64: add r_pio (bank 'L') gpio support arch/arm/dts/sun50i-a64.dtsi | 11 +++ drivers/gpio/sunxi_gpio.c| 7

[U-Boot] [PATCH v1 1/2] sun8i: define CONFIG_PHY_GIGE for EMAC

2017-02-20 Thread Philipp Tomsich
From: Klaus Goger <klaus.go...@theobroma-systems.com> CONFIG_PHY_GIGE needs to be defined for miiphy_speed to report correct speed. Signed-off-by: Klaus Goger <klaus.go...@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- inc

[U-Boot] [PATCH v1 00/11] sunxi: DM drivers for CLK, RESET and PINCTRL

2017-02-20 Thread Philipp Tomsich
The sunxi I2C driver still needs to be converted to make use of these changes. Philipp Tomsich (11): spl: dm: Undefine DM_MMC, DM_MMC_OPS and BLK, if SPL_DM is not defined sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi and tie back into GPIO sun50i: dts: add gpiobank nodes

[U-Boot] [PATCH v1 10/11] dts: sun50i: update mmc pin configuration and add mmc2_8bit_pins

2017-02-20 Thread Philipp Tomsich
--- arch/arm/dts/sun50i-a64.dtsi | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/sun50i-a64.dtsi b/arch/arm/dts/sun50i-a64.dtsi index d592bf2..b65d033 100644 --- a/arch/arm/dts/sun50i-a64.dtsi +++ b/arch/arm/dts/sun50i-a64.dtsi @@ -1,762

[U-Boot] [PATCH v1 2/2] sun8i: enable support for the Micrel KSZ9031 with SUN8I_EMAC

2017-02-20 Thread Philipp Tomsich
Enable support for the MICREL KSZ9031 GbE PHY in sunxi-common.h when using the SUN8I_EMAC driver (e.g. on the A64). X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/configs/sunxi-common.h | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH v1 03/11] sun50i: dts: add gpiobank nodes to the pinctrl nodes

2017-02-20 Thread Philipp Tomsich
To sync up with use of a pinctrl-driver and to have individual gpiobank nodes (to easier model controllers that have gaps in the use of bank numbering), this updates the DTS. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun50i-a64.dts

[U-Boot] [PATCH v1 04/11] sun50i: dts: update DTS to avoid warnings

2017-02-20 Thread Philipp Tomsich
Nodes that don't contain a reg-entry should not have an @xxx name attached. To silence the dt-compiler warnings, we update the DTS. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun50i-a64.dtsi | 30 +++--- 1 file chang

[U-Boot] [PATCH v1 01/11] spl: dm: Undefine DM_MMC, DM_MMC_OPS and BLK, if SPL_DM is not defined

2017-02-20 Thread Philipp Tomsich
CONFIG_DM_MMC, CONFIG_DM_MMC_OPS and CONFIG_BLK depend on CONFIG_DM (CONFIG_SPL_DM); if either is enabled, but CONFIG_SPL_DM is disabled, we also need to undef them. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/config_uncmd_spl.h | 4 s

[U-Boot] [PATCH v1 05/11] sunxi: add module reset (UCLASS_RESET) support for sunxi

2017-02-20 Thread Philipp Tomsich
In order to have the device model describe the module reset bits on sunxi (well, at least for anything newer than sun6i), we need a (rather simple) driver for 'allwinner,sun6i-a31-clock-reset' nodes. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/reset/K

[U-Boot] [PATCH v1 0/2] sunxi: Gigabit PHY support for SUN8I_EMAC

2017-02-20 Thread Philipp Tomsich
-operation. Bundled into a single changeset, as we test this with the KSZ9031 on our boards. Klaus Goger (1): sun8i: define CONFIG_PHY_GIGE for EMAC Philipp Tomsich (1): sun8i: enable support for the Micrel KSZ9031 with SUN8I_EMAC include/configs/sunxi-common.h | 6 ++ 1 file changed, 6

[U-Boot] [PATCH v1 02/11] sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi and tie back into GPIO

2017-02-20 Thread Philipp Tomsich
pinctrl [ + ]| |-- pinctrl@01f02c00 gpio[ + ]| | |-- gpiol@0 pinconfig [ + ]| | |-- led_pins_power gpio[ + ]| | `-- gpiobridge Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- .../pinctrl/all

[U-Boot] [PATCH v1] spi: sunxi_spi: Add DM SPI driver for A31/A80/A64

2017-02-20 Thread Philipp Tomsich
to a non-device-model driver now being present for use with in the SPL. This has been verified against the A64-uQ7 with data rates up to 100MHz and dual-IO ("Fast Read Dual Output" opcode) from the on-board SPI-NOR flash. Signed-off-by: Philipp Tomsich <philipp.toms...@theobrom

[U-Boot] [PATCH v1] DM-aware SPI driver for Allwinner SoCs

2017-02-20 Thread Philipp Tomsich
to 100MHz and dual-IO ("Fast Read Dual Output" opcode) from the on-board SPI-NOR flash. Philipp Tomsich (1): spi: sunxi_spi: Add DM SPI driver for A31/A80/A64 drivers/spi/Kconfig | 14 ++ drivers/spi/Makefile| 1 + drivers/spi/sunxi_s

[U-Boot] [PATCH v1 0/2] Add support for the A64-uQ7 modules

2017-02-20 Thread Philipp Tomsich
that these other patches are unmerged, this will (at this stage) mainly serve as a reference point to better point these other patchsets into perspective. Philipp Tomsich (2): dts: lynx: add sun50i-a64-lynx.dts for the A64-uQ7 lynx_defconfig: add defconfig for A64-uQ7 module arch/arm/dts

[U-Boot] [PATCH v1 2/2] lynx_defconfig: add defconfig for A64-uQ7 module

2017-02-20 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun50i-a64-lynx.dts | 2 +- configs/lynx_defconfig | 84 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 configs/lynx_defconfig

[U-Boot] [PATCH v1 1/2] dts: lynx: add sun50i-a64-lynx.dts for the A64-uQ7

2017-02-20 Thread Philipp Tomsich
--- arch/arm/dts/Makefile| 1 + arch/arm/dts/sun50i-a64-lynx.dts | 247 +++ 2 files changed, 248 insertions(+) create mode 100644 arch/arm/dts/sun50i-a64-lynx.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index da99eb4..5520529

[U-Boot] [PATCH v1 0/2] sunxi: MUSB support for the sun50i (A64)

2017-02-17 Thread Philipp Tomsich
for PHY1. Philipp Tomsich (2): sunxi (sun50i): Set CONFIG_SUNXI_USB_PHYS to 2 (the A64 has 2 PHYs) sunxi (sun50i): improved USB support for sun50i (A64) arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 12 ++- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 6 +++- arch/arm/include/asm/arch

[U-Boot] [PATCH v1] cmd: sspi: Add an additional argument to set the bus frequency

2017-02-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- cmd/spi.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/cmd/spi.c b/cmd/spi.c index f16ef9a..b495b87 100644 --- a/cmd/spi.c +++ b/cmd/spi.c @@ -36,51 +36,52 @@ static unsign

[U-Boot] [PATCH v1 1/2] sunxi (sun50i): Set CONFIG_SUNXI_USB_PHYS to 2 (the A64 has 2 PHYs)

2017-02-17 Thread Philipp Tomsich
HCI0 to the HSIC interface Note that all USB PHYs are controlled from within the OTG address space at 01C19000. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/usb/musb-new/musb_regs.h | 2 +- include/configs/sun50i.h

[U-Boot] [PATCH v1] sunxi: improve throughput in the sunxi_mmc driver

2017-02-17 Thread Philipp Tomsich
10x (e.g. a 10MB write decreases from 9.302s to 0.884s). X-Affected-platforms: A31-uQ7, A80-Q7, A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/mmc/sunxi_mmc.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff

[U-Boot] [PATCH v1 2/2] sun8i_emac: remove unnecessary bit-masking for mdio_read/write

2017-02-17 Thread Philipp Tomsich
The MDIO read/write builds up the MII_CMD register from scratch (starting with a value of 0). No need to mask out any fields before writing the new values. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/sun8i_emac.c | 8 1 file chan

[U-Boot] [PATCH v2] cmd: sspi: Add an additional argument to set the bus frequency

2017-02-17 Thread Philipp Tomsich
that allows the selection of a SPI clock for communication (the previous default of 1MHz is retained, if the argument is omitted). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- cmd/spi.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff

[U-Boot] [PATCH v1 0/2] sun8i_emac: set MDC divider for MDIO read/write

2017-02-17 Thread Philipp Tomsich
initialised to 0. Philipp Tomsich (2): sun8i_emac: Set MDC divider for MDIO read/write sun8i_emac: remove unnecessary bit-masking for mdio_read/write drivers/net/sun8i_emac.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) -- 1.9.1

[U-Boot] [PATCH v1] armv8: spl: Call spl_relocate_stack_gd for ARMv8

2017-02-17 Thread Philipp Tomsich
As part of the startup process for boards using the SPL, we need to call spl_relocate_stack_gd. This is needed to set up malloc with its DRAM buffer. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/lib/crt0_64.S | 8 +++- 1 file changed, 7 insertions

[U-Boot] [PATCH v1 0/2] sunxi: A64: support I2C and R_I2C

2017-02-17 Thread Philipp Tomsich
This changeset adds the necessary defines and pin-config to enable I2C and R_I2C on the sun50iw1p1 (A64). Tested on the A64-uQ7. Philipp Tomsich (2): sunxi (sun50i): support i2c on A64 (pin-config, clocking) sunxi (sun50i): support R_I2C on A64 (pin-config, clocking) arch/arm/include

[U-Boot] [PATCH v1 1/2] sunxi (sun50i): support i2c on A64 (pin-config, clocking)

2017-02-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-sunxi/gpio.h | 3 +++ arch/arm/mach-sunxi/clock.c| 2 ++ board/sunxi/board.c| 18 ++ 3 files changed, 23 insertions(+) diff --git a/ar

[U-Boot] [PATCH v1 2/2] sunxi (sun50i): support R_I2C on A64 (pin-config, clocking)

2017-02-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-sunxi/gpio.h | 1 + arch/arm/mach-sunxi/Makefile | 1 + arch/arm/mach-sunxi/clock.c| 2 -- board/sunxi/board.c| 11 ++- 4 files chang

[U-Boot] [PATCH v1 2/2] sunxi (sun50i): improved USB support for sun50i (A64)

2017-02-17 Thread Philipp Tomsich
the command 'gpio set pe4' to turn on the second (cascaded) hub. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 12 ++- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 6 +++- arch/arm/i

[U-Boot] [PATCH v1 06/11] sunxi: add clock driver (UCLASS_CLK) support for sunxi

2017-02-17 Thread Philipp Tomsich
('allwinner,sun6i-a31-pll6-clk') are included * clk-sunxi-gate.c: implements an clk-gate to gate individual modules (i.e. 'allwinner,sunxi-multi-bus-gates-clk') Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/clk/Makefile | 1 + d

[U-Boot] [PATCH v1] env_mmc: configure environment offsets via device tree

2017-02-17 Thread Philipp Tomsich
CONFIG_ENV_OFFSET_REDUND To keep with the previous logic, the CONFIG_* defines still need to be available and the statically defined values become the defaults, when the corresponding properties are not set in the device-tree. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- common/env

[U-Boot] [PATCH v1 1/2] part_efi: support padding between the GPT header and partition entries

2017-02-17 Thread Philipp Tomsich
, a configurable offset will be translated into a LBA address indicating where to put the entries. Now also allows an override via device-tree using a config-node. Tested (exporting an internal MMC formatted with this) against Linux, MacOS X and Windows. Signed-off-by: Philipp Tomsich <philipp.t

[U-Boot] [PATCH v1 2/2] sunxi-common: add EFI_PARTITION_ENTRIES_OFF, CONFIG_RANDOM_UUID and CONFIG_CMD_GPT

2017-02-17 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/configs/sunxi-common.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 4f61452..e8e26a5 100644 --- a/include/c

[U-Boot] [PATCH v1 0/2] disk: efi: allow gap before partition entries

2017-02-17 Thread Philipp Tomsich
This change has been in production use on our modules for a while (over a year) both with a Linux and Android userspace. Philipp Tomsich (2): part_efi: support padding between the GPT header and partition entries sunxi-common: add EFI_PARTITION_ENTRIES_OFF, CONFIG_RANDOM_UUID

[U-Boot] [PATCH v1] dtoc: make ScanTree recurse into subnodes

2017-02-17 Thread Philipp Tomsich
{ /* ... */ }; }; }; This introduces a recursive helper method ScanNode, which is used by ScanTree to recursively parse the entire tree hierarchy. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- tools/dtoc/dtoc.py | 19 ++- 1 file chang

[U-Boot] [PATCH v1] sun8i_emac: configure PHY reset GPIO via DM

2017-02-17 Thread Philipp Tomsich
. 'snps,reset-gpio' became 'allwinner,reset-gpio'. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/sun8i_emac.c | 85 1 file changed, 79 insertions(+), 6 deletions(-) diff

[U-Boot] [PATCH v2 0/2] part_efi: support padding between the GPT header and partition entries

2017-02-22 Thread Philipp Tomsich
of a device * documented the new /config property (and moved the documentation of /config properties into a separate file per Simon's review comment) Philipp Tomsich (2): part_efi: support padding between the GPT header and partition entries part_efi: document device-tree binding

[U-Boot] [PATCH v2] sun8i_emac: configure PHY reset GPIO via DM

2017-02-22 Thread Philipp Tomsich
This ports the support for configuring a GPIO for resetting the Ethernet PHY (incl. such details as the reset polarity and pulse-length) from the Designware driver. X-AffectedPlatforms: A64-uQ7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/sun8i_

[U-Boot] [PATCH v2 3/6] sunxi: CONFIG_DM_ALLOW_MULTIPLE_DRIVERS for gpio/pinctrl binding

2017-02-22 Thread Philipp Tomsich
is configured. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/gpio/sunxi_gpio.c | 4 ++-- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 8 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_

[U-Boot] [PATCH v2 5/6] sun50i: dts: add r_pio node and pinconfig entries into r_pio and pio

2017-02-22 Thread Philipp Tomsich
To sync up with use of a pinctrl-driver, this updates the DTS. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun50i-a64.dtsi | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/sun50i-a64.dtsi b/arch/arm/dts/sun5

[U-Boot] [PATCH v2 0/6] sunxi: DM pinctrl implementation

2017-02-22 Thread Philipp Tomsich
two variants to reuse the sunxi_gpio layer: - create a matching soc_data for sunxi_gpio and rebind - have the device-model do this for us * got rid of the gpio-banks and gpiobridge drivers Philipp Tomsich (6): sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi dm: core: Allow multiple dri

[U-Boot] [PATCH v2 2/2] part_efi: document device-tree binding for part_efi configuration

2017-02-22 Thread Philipp Tomsich
This moves the description of the /config node from README.fdt-control into a separate file doc/device-tree-bindings/config.txt and adds the documentation on the new u-boot,efi-partition-entries-offset property (which overrides CONFIG_EFI_PARTITION_ENTRIES_OFF, if present). Signed-off-by: Philipp

[U-Boot] [PATCH v2 1/2] part_efi: support padding between the GPT header and partition entries

2017-02-22 Thread Philipp Tomsich
, MacOS X and Windows. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- disk/Kconfig| 13 + disk/part_efi.c | 50 ++ 2 files changed, 59 insertions(+), 4 deletions(-) diff --git a/disk/Kconfig b/disk/K

[U-Boot] [PATCH v2 2/6] dm: core: Allow multiple drivers to bind for a single node

2017-02-22 Thread Philipp Tomsich
node Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/core/Kconfig | 14 ++ drivers/core/lists.c | 12 +++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index 8749561..9

[U-Boot] [PATCH v2 6/6] sun50i: dts: update DTS to avoid warnings

2017-02-22 Thread Philipp Tomsich
Nodes that don't contain a reg-entry should not have an @xxx name attached. To silence the dt-compiler warnings, we update the DTS. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/sun50i-a64.dtsi | 57

[U-Boot] [PATCH v2 4/6] defconfig: lynx: enable CONFIG_DM_ALLOW_MULTIPLE_DRIVERS

2017-02-22 Thread Philipp Tomsich
Now that we have the new functionality to allow multiple drivers to bind for a single node, we want to enable it for the A64-uQ7. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/lynx_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/c

[U-Boot] [PATCH v2 1/6] sunxi: add pinctrl (UCLASS_PINCTRL) support for sunxi

2017-02-22 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-sunxi/gpio-internal.h| 19 + .../pinctrl/allwinner,pinctrl.txt | 65 +++ drivers/gpio/sunxi_gpio.c | 15 +- drivers/pinctrl/Kconfig

[U-Boot] [PATCH v2] net: Kconfig: select PHY_GIGE for SUN8I_EMAC

2017-02-22 Thread Philipp Tomsich
This now moves the PHY_GIGE, PHY_MICREL_KSZ9021 and PHY_MICREL_KSZ9031 into Kconfig, so we can select them from our defconfig. For SUN8I, we select PHY_GIGE automatically. The same goes for SUNXI_GMAC. Philipp Tomsich (1): net: Kconfig:make PHY_GIGE and individual Micrel PHYs selectable

[U-Boot] [PATCH v2] net: Kconfig:make PHY_GIGE and individual Micrel PHYs selectable

2017-02-22 Thread Philipp Tomsich
and MICREL_KSZ9031 GbE PHYs, which previously had to enabled through a board-specific config file Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/net/Kconfig | 7 +++ drivers/net/phy/Kconfig | 10 ++ 2 files changed, 17 insertions(+) diff

[U-Boot] [PATCH v2] net: Kconfig: select PHY_GIGE for SUN8I_EMAC

2017-02-22 Thread Philipp Tomsich
This now moves the PHY_GIGE, PHY_MICREL_KSZ9021 and PHY_MICREL_KSZ9031 into Kconfig, so we can select them from our defconfig. For SUN8I, we select PHY_GIGE automatically. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Philipp Tomsich (1): net: Kconfig:make PH

[U-Boot] [PATCH v3] armv8: spl: Call spl_relocate_stack_gd for ARMv8

2017-02-22 Thread Philipp Tomsich
As part of the startup process for boards using the SPL, we need to call spl_relocate_stack_gd. This is needed to set up malloc with its DRAM buffer. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Reviewed-by: Andre Przywara <andre.przyw...@arm.com> Review

[U-Boot] [PATCH v2] dtoc: make ScanTree recurse into subnodes

2017-02-22 Thread Philipp Tomsich
{ /* ... */ }; }; }; This introduces a recursive helper method ScanNode, which is used by ScanTree to recursively parse the entire tree hierarchy. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- tools/dtoc/dtoc.py | 19 ++- 1 file chang

[U-Boot] [PATCH v2] sun8i_emac: configure PHY reset GPIO via DM

2017-02-22 Thread Philipp Tomsich
Linux DTS is leading Philipp Tomsich (1): sun8i_emac: configure PHY reset GPIO via DM drivers/net/sun8i_emac.c | 86 1 file changed, 80 insertions(+), 6 deletions(-) -- 1.9.1 ___ U-Boot mailing l

[U-Boot] [PATCH v2] armv8: spl: Call spl_relocate_stack_gd for ARMv8

2017-02-20 Thread Philipp Tomsich
As part of the startup process for boards using the SPL, we need to call spl_relocate_stack_gd. This is needed to set up malloc with its DRAM buffer. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/lib/crt0_64.S | 12 ++-- 1 file changed, 10 inse

[U-Boot] [PATCH v1 1/2] sun8i_emac: Set MDC divider for MDIO read/write

2017-02-17 Thread Philipp Tomsich
according to the CCU documentation), we need to use the divide-by-128 setting to get us below 2.5MHz. The ~2.34MHz clock signal (i.e. assuring that the MDC clock is indeed derived from the AHB2 clock) has been verified using a A64-uQ7. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v2 1/2] rockchip: rk3399: spl: add UART0 support for SPL

2017-03-23 Thread Philipp Tomsich
SE and add the appropriate iomux setup to the rk3399 SPL code. As we are already touching this code, we also move the board-specific UART setup (i.e. iomux setup) into board_debug_uart_init(). This will be called from the debug UART init when CONFIG_DEBUG_UART_BOARD_INIT is set. Signed-off-by: Phili

[U-Boot] [PATCH] rockchip: spl: RK3399: add COUNTER_FREQUENCY define to rk3399_common.h

2017-03-23 Thread Philipp Tomsich
). This change defines COUNTER_FREQUENCY, which is used by the AArch64 init code in arch/arm/cpu/armv8/start.S to set up cntfrq_el0 (if necessary). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/configs/rk3399_common.h | 2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH v2 2/2] rockchip: config: rk3399: update defconfigs and rk3399_common

2017-03-23 Thread Philipp Tomsich
With everything set up to define CONFIG_BAUDRATE via defconfig and with to have the SPL debug UART either on UART0 or UART2, the configs for the RK3399 EVB and for the RK3399-Q7 can be updated. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2

[U-Boot] [PATCH v2 0/2] rockchip: rk3399: spl: Make baudrate and UART configurable

2017-03-23 Thread Philipp Tomsich
in the RK3399 SPL. Changes in v2: - Changed hex constant to lowercase Philipp Tomsich (2): rockchip: rk3399: spl: add UART0 support for SPL rockchip: config: rk3399: update defconfigs and rk3399_common arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 8 +++ arch/arm/mach-rockchip/rk3399

[U-Boot] [PATCH 5/6] dts: rk3399: add gmac for the rk3399

2017-03-24 Thread Philipp Tomsich
This change adds the gmac node (i.e. the GMAC Ethernet controller) as defined in the Linux DTS. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399.dtsi | 55 1 file changed, 55 insertions(+) diff

[U-Boot] [PATCH] ARMv8: add GOT sections to the list of sections copied

2017-03-24 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Klaus Goger <klaus.go...@theobroma-systems.com> --- arch/arm/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 08d7d1b..907c693 100644 --- a/arch/a

[U-Boot] [PATCH 1/6] rockchip: pinctrl: rk3399: add GMAC (RGMII only) support

2017-03-24 Thread Philipp Tomsich
defines (in the GRF support) for configuring the GPIOC pins for RGMII * configures the RGMII pins (in GPIOC) when requested via pinctrl X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/grf_rk3399.

[U-Boot] [PATCH 2/6] rockchip: clk: rk3399: fix warnings for unused variables in SPL/non-SPL

2017-03-24 Thread Philipp Tomsich
:54:29: warning: 'ppll_init_cfg' defined but not used [-Wunused-const-variable=] static const struct pll_div ppll_init_cfg = PLL_DIVISORS(PPLL_HZ, 2, 2, 1); ^ Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drive

[U-Boot] [PATCH 0/6] rockchip: rk3399: GMAC support for the RK3399 SoC

2017-03-24 Thread Philipp Tomsich
and RK3399 devices. It further adds the necessary pinctrl and clock support for GMAC capability on the RK3399. Tested with a RK3399-Q7 (on-module KSZ9031 PHY) at 100MBit and 1GBit. Philipp Tomsich (6): rockchip: pinctrl: rk3399: add GMAC (RGMII only) support rockchip: clk: rk3399: fix warnings

[U-Boot] [PATCH] rockchip: clk: rk3399: 24MHz is not a power of 2

2017-03-24 Thread Philipp Tomsich
The clock driver for the RK3399 mistakenly used (24 * 2^20) where it should have used (24 * 10^6) in a few calculations. This commits fixes this. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/clk/rockchip/clk_rk3399.c | 4 ++-- 1 file changed, 2 inse

[U-Boot] [PATCH 4/6] net: gmac_rockchip: Add support for the RK3399 GMAC

2017-03-24 Thread Philipp Tomsich
(and to make it easier to stay below 80 chars). X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Klaus Goger <klaus.go...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/grf_rk3288.h | 68 ++-- arch

[U-Boot] [PATCH] rockchip: arm64: rk3399: remove unconditional debug message

2017-03-24 Thread Philipp Tomsich
a debug-build), as it doesn't pertain to any initialisation done in this file. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/mach-rockchip/rk3399/rk3399.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/ar

[U-Boot] [PATCH 6/6] dts: rk3399-puma: add gmac for the RK3399-Q7

2017-03-24 Thread Philipp Tomsich
This change enables the Gigabit Ethernet support on the RK3399-Q7. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-puma.dts | 30 ++ 1 file changed, 30 insertions(+) diff --git a/ar

[U-Boot] [PATCH 3/6] rockchip: clk: rk3399: add clocking support for Ethernet

2017-03-24 Thread Philipp Tomsich
driver probing. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- drivers/clk/rockchip/clk_rk3399.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index 4

[U-Boot] [PATCH 2/8] rockchip: pinctrl: rk3399: add support for the SPI5 controller

2017-03-28 Thread Philipp Tomsich
-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> --- arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12 arch/arm/include/asm/arch-rockc

[U-Boot] [PATCH 1/8] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-03-28 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> --- drivers/clk/rockchip/clk_rk3399.c | 69 +++ 1 file changed, 69 insertions(+) diff --git a/drivers/

[U-Boot] [PATCH 4/8] rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig

2017-03-28 Thread Philipp Tomsich
ge. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> --- include/configs/rk3399_common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/confi

[U-Boot] [PATCH v1 0/1] rockchip: rk3399: spl: make SPL boot-order configurable via /chosen

2017-03-28 Thread Philipp Tomsich
Kconfig). Philipp Tomsich (1): rockchip: rk3399: spl: make SPL boot-order configurable via /chosen arch/arm/mach-rockchip/rk3399-board-spl.c | 99 +++ doc/device-tree-bindings/chosen.txt | 22 +++ 2 files changed, 121 insertions(+) -- 1.9.1

[U-Boot] [PATCH 0/8] rockchip: spi: rk3399: support SPI on the RK3399

2017-03-28 Thread Philipp Tomsich
: enable support for the rk_spi driver for the RK3399 rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig dts: rk3399-puma: enable spi1 and spi5, add /spi1/spiflash Philipp Tomsich (5): rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5 rockchip

[U-Boot] [PATCH v1] rockchip: rk3399: spl: make SPL boot-order configurable via /chosen

2017-03-28 Thread Philipp Tomsich
disabled via Kconfig). A boot-sequence with probing and fallthroughs from SPI via eMMC to SD card (i.e. , , ) has been validated on the RK3399-Q7. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Klaus Goger <klaus.go...@theobroma-systems.com> Tested

[U-Boot] [PATCH 6/8] defconfig: rk3399-puma: enable SPI as a boot-source in SPL

2017-03-28 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/puma_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/puma_defconfig b/configs/puma_defconfig index fb33ba9..efca8f9 100644 --- a/configs/puma_defconfig +++ b/configs/puma_def

[U-Boot] [PATCH 3/8] rockchip: spi: enable support for the rk_spi driver for the RK3399

2017-03-28 Thread Philipp Tomsich
change adds the 'rockchip,rk3399-spi' string to its compatible list to allow reuse of the existing driver. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com>

[U-Boot] [PATCH 5/8] defconfig: rk3399-puma: enable support for SPI and Winbond SPI flash

2017-03-28 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/puma_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/puma_defconfig b/configs/puma_defconfig index d045d41..fb33ba9 100644 --- a/configs/puma_defconfig +++ b/configs/puma_def

[U-Boot] [PATCH 8/8] dts: rk3399-puma: enable spi1 and spi5, add /spi1/spiflash

2017-03-28 Thread Philipp Tomsich
enamed the aliases to spi0 and spi1 to allow easier use of commands and legacy (SPL) infrastructure... i.e. the controllers will be 0 and 1 for 'sf probe', 'sspi', etc. [dts: rk3399-puma: rename aliases to number spi as 0 and 1 for commands] X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp T

[U-Boot] [PATCH 7/8] rockchip: spl: RK3399: enable SPL_SPI_LOAD if SPI is enabled for SPL

2017-03-28 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/configs/rk3399_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index 9d22e0c..c409d95 100644 --- a/include/configs/rk3399_co

[U-Boot] [PATCH] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-28 Thread Philipp Tomsich
with what happens when OF_PLATDATA is defined, as fifo_mode gets overwritten to 0 in that case. With this fix in place, we can reenable 'fifo-mode' in the DTS for the RK3399-Q7 (Puma). Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-puma.dts

[U-Boot] [PATCH v2] rockchip: mmc: rk3399: work around DMA issue in SPL

2017-03-28 Thread Philipp Tomsich
-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v2: - Fixes switching to fifo_mode (should have been 1) in SPL. I broke this at the 11th hour due to sloppy preparation of the patch. arch/arm/dts/rk3399-puma.dts | 1 - drivers/mmc/rockchip_dw_mmc.c | 11

[U-Boot] [PATCH v1 3/3] defconfig: puma-rk3399: add defconfig for the RK3399-Q7 (Puma)

2017-03-28 Thread Philipp Tomsich
ontent). By disabling the SPL_RAW_IMAGE_SUPPORT and SPL_LEGACY_IMAGE_SUPPORT options, we ensure that raw images (indistinguishable from random data) are not considered for booting. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- configs/evb-rk3399_defconfig| 3

[U-Boot] [PATCH v1 2/3] dts: rk3399-puma: add DTS for RK3399-Q7 (Puma) SoM

2017-03-28 Thread Philipp Tomsich
to allow easier use of commands and legacy (SPL) infrastructure... i.e. the controllers will be 0 and 1 for 'sf probe', 'sspi', etc. [dts: rk3399-puma: rename aliases to number spi as 0 and 1 for commands] * dts: rk3399-puma: include SPI in the spl-boot-order property Signed-off-by: Philipp

[U-Boot] [PATCH v1 1/3] arm64: rockchip: rk3399-puma: add DDR3-1333 timings

2017-03-28 Thread Philipp Tomsich
For the initial validation of the RK3399-Q7 (Puma), the DDR3 has been clocked at 666MHz (i.e. DDR3-1333) using the same (safe) settings as used in Rockchip's MiniLoader. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-sdram-ddr3-1333.dtsi

[U-Boot] [PATCH v1 0/3] rockchip: rk3399: add RK3399-Q7 (Puma) SoM support

2017-03-28 Thread Philipp Tomsich
-connector) * SPL loading the next stage from SPI, eMMC or SD card * Console on the external UART w/ configurable baudrate Philipp Tomsich (3): arm64: rockchip: rk3399-puma: add DDR3-1333 timings dts: rk3399-puma: add DTS for RK3399-Q7 (Puma) SoM defconfig: puma-rk3399: add defconfig

[U-Boot] [PATCH v3] net: Kconfig:make PHY_GIGE and individual Micrel PHYs selectable

2017-03-26 Thread Philipp Tomsich
and KSZ9031 GbE PHYs, which previously had to enabled through a board-specific config file Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: - add a label to the PHY_GIGE option to make it selectable via menuconf - automatically select PHY_GIGE when a K

[U-Boot] [PATCH] dts: rk3399: move rockchip, vbus-gpio properties into board-specific files

2017-03-29 Thread Philipp Tomsich
board which these GPIO definitions match. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- arch/arm/dts/rk3399-evb.dts | 2 ++ arch/arm/dts/rk3399.dtsi| 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/a

[U-Boot] [PATCH v3 1/2] spl: rk3399: disable DDR security regions for SPL (for DMA in dw_mmc)

2017-03-29 Thread Philipp Tomsich
/to the stack). System security is not affected, as the final security configuration is performed by the ATF, which is executed after the SPL stage. With this fix in place, we can now drop 'fifo-mode' in the DTS for the RK3399-Q7 (Puma). Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v3 2/2] dts: rk3399-puma: disable 'fifo-mode' in sdmmc

2017-03-29 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- Changes in v3: None arch/arm/dts/rk3399-puma.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/rk3399-puma.dts index 09b3858..50e43c7 100644 --- a/arch/arm/dts/

[U-Boot] [PATCH v2 1/6] rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5

2017-03-29 Thread Philipp Tomsich
Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> Tested-by: Klaus Goger <klaus.go...@theobroma-systems.com> --- Changes in v2: - fixes a wrong macro usage, which caused the SPI

[U-Boot] [PATCH v2 0/6] rockchip: spl: rk3399: prepare to have SPI config per-board

2017-03-29 Thread Philipp Tomsich
it was running at 99MHz) Jakob Unterwurzacher (2): rockchip: spi: enable support for the rk_spi driver for the RK3399 rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig Philipp Tomsich (4): rockchip: clk: rk3399: add clock support for SCLK_SPI1 and SCLK_SPI5 clk

[U-Boot] [PATCH v2 6/6] rockchip: spl: rk3399: enable SPL_SPI_LOAD if SPI is enabled for SPL

2017-03-29 Thread Philipp Tomsich
To include the ability to load from an SPI flash in SPL, it's not sufficient to define SPL_SPI_SUPPORT and SPL_SPI_FLASH_SUPPORT via Kconfig... so we conditionally define SPL_SPI_LOAD if SPI support is already enabled for SPL via Kconfig. Signed-off-by: Philipp Tomsich <philipp.toms...@theobr

[U-Boot] [PATCH v2 4/6] rockchip: spi: enable support for the rk_spi driver for the RK3399

2017-03-29 Thread Philipp Tomsich
change adds the 'rockchip,rk3399-spi' string to its compatible list to allow reuse of the existing driver. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com>

[U-Boot] [PATCH v2 3/6] rockchip: pinctrl: rk3399: add support for the SPI5 controller

2017-03-29 Thread Philipp Tomsich
-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> --- Changes in v2: None arch/arm/include/asm/arch-rockchip/grf_rk3399.h | 12 arch/arm/incl

[U-Boot] [PATCH v2 5/6] rockchip: spi: rk3399: move CONFIG_SPI and CONFIG_SPI_FLASH to defconfig

2017-03-29 Thread Philipp Tomsich
ge. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested-by: Jakob Unterwurzacher <jakob.unterwurzac...@theobroma-systems.com> --- Changes in v2: None include/configs/rk3399_common.h | 2 -- 1 file changed, 2 deletions(-) di

[U-Boot] [PATCH v2 2/6] clk: rk3399: fix off-by one during rate calculation in i2c/spi_set_rate

2017-03-29 Thread Philipp Tomsich
er from the register and then passes it through the DIV_RATE macro Given that this code is not time-critical, the more readable solution (i.e. calling the appropriate get_rate function) is implemented in this change. Signed-off-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> Tested

  1   2   3   4   5   6   7   8   9   10   >