Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1758060pxb; Thu, 4 Mar 2021 21:40:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGw39e+6cNP6CdEzuCEvYY2pKLyJPLyK44neneVPpiJJ6WiPAzf8AV/vRcgFkHwBwi1uO6 X-Received: by 2002:a5d:9d01:: with SMTP id j1mr6781046ioj.195.1614922849130; Thu, 04 Mar 2021 21:40:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614922849; cv=none; d=google.com; s=arc-20160816; b=jIEkUVMShu+waXIQgoAqqAMKV2Ps2JoxmlzTN8DkI1OxyC1k53J2thKroIFzoYMwUu N9y/qU4/x3XLhJIAIQQ7VgktMQpOqOBSRHyCwk7kdESPuqMXDhkMHl4KjZYRPcmiRtSp jljUB4KB3LP/IyOGZ7TGs50paTxerr1HmVfKWRJgd0ikXeXomZ++aDhdHg+grAoKr/S0 2ux1YTaNNKYMLc8QUxk9LlwPdgWw7r/y2WD4nmkLjmdPSZSY/NJ8/jDLmsNiueY54bbm ww/WkGJ6M1O4MxQbyGSue05UAZUupOF6d0HnOomUzwtI1rQjbW9T9iX4He66u3LdcDuS z/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=gV/B93dxfr1MTylgc8GTboORz3yh5zm04bCZsMiGvUc=; b=jKMHsmbVEArFlhJ0uTWDOYNcxUGledyK5TrVjLe1Z+C3RL3ATzmtOprgzfEdyfLP5p sPcihxAk+MWjC5aB9+nORlchzdEDqygVYnGQgRlGx5oxYREPlD7bvdTo0aNBmfAcgXsn J3fm0zSsL89l4G1ODiByHsHPMwutIxo4TIi0nVIR44FS5PHFf0Ss623fQihUvCl1auGB AYbTGDAJyreeSCRB2meWd1D+X0o/Q/768GK4NTn5kdk904zkYUCo1s/UhpHU2lwprPu+ Qf6P4A+IIyIvdSQwXoxlNu63tetQuUk5hd2ZyJgO+HJgTN1StVXObny0UqqERXDl00ew CUJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si1481612iov.57.2021.03.04.21.40.36; Thu, 04 Mar 2021 21:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229627AbhCEFjl (ORCPT + 99 others); Fri, 5 Mar 2021 00:39:41 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:4078 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbhCEFjg (ORCPT ); Fri, 5 Mar 2021 00:39:36 -0500 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 04 Mar 2021 21:39:35 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 04 Mar 2021 21:39:34 -0800 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 05 Mar 2021 11:09:11 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 2C6013CDE; Fri, 5 Mar 2021 11:09:10 +0530 (IST) From: satya priya To: Dmitry Torokhov , Rob Herring , Andy Gross , Bjorn Andersson Cc: David Collins , kgunda@codeaurora.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, satya priya Subject: [PATCH 2/3] dt-bindings: input: pm8941-pwrkey: Convert power key bindings to yaml Date: Fri, 5 Mar 2021 11:08:40 +0530 Message-Id: <1614922721-1390-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1614922721-1390-1-git-send-email-skakit@codeaurora.org> References: <1614922721-1390-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert power key bindings from .txt to .yaml format. Signed-off-by: satya priya --- .../bindings/input/qcom,pm8941-pwrkey.txt | 53 --------------- .../bindings/input/qcom,pm8941-pwrkey.yaml | 76 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 53 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt create mode 100644 Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt deleted file mode 100644 index 34ab576..0000000 --- a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt +++ /dev/null @@ -1,53 +0,0 @@ -Qualcomm PM8941 PMIC Power Key - -PROPERTIES - -- compatible: - Usage: required - Value type: - Definition: must be one of: - "qcom,pm8941-pwrkey" - "qcom,pm8941-resin" - -- reg: - Usage: required - Value type: - Definition: base address of registers for block - -- interrupts: - Usage: required - Value type: - Definition: key change interrupt; The format of the specifier is - defined by the binding document describing the node's - interrupt parent. - -- debounce: - Usage: optional - Value type: - Definition: time in microseconds that key must be pressed or released - for state change interrupt to trigger. - -- bias-pull-up: - Usage: optional - Value type: - Definition: presence of this property indicates that the KPDPWR_N pin - should be configured for pull up. - -- linux,code: - Usage: optional - Value type: - Definition: The input key-code associated with the power key. - Use the linux event codes defined in - include/dt-bindings/input/linux-event-codes.h - When property is omitted KEY_POWER is assumed. - -EXAMPLE - - pwrkey@800 { - compatible = "qcom,pm8941-pwrkey"; - reg = <0x800>; - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; - linux,code = ; - }; diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml new file mode 100644 index 0000000..302866d --- /dev/null +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PM8941 PMIC Power Key + +maintainers: + - Courtney Cavin + - Vinod Koul + +properties: + compatible: + enum: + - qcom,pm8941-pwrkey + - qcom,pm8941-resin + + interrupts: + description: | + Key change interrupt; The format of the specifier is + defined by the binding document describing the node's + interrupt parent. + + debounce: + description: | + Time in microseconds that key must be pressed or + released for state change interrupt to trigger. + $ref: /schemas/types.yaml#/definitions/uint32 + + bias-pull-up: + description: | + Presence of this property indicates that the KPDPWR_N + pin should be configured for pull up. + $ref: /schemas/types.yaml#/definitions/flag + + linux,code: + description: | + The input key-code associated with the power key. + Use the linux event codes defined in + include/dt-bindings/input/linux-event-codes.h + When property is omitted KEY_POWER is assumed. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + #include + spmi_bus: spmi@c440000 { + reg = <0x0c440000 0x1100>; + #address-cells = <2>; + #size-cells = <0>; + pmk8350: pmic@0 { + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + pmk8350_pon: pon_hlos@1300 { + reg = <0x1300>; + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = < 0x0 0x8 0 IRQ_TYPE_EDGE_BOTH >; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + }; + }; +... -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation