Commit Graph

41271 Commits

Author SHA1 Message Date
nearology 951642e2a3 configs: update bootargs and bootcommand for Allwinner V3s SoC 2026-05-18 15:06:03 +03:30
nearology 5ed71264bb dts: add EMAC configuration and syscon node for Allwinner V3s SoC 2026-05-12 13:15:05 +03:30
nearology b460a6597c add build guide for Lichee Pi Zero based on Allwinner V3s SoC 2026-05-12 12:01:49 +03:30
nearology 1c86fc4ded binman: update shebang to use specific Python version path 2026-05-12 12:01:39 +03:30
Icenowy Zheng dd6e8740dc Merge branch 'v3s-current' into v3s-spi-experimental
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-08-12 17:27:28 +08:00
Icenowy Zheng 32ab1804cd sunxi: fix SMP bit for V3s SoC
The cache of Cortex-A7 is only enabled if the SMP bit is set, but the
SMP bit of V3s is wrongly left unset, because I thought that it's not
SMP-capable.

Fix this.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-08-12 17:24:24 +08:00
Icenowy Zheng f03c1f5aea spi: sunxi: fix tx buf
After a fifo length of data is sent to tx fifo, the tx buffer should be
offseted.

Do this offset after the transfer.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-23 22:56:04 +08:00
Icenowy Zheng d3205f02ce sunxi: enable env on spi flash when spi flash is available
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-21 14:19:51 +08:00
Icenowy Zheng 24f72f61a9 sunxi: update defconfigs for Lichee Pi Zero for SPI
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-21 13:44:08 +08:00
Priit Laes 60f33d9d80 spl: sunxi: Fix build error with CONFIG_SPL_SPI_SUNXI
Fix typo introduced in ebc4ef61d7

Signed-off-by: Priit Laes <plaes@plaes.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
2017-05-21 12:55:54 +08:00
Icenowy Zheng e11cd774f9 sunxi: enable SPL SPI for all sun8i SoCs
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-21 12:51:04 +08:00
Icenowy Zheng eb2adf2785 sunxi: enable SPI for Lichee Pi Zero
Lichee Pi Zero have a SPI NOR solder pad.

Enable the SPI on Lichee Pi Zero.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-21 12:34:44 +08:00
Icenowy Zheng 7e47c8101d sunxi: add SPI0 node for V3s DTSI
Allwinner V3s SoC has a SPI controller which is the same as the
controllers in H3 SoC.

Add a device tree node for it, so that it can be usable.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-21 12:32:02 +08:00
S.J.R. van Schaik b8749fe541 sunxi: spi: set up GPIO pins using pinctrl 2017-05-21 12:28:36 +08:00
Andre Przywara 2f25199bf0 introduce and use sunxi_gpio_setup_dt_pins() 2017-05-21 12:28:35 +08:00
Andre Przywara 320b9df023 introduce and use sunxi_gpio_parse_pin_name() 2017-05-21 12:28:33 +08:00
S.J.R. van Schaik ae851665c7 sunxi: add SPI driver for Allwinner devices (sunxi)
Implements a driver model SPI driver for Allwinner devices (sunxi).

Signed-off-by: S.J.R. van Schaik <stephan@whiteboxsystems.nl>
2017-05-21 12:28:29 +08:00
S.J.R. van Schaik f335000967 sunxi: add SPI register definitions for sun6i/sun8i/sun9i/sun50i
Introduces SPI registers for sun6i/sun8i/sun9i/sun50i by adding struct
sunxi_spi_regs and flags.

Signed-off-by: S.J.R. van Schaik <stephan@whiteboxsystems.nl>
2017-05-21 12:27:39 +08:00
S.J.R. van Schaik e6c4c5681a sunxi: add SPI register definitions for sun4i/sun7i
Introduces SPI registers for sun4i/sun7i by adding struct sunxi_spi_regs
and flags.

Signed-off-by: S.J.R. van Schaik <stephan@whiteboxsystems.nl>
2017-05-21 12:27:38 +08:00
S.J.R. van Schaik 1a3ef87393 sunxi: add missing AHB_GATE_OFFSET_SPIx defines for sun6i/sun9i
Added missing AHB_GATE_OFFSET_SPIx defines to enable/disable clock gating for
SPI on the sun6i and sun9i platforms.

Signed-off-by: S.J.R. van Schaik <stephan@whiteboxsystems.nl>
2017-05-21 12:27:37 +08:00
S.J.R. van Schaik 4270db46d2 spl: sunxi: remove dependency on CONFIG_SPL_SPI_FLASH_SUPPORT. 2017-05-21 12:27:35 +08:00
Icenowy Zheng a297a99445 sunxi: enable fdt overlay in lcd-less Lichee Pi Zero defconfig
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-05-20 23:43:46 +08:00
Icenowy Zheng cd94d29394 add Lichee Pi Zero with LCD defconfig's
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
2017-04-13 23:41:01 +08:00
Icenowy Zheng d282076db0 sunxi: display: change pipeline string for DE2
DE2 do not have dedicated BE or FE.

Remove the "_be" suffix in the pipeline string of DE2.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-20 01:22:27 +08:00
Icenowy Zheng 88cbcae366 sunxi: display: add simplefb support for V3s SoC
V3s SoC features a DE2 composer.

Add support for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-20 01:22:23 +08:00
Jernej Skrabec cd3e906236 sunxi: Add clocks for DE2/HDMI/TCON
This is needed for HDMI support, which will be added later.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
[Icenowy: renamed back lcd0_ch0_clk_cfg, add PLL3 for DE2 on V3s,
and add CONFIG_SUNXI_DE2]
Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-14 03:17:21 +08:00
Icenowy Zheng be1eb7123e sunxi: do a CCM quirk on V3s for USB to work properly
USB OTG on V3s SoC seems to need the USB OTG clock gate to be passed and
the reset to be deasserted before boot, otherwise it won't work in
Linux.

Add this quirk.

Also add a generic quirk framework in sunxi's clock initialization code.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-14 03:17:20 +08:00
Icenowy Zheng 08a0668825 sunxi: low memory footprint for V3s
V3s devices won't have enough memory to load U-Boot binary at
0x4a000000, and they do not have enough memory to reserve 64MiB for
malloc() (it has only 64MiB at all!)

Change the DRAM mapping for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-14 03:17:19 +08:00
Icenowy Zheng 7557c42cde sunxi: add support for Lichee Pi Zero
Lichee Pi Zero is a development board with a V3s SoC.

Add support for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-14 03:17:13 +08:00
Icenowy Zheng 4052766863 sunxi: add DTSI file for V3s
As we have now V3s support in board code, the V3s DTSI file should also
be added.

Add also some CCU include headers to satisfy the DTSI file.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2017-01-14 03:17:08 +08:00
Icenowy Zheng 3bd4355c91 sunxi: add basic V3s support
Currently a working SPL for V3s can be built now.

The U-Boot main binary still cannot work.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2016-12-29 02:47:28 +08:00
Icenowy Zheng 0278d3db93 sunxi: add DDR2 support to H3-like DRAM controller
H3-like DRAM controller needs some special code to operate a DDR2 DRAM
chip. Add the logic to probe such a chip.

As there's no commercial boards available now with H3 and DDR2 DRAM, the
patch is developed and tested on a V3s chip, which has in-package DDR2
DRAM.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2016-12-29 02:47:26 +08:00
Andre Przywara 42cf9d9566 sunxi: H3/A64: fix non-ODT setting
According to Jens disabling the on-die-termination should set bit 5,
not bit 1 in the respective register. Fix this.

Reported-by: Jens Kuske <jenskuske@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2016-12-29 02:47:22 +08:00
Icenowy Zheng 677a6327e7 sunxi: makes an invisible option for H3-like DRAM controllers
Allwinner SoCs after H3 (e.g. A64, H5, R40, V3s) uses a H3-like
DesignWare DRAM controller, which do not have official free DRAM
initialization code, but can use modified dram_sun8i_h3.c.

Add a invisible option for easier DRAM initialization code reuse.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
2016-12-29 02:47:20 +08:00
Tom Rini a5b24110ca Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2016-12-23 18:41:56 -05:00
Tom Rini 7ceae0eac0 Merge branch 'master' of git://git.denx.de/u-boot-spi 2016-12-23 18:41:32 -05:00
Tom Rini 0683e7e0f3 Merge branch 'master' of git://git.denx.de/u-boot-samsung 2016-12-23 10:17:22 -05:00
Jaehoon Chung 9e26834f49 configs: enable the DM_PMIC and DM_I2C_GPIO for max8998 pmic
Enable the DM_PMIC and DM_I2C_GPIO for using max8998 pmic.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2016-12-22 13:34:02 +09:00
Jaehoon Chung 23d2224b64 arm: dts: s5pc1xx-goni: add the pmic node for using DM
To use driver-model adds the pmic node for max8998.
This is used as kerel device-tree in Linux.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2016-12-22 13:34:01 +09:00
Jaehoon Chung 103e83a1b0 power: pmic: add the max8998 controller for DM
Add the max8998 controller for Driver model.
Samsung S5P series are using max8998 pmic controller.
In future, it should be supported the regulator framework.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2016-12-22 13:34:01 +09:00
Michal Simek 9c4132b526 mmc: Extend dependencies for zynq sdhci
There is hard dependency on BLK and DM_MMC which is also used by ATMEL
and ROCKCHIP.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2016-12-22 07:08:52 +09:00
Jaehoon Chung c942fc925e mmc: spear: remove the entire spear_sdhci.c file
Remove the entire spear_sdhci.c file.
There is no use case. This is dead codes.
Also there is no place to call "spear_sdhci_init()" anywhere.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-12-22 07:08:52 +09:00
Jagan Teki cb71c6d854 spi: Zap armada100_spi.c and env
armada100_spi.c and related env is zapping becuase
of "no DM conversion".

Cc: Ajay Bhargav <ajay.bhargav@einfochips.com>
Signed-off-by: Jagan Teki <jagan@openedev.com>
2016-12-21 12:18:47 +01:00
Jagan Teki 353f6a770f spi: Zap mpc52xx_spi.c, config and related code
armada100_spi.c, related config options and related codes
are zapping becuase of "no DM conversion".

Cc: Werner Pfister <Pfister_Werner@intercontrol.de>
Signed-off-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-12-21 12:14:37 +01:00
Konstantin Porotchkin 0d92f2141a arm64: mvebu: Fix A8K memory mapping and add documentation
Fix the MMU mapping for A8K device family:
 - Separate A7K and A8K memory mappings
 - Fix memory regions by including IO mapping for all
   3 PCIe interfaces existing on each connected CP110 controller
Add A8K memory mapping documentation with all regions
configured by Marvell ATF.

Change-Id: I9c930569b1853900f5fba2d5db319b092cc7a2a6
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Nadav Haklai <nadavh@marvell.com>
Cc: Neta Zur Hershkovits <neta@marvell.com>
Cc: Omri Itach <omrii@marvell.com>
Cc: Igal Liberman <igall@marvell.com>
Cc: Haim Boot <hayim@marvell.com>
Cc: Hanna Hawa <hannah@marvell.com>
2016-12-21 09:52:35 +01:00
Tom Rini 0bd1f96aa2 Merge git://git.denx.de/u-boot-mpc85xx 2016-12-20 12:20:12 -05:00
Chris Packham 01b25d42c1 powerpc: Retain compatible property for L2 cache
When setting the compatible property for the L2 cache ensure that we
follow the documented binding by setting both
"<chip>-l2-cache-controller" and "cache" as values.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: York Sun <york.sun@nxp.com>
2016-12-20 09:13:19 -08:00
Icenowy Zheng 65d2d4f239 sunxi: fix SID read on H3
H3 SID controller has some bug, which makes the initial SID value at
SUNXI_SID_BASE wrong when boot.

Change the SID retrieve code to call the SID Controller directly on H3,
which can get the correct value, and also fix the SID value at
SUNXI_SID_BASE, so that it can be used by further operations.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
2016-12-20 16:08:50 +01:00
Tom Rini 7588bf9390 Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze 2016-12-20 08:42:50 -05:00
Tom Rini 36737f22b7 Merge git://git.denx.de/u-boot-dm 2016-12-20 08:42:04 -05:00