From patchwork Sat Oct 31 18:48:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320144 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2451619ilc; Sat, 31 Oct 2020 11:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFgfFSDWei7CPh2RNflEMM5wqjioS1pn5uvAFKmBpckoEW+EtQJZSg25K/K7efX8G/f+Wv X-Received: by 2002:a17:906:d20a:: with SMTP id w10mr6480005ejz.3.1604170323109; Sat, 31 Oct 2020 11:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604170323; cv=none; d=google.com; s=arc-20160816; b=EPj5m07MgdjMoWnoI8HByaM5LZfhHL4uEifkx3+259qR2MiiT7CbsjMBbjUc3B2tcf ynMJBLNXs5z+744HgLtRJBUF3B8E/GXwYa+NKdf7XmG/GE7l34vyRrzMa08vBMFMCBI8 pl0chVjnGMZWvjmneu8hFBU338PR4f/mkvPACoy/VFWiJYW6OpVPy14V5ecPhnDz08gz 02/8t5yijQBX//0if6QC6pX/XcfKDltMTKCVsokzKQw0pPIarZG0gYQm27pQGOSKXezo pLUe6LIGxe+rFh4OO2WhJ1XK45+quD///qpCJeYiObavmT7Q26TL0/9iruNWxemCduZ+ vM9w== 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=bnSBGPCXLf209qS6+1Yq4J3TcD+479e9jTN60dJOWFU=; b=IvULr4R8XyStC/DXElO3as9qaXuqkOfB11sGmlOpYjA9BJsim9IZf3jh53rn1AXV2M 0wurXBh+z0VkJhSivbcvBdz4FDsQRdTbbx9bmUZJktD+cb38gpFxkxwlUJ6xB3BUQwPC FZ8uP3Uoacg4d+fEQDCN7PHFOTTQHnJxLumTMmYDGJzry5aqXRCCeh1BH69I8TXkqOt+ MH5Qd2DRKhQbo+jSekeM1A/MQ4cwGrvzkAOaIhZTT+M/d02J82atSPSnqC/wlJD6JZh6 L6+GS3wtFTvnGDmC44aMCdOdy0yd0nSYvoY7sroy5J8Lb19K5sB6kmGHv4I5mObikPzw qlWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DJ5CcmD+; 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.02; Sat, 31 Oct 2020 11:52:03 -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=DJ5CcmD+; 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 S1728444AbgJaSwC (ORCPT + 6 others); Sat, 31 Oct 2020 14:52:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:35292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728399AbgJaSwB (ORCPT ); Sat, 31 Oct 2020 14:52:01 -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 3F8D92071A; Sat, 31 Oct 2020 18:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604170321; bh=Nu2J9vKa1fygViBKeycZdTwrrBZvrFRMzcwEz4+VvgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DJ5CcmD+xZGItti+vzbWQD9zWPB1sWl9cqFHqlCRZSrFIPsoYavXd57ye6PNiUP1z 4hMYltUgD6L8xPm9pB9C7p65shdyNZ2OQJTQl629pgzax9ymZSBYZc0d/CH+DaSAkA jBafqGlSo2zeXs5SmPQCE8bWrxajqDpzBInLrx4A= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Anson Huang Subject: [PATCH 23/46] dt-bindings:iio:magnetometer:fsl, mag3110: txt to yaml conversion Date: Sat, 31 Oct 2020 18:48:31 +0000 Message-Id: <20201031184854.745828-24-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 Dropped a few bits of help text in here that didn't seem to add anything that wasn't fairly obvious. Otherwise simple format conversion Signed-off-by: Jonathan Cameron Cc: Anson Huang --- .../iio/magnetometer/fsl,mag3110.yaml | 48 +++++++++++++++++++ .../bindings/iio/magnetometer/mag3110.txt | 27 ----------- 2 files changed, 48 insertions(+), 27 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml b/Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml new file mode 100644 index 000000000000..6b54d32323fc --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/fsl,mag3110.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/fsl,mag3110.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MAG3110 magnetometer sensor + +maintainers: + - Anson Huang + +properties: + compatible: + const: fsl,mag3110 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + + vddio-supply: true + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@e { + compatible = "fsl,mag3110"; + reg = <0x0e>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_mag3110_int>; + interrupt-parent = <&gpio3>; + interrupts = <16 IRQ_TYPE_EDGE_RISING>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt b/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt deleted file mode 100644 index bdd40bcaaa1f..000000000000 --- a/Documentation/devicetree/bindings/iio/magnetometer/mag3110.txt +++ /dev/null @@ -1,27 +0,0 @@ -* FREESCALE MAG3110 magnetometer sensor - -Required properties: - - - compatible : should be "fsl,mag3110" - - reg : the I2C address of the magnetometer - -Optional properties: - - - interrupts: the sole interrupt generated by the device - - Refer to interrupt-controller/interrupts.txt for generic interrupt client - node bindings. - - - vdd-supply: phandle to the regulator that provides power to the sensor. - - vddio-supply: phandle to the regulator that provides power to the sensor's IO. - -Example: - -magnetometer@e { - compatible = "fsl,mag3110"; - reg = <0x0e>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c3_mag3110_int>; - interrupt-parent = <&gpio3>; - interrupts = <16 IRQ_TYPE_EDGE_RISING>; -};