ARM: dts: sun6i: yones-toptech-bs1078-v2: Drop constraints on dc1sw regulator
authorChen-Yu Tsai <wens@csie.org>
Wed, 11 May 2016 05:23:14 +0000 (13:23 +0800)
committerOlof Johansson <olof@lixom.net>
Fri, 3 Jun 2016 19:31:32 +0000 (12:31 -0700)
commitb223d6242c372a81cca3bb81998f53d3b3e3fb70
treee2138fa581ca19d01f187f43ffcd653daed569e2
parentcb84f6c0a25eb76b1f838eb63e212705c0c06b5f
ARM: dts: sun6i: yones-toptech-bs1078-v2: Drop constraints on dc1sw regulator

This is the same issue fixed in commit dcf5341f0150 ("ARM: dts:
sun8i-q8-common: Do not set constraints on dc1sw regulator").
Commit message copied:

dc1sw is an on/off only regulator and as such it cannot have constraints.

This is a limitation of the kernel regulator implementation which resolves
supplies on the first regulator_get(), which is done after applying
constraints, and applying the constrains will fail because it calls
_regulator_get_voltage() and _regulator_do_set_voltage() both of which
will fail on a switch regulator when there is no supply (yet).

This causes registering of all axp22x regulators to fail with the
following errors:

[    1.395249] vcc-lcd: failed to get the current voltage(-22)
[    1.405131] axp20x-regulator axp20x-regulator: Failed to register dc1sw
[    1.412436] axp20x-regulator: probe of axp20x-regulator failed with error -22

This commit removes the constrains on dc1sw / vcc-lcd fixing this problem.
Note that dcdc1 itself is contrained to the exact same values, so this
does not change anything.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Cc: <stable@vger.kernel.org> # 4.6
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/sun6i-a31s-yones-toptech-bs1078-v2.dts