From patchwork Wed May 17 08:37:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 99918 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp127470qge; Wed, 17 May 2017 01:39:18 -0700 (PDT) X-Received: by 10.98.133.145 with SMTP id m17mr2511880pfk.164.1495010358710; Wed, 17 May 2017 01:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495010358; cv=none; d=google.com; s=arc-20160816; b=Z/2kXLL11+RDr9VNc1vprIeTWr9pwt40n7REfyOM+fc2Hv+H8Qg5jib2bdzYGW1l+4 rCAte0z30TKN/3KPdipYKbe8LP45cdC07Lp1PZZln69hzyJmNJ3HSMVhYKIeUE6POcFR YhOI01HpwH5MfY3D87IRHYeDtHkmTWBsdYxxaFiV06Uwd5FFLo03dr//M7mJ4f9qwKJh deSThcEShklVLDdCcI2KbFIQ3dt1/mMMoUWvHEeQgJkR44z2oR5cuh1GFyNksY+21i56 OozHx0/i1SXyDfw8OXl/3KjumeHEJWLux4JzfTZXJFGmaW6FOynamIWfkn6SlrNSyNw/ XewQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YSt6xsUMRjxFB75t1KHJc8EQwlo/ePt6kqa+nJetclY=; b=NIWHjFXlb08kBCpmOiM20N/wyha+r4We+LZ3Sd+O3/fKRELcMO/AH6pp5YFOax7NFC S/7rkSxiL1dD2QvGXZy/XAlRTJcgKOP759WST3k9KHPztEhXdW2YWbmJouzYhi/CaypA MFEBpRNJv7paenMHnGKTUtwUE0a67X1QXuu2OwLzSMnAM24wTygJBiipymEgvuiDYvEv 0YOFq6cqDhQxACob+sEVUIjsl7hKHSc5XpKhO9qxBDrNoFBkt4e8Y2dXWI+1HdESY694 7LxoljnOiK2eetCfgPBcmgz1sVTuoEMaoYd6nvkZ8HvkUj4aPkqNeJIztegJy1TKCHiM IS/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1477579pgn.278.2017.05.17.01.39.18; Wed, 17 May 2017 01:39:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754253AbdEQIjQ (ORCPT + 7 others); Wed, 17 May 2017 04:39:16 -0400 Received: from mail-pf0-f179.google.com ([209.85.192.179]:32925 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754261AbdEQIjJ (ORCPT ); Wed, 17 May 2017 04:39:09 -0400 Received: by mail-pf0-f179.google.com with SMTP id e193so4012938pfh.0 for ; Wed, 17 May 2017 01:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F6OLmxIzmdyqckKq3Xddnw9jIsLgpUabHF1SQLJRRI4=; b=EcAqdmqIvomS2Vm/kLcYUbhmAVNt6StR8uWi+E4cC9AvhgYaiMzLGagzAqClPCA1zv 6gVZQrx9QMq/zxx8l+TmctX+VY59oqwdK7X9zNebHJKjCV3k2RR5bndu+N++wCMRouCf XRqUqyyQ6iTOkaXVaQtt7qG18Y6R/KhSIYGoo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F6OLmxIzmdyqckKq3Xddnw9jIsLgpUabHF1SQLJRRI4=; b=SeYEGpTFUwh2Ntj8lLlQ3+f38uUU2SwCzmHa9jhHpPGxR8zPTTd9bKFtjeQ77wLduF YoJkteA0TEwvg2SVk6c75JIaqyAJieI3YPmFCQAF3VEN9LsYHD+pEGV+FsqCWWDFzWXc SxQqd9yhXWHHjAsv9A1axNlWhF3/fPvIQqJ5l+6wmVWCt3EKH8d1h720hBfBMdIXjsyz Zumlulv+fjmDZ6kdgXcMERrSCw5xQCrpsF14VZsJNNhJSgWRsM4ytXMU93a0BYB64ON1 zb8zvCJ4TKTVNCINQvtGPyU2lh0+aRiOCfPWB9gL/veP+bYCy/Aw2FwlH/pBomeg5YZ5 kA3Q== X-Gm-Message-State: AODbwcDAdhh0d7NGvvfgqUhI+8gCuQFVD3ybmv9raatDctTRQQlsPXk0 +Ql4TJbJmLg5nzrn X-Received: by 10.99.127.73 with SMTP id p9mr2531878pgn.169.1495010344061; Wed, 17 May 2017 01:39:04 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.164]) by smtp.gmail.com with ESMTPSA id u9sm3029519pgn.55.2017.05.17.01.38.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 May 2017 01:39:03 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, puck.chen@hisilicon.com, xuejiancheng@hisilicon.com, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chen Jun , John Stultz , Guodong Xu Subject: [PATCH 11/12] arm64: dts: hi3660: add power key dts node Date: Wed, 17 May 2017 16:37:44 +0800 Message-Id: <20170517083745.24479-12-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170517083745.24479-1-guodong.xu@linaro.org> References: <20170517083745.24479-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Chen Jun We use gpio_034 as power key on hikey960, and set gpio with pull-up state, when key press the voltage on the gpio will come to lower, and power key event will be reported. Signed-off-by: Chen Jun Signed-off-by: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 79735ee..6de86c0 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -10,6 +10,8 @@ #include "hi3660.dtsi" #include "hikey960-pinctrl.dtsi" #include +#include +#include / { model = "HiKey960"; @@ -32,6 +34,21 @@ /* rewrite this at bootloader */ reg = <0x0 0x0 0x0 0x0>; }; + + soc { + keys: gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>; + + power { + wakeup-source; + gpios = <&gpio4 2 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = ; + }; + }; + }; }; &i2c0 {