Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24722588rwd; Sun, 2 Jul 2023 03:40:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgSsHAUzo3p+KeOpz5MbB9XGFjf+0cpwn979lLQHd5523lpSqvZkCTWojtVgXBTzTlzfYi X-Received: by 2002:a17:90a:c696:b0:261:1141:b70d with SMTP id n22-20020a17090ac69600b002611141b70dmr6097074pjt.45.1688294439625; Sun, 02 Jul 2023 03:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688294439; cv=none; d=google.com; s=arc-20160816; b=XbZ6Tzp6VD40WFNyHuXhgOgG2ILFLB7ycSLP8DuW+0Y14WCjwPFeBev3lWDvgDXn1q xbJJ+G1+rQ6ooj0wQciLAQDI6gjk6cmwRNU4R8b9+w5XJIW0a7VeJagEaoEHv46vjBLM uzRyRkQZ6g21DqFwUYxcTVQ9alRpNeED2SqezmsdtC3dhNalIFg+O82fjtxA4P9+A+zu uGVUdc0L/FEyG8qoZwZ7ZrrRLm1rd2C9ILxhgSC+QGb0Q4X4esJdoAYCAU+DnClXAiFY eK+qfM4IWX5nqB9o4HhlVIfijMv4VtusYFDqRemk7Uh5TOBfETefzLLYZhhCmUDJfETx UDzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=S2/+5NqA8Azxs1mgie7yloU1ChPVVOH+Rj0BkKAPp6o=; fh=mGntIYNwHzmvY6uByAFYJMe5d3n6yPAJgcVx4yHTd+0=; b=GLZECumHGH0BJoVn6PNfO/Go6dAF+rUs+WrsPR70EnnB9Rlvx21vhGThfUuM4xABAC bghn+x7stSP67oK4wbzdkPFdP8+WwSKnRmygfbxdzsLd5mizYSki6tLdxPpPcfrCXpV2 9bj2SEvptZdeh+xfvl4gZOpfsTG7cb2qeYQxOoys83uBkIIiOv0lrPyxN/PZYMoyc6M5 99aRzBZhQnewzcUCyPiX357ciGodR+/8cLXQK2X29fmbYzcKvvGpFHrQywsQ+r7EHeGz vRDuz+rsLrDIppOVwECbMA/D/CvE9XMROuaE8Zv+nyu7SJ77KL3/q1sWL0j72XVd41ap u+sw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf16-20020a17090b1d9000b00263a923c189si2152413pjb.100.2023.07.02.03.40.27; Sun, 02 Jul 2023 03:40:39 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbjGBKeV (ORCPT + 99 others); Sun, 2 Jul 2023 06:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjGBKeT (ORCPT ); Sun, 2 Jul 2023 06:34:19 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D70A7135; Sun, 2 Jul 2023 03:34:18 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Qv53V1fv4z6J6n8; Sun, 2 Jul 2023 18:32:38 +0800 (CST) Received: from localhost (10.48.51.211) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 2 Jul 2023 11:34:13 +0100 Date: Sun, 2 Jul 2023 18:34:09 +0800 From: Jonathan Cameron To: Waqar Hameed CC: Jonathan Cameron , , "Conor Dooley" , Lars-Peter Clausen , , , Rob Herring , , Krzysztof Kozlowski , Subject: Re: [PATCH 1/2] dt-bindings: iio: proximity: Add bindings for Murata IRS-D200 Message-ID: <20230702183409.0000021f@Huawei.com> In-Reply-To: References: <9487391b0565434761055b39ba04900bd839580a.1686926857.git.waqarh@axis.com> <20230617135532.328dc3c8@jic23-huawei> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.51.211] X-ClientProxiedBy: lhrpeml500002.china.huawei.com (7.191.160.78) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, 19 Jun 2023 12:41:06 +0200 Waqar Hameed wrote: > On Sat, Jun 17, 2023 at 13:55 +0100 Jonathan Cameron wrote: > > > On Fri, 16 Jun 2023 17:10:42 +0200 > > 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. > >> > >> Signed-off-by: Waqar Hameed > > > > This device will have some power supplies, so I'd expect those to be both > > listed and marked as required (maybe some are optional?) > > Right, will add that here (and call `devm_regulator_get_enable()` in > driver's probe). > > [...] > > >> +required: > >> + - compatible > >> + - reg > >> + - interrupts > > > > If it is possible to remove interrupts from requires - and hence have > > at least a partly functional driver doing basic reading of the sensor > > then that is usually a good idea. Far too many board designers seem > > to decide that they don't need to wire up interrupt liness > > If it's really hard then don't worry too much. > > I see. It would be possible, but would also require some work. Let's > leave it for now then? Sure - as long as you review the patches when they come in :) Jonathan