kernel_samsung_a53x/arch/arm
Andre Przywara c66fb1f1db ARM: dts: cubieboard4: Fix DCDC5 regulator constraints
[ Upstream commit dd36ad71ad65968f97630808bc8d605c929b128e ]

The DCDC5 voltage rail in the X-Powers AXP809 PMIC has a resolution of
50mV, so the currently enforced limits of 1.475 and 1.525 volts cannot
be set, when the existing regulator value is beyond this range.

This will lead to the whole regulator driver to give up and fail
probing, which in turn will hang the system, as essential devices depend
on the PMIC.
In this case a bug in U-Boot set the voltage to 1.75V (meant for DCDC4),
and the AXP driver's attempt to correct this lead to this error:
==================
[    4.447653] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    4.450066] vcc-dram: Bringing 1750000uV into 1575000-1575000uV
[    4.460272] vcc-dram: failed to apply 1575000-1575000uV constraint: -EINVAL
[    4.474788] axp20x-regulator axp20x-regulator.0: Failed to register dcdc5
[    4.482276] axp20x-regulator axp20x-regulator.0: probe with driver axp20x-regulator failed with error -22
==================

Set the limits to values that can be programmed, so any correction will
be successful.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Fixes: 1e1dea72651b ("ARM: dts: sun9i: cubieboard4: Add AXP809 PMIC device node and regulators")
Link: https://patch.msgid.link/20241007222916.19013-1-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:03 +01:00
..
boot ARM: dts: cubieboard4: Fix DCDC5 regulator constraints 2024-12-17 13:24:03 +01:00
common Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto crypto: arm/sha - fix function cast warnings 2024-11-19 08:44:54 +01:00
include ARM: 9324/1: fix get_user() broken with veneer 2024-11-19 14:19:50 +01:00
kernel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2024-11-18 11:43:03 +01:00
mach-actions Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-alpine Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-artpec Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-asm9260 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-aspeed Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-at91 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-axxia Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-bcm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-berlin Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-clps711x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-cns3xxx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-davinci ARM: davinci: Convert comma to semicolon 2024-11-19 14:19:44 +01:00
mach-digicolor Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-dove Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-ebsa110 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-efm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-ep93xx ARM: ep93xx: Add terminator to gpiod_lookup_table 2024-11-18 22:25:37 +01:00
mach-exynos Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-footbridge Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-gemini Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-highbank Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-hisi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2024-11-18 12:11:41 +01:00
mach-integrator Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-iop32x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-ixp4xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-keystone Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-lpc18xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-lpc32xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-mediatek Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-meson Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-milbeaut Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-mmp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-moxart Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-mstar Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-mv78xx0 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-mvebu Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
mach-mxs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-nomadik Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-npcm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-nspire Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-omap1 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-omap2 ARM: OMAP2+: Fix null pointer dereference and memory leak in omap_soc_device_init 2024-11-18 12:11:58 +01:00
mach-orion5x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-oxnas Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-picoxcell Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-prima2 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-pxa ARM: spitz: fix GPIO assignment for backlight 2024-11-23 23:20:06 +01:00
mach-qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-rda Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-realtek Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-realview Revert "ARM: versatile: fix OF node leak in CPUs prepare" 2024-11-24 00:23:28 +01:00
mach-rockchip Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-rpc Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-s3c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-s5pv210 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-sa1100 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-shmobile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-socfpga Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-spear Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-sti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-stm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-11-18 12:12:18 +01:00
mach-tango Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-tegra Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-u300 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-uniphier Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-ux500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-versatile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-vexpress Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-vt8500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-zx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mach-zynq Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nwfpe Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oprofile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plat-omap Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plat-orion Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plat-pxa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plat-versatile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
probes Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tools Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vfp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2024-11-18 12:10:55 +01:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig clkdev: remove CONFIG_CLKDEV_LOOKUP 2024-12-17 13:24:00 +01:00
Kconfig-nommu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.assembler Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00