[U-Boot] [RFC PATCH 3/3] sunxi: Enable H3 video driver in defconfigs

2016-12-13 Thread Jernej Skrabec
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

[U-Boot] [RFC PATCH 0/3] sunxi: video: Add support for HDMI output on H3

2016-12-13 Thread Jernej Skrabec
, 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

[U-Boot] [RFC PATCH 1/3] sunxi: Add clocks for DE2/HDMI/TCON

2016-12-13 Thread Jernej Skrabec
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

[U-Boot] [RFC PATCH 2/3] sunxi: video: Add video driver for H3 SoC

2016-12-13 Thread Jernej Skrabec
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

[U-Boot] [PATCH] rockchip: Add support for MiQi rk3288 board

2017-03-23 Thread Jernej Skrabec
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/

[U-Boot] [PATCH v3 3/6] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 2/6] sunxi: video: Convert lcdc to use struct display_timing

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 6/6] [DO NOT MERGE] sunxi: add AXP803 support

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 0/6] sunxi: video: Add support for HDMI output on A64/H3/H5

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 5/6] sunxi: Disable DE2 video driver where not needed

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 1/6] sunxi: video: Split out TCON code

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 4/6] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-27 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2] rockchip: Add support for MiQi rk3288 board

2017-03-26 Thread Jernej Skrabec
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

[U-Boot] [PATCH] video: Remove dependecy of I2C_EDID

2017-03-28 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 1/2] rockchip: cosmetic: Sort RK3288 boards

2017-03-29 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 2/2] rockchip: Add support for MiQi rk3288 board

2017-03-29 Thread Jernej Skrabec
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

[U-Boot] [PATCH v3 0/2] rockchip: Add support for MiQi board

2017-03-29 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 7/7] [DO NOT MERGE] sunxi: add AXP803 support

2017-03-20 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 5/7] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-20 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 1/7] rockchip: video: Split out HDMI controller code

2017-03-20 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 3/7] sunxi: video: Convert lcdc to use struct display_timing

2017-03-20 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 4/7] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-20 Thread Jernej Skrabec
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_

[U-Boot] [PATCH v2 6/7] sunxi: Disable DE2 video driver where not needed

2017-03-20 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 2/7] sunxi: video: Split out TCON code

2017-03-20 Thread Jernej Skrabec
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_

[U-Boot] [PATCH 0/8] sunxi: video: Add support for HDMI output on A64/H3/H5

2017-03-09 Thread Jernej Skrabec
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

[U-Boot] [PATCH 4/8] sunxi: video: Split out TCON code

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH 2/8] rockchip: video: Remove CSC initialization (HDMI)

2017-03-08 Thread Jernej Skrabec
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.

[U-Boot] [PATCH 3/8] rockchip: video: Split out HDMI controller code

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH 5/8] sunxi: Add clock support for DE2/HDMI/TCON on newer SoCs

2017-03-08 Thread Jernej Skrabec
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/

[U-Boot] [PATCH 8/8] [DO NOT MERGE] sunxi: power: add AXP803 support

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH 7/8] sunxi: Enable A64/H3/H5 video driver in defconfigs

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH 6/8] sunxi: video: Add A64/H3/H5 HDMI driver

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH 1/8] rockchip: video: Fix HDMI audio clocks

2017-03-08 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 0/7] sunxi: video: Add support for HDMI output on A64/H3/H5

2017-03-21 Thread Jernej Skrabec
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 -

[U-Boot] [PATCH 0/4] sunxi: i2c: Add DM I2C support for A64/H3/H5

2017-04-26 Thread Jernej Skrabec
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

[U-Boot] [PATCH 3/4] sunxi: i2c: Add support for DM I2C

2017-04-26 Thread 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

[U-Boot] [PATCH 4/4] sunxi: Enable DM_I2C for A64/H3/H5

2017-04-26 Thread Jernej Skrabec
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

[U-Boot] [PATCH 1/4] sunxi: power: Compile sy8106a driver only during SPL build

2017-04-26 Thread Jernej Skrabec
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

[U-Boot] [PATCH 2/4] sunxi: Move function for later convenience

2017-04-26 Thread Jernej Skrabec
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

[U-Boot] [PATCH 3/3] video: dw_hdmi: Select HDMI mode only if monitor supports it

2017-04-29 Thread Jernej Skrabec
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

[U-Boot] [PATCH 1/3] edid: Set timings flags according to edid

2017-04-29 Thread Jernej Skrabec
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 ++

[U-Boot] [PATCH 2/3] edid: Add HDMI flag to timing info

2017-04-29 Thread Jernej Skrabec
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 |

[U-Boot] [PATCH 0/3] video: Fix issues with edid parsing

2017-04-29 Thread Jernej Skrabec
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

[U-Boot] [PATCH 2/3] sunxi: Add clock support for TV encoder

2017-05-10 Thread Jernej Skrabec
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

[U-Boot] [PATCH 3/3] sunxi: video: Add H3/H5 TV out driver

2017-05-10 Thread Jernej Skrabec
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

[U-Boot] [PATCH 1/3] sunxi: video: Split out TVE code

2017-05-10 Thread Jernej Skrabec
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

[U-Boot] [PATCH 0/3] sunxi: video: Add support for TV (composite) output on H3/H5

2017-05-10 Thread Jernej Skrabec
- 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

[U-Boot] [PATCH] edid: Fix gcc 7.1 warning

2017-05-23 Thread Jernej Skrabec
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/

[U-Boot] [PATCH v2 2/4] sunxi: Add base address for TV encoder

2017-05-19 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 0/4] sunxi: video: Add support for TV (composite) output on H3/H5

2017-05-19 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 1/4] sunxi: video: Rename tve.c to tve_common.c

2017-05-19 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2 4/4] sunxi: video: Add H3/H5 TV out driver

2017-05-19 Thread Jernej Skrabec
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

[U-Boot] [PATCH] sunxi: video: HDMI: Fix clock setup

2019-03-24 Thread Jernej Skrabec
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

[U-Boot] [PATCH v2] sunxi: H6: DRAM: Add support for half DQ

2019-08-23 Thread Jernej Skrabec
/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

[U-Boot] [PATCH] sunxi: H6: DRAM: Add support for half DQ

2019-07-17 Thread Jernej Skrabec
/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

[PATCH] configs: Orange Pi Win: enable ethernet

2020-01-26 Thread Jernej Skrabec
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

[PATCH v2 18/21] arm: sunxi: add initial H616 DTSI and headers

2021-01-11 Thread Jernej Skrabec
-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

[PATCH v2 21/21] sunxi: Add support for OrangePi Zero2

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 20/21] clk: sunxi: Add support for H616 clocks

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 17/21] net: sun8i-emac: Determine pinmux based on SoC, not EMAC type

2021-01-11 Thread Jernej Skrabec
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 +++

[PATCH v2 16/21] sunxi: Add H616 FEL support

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 19/21] sunxi: gpio: introduce compatible for H616

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 11/21] sunxi: Add H616 DRAM support

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 12/21] mmc: sunxi: Refactor mod clock register offset

2021-01-11 Thread 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

[PATCH v2 10/21] sunxi: add support for R_I2C on H616

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 14/21] sunxi: Add support for H616 SoC

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 15/21] mmc: sunxi: Add H616 clock offset

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 13/21] net: sun8i-emac: Always clear syscon EPHY register

2021-01-11 Thread Jernej Skrabec
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

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

2021-01-11 Thread 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 | 47 arch/arm/include/asm/arch-sunxi/prcm_sun6i.h | 247 + 3 files changed, 304 insertions

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

2021-01-11 Thread Jernej Skrabec
. 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

[PATCH v2 08/21] sunxi: introduce support for H616 clocks

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 09/21] sunxi: add support for H616 uart0

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 01/21] sunxi: Add support for AXP305 PMIC

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 04/21] i2c: mvtwsi: sunxi: update macro

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 03/21] mmc: sunxi: Replace H6 ifdefs with H6 gen macro

2021-01-11 Thread Jernej Skrabec
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

[PATCH v2 00/21] sunxi: Introduce H616 support

2021-01-11 Thread Jernej Skrabec
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

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

2021-01-11 Thread Jernej Skrabec
-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

[PATCH v2 06/21] sunxi: Add support for I2C on H6 like SoCs

2021-01-11 Thread Jernej Skrabec
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

[PATCH] sunxi: dram: h6: Improve DDR3 config detection

2020-12-03 Thread Jernej Skrabec
-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

[PATCH v5 1/3] sunxi: board: extract creating a unique sid into a helper function

2021-01-03 Thread Jernej Skrabec
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

[PATCH v5 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-03 Thread Jernej Skrabec
] 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

[PATCH v5 2/3] arm: sunxi: add a config option to fixup a Bluetooth address

2021-01-03 Thread Jernej Skrabec
-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

[PATCH v5 0/3] sunxi: Add support for OrangePi 3

2021-01-03 Thread Jernej Skrabec
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

[PATCH v3 1/2] ARM: dts: sunxi: h6: Update DT files

2021-01-06 Thread Jernej Skrabec
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

[PATCH v3 2/2] sunxi: Add support for Tanix TX6

2021-01-06 Thread Jernej Skrabec
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

[PATCH v3 0/2] sunxi: add support for Tanix TX6

2021-01-06 Thread Jernej Skrabec
- 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

[PATCH v6 0/3] sunxi: Add support for OrangePi 3

2021-01-10 Thread Jernej Skrabec
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

[PATCH v6 3/3] arm64: dts: sun50i: Add support for Orange Pi 3

2021-01-10 Thread Jernej Skrabec
, 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

[PATCH v6 1/3] sunxi: board: extract creating a unique sid into a helper function

2021-01-10 Thread Jernej Skrabec
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

[PATCH v6 2/3] arm: sunxi: add a config option to fixup a Bluetooth address

2021-01-10 Thread Jernej Skrabec
-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

[PATCH 11/17] sunxi: Add H616 DRAM support

2021-01-03 Thread Jernej Skrabec
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

[PATCH 05/17] sunxi: prcm: Add memory map for H6 like SoCs

2021-01-03 Thread 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

[PATCH 06/17] sunxi: Add support for I2C on H6 like SoCs

2021-01-03 Thread Jernej Skrabec
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

[PATCH 07/17] sunxi: support loading with SPL > 32KB

2021-01-03 Thread Jernej Skrabec
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

[PATCH 12/17] sunxi: Add support for H616 SoC

2021-01-03 Thread Jernej Skrabec
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

[PATCH 10/17] sunxi: add support for R_I2C on H616

2021-01-03 Thread Jernej Skrabec
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

[PATCH 09/17] sunxi: add support for H616 uart0

2021-01-03 Thread Jernej Skrabec
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

[PATCH 08/17] sunxi: introduce support for H616 clocks

2021-01-03 Thread Jernej Skrabec
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

[PATCH v2 2/2] sunxi: Add support for Tanix TX6

2021-01-03 Thread Jernej Skrabec
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

[PATCH v2 0/2] sunxi: add support for Tanix TX6

2021-01-03 Thread Jernej Skrabec
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   2   >