OSDN Git Service

ARM: dts: exynos: Add power button for Odroid XU3/4
authorBrian Kim <brian.kim@hardkernel.com>
Tue, 12 Sep 2017 11:57:54 +0000 (13:57 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 18 Sep 2017 18:35:44 +0000 (20:35 +0200)
commit227c23b5dee1c8cf8147a47b275af3e367a352b1
tree330a681755dd805df64249667cad7b9bf532123c
parent1b58f1947a2fc0520932a6173f63a63befa7fc87
ARM: dts: exynos: Add power button for Odroid XU3/4

The power button (SW2) on Odroid XU3/4 is connected to the PWRON pin
of the S2MPS11 PMIC.

The S2MPS11 datasheet says that ONOB pin operates as 'PWRON key active
low signal'. In fact, S2MPS11 PMIC acts as a 16ms debouce filter and
signal inverter, thus effectively repeating PWRON (active high) to ONOB
pin (active low).

ONOB PMIC pin is then connected to XEINT3 SoC pin, so we get the state
of the power button on the gpx0-3 GPIO.

This patch adds device-tree bindings for the power button of Odroid
XU3/4 boards.

Signed-off-by: Brian Kim <brian.kim@hardkernel.com>
[mszyprow: extended commit message, added comments and fixed minor
 issues in the dts]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi