Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp197444pxy; Wed, 21 Apr 2021 00:23:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypXuCDFPi6Jc8byz93jnYOzcIKzaeOsgL4hyUXj+XR8ftXVH7sH+hgcRbuhLl58EBO922b X-Received: by 2002:a17:906:3952:: with SMTP id g18mr31314398eje.104.1618989807823; Wed, 21 Apr 2021 00:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618989807; cv=none; d=google.com; s=arc-20160816; b=y2mBBe2ZxvhPS5hqmmbf1kqXKoN4hUaWyrGFDNjsS3YcRkElmeubve63o8clvyg1VP jH++9bBQSdjkm8/+AMMbP5TZ1L6eEoBEF00gMHKdpbajPLlzsDs1dp6oR5avwqzs+VwP 3y0UM+xLMjrwyurFkRSeV7R20ihFYUxr5b9nggBjkEPytvW0NUDAF9yLMJ3kBnFToGgZ FFik9Bv1jlpAZT9RQHEcMdynGKfZ+F1hpb2Dqbt2v0Vzho77fPhkr45nnDGYe1MHtelp 5BdWUJcHSC6VjM9QCEQ0n6m/TE/+2eQFrAKpM8CZ4hPbWFaYSVdxlMGSxXfOG9mUkNkr ZzEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=joVt7EiJpq5MpkTsFfA7/raYnftwlEGm8PrYlH6jj2I=; b=KPw139jP7OPvBosu0T7zaqZaWzoutIBivkL55C9YGiHYjMs6mUxuUaGvzdHvBuznSb QiSsEZjNTcZp8uUkZu+hdiFIeuNvpombtL9jU8oCZlfUYFg/WykCM5P41VhRrU1YqWCs N5UjSnEX1jkCMgBAnNoB21NK0bPeLVKlsE3WS52Vle4vwdFnvqaBMg09B+R6jWgw+0yD y3IZ2GOSNhAcnehWZxj6boDJhPEcDNA82PoZGCZFWYlaHg1rr0QB5FSH9QGRQDqNM1fw y4n32LoxtgQszB1ImCvQFMvjik2jx5I4FGoNfCZHz7Sa5Tuup2StbiAAtLIbmA8f2SdA Pnpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DkbHvbE4; 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 y15si1220610edm.338.2021.04.21.00.23.04; Wed, 21 Apr 2021 00:23:27 -0700 (PDT) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DkbHvbE4; 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 S236054AbhDUGYP (ORCPT + 99 others); Wed, 21 Apr 2021 02:24:15 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:57492 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235975AbhDUGYP (ORCPT ); Wed, 21 Apr 2021 02:24:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1618986222; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=joVt7EiJpq5MpkTsFfA7/raYnftwlEGm8PrYlH6jj2I=; b=DkbHvbE4w1MMfJu+bT6r5gh7em96MbTYBJLGvHcXMYrQnFT5u1ch9PogQIHECeD9549KgE50 cDWAPPc77nn0MRK3sh8rLoFryychDN9Wn0iIB+LnmGbxqTiJ1OA3CJfwy25kaP8lUaNphh4g LTWN3/UHaaoQxgdXwivg+DlpBks= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 607fc4db215b831afb7a20d8 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 21 Apr 2021 06:23:23 GMT Sender: skakit=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C9C07C4338A; Wed, 21 Apr 2021 06:23:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id 73638C433D3; Wed, 21 Apr 2021 06:23:21 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 21 Apr 2021 11:53:21 +0530 From: skakit@codeaurora.org To: Rob Herring Cc: Dmitry Torokhov , Andy Gross , Bjorn Andersson , Sebastian Reichel , David Collins , kgunda@codeaurora.org, Vinod Koul , Courtney Cavin , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH V2 4/4] dt-bindings: input: pm8941-pwrkey: Convert pm8941 power key binding to yaml In-Reply-To: <20210409185044.GA3946207@robh.at.kernel.org> References: <1617881469-31965-1-git-send-email-skakit@codeaurora.org> <1617881469-31965-5-git-send-email-skakit@codeaurora.org> <20210409185044.GA3946207@robh.at.kernel.org> Message-ID: <68095bad57e336c70b622c5b8d5870b1@codeaurora.org> X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 2021-04-10 00:20, Rob Herring wrote: > On Thu, Apr 08, 2021 at 05:01:09PM +0530, satya priya wrote: >> Convert qcom pm8941 power key binding from .txt to .yaml format. >> >> Signed-off-by: satya priya [...] >> + >> +properties: >> + compatible: >> + enum: >> + - qcom,pm8941-pwrkey >> + - qcom,pm8941-resin >> + - qcom,pmk8350-pwrkey >> + - qcom,pmk8350-resin >> + >> + interrupts: > > How many? > ok, will add maxItems. >> + description: | >> + Key change interrupt; The format of the specifier is >> + defined by the binding document describing the node's >> + interrupt parent. > > The 2nd sentence is every 'interrupts' property. Drop. > Will remove the description. >> + >> + 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: "input.yaml#" > > You've just defined that 'linux,code' is a node with properties defined > in input.yaml. Need to move this up to the top level. > allOf: $ref: "input.yaml#" That means I should add like this at the beginning? please correct me if wrong. >> + >> +required: >> + - compatible >> + - interrupts >> + >> +additionalProperties: false [...] Thanks, Satya Priya