OSDN Git Service

arm64: dts: meson: consistently disable pin bias
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 9 Nov 2018 14:04:44 +0000 (15:04 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 29 Nov 2018 20:30:03 +0000 (12:30 -0800)
commit1c5cc1c805d8a2a348c7434dfde955e8c1483db1
tree6f7bc206b1f2700aef877f71771ee3e75fcba965
parent96a13691c1ddfafc301d1ee451d91fc2cca48d27
arm64: dts: meson: consistently disable pin bias

On Amlogic chipsets, the bias set through pinconf applies to the pad
itself, not only the GPIO function. This means that even when we change
the function of the pad from GPIO to anything else, the bias previously
set still applies.

As we have seen with the eMMC, depending on the bias type and the function,
it may trigger problems.

The underlying issue is that we inherit whatever was left by previous user
of the pad (pinconf, u-boot or the ROM code). As a consequence, the actual
setup we will get is undefined.

There is nothing mentioned in the documentation about pad bias and pinmux
function, however leaving it undefined is not an option.

This change consistently disable the pad bias for every pinmux functions.
It seems to work well, we can only assume that the necessary bias (if any)
is already provided by the pin function itself.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-axg.dtsi
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi