From patchwork Sat Oct 31 18:48:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320146 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451641ilc; Sat, 31 Oct 2020 11:52:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2vdh5g950+d/CtewfFvBQ5qA6/NMgqwZGABhepGtsRxO7tp7LyJ7+WzSj+Q/gxx0wRwui X-Received: by 2002:a17:906:824a:: with SMTP id f10mr8768753ejx.167.1604170325960; Sat, 31 Oct 2020 11:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170325; cv=none; d=google.com; s=arc-20160816; b=e2dyO19k9/tZpBG2iwkspICOt7gHpBsed6kx+0D8ek7WmTtdMSjw3VFPd2qF8H07+i WZed4A7/xq5iDgA/N3Ftbd3djYu7oPEUsB9XuZGD/clVVMdjOVEWQ9a7s+9u+ZJnUMpd yco3t6IxhW44AR7KmRiiLoQ7wlkXpqpq6pFmWvHx+gOGBcrFvML5/8/eY+Gx6QugNLLD QozNDz7Hd3kAQclgng10nySG7vLZiLVj1KEMyQsThbaLo+6m1GCpClfRdpIcMBmPTBpT bqZjwI6iFAHdTSKnHB+qqUGX6CVZE3JS98CQmM8S69s3DG3mg21PDXOfnQ64Qq36YQgf 78bw== 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=vVMTmSrA/Vvg8teae1D8ghNLp0AkTYo0ACCBpGnJXF8=; b=eneFd8tO9jsvuX5DzIcnIPjuZvicX4hxrudz1eGL9203RkJEiys/tteLP9yUR3OobD TGR5Fp8VbHQLmeSCdOKhRMhTSMTyRTQp/+cqfewDRC/0rmqjInwwJxhltk5zd2G7FaIf FHDxb2ploH5+ml+2xTDKLS6Beg/GV/jJRApo8vuU+WA4YgTm7+JG7zIzmlGapS313DdY pt5QfobP24FwwSZgszOtfRkAXD+0WlJBq9RwQe5v0jhl6kAhl+HFX+mnIXA14x+0K0Yr /DEf87BJDDAKrfcfCGpJE9ak9WOtOiOJDwhJTq5FsfkRHZNIBVsCUwbgs8BE2EJcKZnJ em2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J0GJJ9ym; 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.52.05; Sat, 31 Oct 2020 11:52:05 -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=J0GJJ9ym; 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 S1728448AbgJaSwE (ORCPT + 6 others); Sat, 31 Oct 2020 14:52:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSwE (ORCPT ); Sat, 31 Oct 2020 14:52:04 -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 2079E20729; Sat, 31 Oct 2020 18:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170324; bh=tOcrwtbSr7hbcaF8Jv3E95/oHdOCgnCEyE5zuMQCuk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J0GJJ9ymvQ+NSSbeLP9HuyeqTHC6hApz7L2AM0zQRWeqC4xjgzioaF+ZAdDipUHUo /1z8RF7hFaXrf/4ijhVXX0y8bZdJ6x6nLMZdteP1nN8zs40/XQh3AkGciAwFFIVSoU YLRR9Q2kla6TRwum1ey22+IceElicQhrU6psdkMc= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron Subject: [PATCH 25/46] dt-bindings:iio:magnetometer:bosch, bmc150_magn: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:33 +0000 Message-Id: <20201031184854.745828-26-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 This describes the bindings for both stand along magnetometers and ones which form part of a multi chip package. Given original author hasn't been active remotely recently I've put myself as maintainer for this one. I would of course like to hand this over to someone more appropriate so shout out if this is you! Signed-off-by: Jonathan Cameron --- .../bindings/iio/magnetometer/bmc150_magn.txt | 25 --------- .../iio/magnetometer/bosch,bmc150_magn.yaml | 55 +++++++++++++++++++ 2 files changed, 55 insertions(+), 25 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt b/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt deleted file mode 100644 index 22912e43b60c..000000000000 --- a/Documentation/devicetree/bindings/iio/magnetometer/bmc150_magn.txt +++ /dev/null @@ -1,25 +0,0 @@ -* Bosch BMC150 magnetometer sensor - -http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf - -Required properties: - - - compatible : should be one of: - "bosch,bmc150_magn" - "bosch,bmc156_magn" - "bosch,bmm150" - "bosch,bmm150_magn" (DEPRECATED, use bosch,bmm150) - - reg : the I2C address of the magnetometer - -Optional properties: - - - interrupts : interrupt mapping for GPIO IRQ - -Example: - -bmc150_magn@12 { - compatible = "bosch,bmc150_magn"; - reg = <0x12>; - interrupt-parent = <&gpio1>; - interrupts = <0 1>; -}; diff --git a/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml new file mode 100644 index 000000000000..cdef7aeba708 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/bosch,bmc150_magn.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/bosch,bmc150_magn.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BMC150 magnetometer sensor + +maintainers: + - Jonathan Cameron + +description: | + Supports a range of parts, some of which form part of a multi die + package that also contains other sensors. The interface is independent + however, so a separate driver is used to support the magnetometer part. + Datasheet at: + http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf + +properties: + compatible: + description: + Note the bmm150_magn is a deprecated compatible as this part contains only + a magnetometer. + enum: + - bosch,bmc150_magn + - bosch,bmc156_magn + - bosch,bmm150 + - bosch,bmm150_magn + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@12 { + compatible = "bosch,bmc150_magn"; + reg = <0x12>; + interrupt-parent = <&gpio1>; + interrupts = <0 1>; + }; + }; +...