From patchwork Tue Oct 2 14:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Qiang X-Patchwork-Id: 10623787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBF2E15A7 for ; Tue, 2 Oct 2018 14:39:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7BEA2022C for ; Tue, 2 Oct 2018 14:39:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA6912022B; Tue, 2 Oct 2018 14:39:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 644B6201BD for ; Tue, 2 Oct 2018 14:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728298AbeJBVWQ (ORCPT ); Tue, 2 Oct 2018 17:22:16 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33362 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726118AbeJBVWQ (ORCPT ); Tue, 2 Oct 2018 17:22:16 -0400 Received: by mail-pl1-f196.google.com with SMTP id s4-v6so1752535plp.0; Tue, 02 Oct 2018 07:38:33 -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=y36XYKkez6p4T37YSXThy/rGPtDxwLlvwG+ZmFEWQ88=; b=OnpS0aGOZVqHkFjFp0EEJ4aencGU/PLQau1EEUbF3pda0q/W7MTQM9d+nPHT8lTf7j oLZW0GwPiB3i3KfSMxtMwvQeiCdSZ9Pnbhj6sUyWX+gWIni7eslc6g6BpPdPOUINGc8Z IfGIePiVPN2wGOjI6LdsQ2KIi+YlbZ5jbaU3ovEWAem1p/LtwIBsgjcpbNCCbjgUcOPU ZAbC5YURqzFHAXpUI/jyo6Zt60pImhgh7cizhIoCqQH9ZZEn6g05zuXrdMA6xhl/m3Di xC4q9gCmDSwZ5Cv58nKhIV0VIapYLSh5A342CN0pC/zTbPVCtMh/nkTY5gqkGiY1EC8l yBdw== 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=y36XYKkez6p4T37YSXThy/rGPtDxwLlvwG+ZmFEWQ88=; b=aUlFxWlDSnX0woySaEzmt3U+lbE5o5shMjjSXEvtm+DPNIGnCPiitaJDyRglt6ghC7 oKUgi0xdFXmbLERrGplTg9oMyr4LumcGDpyD5qDxopP6j+STO8W4B0V8sA3Flcp7s1mW +WZH1EdK5MIvdCsEEs6yUNSPM6914/D5XssqWw7jL7TJmkjt4Q7w1SQqkMI6fK8Dslzv NyJNDiUCU1Utb9CUYqiQvz1H8wFANtmkCsc6BZTcVwM02aN0OAXRzROMEdhT3R8nIFfF FD3cIXwg+ng7VZASndEZQdaVwAWO4pS+y9z1yFYE+P9LurAyNPAVV4VJUhN8S62Y2fZR gSTg== X-Gm-Message-State: ABuFfojnv/2zyQimKm++A6ZN7EoLERfp6xxMZ3MDSf2VMk1kzHbsXY00 lBgpyhDCeiS5NdjlZtM/R5s= X-Google-Smtp-Source: ACcGV62i9JNo43WmIXbk1YhQ4MU9RqnqwCPxoobE3sqV+X1rL4G63Liqxw3LHO/5wun81RV1HOPnAg== X-Received: by 2002:a17:902:2808:: with SMTP id e8-v6mr9207606plb.327.1538491113671; Tue, 02 Oct 2018 07:38:33 -0700 (PDT) Received: from localhost (104.176.229.35.bc.googleusercontent.com. [35.229.176.104]) by smtp.gmail.com with ESMTPSA id u21-v6sm18009210pfa.176.2018.10.02.07.38.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 07:38:33 -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, himanshujha199640@gmail.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Song Qiang Subject: [PATCH v3 2/3] dt-bindings: Add PNI RM3100 device tree binding. Date: Tue, 2 Oct 2018 22:38:11 +0800 Message-Id: <20181002143812.3661-3-songqiang1304521@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181002143812.3661-1-songqiang1304521@gmail.com> References: <20180925031724.21399-1-songqiang1304521@gmail.com> <20181002143812.3661-1-songqiang1304521@gmail.com> Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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..4677690fc5d0 --- /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 rising edges. + +Example: + +rm3100: rm3100@20 { + compatible = "pni,rm3100"; + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <4 IRQ_TYPE_EDGE_RISING>; +};