Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
configs/orangepi_2_defconfig | 1 +
configs/orangepi_lite_defconfig| 1 +
configs/orangepi_one_defconfig | 1 +
configs/orangepi_pc_defconfig | 1 +
configs/orangepi_pc_plus_defconfig | 1 +
c
,
Jernej Skrabec
Jernej Skrabec (3):
sunxi: Add clocks for DE2/HDMI/TCON
sunxi: video: Add video driver for H3 SoC
sunxi: Enable H3 video driver in defconfigs
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 43 +
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h |8 +
arch/arm/include/asm
This is needed for HDMI support, which will be added later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 43 +++
arch/arm/mach-sunxi/clock_sun6i.c | 28 +
2 files chang
for framebuffer. This is just enough to support
4K resolution.
SimpleFB is also supported by this driver.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h |8 +
arch/arm/include/asm/arch-sunxi/display2.h | 377 ++
board
MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC,
micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and
expansion ports.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/
This is needed for HDMI, which will be added later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v3:
- convert define to Kconfig option
Changes in v2:
- add reviewed by tag
- constant style fix
arch/arm/incl
drivers should use DM video framework and older drivers might be
rewritten to use new framework too.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
Changes in v3:
- add acked by tag
Changes in v2:
- new patch
arch
From: Icenowy Zheng <icen...@aosc.xyz>
The A64 uses the AXP803 as its PMIC.
Signed-off-by: Icenowy Zheng <icen...@aosc.xyz>
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/mach-sunxi/Makefile | 3 +
arch/arm/mach-sunxi/pmic_bus.c | 6 +-
arch/ar
04c9
520c174b3564ae183f0e7c118dc8ce3770ae20b0
3bffe88d68e43b7bead12ef8020267fabc6c7ebf
Best regards,
Jernej Skrabec
Changes in v3:
- drop patch 1 because it was merged
- changed video output to 32 bpp
- collect acked by tags
- convert preprocessor symbol to Kconfig option (patch 3)
- Kconfig op
Because DE2 driver is enabled by default, it is nice to disable it on
all boards which don't have any video output. List of such boards is
also much shorter.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
Changes
TCON unit has similar layout and functionality also on newer SoCs. This
commit splits out TCON code for easier reuse later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
Changes in v3:
- add acked by tag
C
This commit adds support for HDMI output.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Reviewed-by: Simon Glass <s...@chromium.org>
Acked-by: Maxime Ripard <maxime.rip...@free-electrons.com>
---
Changes in v3:
- changed to 32 bpp
- add acked by tag
- VIDEO_DE2
MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC,
micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and
expansion ports.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v2:
- change license to SPDX identifier
- reorder
mers of
CONFIG_DISPLAY option, which is the only one which selects I2C_EDID.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
cmd/i2c.c | 10 ++
drivers/video/Kconfig | 1 -
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/cmd/i2c.c b/cmd/i2c.c
index
Sort rk3288 boards in alphabetical order.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v3:
- new patch
arch/arm/dts/Makefile | 10 ++--
arch/arm/mach-rockchip/rk3288/Kconfig | 90 +--
doc/README.ro
MiQi is rk3288 based development board with 1 or 2 GB SDRAM, 16 GB eMMC,
micro SD card interface, 4 USB 2.0 ports, HDMI, gigabit Ethernet and
expansion ports.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v3:
- split out cosmetic changes into a new patch
Changes
Jernej Skrabec (2):
rockchip: cosmetic: Sort RK3288 boards
rockchip: Add support for MiQi rk3288 board
arch/arm/dts/Makefile | 11 +-
arch/arm/dts/rk3288-miqi.dts| 46
arch/arm/dts/rk3288-miqi.dtsi | 423
arch/arm/mach
From: Icenowy Zheng <icen...@aosc.xyz>
The A64 uses the AXP803 as its PMIC.
Signed-off-by: Icenowy Zheng <icen...@aosc.xyz>
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/mach-sunxi/Makefile | 3 +
arch/arm/mach-sunxi/pmic_bus.c | 6 +-
arch/ar
This commit adds support for HDMI output.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v2:
- add reviewed by tag
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 8 +
arch/arm/include/asm/arch-sunxi/displ
SoCs in general. Make it more general using byte by byte approach, which
is also used in Linux driver.
Finally, not all DW HDMI controllers are accompanied with DW HDMI phy.
Support custom phys by making controller code independent from phy code.
Signed-off-by: Jernej Skrabec <jernej.s
drivers should use DM video framework and older drivers might be
rewritten to use new framework too.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v2:
- new patch
arch/arm/include/asm/arch-sunxi/lcdc.h | 6 ++--
drivers/video/sunxi/lcdc.c
This is needed for HDMI, which will be added later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v2:
- add reviewed by tag
- constant style fix
arch/arm/include/asm/arch-sunxi/clock_
Because DE2 driver is enabled by default, it is nice to disable it on
all boards which don't have any video output. List of such boards is
also much shorter.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v2:
- invert logic (disable instead of enable)
c
TCON unit has similar layout and functionality also on newer SoCs. This
commit splits out TCON code for easier reuse later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
Changes in v2:
- lcdc conversion to use struct display_timing is done in a new patch
- fix issue with lcdc_
ATF which powers on HDMI. Such ATF can be found on Andre
Przywara's github.
Best regards,
Jernej Skrabec
Icenowy Zheng (1):
[DO NOT MERGE] sunxi: power: add AXP803 support
Jernej Skrabec (7):
rockchip: video: Fix HDMI audio clocks
rockchip: video: Remove CSC initialization (HDMI)
rock
TCON unit has similar layout and functionality also on newer SoCs. This
commit splits out TCON code for easier reuse later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/display.h | 103 --
arch/arm/include/asm/arch-sunxi/lcdc.h
Despite the comment in the code, CSC unit is never used. According to
the only public description of DW HDMI controller (i.MX6 manual), CSC
unit is bypassed in MC_FLOWCTRL register and then actually powered
down in MC_CLKDIS register.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.
SoCs in general. Make it more general using byte by byte approach, which
is also used in Linux driver.
Finally, not all DW HDMI controllers are accompanied with DW HDMI phy.
Support custom phys by making controller code independent from phy code.
Signed-off-by: Jernej Skrabec <jernej.s
This is needed for HDMI, which will be added later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 54 +++
arch/arm/mach-sunxi/clock_sun6i.c | 40 +++-
drivers/video/sunxi/
From: Icenowy Zheng <icen...@aosc.xyz>
The A64 uses the AXP803 as its PMIC.
Signed-off-by: Icenowy Zheng <icen...@aosc.xyz>
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/mach-sunxi/Makefile | 3 +
arch/arm/mach-sunxi/pmic_bus.c | 6 +-
arch/ar
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
configs/orangepi_2_defconfig | 1 +
configs/orangepi_lite_defconfig| 1 +
configs/orangepi_one_defconfig | 1 +
configs/orangepi_pc2_defconfig | 1 +
configs/orangepi_pc_defconfig | 1 +
c
This commit adds support for HDMI output.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 8 +
arch/arm/include/asm/arch-sunxi/display2.h | 124 +
board/sunxi/Kconfig | 10 +
drivers/video
Function hdmi_lookup_n_cts() is feed with clock in Hz, which gets
compared with clocks in kHz. Fix that by converting all clocks to Hz.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
drivers/video/rockchip/rk_hdmi.c | 32
1 file chang
rged patches are not yet included in u-boot-sunxi
repository, they need to be cherry picked from u-boot-rockchip:
a0a2774aebdaa039ce787090c903cf47263f04c9
520c174b3564ae183f0e7c118dc8ce3770ae20b0
Best regards,
Jernej Skrabec
Changes in v2:
- patch 1 & 2 were removed because they were merged
-
introduces DM I2C support for sun6i-a31 compatible I2C
controllers.
Patch 4 enables DM I2C only for A64/H3/H5. Other platforms would easily
support DM I2C too, but their PMIC drivers needs to be ported to DM in
order not to lose any existing functionality.
Best regards,
Jernej Skrabec
Jernej Skrabec
. This is done by calling i2c_init_board() in board_init().
This means that CONFIG_I2Cx_ENABLE options needs to be correctly set
in order to use needed I2C controller.
Commit is based on the previous patch made by Philipp Tomsich
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
ar
This commits enable DM I2C support for A64/H3/H5 SoCs.
It is not enabled globaly for all sunxi SoCs, because some boards use
PMICs which are connected through I2C. In order to keep same
functionality, PMIC drivers needs to be ported to DM too.
Signed-off-by: Jernej Skrabec <jernej.s
Driver for that regulator is used only in SPL and it uses old I2C
interface. If we want to use DM I2C in U-Boot proper, compilation of
this driver has to be limited only to SPL.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
drivers/power/sy8106a.c | 2 ++
1 file chan
This commit only moves i2c_init_board() function almost to the top and
doesn't have any functional changes.
This is needed for a temporary workaround in next commit when support
for DM I2C will be introduced.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
board/sunxi/board.c
Some DVI monitors don't work in HDMI mode. Set it only if edid data
explicitly states that it is supported.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
drivers/video/dw_hdmi.c | 31 ---
1 file changed, 16 insertions(+), 15 deletions(-)
diff
Timing flags are never set, so they may contain garbage. Since some
drivers check them, video output may be broken on those drivers.
Initialize them to 0 and check for few common flags.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
common/edid.c | 14 ++
blocks are checked for presence of HDMI
vendor specific data block. If it is present, HDMI flag is set.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
common/edid.c| 42 ++
include/edid.h | 14 ++
include/fdtdec.h |
initializes and sets flags in timing info.
Patch 2 adds support for distinguishing HDMI and DVI monitor based on
edid data.
Patch 3 use newly added flag in dw_hdmi driver to properly select DVI or
HDMI mode.
Best regards,
Jernej
Jernej Skrabec (3):
edid: Set timings flags according to edid
edid
This patch adds support for TV encoder clocks which will be used later.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch
This commit adds support for TV (composite) output.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 10 ++
arch/arm/include/asm/arch-sunxi/display2.h | 17 +++
arch/arm/include/asm/arch-sunxi/tve.h | 17 ++-
drivers/video
Newer SoCs use same TV encoder unit. Split it out so it can be reused
with new DM video driver.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/display.h | 107
arch/arm/include/asm/arch-sunxi/tve.h
- driver should work as-is, but to work reliably,
following patch must also be applied:
https://patchwork.ozlabs.org/patch/756736/
Best regards,
Jernej
Jernej Skrabec (3):
sunxi: video: Split out TVE code
sunxi: Add clock support for TV encoder
sunxi: video: Add H3/H5 TV out driver
arch
This commit fixes the warning produced by gcc 7.1.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
common/edid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/edid.c b/common/edid.c
index 19410aa4fc..854d40c8f8 100644
--- a/common/edid.c
+++ b/
This commit adds TVE base address for Allwinner H3 and H5 SoCs.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h
b/arch/arm/i
was tested on H3 (OrangePi 2) and H5 (OrangePi PC2) board.
Since this series changes video driver for old SoCs, I would kindly ask
that someone tests if everything still works as expected.
Best regards,
Jernej
Jernej Skrabec (4):
sunxi: video: Rename tve.c to tve_common.c
sunxi: Add base address
In order to avoid future confusion with similary named files, rename
tve.c to tve_common.c. New name better represents the fact that this file
holds code which can be and will be shared between multiple drivers.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
drivers/video
This commit adds support for TV (composite) output.
Because there is no mechanism to select TV standard, PAL is hardcoded.
Signed-off-by: Jernej Skrabec <jernej.skra...@siol.net>
---
arch/arm/include/asm/arch-sunxi/tve.h | 17 +++-
drivers/video/sunxi/Makefile | 2 +-
drivers
configuration routine uses full range (1-16) for
clock divider instead of limited one (1, 2, 4, 11). It also considers
minimum and maximum allowed rate for pll3.
Fixes: 56009451d843 ("sunxi: video: Add A64/H3/H5 HDMI driver")
Signed-off-by: Jernej Skrabec
---
Hi!
Unfortunately, i
/LPDDR3, Tanix
TX6 4 GiB/DDR3) and none were found.
Thanks to Icenowy Zheng for help with this code.
Reviewed-by: Andre Przywara
Tested-by: thomas graichen
Signed-off-by: Jernej Skrabec
---
Changes from v1:
- expanded comment with note that dual rank, half bus width combination
was not tested
/LPDDR3, Tanix
TX6 4 GiB/DDR3) and none were found.
Thanks to Icenowy Zheng for help with this code.
Signed-off-by: Jernej Skrabec
---
.../include/asm/arch-sunxi/dram_sun50i_h6.h | 1 +
arch/arm/mach-sunxi/dram_sun50i_h6.c | 74 ---
2 files changed, 50 insertions
Orange Pi Win has gigabit ethernet port, but default U-Boot
configuration for that board didn't enable it.
Fix that.
Signed-off-by: Jernej Skrabec
---
configs/orangepi_win_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/orangepi_win_defconfig b/configs
-off-by: Jernej Skrabec
---
arch/arm/dts/sun50i-h616.dtsi | 716
include/dt-bindings/clock/sun50i-h616-ccu.h | 115
include/dt-bindings/reset/sun50i-h616-ccu.h | 70 ++
3 files changed, 901 insertions(+)
create mode 100644 arch/arm/dts/sun50i-h616.dtsi
and it's not yet merged.
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/Makefile | 2 +
arch/arm/dts/sun50i-h616-orangepi-zero2.dts | 240
board/sunxi/MAINTAINERS | 5 +
configs/orangepi_zero2_defconfig| 15 ++
4 files
This commit introduces DM H616 clock driver.
Reviewed-by: Andre Przywara
Signed-off-by: Jernej Skrabec
---
drivers/clk/sunxi/Kconfig| 7 ++
drivers/clk/sunxi/Makefile | 1 +
drivers/clk/sunxi/clk_h616.c | 120 +++
3 files changed, 128 insertions
From: Andre Przywara
---
drivers/net/sun8i_emac.c | 28
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c
index e0bf19e34c17..4867a8425404 100644
--- a/drivers/net/sun8i_emac.c
+++
H616 uses different address for reset. Add it.
Signed-off-by: Jernej Skrabec
---
arch/arm/cpu/armv8/fel_utils.S | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv8/fel_utils.S b/arch/arm/cpu/armv8/fel_utils.S
index 9510dcd9e4c1..2dbd4b365221 100644
H616 pinctrl is no different configuration wise than others, so just add
compatible for it.
Reviewed-by: Andre Przywara
Signed-off-by: Jernej Skrabec
---
drivers/gpio/sunxi_gpio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c
index
Allwinner H616 supports many types of DRAM. Most notably it supports
LPDDR4. However, all commercially available boards at this time use
only DDR3, so this commit adds only DDR3 support.
Controller and MBUS are very similar to H6 but PHY is completely
unknown.
Signed-off-by: Jernej Skrabec
From: Andre Przywara
So far the only difference between the various Allwinner MMC controller
we are concerned about is the mod clock register offset.
This is actually not directly related to the MMC controller IP, but an
integration choice, dependent on the SoC this appears in.
To avoid
This port is needed for communication with PMIC. SPL uses it to set DRAM
voltage on H616 boards.
Reviewed-by: Samuel Holland
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
board/sunxi/board.c| 4
2 files changed, 5 insertions(+)
diff
H616 is very similar to H6 so most of the infrastructure can be reused.
However, two big differences are that it doesn't have functional SRAM A2
which is usually used for TF-A and it doesn't have ARISC co-processor.
It also needs bigger SPL size - 48 KiB.
Signed-off-by: Jernej Skrabec
---
arch
H616 mmc clock is on same address as H6.
Signed-off-by: Jernej Skrabec
---
drivers/mmc/sunxi_mmc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index d632b2332ca3..8458d154afd8 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b
From: Andre Przywara
At the moment we only consider the EPHY register for those SoCs were
we actually have an internal PHY to configure. However even other SoCs
have this register, an expect a bit to be cleared for proper operation
with an external PHY.
Rework sun8i_emac_set_syscon_ephy() to be
doesn't do any functional change.
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/prcm.h| 249 +-
arch/arm/include/asm/arch-sunxi/prcm_sun50i.h | 47
arch/arm/include/asm/arch-sunxi/prcm_sun6i.h | 247 +
3 files changed, 304 insertions
. If size in header is bigger, it will use
that value instead.
In the process of function rework, also add missing function argument.
Signed-off-by: Andre Przywara
Signed-off-by: Jernej Skrabec
---
arch/arm/mach-sunxi/board.c | 16 ++--
common/spl/Kconfig | 3 ++-
2 files
H616 has mostly the same clocks as H6 with some small differences. Just
reuse H6 clocks for H616 and handle differences with macros.
Reviewed-by: Samuel Holland
Signed-off-by: Jernej Skrabec
---
.../include/asm/arch-sunxi/clock_sun50i_h6.h | 18 +-
arch/arm/mach-sunxi
This port is used for debug terminal on all known H616 boards.
Reviewed-by: Samuel Holland
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
arch/arm/mach-sunxi/board.c| 4
2 files changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/arch
This PMIC can be found on H616 boards and it's very similar to AXP805
and AXP806.
Reviewed-by: Andre Przywara
Reviewed-by: Jaehoon Chung
Signed-off-by: Jernej Skrabec
---
arch/arm/mach-sunxi/pmic_bus.c | 6 +++
board/sunxi/board.c| 10 ++--
drivers/power/Kconfig | 13
Signed-off-by: Jernej Skrabec
---
drivers/i2c/mvtwsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index 14c594d648ba..36d0d1485277 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -121,7 +121,7 @@ enum
It turns out that several SoCs share same mmc configuration as H6. In
order to lower ifdef clutter replace H6 specific macro with common one.
Reviewed-by: Andre Przywara
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/mmc.h | 2 +-
drivers/mmc/sunxi_mmc.c | 12
mux based on SoC, not EMAC type
Jernej Skrabec (17):
sunxi: Add support for AXP305 PMIC
sunxi: Introduce common symbol for H6 like SoCs
mmc: sunxi: Replace H6 ifdefs with H6 gen macro
i2c: mvtwsi: sunxi: update macro
sunxi: prcm: Add memory map for H6 like SoCs
sunxi: Add support for
-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/boot0.h | 2 +-
arch/arm/include/asm/arch-sunxi/clock.h | 2 +-
arch/arm/include/asm/arch-sunxi/cpu.h | 2 +-
arch/arm/include/asm/arch-sunxi/timer.h | 2 +-
arch/arm/mach-sunxi/Kconfig | 19 +--
arch/arm
I2C support, especially R_I2C port, will be needed in future. Upcoming
support for H616 will need R_I2C to adjust DRAM voltage.
Reviewed-by: Samuel Holland
Signed-off-by: Jernej Skrabec
---
.../include/asm/arch-sunxi/clock_sun50i_h6.h | 1 +
arch/arm/mach-sunxi/Kconfig | 2
-by: Jernej Skrabec
---
arch/arm/mach-sunxi/dram_sun50i_h6.c | 95 +++-
1 file changed, 51 insertions(+), 44 deletions(-)
diff --git a/arch/arm/mach-sunxi/dram_sun50i_h6.c
b/arch/arm/mach-sunxi/dram_sun50i_h6.c
index 9e34da474798..1cde6132be2c 100644
--- a/arch/arm/mach-sunxi
From: Andre Heider
Refactor setup_environment() so we can use the created sid for a
Bluetooth address too.
Signed-off-by: Andre Heider
Acked-by: Maxime Ripard
[rebased]
Signed-off-by: Jernej Skrabec
---
board/sunxi/board.c | 121
1 file changed
]
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/sun50i-h6-orangepi-3.dts | 345 ++
board/sunxi/MAINTAINERS | 5 +
configs/orangepi_3_defconfig | 13 +
4 files changed, 364 insertions(+)
create mode 100644
-by: Jernej Skrabec
---
arch/arm/mach-sunxi/Kconfig | 11 +++
board/sunxi/board.c | 34 ++
2 files changed, 45 insertions(+)
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 49ef217f08c0..269aef5f01a1 100644
--- a/arch/arm
This is just refreshed v4 from here:
https://patchwork.ozlabs.org/project/uboot/list/?series=156657=*
Patches are only rebased, DT updated and defconfig regenerated, so
I kept old tags. Only difference with old version is that this one
does not sync H6 DT files. Becasue of that, this series
Updated H6 DT files are based on Linux 5.11-rc1 release.
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/sun50i-h6-beelink-gs1.dts | 70 +++-
arch/arm/dts/sun50i-h6-cpu-opp.dtsi | 117 ++
arch/arm/dts/sun50i-h6-orangepi-lite2.dts| 71 +++-
arch/arm/dts/sun50i-h6-orangepi
This commit adds support for Tanix TX6 TV box, based on H6. It's low end
H6 board, with 3 GiB of RAM, eMMC, fast ethernet, USB, IR and other
peripherals.
DT file is taken from Linux 5.11-rc1 release.
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/Makefile| 3 +-
arch/arm/dts
- removed "# CONFIG_PSCI_RESET is not set" from config
Changes from v1:
- add missing tanix_tx6_defconfig
Jernej Skrabec (2):
ARM: dts: sunxi: h6: Update DT files
sunxi: Add support for Tanix TX6
arch/arm/dts/Makefile| 3 +-
arch/arm/dts/sun50i-h6-beelink-gs1.dts
This series introduces OrangePi 3 support.
Previous cover letter:
This is just refreshed v4 from here:
https://patchwork.ozlabs.org/project/uboot/list/?series=156657=*
Patches are only rebased, DT updated and defconfig regenerated, so
I kept old tags. Only difference with old version is that
, rebase and config update]
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/Makefile | 1 +
arch/arm/dts/sun50i-h6-orangepi-3.dts | 345 ++
board/sunxi/MAINTAINERS | 5 +
configs/orangepi_3_defconfig | 12 +
4 files changed, 363
From: Andre Heider
Refactor setup_environment() so we can use the created sid for a
Bluetooth address too.
Acked-by: Maxime Ripard
Reviewed-by: Andre Przywara
Signed-off-by: Andre Heider
[rebased]
Signed-off-by: Jernej Skrabec
---
board/sunxi/board.c | 121
-by: Jernej Skrabec
---
arch/arm/mach-sunxi/Kconfig | 11 +++
board/sunxi/board.c | 34 ++
2 files changed, 45 insertions(+)
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 49ef217f08c0..11e644519271 100644
--- a/arch/arm
Allwinner H616 supports many types of DRAM. Most notably it supports
LPDDR4. However, all commercially available boards at this time use
only DDR3, so this commit adds only DDR3 support.
Controller and MBUS are very similar to H6 but PHY is completely
unknown.
Signed-off-by: Jernej Skrabec
doesn't do any functional change.
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/prcm.h| 249 +-
arch/arm/include/asm/arch-sunxi/prcm_sun50i.h | 41 +++
arch/arm/include/asm/arch-sunxi/prcm_sun6i.h | 247 +
3 files changed, 298 insertions
I2C support, especially R_I2C port, will be needed in future. Upcoming
support for H616 will need R_I2C to adjust DRAM voltage.
Signed-off-by: Jernej Skrabec
---
.../include/asm/arch-sunxi/clock_sun50i_h6.h | 1 +
arch/arm/mach-sunxi/Kconfig | 2 +-
arch/arm/mach-sunxi
From: Andre Przywara
H616 supports and needs bigger SPL than 32 KiB, mostly due to big DRAM
driver and need for PMIC configuration, which pull several drivers which
are not needed otherwise.
Signed-off-by: Andre Przywara
Signed-off-by: Jernej Skrabec
---
arch/arm/mach-sunxi/board.c | 12
H616 is very similar to H6 so most of the infrastructure can be reused.
However, two big differences are that it doesn't have functional SRAM A2
which is usually used for TF-A and it doesn't have ARISC co-processor.
It also needs bigger SPL size - 48 KiB.
Signed-off-by: Jernej Skrabec
---
arch
This port is needed for communication with PMIC. SPL uses it to set DRAM
voltage on H616 boards.
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
board/sunxi/board.c| 4
2 files changed, 5 insertions(+)
diff --git a/arch/arm/include/asm
This port is used for debug terminal on all known H616 boards.
Signed-off-by: Jernej Skrabec
---
arch/arm/include/asm/arch-sunxi/gpio.h | 1 +
arch/arm/mach-sunxi/board.c| 4
2 files changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/arch-sunxi/gpio.h
b/arch/arm
H616 has mostly the same clocks as H6 with some small differences. Just
reuse H6 clocks for H616 and handle differences with macros.
Signed-off-by: Jernej Skrabec
---
.../include/asm/arch-sunxi/clock_sun50i_h6.h | 18 +-
arch/arm/mach-sunxi/clock_sun50i_h6.c | 10
This commit adds support for Tanix TX6 TV box, based on H6. It's low end
H6 board, with 3 GiB of RAM, eMMC, fast ethernet, USB, IR and other
peripherals.
DT file is taken from Linux 5.11-rc1 release.
Signed-off-by: Jernej Skrabec
---
arch/arm/dts/Makefile| 3 +-
arch/arm/dts
This series introduces Tanix TX6 TV box support based on Allwinner H6
SoC. First patch syncs H6 DT files from Linux 5.11-rc1 release and
second one adds support for Tanix TX6 board.
Please take a look.
Best regards,
Jernej
Changes from v1:
- add missing tanix_tx6_defconfig
Jernej Skrabec (2
1 - 100 of 188 matches
Mail list logo