]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: allwinner: a64: bananapi-m64: Add LED device node
authorChen-Yu Tsai <wens@csie.org>
Fri, 1 Dec 2017 16:27:33 +0000 (00:27 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 8 Dec 2017 09:39:53 +0000 (10:39 +0100)
commit537474fe50db9f9d58ca8b1c6aaf0ce95fb0279b
tree8e6761917babbd00674f1190adb80b6075914a5f
parent945ae541fa7d6ff2bd2b5ac4f954958c37e3b421
arm64: dts: allwinner: a64: bananapi-m64: Add LED device node

The Bananapi-M64 has 3 LEDS in red, green, and blue. These are toggled
via GPIO lines, which drive transistors that control current across the
LEDS. The red LED is by default on, via an additional pull-up on the
control line. We consider this means that it is a power indicator.
So we set the "default-on" property for it.

The pingroups the GPIO lines belong to require external regulators be
enabled to be able to drive the GPIO high. These regulators also have
other purposes. However the pin controller does not have bindings for
regulators. Here we just set them to always-on.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts