Message ID | 7e108db19cd9ad19b6413f65099280c010325a91.1699740057.git.alkuor@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp436442vqg; Sat, 11 Nov 2023 14:06:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6cXEuIwiuNCfwZEVCLG9It1pvQxX/HTsH4Z6n4q7jYnycHt5ATj351XESk6d/N0djlblB X-Received: by 2002:a17:902:dacc:b0:1cc:58f1:8646 with SMTP id q12-20020a170902dacc00b001cc58f18646mr2888626plx.50.1699740403500; Sat, 11 Nov 2023 14:06:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699740403; cv=none; d=google.com; s=arc-20160816; b=grLMCH860UWOssE8Dj+M1pZMFjf6zEURTlPRD75iJN4viI1qT/+qtv2edKrlgnFOKA GFTTKUUSw9y8wj9/uRjKalOz8TGuptV7PsJBTOgN1TPPMMSjFyRHoUZyuNnjnGqVcQjQ 3cSpQLb+YThh9i1ana4q1c9RNEwZ5MyiYeKs2/7x7dPVlTbjqkBGL/3EQB+2jJ8TP2/o FkBZZ4gmqdnlukS82UizioDiWfafNDY0yHZSfyqoGGdr8YbJFwmPv+yk8bKFa74Vi8ek kSoBr4s/CbZk7tWQHRTlbrx8ZNW5DqOxFhcqnjaSWaDNNLjolAW6Bcp46S1Yx0W+3lsm CTPA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hJkPGfx6uQ2uiI9j9uHbGyC/BkU4D9ZtAgnm+lv0hko=; fh=huIZIgOjMv0jkUuWPbLLzDzQUjfBUg1KsM/KkxMvnNs=; b=ZUjuwPyUZfe2KzJjNMb2K+kLSqlEjcaDGzL6TK4WI8OtzsNU6txkm2Xkd4Dxv2bSks 5XxJUc2A1Rf1mI1+e4HQc5BjPPEJ2uIud36mZ6sDphNmdGvhhECaxev6naI+0SGEPeBb hTsU4grxUVNVZms1I/wE4PfZGHmfynbqRPA3joqKMxQh5iSYj9hRgYF4z6XxUUr+7u2l ui9O67rME6Wy87L9+MhloEHGAORlLcDUaZMx2QiGPXGEbuYoqxK+Kky5F3KBepCPKtrx mZWhXFWgGmMpObLXWuxzRcg2dOfaxIDJzVz/6cFGJWAcVlVb8wdoxOrEGKLf/nYj8lGq ry7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nqlNbjG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e14-20020a17090301ce00b001c9fe071f2bsi2596552plh.8.2023.11.11.14.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 14:06:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nqlNbjG/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 8CBEF8041E9B; Sat, 11 Nov 2023 14:06:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbjKKWGY (ORCPT <rfc822;heyuhang3455@gmail.com> + 29 others); Sat, 11 Nov 2023 17:06:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKKWGX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Nov 2023 17:06:23 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E722B3253; Sat, 11 Nov 2023 14:06:19 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-da3b4b7c6bdso3325865276.2; Sat, 11 Nov 2023 14:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699740379; x=1700345179; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hJkPGfx6uQ2uiI9j9uHbGyC/BkU4D9ZtAgnm+lv0hko=; b=nqlNbjG/5gxLhYlytodur4QjbCOUyl/rCSLIg5v+WZSCKuN1Hcvg+9WpVGdpzdrmvk QpFcCBNeavO53rPmhmFU8q/6kMLj3E10M/5KCYEEQponcsi58syoR9IB9EhvAUnza9KW bX1GxW+hl3CnDR2MWaJD1zB9/6MkzmRTf9DjBnnoiJ6JmPi+H0oplR8sI4/yB6omE+tZ ppb7rpPwKQisiQAlxRxvH6ledO+LnPv+Nx5fN5U8U8nFPjYEuHHB8wElq/0daJO4rAdp Ru/dpGDoRPCHzL6+9vSiKhKuG7QUIWOZaWqi66bR3fiLKzkj6y84syGiQf78AZN+KAuP JoaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699740379; x=1700345179; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hJkPGfx6uQ2uiI9j9uHbGyC/BkU4D9ZtAgnm+lv0hko=; b=IeUTpb5brrK3ePJU5RXXNJlhe46GGOtmTCs0eZit5DC2NVWiRhMg3Icpfs8tVN2LmW XXh1niXpnvJbGte7ARLdlxTQDhTkBv0BwFF/eGfFwAt8NCjDsN7RUt269g2lXfvqIHVg WVUgRVyJC7CADfSzIeH9O0mEQAeL/ycPAD6NHUU2Bp88d0aBE3WMEVmVgkF7WHvSef6c 47zlOzmAxntj31/e12WHyBFUm33oq3DUweLXgoMMz4lmprYNL6FZH8bY7/lqzVLxm8xH ZgyQtr7NMXCef6TTUbH4WEZaZ7kdkg6CG9jWnEhhMzFJ1f1G2BljLuE0BNxrzgdYA8NP qKAg== X-Gm-Message-State: AOJu0Yw+Mct6+9Sv6FZtanjyRXQ4zvGHEBiCZpt309EM/2kIg+Cbvaiv sxrlPmtHzYqebIyFIz2LwFxAZSTZuiVKHg== X-Received: by 2002:a25:da51:0:b0:d9a:b48c:7d96 with SMTP id n78-20020a25da51000000b00d9ab48c7d96mr2906791ybf.1.1699740379111; Sat, 11 Nov 2023 14:06:19 -0800 (PST) Received: from localhost.localdomain (bras-base-ktnron0692w-grc-13-174-95-13-129.dsl.bell.ca. [174.95.13.129]) by smtp.gmail.com with ESMTPSA id z10-20020ac8710a000000b004196a813639sm758558qto.17.2023.11.11.14.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 14:06:18 -0800 (PST) From: Abdel Alkuor <alkuor@gmail.com> To: Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Abdel Alkuor <alkuor@gmail.com> Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: iio: temperature: Add AMS AS6200 Date: Sat, 11 Nov 2023 17:05:01 -0500 Message-Id: <7e108db19cd9ad19b6413f65099280c010325a91.1699740057.git.alkuor@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 11 Nov 2023 14:06:38 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782306993557960877 X-GMAIL-MSGID: 1782306993557960877 |
Series |
[1/2] dt-bindings: iio: temperature: Add AMS AS6200
|
|
Commit Message
Abdel Alkuor
Nov. 11, 2023, 10:05 p.m. UTC
as6200 is high accuracy temperature sensor of -/+ 0.4C degree
with a range between -40C to 125C degrees
Signed-off-by: Abdel Alkuor <alkuor@gmail.com>
---
.../bindings/iio/temperature/ams,as6200.yaml | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/temperature/ams,as6200.yaml
Comments
On 11/11/2023 23:05, Abdel Alkuor wrote: > as6200 is high accuracy temperature sensor of -/+ 0.4C degree > with a range between -40C to 125C degrees > > Signed-off-by: Abdel Alkuor <alkuor@gmail.com> > --- > .../bindings/iio/temperature/ams,as6200.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) I did not receive the driver, so I hope you actually implement the binding accurately. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Sun, Nov 12, 2023 at 08:43:53AM +0100, Krzysztof Kozlowski wrote: > On 11/11/2023 23:05, Abdel Alkuor wrote: > > as6200 is high accuracy temperature sensor of -/+ 0.4C degree > > with a range between -40C to 125C degrees > > > > Signed-off-by: Abdel Alkuor <alkuor@gmail.com> > > --- > > .../bindings/iio/temperature/ams,as6200.yaml | 45 +++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > I did not receive the driver, so I hope you actually implement the > binding accurately. > Sorry about not including you in the driver patch as I was experimenting with adding tocmd and cccmd in my .gitconfig and it looks like the commands ran for each patch individually and only included the required recipents for each patch instead of amalgamating them. Here is the driver: https://lkml.org/lkml/2023/11/11/208 > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > Best regards, > Krzysztof > Thanks, Abdel
On Sat, 11 Nov 2023 17:05:01 -0500 Abdel Alkuor <alkuor@gmail.com> 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. Jonathan > Signed-off-by: Abdel Alkuor <alkuor@gmail.com> > --- > .../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 <alkuor@gmail.com> > + > +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). > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/interrupt-controller/irq.h> > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + temperature-sensor@48 { > + compatible = "ams,as6200"; > + reg = <0x48>; > + interrupt-parent = <&gpio1>; > + interrupts = <17 IRQ_TYPE_EDGE_BOTH>; > + }; > + }; > +...
On Sun, Nov 26, 2023 at 05:30:02PM +0000, Jonathan Cameron wrote: > On Sat, 11 Nov 2023 17:05:01 -0500 > Abdel Alkuor <alkuor@gmail.com> 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 <alkuor@gmail.com> > > --- > > .../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 <alkuor@gmail.com> > > + > > +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 <dt-bindings/interrupt-controller/irq.h> > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + temperature-sensor@48 { > > + compatible = "ams,as6200"; > > + reg = <0x48>; > > + interrupt-parent = <&gpio1>; > > + interrupts = <17 IRQ_TYPE_EDGE_BOTH>; > > + }; > > + }; > > +... >
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 <alkuor@gmail.com> + +description: | + https://ams.com/documents/20143/36005/AS6200_DS000449_4-00.pdf + +properties: + compatible: + const: ams,as6200 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temperature-sensor@48 { + compatible = "ams,as6200"; + reg = <0x48>; + interrupt-parent = <&gpio1>; + interrupts = <17 IRQ_TYPE_EDGE_BOTH>; + }; + }; +...