Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4965228rdh; Wed, 29 Nov 2023 16:39:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IErIEa7vYqt+k5dM844CakQlFXIlvldAv9jMQdKWEHIsRAY1qbc4v5i9x5IuPp0rz8s1zu5 X-Received: by 2002:a17:903:2341:b0:1cf:f624:a656 with SMTP id c1-20020a170903234100b001cff624a656mr7958985plh.53.1701304790568; Wed, 29 Nov 2023 16:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701304790; cv=none; d=google.com; s=arc-20160816; b=Ns4loUEBIz0QiRVxOKVX8Jx6ofxNUzarSXO82cHHxvGF1GzC0JMrA2Fplw/jvuNcby m7WYH0zC50+A8LQTi8qh7+QoLX+GOjmdxspiIFFRP9rBX107h43Iwqj4WiEygEHkFCd5 OAQtjHVohIiQFPLmWfpYle3UxyWq3jyc8atOd2MUP0jQvZfa71szOUbpFmniFYrwqKUk 1Nf+he6aysukFiWiK/gi1PCAqvp+RBE+DPtD4el1Pq4K3QMnCl8MJLW0x4gXFOxYY9wd Ud2zOU/Cv5GTMCukjFWnm6xkNBlILuYCiueWZ+VTpEd/OYbygcupIipqXJrdOBUsSsRs YkLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YrRnNCCUb/SdbujX/8piKGYQVRghzHGFa2Vr9K58E7k=; fh=lhL4PxiGrdlMOlR/G27LiW2W3LFXdzzDjkDA+6P887s=; b=WdRzo7IaZafMOt/StwNHU0OfmvRxcTN29izbfCWfBXtnzzZ5E53YSy6yM1ym0wZtPc KUgY8DqrWMma1YTs9Jqkz33F32HdybD5KOIPHp8kFpsZdxKFYdee32ki1GwsR6MHDXJI H+FjLSKO9wdPhecFgAT+UQIY/vi+GGuBngm32yAGKKNS1loOO26uL6dKKScb/Va6YAPY cgMN484XukAMYTLokBWURpLSuRr47JQre1ThFpAtgbVn16TUYeIu9/liBGuvLgd4elv9 RjlDF2Fn1nOUnkv2dL+eV8cKV4c2lA4ctRIzcPhC000y5PZkJA3POHUCisgfB4HuCjNI eBAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jxj+FLfA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id bj4-20020a170902850400b001cc15d1ac7csi14973144plb.563.2023.11.29.16.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:39:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jxj+FLfA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 91A358097791; Wed, 29 Nov 2023 16:39:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234861AbjK3Aja (ORCPT + 99 others); Wed, 29 Nov 2023 19:39:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbjK3Aj2 (ORCPT ); Wed, 29 Nov 2023 19:39:28 -0500 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9DE31AD; Wed, 29 Nov 2023 16:39:27 -0800 (PST) Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-db4422fff15so312020276.1; Wed, 29 Nov 2023 16:39:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701304767; x=1701909567; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YrRnNCCUb/SdbujX/8piKGYQVRghzHGFa2Vr9K58E7k=; b=jxj+FLfAxUMm43s4zGeBtigTZEdsACq+z3LYtT7HTCrWD7bAWdX7uN9J6Qig4c/KmW 0Twn+2CbKWBfC7y2R7gZylJgv54rs8rXTkNv47AsPF24HdBbUz3tAWhXkHgZCd3hfRsC /GWOvHzB3K2tRpsnKBE7rZuabYEcGLi45zSp7l4T9dGe1q7QqmGvc8GAZVkCxRZzHoN7 0Nt1oJZCfsNQ7NnrpqTBgZQqGTKCK10AnrGq4y9I4R0RwQiXGgBoNvxACeDYghEL0qB3 oe/ajLMOGgIfL63B+VcMBUM7Pmo+6thzGTXx1WwRBrkRI5JFypnVl75FmWkDK35l7ujo 8xjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701304767; x=1701909567; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YrRnNCCUb/SdbujX/8piKGYQVRghzHGFa2Vr9K58E7k=; b=F1n+CR2JLkmEEPwCdi3peXfDTCuob+K4U4974Jtzxo93EJJBYhj31y4hfJSHjpAOzc kg3n9UJTV9AsIqelWE29AKwHxuRp1o2GV/rgryNZFTmQFsX6t70/LFWfX9NuKmLbr7AV aAt1EY08ines5UYECeEKl0eVbDXOmFRmD5w0spLPGFOFmKPDIBg4kT2XBt1+7eLar6Y2 lcLNzRdqqPPQWEHoETViaoZQyrquQNozEQw1Q/JMrBGULluuPZ+FGLVRA/+Lji6PNEIi WMF4msfxF0O8YnhtKpRZrpd6jf/dt+6jTSgOSwkoFthwA5ThW5kcyEFxO4od/iVbi70w c3TA== X-Gm-Message-State: AOJu0YwOO77fnBap4T530HBohrzlUSKUHNQkFv9e7HKK4d0qJjpmb8bE DWXo8tl+QbIAs8TKfxM1Dn4= X-Received: by 2002:a25:f904:0:b0:da0:48df:cafa with SMTP id q4-20020a25f904000000b00da048dfcafamr17581443ybe.16.1701304766961; Wed, 29 Nov 2023 16:39:26 -0800 (PST) Received: from abdel ([174.95.13.129]) by smtp.gmail.com with ESMTPSA id z15-20020ad4414f000000b0067a631bb7bfsm1657128qvp.92.2023.11.29.16.39.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 16:39:26 -0800 (PST) Date: Wed, 29 Nov 2023 19:39:16 -0500 From: Abdel Alkuor To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: iio: temperature: Add AMS AS6200 Message-ID: References: <7e108db19cd9ad19b6413f65099280c010325a91.1699740057.git.alkuor@gmail.com> <20231126173002.3783271f@jic23-huawei> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231126173002.3783271f@jic23-huawei> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 16:39:47 -0800 (PST) On Sun, Nov 26, 2023 at 05:30:02PM +0000, Jonathan Cameron wrote: > On Sat, 11 Nov 2023 17:05:01 -0500 > Abdel Alkuor wrote: > > > as6200 is high accuracy temperature sensor of -/+ 0.4C degree > > with a range between -40C to 125C degrees > > > Hi Abdel, > > Welcome to IIO. Just one comment on specifying power supplies below. > Hi Jonathan, Thank you for the warm welcome :D > Jonathan > > > > Signed-off-by: Abdel Alkuor > > --- > > .../bindings/iio/temperature/ams,as6200.yaml | 45 +++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml b/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml > > new file mode 100644 > > index 000000000000..97a73b92a789 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml > > @@ -0,0 +1,45 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/temperature/ams,as6200.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: AMS AS6200 Temperature Sensor > > + > > +maintainers: > > + - Abdel Alkuor > > + > > +description: | > > + https://ams.com/documents/20143/36005/AS6200_DS000449_4-00.pdf > > + > > +properties: > > + compatible: > > + const: ams,as6200 > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > I'd like to see > vdd-supply: true > and it added to teh required list. > > The device needs power. Note there is > a devm_regulator_get_enable() function that can then be used in the driver to turn > on any regulator specified in DT which will provide a stub regulator if there isn't > one (not unusual if a fixed power supply is used that is always on). > Sounds good. I'll add it. > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + temperature-sensor@48 { > > + compatible = "ams,as6200"; > > + reg = <0x48>; > > + interrupt-parent = <&gpio1>; > > + interrupts = <17 IRQ_TYPE_EDGE_BOTH>; > > + }; > > + }; > > +... >