Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3806150rwd; Sat, 17 Jun 2023 02:31:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mtlj3/+4dPu7A6iyE37IuGYWnxzl8LZt8PwGxzjt/Ve1Eth679OoDc6kgdTGQM/lvrrl+ X-Received: by 2002:a17:903:22cd:b0:1b2:421b:6f21 with SMTP id y13-20020a17090322cd00b001b2421b6f21mr13273693plg.9.1686994297930; Sat, 17 Jun 2023 02:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686994297; cv=none; d=google.com; s=arc-20160816; b=llu2Xeu3UpoZ3WYQk2kfRJ6kzLDVm5M065jMch0NkL7cG4qUpz1yr4TMI6PfyWS7q3 I2LLavWiYUr8UsrvQucUmggTk2goEtiO7Sdbjp5QBDUxNrn+rdVHIUKVKY5Jf9lU1kZI Qt+Z5XM5gPc1MIeBgBOH1EQ3wCOk26N13mC6pKk1ct8z900bV2keVqvuiYWq7qiGvW2j FB/FdHvhcCsZZvga6IiGI80N2c4e5WOCQp5tRSDGJCmJcsApObeqw+4yy6gglNWInp2S FMD0RZG4NjsVg/fgKl+UmcfUOE3W7e7YOtCRGj3S2Tm82UAlFFWFYfoR1JGg3IIWHtZ+ bO4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=K6Tb4xMKEqxuJiYeqUW+S0/SqCS3tOAVF1bVLma2/Ik=; b=PzathRUhf5tV+QqkPYcHs2EiwqUE05YrZOrc6kx2F35wdFXsbR9PwhVI9laSOR1g3I U50iHR8AesyfgcrImZuMUCDmVFJ5UKRV9Z49han9MrAOHKrBHTNf4TGjO+JTq0BYz9Mk AC0cdfTOh2JRnJeIF2ICDj+5EXCDR7xzeuPkjaRsTK6iDI0qBWGayx2th/icLq5qkur9 xGfvnOFrfnO5CJCKGN3EVwk3Fu3pY5oQws18V0QL4S19EzoDcyBZsAhkrL9KGmyKzxkJ +BmL/9tCNeCdxp2PJ66DvPHmg2JcVgZJ+6HC/UTAeZH6oJaB6DmG9I7C+xxsOSSTUbaX 09Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1YwTFCs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902ba8300b001b02e240e40si15938711pls.88.2023.06.17.02.31.17; Sat, 17 Jun 2023 02:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b1YwTFCs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233330AbjFQIzp (ORCPT + 99 others); Sat, 17 Jun 2023 04:55:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232285AbjFQIzo (ORCPT ); Sat, 17 Jun 2023 04:55:44 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 672C11BCC for ; Sat, 17 Jun 2023 01:55:42 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5186a157b85so2259503a12.0 for ; Sat, 17 Jun 2023 01:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686992141; x=1689584141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=K6Tb4xMKEqxuJiYeqUW+S0/SqCS3tOAVF1bVLma2/Ik=; b=b1YwTFCsSodLvxgb0yw0je9hhTb90gvoxFBhmxTOohzodJcuChPDajtbgbJbLaCJSs 4nWVR3oXd7TDnZF73a1oXz09nl0lsaa+THv4L7heYYsvp6G2RVaoVqiP7ftp+AMaEbCY lA4//Oc91uWQMMBWcAmp714YaoMrNFaIh0ukNeSevjTFZcRaztMqgKwFxyF0snYzjVJ+ +AOu2hSes3Zr9oKiu/KQX6QXcSpSzWqlIkUUFi0Sj/x8qVF1OtfFME3IIp9bsv266+Sx UVxVpWdlFny2jLyNhO3bCxlggDTPE9WjGXr7pHbHXXPUy7O0z5Sa7xvz8NxBW16wc7a7 601A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686992141; x=1689584141; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K6Tb4xMKEqxuJiYeqUW+S0/SqCS3tOAVF1bVLma2/Ik=; b=ZtKW3QF036KDXCeGb/OKM9QSG4NvMN31WDFWuA29w8wz7utvDXoF8uT7/i6Q/V5Uik 8m8zty246w7K+wah3S0BYwwAsey6cIAW2xx/UYe0yv8sljcUde94k0qFxOVZ4yj4kzK0 kpsQvn4ARytxklkJGkDHE6m3CgdfPk5NcTU/jfuBWTTly6o/OSKaLbFAaXRBvu+lIv+Q P5ulrLl/E2vR7I62qQ0odJobZjudBqiJUTdwcN9xQnmI6j7hoDl97id4Cwx3vm1rodME BK8VjoSD1yhwz7OjYB6UsC3IKE+d3HlY67rNqIRd+AqCN/6BzqQefqSoFinpFM1fIV7C PjmQ== X-Gm-Message-State: AC+VfDzZ9iMGT7bK2nOeroZsDsMi6/gbJSyuoCh6P90oIeYaOK/ArYti K4MyJfF32FmuTHROFwN36Bo3EQ== X-Received: by 2002:a05:6402:1501:b0:51a:42aa:e07e with SMTP id f1-20020a056402150100b0051a42aae07emr1532556edw.42.1686992140872; Sat, 17 Jun 2023 01:55:40 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id b24-20020a056402139800b0051827a12b47sm8661829edv.15.2023.06.17.01.55.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jun 2023 01:55:40 -0700 (PDT) Message-ID: <07a6766e-7e2b-22fa-6f20-3a8ab7019635@linaro.org> Date: Sat, 17 Jun 2023 10:55:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 1/2] dt-bindings: iio: proximity: Add bindings for Murata IRS-D200 Content-Language: en-US To: Waqar Hameed , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com References: <9487391b0565434761055b39ba04900bd839580a.1686926857.git.waqarh@axis.com> From: Krzysztof Kozlowski In-Reply-To: <9487391b0565434761055b39ba04900bd839580a.1686926857.git.waqarh@axis.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/06/2023 17:10, Waqar Hameed wrote: > Murata IRS-D200 is a PIR sensor for human detection. It uses the I2C bus > for communication with interrupt support. Add devicetree bindings > requiring the compatible string, I2C slave address (reg) and interrupts. Thank you for your patch. There is something to discuss/improve. I have actually only remark about DTS example, but since I expect resend two more nits as well. A nit, subject: drop second/last, redundant "bindings for". The "dt-bindings" prefix is already stating that these are bindings. > > Signed-off-by: Waqar Hameed > --- > .../iio/proximity/murata,irsd200.yaml | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/proximity/murata,irsd200.yaml > > diff --git a/Documentation/devicetree/bindings/iio/proximity/murata,irsd200.yaml b/Documentation/devicetree/bindings/iio/proximity/murata,irsd200.yaml > new file mode 100644 > index 000000000000..d317fbe7bd50 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/proximity/murata,irsd200.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/proximity/murata,irsd200.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Murata IRS-D200 PIR sensor > + > +maintainers: > + - Waqar Hameed > + > +description: | Nit, do not need '|' unless you need to preserve formatting. > + PIR sensor for human detection. > + > +properties: > + compatible: > + const: murata,irsd200 > + > + reg: > + items: > + - enum: > + - 0x48 > + - 0x49 > + description: | > + When the AD pin is connected to GND, the slave address is 0x48. > + When the AD pin is connected to VDD, the slave address is 0x49. > + > + interrupts: > + maxItems: 1 > + description: > + Type should be IRQ_TYPE_EDGE_RISING. > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + pir@48 { Node names should be generic. See also explanation and list of examples in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation so I guess: proximity@? Best regards, Krzysztof