From patchwork Sat Oct 31 18:48:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320130 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451461ilc; Sat, 31 Oct 2020 11:51:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW+jFZrOY2iG5Sdg4U3kBT3Yr2myJkST+NcycN5rEkQd1W+UGhosvnV/G7WLWKKJRAj5H/ X-Received: by 2002:a50:a454:: with SMTP id v20mr8683948edb.98.1604170305647; Sat, 31 Oct 2020 11:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170305; cv=none; d=google.com; s=arc-20160816; b=kOX+3Kk8aItk9PwA1aOyAJnTKOCEvPmKNPJeptmeESdnmhPi/lCnNfWNR5O4r9Efk6 M6Vws+RtsUWaELcPDuARo5z0uDbTdN9L4KSy12Y2sjRD3Gp3qkkX45CQ7MMez9r4yjtY z5NuZ6twkoEL13MkMOURIfO775noN+uzjnwtNFSAmY7G3zInAhMGRNKiYiKVepvgvCeC 4ZMf6jGxZ1KfMufmfpUSXVz2vrQnNAIyuIlwifKb5JpMxXnv0tNPw1OUwf3Z1ju7tV48 BZH/es5tAWfmX6l5eTQHvqirm82vWsj9dnNz23p2KTsahej/crUHJaz860GwKJpl5DFu +xZg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e2WGK/zd8VM4XGjjKYFMNzAiIZ/MsT/XUb3r/D/HkbQ=; b=uC5NkVaLg6eb9OUH064q+ODSKVoHtvk/uNIM7Rf5FauoZWY/b9/IgwAa+J6v9vwsMq cXd40Ej6s8XHgi5S7v5/44VPpRDYH8VFde8JlP7CFPUpwVikK9IkIZdzdwc3azJegC6i 1zaVqxv9CP4b8RSFaMDDf+hmrK2IiUwOarEsz2bUsGhZkl8+Gus5HO7a8cannEmTTGAj yF5TgBTO+xBtkqt52cq8WLI77v8wlJCXEdvvSZJY18nk7+v7zqB/3sTPsudZG2jrYnsp RGlCApRtVTFo4F5z525zN96TulfWPpAH+Y0ZeKHweWLlsYl4OcWfLfQK3rJCFWU+nNJL HLIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g0NhWWG8; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si7081562ejc.542.2020.10.31.11.51.45; Sat, 31 Oct 2020 11:51:45 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=@kernel.org header.s=default header.b=g0NhWWG8; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbgJaSvl (ORCPT + 6 others); Sat, 31 Oct 2020 14:51:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:34820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSvl (ORCPT ); Sat, 31 Oct 2020 14:51:41 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8ABC82072C; Sat, 31 Oct 2020 18:51:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170300; bh=/J/l2AeYF3yjpmCWShBDSDO5jTSeg87IzhAe74Zry/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0NhWWG83362h1NELyxDN9oTMv+3WTI+z5ID8WvS/yGorBkMbEydAUrpINNFOQpSh heI86BZp13epzxiJB3ieX9lZzNCWBndiIpEZM06v/Svfm+nvPtuAKn6J9Dm0mEWgeg dn9iFRyBGvJ4VhoSNmfVNU+PpPb/grH/OUB9u5BE= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 09/46] dt-bindings:iio:health:maxim, max30100: txt to yaml conversion Date: Sat, 31 Oct 2020 18:48:17 +0000 Message-Id: <20201031184854.745828-10-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031184854.745828-1-jic23@kernel.org> References: <20201031184854.745828-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Straight forward conversion. As with other bindings I've dropped any standrd description, but kept the unusual bits, in thisscase the maxim,led-current-microamp and it's description. Signed-off-by: Jonathan Cameron --- .../bindings/iio/health/max30100.txt | 28 ---------- .../bindings/iio/health/maxim,max30100.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 28 deletions(-) -- 2.28.0 Acked-by: Matt Ranostay diff --git a/Documentation/devicetree/bindings/iio/health/max30100.txt b/Documentation/devicetree/bindings/iio/health/max30100.txt deleted file mode 100644 index 0054908a6e74..000000000000 --- a/Documentation/devicetree/bindings/iio/health/max30100.txt +++ /dev/null @@ -1,28 +0,0 @@ -Maxim MAX30100 heart rate and pulse oximeter sensor - -* https://datasheets.maximintegrated.com/en/ds/MAX30100.pdf - -Required properties: - - compatible: must be "maxim,max30100" - - reg: the I2C address of the sensor - - interrupts: the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic - interrupt client node bindings. - -Optional properties: - - maxim,led-current-microamp: configuration for LED current in microamperes - while the engine is running. First indexed value is the configuration for - the RED LED, and second value is for the IR LED. - - Refer to the datasheet for the allowed current values. - -Example: - -max30100@57 { - compatible = "maxim,max30100"; - reg = <0x57>; - maxim,led-current-microamp = <24000 50000>; - interrupt-parent = <&gpio1>; - interrupts = <16 2>; -}; diff --git a/Documentation/devicetree/bindings/iio/health/maxim,max30100.yaml b/Documentation/devicetree/bindings/iio/health/maxim,max30100.yaml new file mode 100644 index 000000000000..5684f2f61bcc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/health/maxim,max30100.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/health/maxim,max30100.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX30100 heart rate and pulse oximeter sensor + +maintainers: + - Matt Ranostay + +properties: + compatible: + const: maxim,max30100 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + description: Connected to ADC_RDY pin. + + maxim,led-current-microamp: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 2 + maxItems: 2 + description: | + LED current whilst the engine is running. First indexed value is + the configuration for the RED LED, and second value is for the IR LED. + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + heart-rate@57 { + compatible = "maxim,max30100"; + reg = <0x57>; + maxim,led-current-microamp = <24000 50000>; + interrupt-parent = <&gpio1>; + interrupts = <16 2>; + }; + }; +...