Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1815262imd; Fri, 2 Nov 2018 00:43:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5efIvMI+SvI7aKVPWIfCebYFdB/CjsYtUSiAvtoO2ZJ3PolI+9ymDgDGS0cCNfdFLYIgklb X-Received: by 2002:a63:f710:: with SMTP id x16mr10115736pgh.322.1541144632473; Fri, 02 Nov 2018 00:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541144632; cv=none; d=google.com; s=arc-20160816; b=0S2iXnegMwKklXQgQXHqXTY8ZVJPWTeee/JiV6cp+plZ86ztsOf/Lzk6o4llLq0mhW H3UIJ4rMlzTLmisXCl/DN1J1l/WJLmcAkDcz95iZCetlVHpsmVT107MbOB0CB6bD8Npr a1Mtab9exk1hE4YhufStCUmAboWaV0RVWX8hqsn9fqW9EaIlTJf/q2qE1AzVgPsc1174 G0zZO2fEdjzY2mk8t3jt0Xhc750wOAMa5HAEDKsXm22Ni8ka7gzzoyzawPbAiLH9ZOy5 B2addcu43AwhHf8vm1xCbBhMqdAD0viGsb8XzYyMpQL/k/nVzo/zzFoJECzDHV2ohcua Mzew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=udHYAOJoq7dBu2TG+Rke+TL45YsKhdHuhHDaVlLoj3Y=; b=Zfp5JcPGMzSpiueB5+FkmATkHaLYBVVVu6RhITVa/oYbCOp1jng6gQJ1c7Bwm5f1YC 3zL7PzmXrK9IjhVoPAhLj/JApHPYSQSX/XlvYlMJRVtbvauyGP0dcb/31m8HZpK7JVcx KKCxkjwAJ5RWriGtI8suhSyH7tVB8PLNXqBDYRWL6P3jJ248qkpv6q2rIvQj4E3/s16y ky196DXXVZ3DiqTKiOkSd9L/IqnSWgwkUFHPYuz3Jb7VYeRjUyvDuy95Blh4BSyd8T+7 PvSvN1REUJqABOzhU9ZmDIyzz7zdIP44FQ9VTbZR5vVHWR6A20+iB660QC/6emXCp+ay xw7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L3mLeIuf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si4036911pll.58.2018.11.02.00.43.38; Fri, 02 Nov 2018 00:43:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L3mLeIuf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728541AbeKBQsw (ORCPT + 99 others); Fri, 2 Nov 2018 12:48:52 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33265 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeKBQsv (ORCPT ); Fri, 2 Nov 2018 12:48:51 -0400 Received: by mail-pf1-f195.google.com with SMTP id i62-v6so643200pfi.0; Fri, 02 Nov 2018 00:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=udHYAOJoq7dBu2TG+Rke+TL45YsKhdHuhHDaVlLoj3Y=; b=L3mLeIuf7uUKk9oYWuTYKNZaG7ABDqYeTmWNXzsGegF5wlLn1zVqfHL6KiCbPytV1D Gxirfv9SUV/KntqfA8LVsGw8u6W2j4yiikQCiworOp+xsxA1HmMn2Uwvv0ZNbPzum5Av fvWzYE9faciKQ/q4hJX0wrIeVA/Y2kPv34P5pvkQBA6XrbbJSmvj6Ix4hLlk0QjhGC4f jHSWm9i4Ak9PQVBjOlomzQRnLi4V7BrDC88cH0u9yI+JZFBajpgmTB+Ovz0V4NvxxKa+ z8qOYzxDbDWl82cWdYLx+C0VQcsdVDIhei3pAHNY1R2HV8uQ+oTpckeJx2WPRCxSBevB kWSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=udHYAOJoq7dBu2TG+Rke+TL45YsKhdHuhHDaVlLoj3Y=; b=OlisQa7RVjgRwnRnS4hS7DK2KdEcxiUmtSjq+W3NXolbAXgYhRqO/uoB6w+ZckeDWe B8EI9KQcgV2+LalI3thn2xpNAZ2Dh7+1ZL8VnKZxKHyb3atNDsxWDVO8l7LAWgO7GQHn JZQk6aFSldc21046u1cZjnkLR6xJvqpw+JfSyj3kCLeOQUrt+PVNXhPL4JQjtBN+mHrI wTRk3st1v7XaCrCZ5kB/DS7+rOUbjkARS+/q9MbaRzGpcm1kvrzXrOrcf5n+LmHYEFSR mK2HTuCg0l+PVuFJSXgE4Ky5T6N4Z5QU7AwRYTSn3E/0rqbwu7ZZxWe+YcT+BRJUKTPJ kzrg== X-Gm-Message-State: AGRZ1gKhpnybj6Na6kHqhxpJpDb0Su7deFCQsAlOEitfbUmDT44IxaHL 7LBQ7oYye8gX1XI1aTha2Dg= X-Received: by 2002:a65:664e:: with SMTP id z14-v6mr9708682pgv.347.1541144557777; Fri, 02 Nov 2018 00:42:37 -0700 (PDT) Received: from localhost (97.64.17.87.16clouds.com. [97.64.17.87]) by smtp.gmail.com with ESMTPSA id y88-v6sm25349038pfd.104.2018.11.02.00.42.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Nov 2018 00:42:36 -0700 (PDT) From: Song Qiang To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, preid@electromag.com.au, himanshujha199640@gmail.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Song Qiang Subject: [PATCH v5 2/3] iio: magnetometer: Add DT support for PNI RM3100 Date: Fri, 2 Nov 2018 15:42:08 +0800 Message-Id: <20181102074209.12620-3-songqiang1304521@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181102074209.12620-1-songqiang1304521@gmail.com> References: <20181102074209.12620-1-songqiang1304521@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Song Qiang Reviewed-by: Rob Herring --- .../bindings/iio/magnetometer/pni,rm3100.txt | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt diff --git a/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt new file mode 100644 index 000000000000..497c932e9e39 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt @@ -0,0 +1,20 @@ +* 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>; +}; -- 2.17.1