ARM: dts: ux500: Disable I2C/SPI buses by default
authorStephan Gerhold <stephan@gerhold.net>
Mon, 25 Nov 2019 17:04:25 +0000 (18:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Dec 2019 13:45:01 +0000 (14:45 +0100)
commitfae284f1bc773c9297d337b94cf0aca3593d9842
tree4a67f2046a5408041c6579f1b5c5c0f79232b9f8
parent96b619e3c1dfd7464652265d17ee8c07ef5cca92
ARM: dts: ux500: Disable I2C/SPI buses by default

At the moment, all 5 I2C and 6 SPI buses are probed and exposed
to user-space by default - even if they are not muxed to any pins
on the board. This means that user-space sees an I2C/SPI bus that
cannot be actually used properly.

In some cases this was used to put the corresponding pins into
a low power sleep mode - but even then the pins first need to be
configured by the board-specific device tree part.

Avoid exposing unconfigured devices to user-space by disabling
the I2C/SPI buses by default. Enable them in the board device trees
when needed.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20191125170428.76069-1-stephan@gerhold.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-dbx5x0.dtsi
arch/arm/boot/dts/ste-href.dtsi
arch/arm/boot/dts/ste-hrefprev60.dtsi
arch/arm/boot/dts/ste-snowball.dts