From patchwork Wed Jun 1 21:27:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 69071 Delivered-To: patches@linaro.org Received: by 10.140.23.41 with SMTP id 38csp17111qgo; Wed, 1 Jun 2016 14:27:44 -0700 (PDT) X-Received: by 10.66.8.198 with SMTP id t6mr493510paa.66.1464816463974; Wed, 01 Jun 2016 14:27:43 -0700 (PDT) Return-Path: Received: from mail-pf0-x230.google.com (mail-pf0-x230.google.com. [2607:f8b0:400e:c00::230]) by mx.google.com with ESMTPS id l76si53380511pfj.253.2016.06.01.14.27.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 14:27:43 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::230 as permitted sender) client-ip=2607:f8b0:400e:c00::230; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c00::230 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pf0-x230.google.com with SMTP id g64so22368848pfb.2 for ; Wed, 01 Jun 2016 14:27:43 -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=2+q4OGf1EsIwGF6S43Wqkm0Cx1O8KdNRVKaxelERReU=; b=GzwKzzqU56KtfwhLzBwxkdmStu0jqFbpf/3GD91436LiBNZf5aOsQ1iYb/pH0rUtbM yCtA9lWfdNjRXiRKwugkmHSs2PTyoa1Qll41vMTaH9aeacbmfGtAxxVSCR8GUzeoKkub UE4Mvw97mKugeJZ0OQGcVRkENfHa/6MJ+WD6k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2+q4OGf1EsIwGF6S43Wqkm0Cx1O8KdNRVKaxelERReU=; b=ma0nHtcP08wjVSw2F0g38oHhI9SuW7QAZ7GUEwk0mJ+jnPthcdsFodjd23hi7AW7G1 Ofx65kLWvFihjNrSbYp3xp8wbY+UxnrZdqhikaU4nDGz7PrIoIGN8Meinl9IRimou4In gA3y6bnuipXrp+2Tay/vPC9Yz0zthjzXNxkxODMhEPn2BKm8rzRvX0cVcyJjnVlE9FYj rQSL72J/A+z1c2fLxov7mB3+kJ9d7l9mHrYgoBMLeT1EDPP0535zzCV+QbgwKT6NlWDb r7DwALpvkQngdqIWPMhCLeUchUTp/XhFbXe+lF3cK7gClFe28xl+ypALRBswCGcSU1qk pj4g== X-Gm-Message-State: ALyK8tK3Lt8aMe5LCyx61pBQg2d44krUDD+7ztZTg0fC9fN5N0DOJ3AriRSloOw8yOkkO72/N58= X-Received: by 10.66.246.234 with SMTP id xz10mr524470pac.24.1464816463668; Wed, 01 Jun 2016 14:27:43 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-73-67-244-238.hsd1.or.comcast.net. [73.67.244.238]) by smtp.gmail.com with ESMTPSA id e79sm2115369pfd.20.2016.06.01.14.27.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jun 2016 14:27:43 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Dmitry Torokhov , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Lee Jones , Jorge Ramirez-Ortiz , Wei Xu , Guodong Xu Subject: [RFC][PATCH 1/5] dts: bindings: Add binding documentation for hisilicon, hi6552-powerkey Date: Wed, 1 Jun 2016 14:27:36 -0700 Message-Id: <1464816460-18750-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464816460-18750-1-git-send-email-john.stultz@linaro.org> References: <1464816460-18750-1-git-send-email-john.stultz@linaro.org> Adds binding documentation for hi6552 pmic powerkey button. Cc: Dmitry Torokhov Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Jorge Ramirez-Ortiz Cc: Wei Xu Cc: Guodong Xu Signed-off-by: John Stultz --- .../bindings/input/hisilicon,hi6552-powerkey.txt | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/hisilicon,hi6552-powerkey.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/input/hisilicon,hi6552-powerkey.txt b/Documentation/devicetree/bindings/input/hisilicon,hi6552-powerkey.txt new file mode 100644 index 0000000..7f09124 --- /dev/null +++ b/Documentation/devicetree/bindings/input/hisilicon,hi6552-powerkey.txt @@ -0,0 +1,40 @@ +HiSilicon hi6552 PMIC Power Key + +PROPERTIES + +- compatible: + Usage: required + Value type: + Definition: must be one of: + "hisilicon,hi6552-powerkey" + +- interrupt-parent + Usage: (required if interrupt property is defined) + Value type: + Definition: A single value that points to the interrupt + parent to which the child domain is being mapped. + +- interrupts: + Usage: required + Value type: + Definition: The first interrupt specifies the key release interrupt + and the second interrupt specifies the key press interrupt, + the third defines the timed key-hold interrupt. + The format of the specifier is defined by the binding + document describing the node's interrupt parent. + +- interrupt-names: + Usage: required + Value type: "down", "up", "hold 4s" + Definition: String names for the press, release and timed hold + interrupts. + + +EXAMPLE + + powerkey:powerkey@b1{ + compatible = "hisilicon,hi6552-powerkey"; + interrupt-parent = <&pmic>; + interrupts = <6 0>, <5 0>, <4 0>; + interrupt-names = "down", "up", "hold 4s"; + };