From patchwork Sat Oct 31 18:48:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320148 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451660ilc; Sat, 31 Oct 2020 11:52:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+UidGw1BhFpUIleylZVQLJGKsXPPIEZ1dl2sQ+AeHXZImYgK3CGol5fNNdYxirykvneuq X-Received: by 2002:a50:f316:: with SMTP id p22mr9019818edm.201.1604170328779; Sat, 31 Oct 2020 11:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170328; cv=none; d=google.com; s=arc-20160816; b=k06nydqgkGdT/jZr2xdYIeYfUsPWT3p19+W53NXpg7TjG8ku/ahmKMRt4Mp7HVdBRf iVPt5vKx54VDleV5qAySbuO7xAJgATqU97ebFL+71PEynRTs8jheRfDSpurHaDPO6G4t V1gAlIVqeQ+Zr+tmT54XArxk4EcW2Us7nhoU+LfaV/74CUEh9nnt6wf7wvTeAL7oxuFM skNKtdWHdatUUxPlPJE/RAMM5m1YgjiiprDrJaJi06MFFDYuinKjpBbE8Jw6AFrxKh5l 6KuqPqSNTv1ys5/ZO1AgnlVWvKTbkHKExlVSi4X4wOxnDbLMTmo244B8aStIK1Y72sHW sJVg== 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=iieXr0EeXIUI6H+hkNZwhz4ryOQU9RwP3O9v5IZhYVM=; b=CJtnYb3ZxmP6uymZSkVcJD01c3V2vgs7uAmSKe9Pwtr25o+5DhbgG5pA0nz5DtIW+0 cyjGa/G1px/sYojkroAB9CpXDlGEsyHXq80mO3bcwzvoiaTsO5IZZmV4RQNWMtC5+Woo IowKJoEnXAfBZZ/gfnkDwFPzQlOWfN+E6NAW5e0egQ59+nt/wWzJ53ErKRjVFeFKUKnO 7xEHGSwnMQVy9aFSFx5i29oQp2Bg4g3Xeuh5r4CPrAsmUbajBvv9hhHPaWtrmlHo034R p0cwBeVYQFr+QxJdR984c6leu2v0T+JI7v9q7GVnamCCfU7oEMFgu/xRY+OKvLOcW0Xt 0OYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cgi159GZ; 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.08; Sat, 31 Oct 2020 11:52:08 -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=Cgi159GZ; 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 S1728452AbgJaSwH (ORCPT + 6 others); Sat, 31 Oct 2020 14:52:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:35440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSwH (ORCPT ); Sat, 31 Oct 2020 14:52:07 -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 CEB812072C; Sat, 31 Oct 2020 18:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170326; bh=7/W6pWkdZfo3RBWAX/m2CGUiB8efM1eukGKrO2FOxTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cgi159GZ4sSnk9QHNFPnqo4D4ZODh1Nm3KwnqXHKr+pRIFfvqIuAqFIXV7zlznL81 gUZ2JaCnN/XSZEfDCHxeKhdQShgIejcSJOOS+jJXnLTrlR1SaXmBxfu0Wnjvqn+5vk g3Y2NzeJXEUAnypTNgR5ZC6yEtp+XHgOJaIovE0A= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Song Qiang Subject: [PATCH 27/46] dt-bindings:iio:magnetometer:pni, rm3100: txt to yaml conversion. Date: Sat, 31 Oct 2020 18:48:35 +0000 Message-Id: <20201031184854.745828-28-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 Simple binding format conversion. Signed-off-by: Jonathan Cameron Cc: Song Qiang --- .../bindings/iio/magnetometer/pni,rm3100.txt | 20 --------- .../bindings/iio/magnetometer/pni,rm3100.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 20 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt deleted file mode 100644 index 497c932e9e39..000000000000 --- a/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt +++ /dev/null @@ -1,20 +0,0 @@ -* PNI RM3100 3-axis magnetometer sensor - -Required properties: - -- compatible : should be "pni,rm3100" -- reg : the I2C address or SPI chip select number of the sensor. - -Optional properties: - -- interrupts: data ready (DRDY) from the chip. - The interrupts can be triggered on level high. - -Example: - -rm3100: rm3100@20 { - compatible = "pni,rm3100"; - reg = <0x20>; - interrupt-parent = <&gpio0>; - interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; -}; diff --git a/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.yaml b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.yaml new file mode 100644 index 000000000000..a845cdd23e7b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/pni,rm3100.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: PNI RM3100 3-axis magnetometer sensor + +maintainers: + - Song Qiang + +properties: + compatible: + const: pni,rm3100 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@20 { + compatible = "pni,rm3100"; + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <4 IRQ_TYPE_LEVEL_HIGH>; + }; + }; +...