From patchwork Mon Mar 6 02:52:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Kim X-Patchwork-Id: 9605023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5FAE1601D2 for ; Mon, 6 Mar 2017 03:05:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BCB226E81 for ; Mon, 6 Mar 2017 03:05:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1FC6B27D5D; Mon, 6 Mar 2017 03:05:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0C5726E81 for ; Mon, 6 Mar 2017 03:05:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752621AbdCFDFJ (ORCPT ); Sun, 5 Mar 2017 22:05:09 -0500 Received: from mail-smail-vm2.daum.net ([175.126.189.195]:3255 "EHLO mail-smail-vm2.hanmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752597AbdCFDFI (ORCPT ); Sun, 5 Mar 2017 22:05:08 -0500 X-Greylist: delayed 327 seconds by postgrey-1.27 at vger.kernel.org; Sun, 05 Mar 2017 22:05:07 EST Received: from mail-smtp-vm3.hanmail.net ([10.27.12.83]) by mail-smail-vm2.hanmail.net (8.13.8/8.9.1) with ESMTP id v262qQSY004417; Mon, 6 Mar 2017 11:52:26 +0900 Received: from mail-smtp-vm3 (localhost.localdomain [127.0.0.1]) by mail-smtp-vm3.hanmail.net (8.13.8/8.9.1) with ESMTP id v262qMUJ005172; Mon, 6 Mar 2017 11:52:23 +0900 X-HM-UT: PO5rMHMNchGKORqWqpptczXj2QlYyz5T0+3jXgVUTHk= Received: from [115.90.78.142] (HELO localhost.localdomain) (115.90.78.142) by (8.12.9/8.9.1) with ESMTPA; Mon, 06 Mar 2017 11:52:21 +0900 Authentication-Results: mail-smtp-vm3; auth=pass (login) smtp.auth=brian3321 X-Originating-IP: 115.90.78.142 From: Brian Kim To: linux.amoon@gmail.com, l.majewski@samsung.com, krzk@kernel.org, robh+dt@kernel.org, kgene@kernel.org, mark.rutland@arm.com, javier@osg.samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] ARM: dts: exynos: Add power button for Odroid XU3/4 Date: Mon, 6 Mar 2017 11:52:09 +0900 Message-Id: <1488768729-9435-1-git-send-email-brian.kim@hardkernel.com> X-Mailer: git-send-email 2.7.4 X-HM-FIGURE: B6N4k3uJpk4J+RBSuDqASx7BhLtvAO7c Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The power button on Odroid XU3/4 is connected with the PWRON pin of s2mps11 PMIC. The s2mps11 sends low signal to GPIO input in exynos 5422 via ONOB pin. This patch adds devicetree bindings for the power button of Odroid XU3/4. Signed-off-by: Brian Kim --- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 05b9afdd..671d87f 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -13,6 +13,7 @@ */ #include +#include #include #include #include @@ -42,6 +43,22 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&gpio_power_key>; + + power_key { + interrupt-parent = <&gpx0>; + interrupts = <3 0>; + gpios = <&gpx0 3 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "power key"; + debounce-interval = <10>; + wakeup-source; + }; + }; + emmc_pwrseq: pwrseq { pinctrl-0 = <&emmc_nrst_pin>; pinctrl-names = "default"; @@ -557,6 +574,11 @@ }; &pinctrl_0 { + gpio_power_key: power_key { + samsung,pins = "gpx0-3"; + samsung,pin-pud = ; + }; + hdmi_hpd_irq: hdmi-hpd-irq { samsung,pins = "gpx3-7"; samsung,pin-function = ;