1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 08:12:06 +02:00
Commit Graph

62061 Commits

Author SHA1 Message Date
Ondrej Jirman
0ab6225154 pinephone: Add volume_key environment variable
When the user has a volume key pressed volume_key variable will
contain either value 'down' or 'up', otherwise it will be empty.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-02-11 14:10:05 +01:00
Ondrej Jirman
71df9fe744 ** Read This First **
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:38:40 +01:00
Ondrej Jirman
9828df2c37 configs: pinephone: Disable SPL SPI
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Ondrej Jirman
c24e54fa3e configs: orangepi_3: Make SPL fit again after dcache enablement
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Ondrej Jirman
13011a0df8 config: pinephone: Enable env in FAT
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Ondrej Jirman
5d8cab9a73 mmc: sunxi: Fix DMA transfers on MMC2 (typically eMMC) on H6
The same problem as with A64.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Ondrej Jirman
f9fc136704 configs: Customize configs for my boards
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Bhushan Shah
808b75f604 Add pinephone dts and config 2020-01-23 13:34:53 +01:00
Ondrej Jirman
a0ebe85a3d sunxi: pinephone: Add support for optional LED feedback during boot
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:53 +01:00
Ondrej Jirman
878c0cd889 spl: ARM: Enable CPU caches
http://u-boot.10912.n7.nabble.com/RFC-PATCH-0-3-spl-Add-D-cache-support-td274750.html

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
e71d79c8eb board: sunxi: Fix bdaddr generation for TBS A711
It doesn't have ethernet.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Andre Heider
925c644185 arm: sunxi: add a config option to fixup a Bluetooth address
Some Bluetooth controllers, like the BCM4345C5 of the Orange Pi 3,
ship with the controller default address.

Add a config option to fix it up so it can function properly.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
8b7f345180 sunxi: Increase CONFIG_SYS_BOOTM_LEN to 64MiB for all of sunxi (even 32bit) 2020-01-23 13:34:52 +01:00
Ondrej Jirman
95687f2929 sunxi: Don't auto-enable video console 2020-01-23 13:34:52 +01:00
Ondrej Jirman
bfdc7cb630 cmd: Allow to turn on backlight on demand 2020-01-23 13:34:52 +01:00
Ondrej Jirman
c99fce8117 sunxi: Add minimal PocketBook Touch Lux 3 support 2020-01-23 13:34:52 +01:00
Ondrej Jirman
803a50a5d0 sunxi: Allow to configure bus-width on MMC2
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
4b95a61d51 video: pwm_backlight: Remove PWM setup delays 2020-01-23 13:34:52 +01:00
Ondrej Jirman
248662125c arm: dts: Faster mmc load on TBS A711
Missing bus-width = <4>.

Along with DMA support, we can now do 34MiB/s in u-boot.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
36bf52f4d7 mmc: erase_grp_size is not available when MMC_WRITE is disabled
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
3f06218a7b mmc: sunxi: Mask data0 while changing clocks ???
Is this needed?

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
3078f0df7d mmc: sunxi: DDR/DMA support for SPL 2020-01-23 13:34:52 +01:00
Ondrej Jirman
ce6c625770 mmc: sunxi: Cleanup, add support for DDR
With this, we can boot from eMMC with read speeds around 47.5MiB/s.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
67b7e009dc mmc: sunxi: New mode needs double the frequency
Without this, we get 10 MiB/s instead of 23MiB/s on H6.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
b6ff7ffb04 mmc: sunxi: Add support for DMA transfers
Allwinner MMC controller supports DMA via internal DMA controller,
use it.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
4a269fc2ef arm: sunxi: Fix clock_get_pll6() calculation
Off by on error. N is stored in register as N-1.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
f9eda751d7 sunxi: Fix unreliable detection of DRAM size on Orange Pi 3
Orange Pi 3 has 2 GiB of DRAM, that sometime get misdetected
as 4 GiB, due to false negative result from mctl_mem_matches()
when detecting number of column address bits. This leads to
u-boot detecting more address bits than there are and the
boot process hangs shortly after.

In mctl_mem_matches() we need to wait for each write to finish,
separately. Without this, the check is not reliable for some
unknown reason, probably having to do with unpredictable memory
access ordering.

Patch was made with help from André Przywara, who noticed that
my original idea about detection failing due to read-back from
cache without involving DRAM was false, because data cache is
still of at the time of the DRAM size autodetection.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Cc: André Przywara <andre.przywara@arm.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
00476f359c arm: dts: Sync H6 dts from Linux 5.5/megous
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
69555a9d16 sunxi: Add basic Orange Pi 3 support 2020-01-23 13:34:52 +01:00
Ondrej Jirman
e868daa96a pwm: sunxi-pwm: Add compatible for H3
A83T DTS from Linux uses allwinner,sun8i-h3-pwm.

So we need this driver to support it too.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
90810c9601 sunxi: Enable support for BMP image format (plain and gzip compressed)
This is needed in order to be able to use `bmp` command on sunxi boards.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
ff6bfca9b6 cmd: Add axp command for reading values from AXP81x PMIC
This is useful for boot scripts to be able to decide whether to
boot or not and whether to notify the user of what is wrong.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
e13ed6f083 sunxi: dts: Add nodes for LCD panel and backlight
Device tree is slightly different from Linux kernel one, because of
different ABI for display timings between u-boot and Linux.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
cc9e37a168 sunxi: Enable DE2/LVDS support on A83T
Now that the code is in place, enable SUNXI_DE2 and LCD panel support
for MACH_SUN8I_A83T.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
3796c766ef video: sunxi: de2: Support A83T SoC
DE2 PLL on A83T does not have selectable parent, nor is it separately
gateable.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
496df5cc1c video: sunxi: Support LVDS output on A83T (mess)
This is probably useless ATM.

Except for hsync/vsync polarity (seems to be wrong in the kernel).

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
ab96e75c3e video: sunxi: Support LVDS output on A83T
- Enable LVDS pins (PD18-PD27)
- De-assert LVDS interface reset line
- Enable sunxi_lcd platform device for A83T
- Really disable all interrupts
- A83T does have only a simple clock gate for TCON0 clock
  (no need to select source)
- Lifted some analog circuitry setup magic from the Linux driver

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
f1a7e37db2 video: sunxi: Don't build HDMI code when HDMI is not enabled
This prevents compile errors for A83T build, that does not support
HDMI yet.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
92cc7e5aee video: pwm_backlight: Fix broken build when DM_REGULATOR is disabled
Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
cdd92104e7 sunxi: A83T doesn not have display frontend
This was probably copy pasted in from sun6i header.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
337c8bbb9a sunxi: Add clock support for pll3 and pll_de for A83T SoC
This is needed in order to support DE2 on A83T. PLL3 is for TCON0.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
e47c9d831e sunxi: Rename pll10 to pll_de to avoid confusion
A83T SoC has PLL_DE at pll9. Change the name to make it less
confusing when we'll add DE2 support for A83T.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
3e25ce18d7 cmd: Add mydbg command (A83T SoC debugging helpers)
This can be used to dump various registers and do other kinds of
mischief when developing drivers.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
f3d58d9c81 cmd: Split tmenu render/input
- so that we can show it quickly and do stuff "in the background"
  before accepting input from the user

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
d27b6e657d cmd: Add tmenu command for touch menu user interface
Shows a menu of items that can be controlled using touch panel.
This is useful for touch based devices like tablets to select
alternative boot options (multi-boot).

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
91f9d238bb dts: Add touchscreen device connected to i2c0 on TBS A711 tablet
We don't have DM support for PMIC/GPIO/regulators, so this needs
to be handled via config options and some custom board initialization
code for now.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
fa4ad1e0ad input: Add support for edt,edt-ft5x06 touchpanel controller
This is a direct port of the Linux driver from Linux v4.18.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
f31f2c5feb power: axp818: Suport DCDC6 in AXP818 2020-01-23 13:34:52 +01:00
Ondrej Jirman
adcd02d3a2 power: axp818: Add support for configuring GPIO0 LDO voltage on AXP81x
To enable LDO on GPIO0 and set it to required voltage define
CONFIG_AXP_GPIO_LDO0_VOLT=<mV> in your defconfig. Eg. <mV> can
be 3100 for 3.1V.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00
Ondrej Jirman
9c2644cb58 sunxi: Add support for i2c0 pinctrl/clock initialization on Allwinner A83T
To enable I2C0 on A83T add CONFIG_I2C0_ENABLE=y to defconfig and
enable appropriate node in device tree.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2020-01-23 13:34:52 +01:00