Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp448232imm; Fri, 12 Oct 2018 00:37:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yrQfCJV5J/EnRv0AnjZwy727UuafGKxoaYJVzBtf9JsNsnh5FOcXtFT9RuAkPnm2MBPZR X-Received: by 2002:a17:902:b287:: with SMTP id u7-v6mr4744101plr.123.1539329836907; Fri, 12 Oct 2018 00:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539329836; cv=none; d=google.com; s=arc-20160816; b=mQdlLeLTq3ZYYDSPhH5an6JESMHRczQ4MEqgWtu6pwKJvf3mZ605mS9FrifTyJ9Un7 sOdU63hWgP3zEO5OW+eV0dCDDz0cnY6psvUCbTXCcGTY0yKkIhMaYKYpdl7pz9adt4Sa N7ToRUjsf4/7NdKzdDL2BNU3aiSTDEcoDa+Ref54iB/lFIsi/gMsQUcMRh5ysS556bkf CRGj60EIOABlD5frvNak4pn0W1COV2N3F4Q6wqrZogcTlSoBrc25B2LXcZXrSKVNfcNr IjSePQPEMpeu6B3IAznUttRZeKjHcHH+1KG6lJee56Bjw6dk5Hkc8gbJFNwqC9fPdyO7 Dh7A== 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=xWvWgd8ZLrwsxkKDcrbrw5u0Mv4V7woGCzzE71a7X+s=; b=QpQycMn5bsQaIdwwJCxfBYBw3uHqeAiuxlMO1s2j/4ApcaXTS+r7Lm46AFMb5Ct0IX rFJheMiPUL/nAHbdgFwDDyVUaFV2SG8WjklyHZbgh63a9cT5w1pCqNza8k7TipYlcD9h 4pFWR0L4Hyw4CkKmdQ9rhxz3DxBKan+0LlSd82EBPVYS4xX0szQM5nAwGe39b3dKTOjf d651yaKePrxFIWKqunPJM2axEXKPMLuYkyOVzINdrkbJxe+cwIs2ebqEbwiLV7w1IWzQ FAXS6JFoD/tiuqB8zDMTUWgFhuF1HHQWcOwdu8dmEmIIeliaVZrk5HdZcxkQmDtVpP4B jwwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K7TBkxod; 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 b6-v6si441881plr.267.2018.10.12.00.37.02; Fri, 12 Oct 2018 00:37:16 -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=K7TBkxod; 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 S1727791AbeJLPHd (ORCPT + 99 others); Fri, 12 Oct 2018 11:07:33 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44358 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbeJLPHd (ORCPT ); Fri, 12 Oct 2018 11:07:33 -0400 Received: by mail-pl1-f196.google.com with SMTP id p25-v6so5497726pli.11; Fri, 12 Oct 2018 00:36:25 -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=xWvWgd8ZLrwsxkKDcrbrw5u0Mv4V7woGCzzE71a7X+s=; b=K7TBkxodYI6iWlNqF47X/gbU/rw8qh5338UV+WLupAndRBzAdzrhXObtRpnp+4WGZu sToGtUyDqN6zAHQ1styu+zQuLeTbTV4/IPcauX4qR5cLLzmNYgKaHvzY230wsTPMACSF jXIWWknqx7pqofUqBoI7+30gAwdWffD2ddLarRp+xiDCvOKKj25ofucC//6WxyXUjAUx xDOEyRdxd057/SJr0BNews+Zv7qs23ITi27fCN19a8jMTyEuyoPhnPzg88TQRwGc3C1V 9qv7m6b4NV6Ja3Zp7NlI1UpoG46r9u4U1c6cEMUCjG0NPqJIMLx9pCSjtbSiCRaUJO3G iuBw== 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=xWvWgd8ZLrwsxkKDcrbrw5u0Mv4V7woGCzzE71a7X+s=; b=rzrrDybFYvJoswnY2LI/pWD+pXWMnZZO50Ql8iv7ycKvuAgZ6hssg1XgikJnZ2eqRD dkMmVDahy2xc2LlonQbMVLtIV6xQOcMRiDNbyJ2t8eBd0bPFY8oVbFzYE4ho1pqgX21+ eoc3aE312X+nqBwURWGbf+F5rzaPyt3oEthTmAHItvHmktDy050H5gPx1pquZe5ZvXuS Uow9BDcIkB9DgoprBNuaEP7qEcwRzEUZJSS8zFjnDPjmlxRlUmCTdAo7nu2BJumiJR0g 4y2bapLkdDwYFnuxuGXxvb5Ns/j2OyrCEig0LAi22+XQSA0JLXsiNpVcTHhtHJrjTQkB IT9w== X-Gm-Message-State: ABuFfoh9emYe7IJV7faPjGXBNDnrlfkjIVA6MTR7niM+6pIeAs/wwnKc GDFF3H2I6ouQFyMcpiSj+cA= X-Received: by 2002:a17:902:9a98:: with SMTP id w24-v6mr4858822plp.109.1539329785477; Fri, 12 Oct 2018 00:36:25 -0700 (PDT) Received: from localhost (104.176.229.35.bc.googleusercontent.com. [35.229.176.104]) by smtp.gmail.com with ESMTPSA id b29-v6sm849382pfj.183.2018.10.12.00.36.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Oct 2018 00:36:25 -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, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Song Qiang Subject: [PATCH v4 2/3] iio: magnetometer: Add DT support for PNI RM3100 Date: Fri, 12 Oct 2018 15:35:35 +0800 Message-Id: <20181012073536.20339-3-songqiang1304521@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012073536.20339-1-songqiang1304521@gmail.com> References: <20181002143812.3661-1-songqiang1304521@gmail.com> <20181012073536.20339-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 --- .../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