From patchwork Fri Jun 3 22:11:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 69300 Delivered-To: patches@linaro.org Received: by 10.140.106.246 with SMTP id e109csp477103qgf; Fri, 3 Jun 2016 15:11:31 -0700 (PDT) X-Received: by 10.36.116.83 with SMTP id o80mr2705739itc.8.1464991891439; Fri, 03 Jun 2016 15:11:31 -0700 (PDT) Return-Path: Received: from mail-pa0-x22e.google.com (mail-pa0-x22e.google.com. [2607:f8b0:400e:c03::22e]) by mx.google.com with ESMTPS id q2si9966960pfq.114.2016.06.03.15.11.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jun 2016 15:11:31 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 2607:f8b0:400e:c03::22e as permitted sender) client-ip=2607:f8b0:400e:c03::22e; 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:c03::22e as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-pa0-x22e.google.com with SMTP id ec8so12023086pac.0 for ; Fri, 03 Jun 2016 15:11:31 -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=Gn4sBjOtN2L1kRJm+bbW1aUTZyPe0NrhvBYaTDRRYZO0VQM6Wh2YxsXLtrjAJdb5k6 jBuQZACOxdXBak49L47USIm8nytqIWYAhC+hsiWx/M1C/o7qKfU+tPnjWF/mmhUZyQlO yNF6BCnMmg3O3lPAQIrJmb2dAkwKeCbV6WGR8= 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=HoGWPVOjtEcoSEwqfyg1EBvVPmleVkqFGG+SORELkuTu6p8LxcPEn5JYxpOEy+BJ/N IuJPi8ik2/C57d0rU9z05/RvDcNo+YZbU4gWghpA/+LpnrD2h+xD/yq1Kwa51k9rnMhP nv0CL9Y/URAHRrG6VdUT7RvF6A2g1QLhMzf6LC8Oz0gKNkS901viPEIW3m9nDK/XYqN7 Qh0V/vF8SETcF/xa9kz9T6V8/EM+dHcZWahKvy8PQxrZQnZJ2zKuoomNgdc0hpkH8Yik RRfA5SPkEf/o1XLRz45sI0pTBwlXBEAZMr0dOAA5UjbWUQBN/Z5/y3HUSUz6A/+LlEzb kM4A== X-Gm-Message-State: ALyK8tILGSjvXYKuE+w68uzZD/doCPo2ZyyRiHmrfnY1vL3Hi1u/0tt9aEl2n/peCtX/lO1/pZA= X-Received: by 10.66.51.135 with SMTP id k7mr7661565pao.155.1464991891090; Fri, 03 Jun 2016 15:11:31 -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 d184sm10596841pfc.56.2016.06.03.15.11.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jun 2016 15:11:30 -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: [PATCH 1/5] dts: bindings: Add binding documentation for hisilicon, hi6552-powerkey Date: Fri, 3 Jun 2016 15:11:22 -0700 Message-Id: <1464991886-632-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464991886-632-1-git-send-email-john.stultz@linaro.org> References: <1464991886-632-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"; + };