mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00

In newer 1.2 PinePhone board revisions LIS3MDL magnetometer was replaced by AF8133J. They use the same PB1 pin in different modes. LIS3MDL uses it as an gpio input to handle interrupt. AF8133J uses it as an gpio output as a reset signal. It wasn't possible at runtime to enable both device tree nodes and detect supported sensor at probe time. AF8133J has reset pin (PB1) connected to the SoC. By default AF8133J is in a reset state and don't respond to probe request on I2C bus. Extra code would be needed to handle reset signal. Therefore this code uses LIS3MDL magnetometer instead of AF8133J. Introducing new dts 1.2b with AF8133J sensor would require probing in SPL. That would lead to pulling in into SPL I2C controller driver, RSB controller driver, introducing new AXP803 driver to power-up sensors for probe. It's working, but SPL is pretty size-constrained on A64 and doesn't have much space. Therefore fdt fixup is done in U-Boot proper without introducing new board revision and new dts. Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com> Link: https://lore.kernel.org/all/20240908214718.36316-1-andrej.skvortzov@gmail.com/ Link: https://lists.denx.de/pipermail/u-boot/2024-February/545700.html Reviewed-by: Andre Przywara <andre.przywara@arm.com> [Andre: fix formatting] Signed-off-by: Andre Przywara <andre.przywara@arm.com>
21 lines
597 B
Text
21 lines
597 B
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_SUNXI=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pinephone-1.2"
|
|
CONFIG_SPL_DRIVERS_MISC=y
|
|
CONFIG_SPL=y
|
|
CONFIG_MACH_SUN50I=y
|
|
CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y
|
|
CONFIG_DRAM_CLK=552
|
|
CONFIG_DRAM_ZQ=3881949
|
|
CONFIG_MMC_SUNXI_SLOT_EXTRA=2
|
|
CONFIG_PINEPHONE_DT_SELECTION=y
|
|
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
|
CONFIG_CMD_PSTORE=y
|
|
CONFIG_CMD_PSTORE_MEM_ADDR=0x61000000
|
|
CONFIG_OF_LIST="sun50i-a64-pinephone-1.1 sun50i-a64-pinephone-1.2"
|
|
CONFIG_SYS_I2C_MVTWSI=y
|
|
CONFIG_LED_STATUS=y
|
|
CONFIG_LED_STATUS_GPIO=y
|
|
CONFIG_LED_STATUS0=y
|
|
CONFIG_LED_STATUS_BIT=114
|
|
CONFIG_LED_STATUS_STATE=2
|