Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp889961oof; Tue, 25 Sep 2018 06:06:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV60wMLQPtwyqFnXiEBTDe/nwebZbo6g4F1ChjV1Mt8K8NlUPbevfIVGCy0k5+wwFR20XowYH X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr1013275pgg.97.1537880798972; Tue, 25 Sep 2018 06:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537880798; cv=none; d=google.com; s=arc-20160816; b=oJiOaimbENFQwixXtyA7pFzSvg6ENeuYBXke6dfuv46OM17kYQ95cBv08IeKxUCkGg 0Xx7Auq7dLEFnoARx4ToBqnU7sQEO4MaBPb1WFTbTrcY8Oza4+2oUlkdlRY10mOwtLB1 33O2j7E2b5oHIePAu5z1Vgr4P4Ee2rhn9ZeTaVJvLXx0M+cog5HJi67tZTi/L0bFjgkw sc3EPL86CU2ouwAOlr9ao/zhlFjkNNy5BHH4Vgt9azP3MRvvoqxzjYSu3zwx1TRvLn2J r6geAr53L3r4OsO9ihuzMR9EWRKS/vYAdovZOt/HmKBhigl1VGXJ+dCbOwYgtPzz6GxQ 6QWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=zWbfyeo0ThTqNcMSN0kP/zmP0SA+Huid+MzlRDgqhnc=; b=VqhNAoh5AD8cYl105MsH7ZSE81djHv+/s0TWP5o6LvrAqmJej//LhojlIBnCKEEdMn /ZwjostA1IDVyArqY3SAme8A3GE3Sff9JN9kRlCHlqKElafG+QKxThI3oPiQnLjFfmh1 YA93FSU3Sncprdk0naXyO2Z3sxnxLINHv8BtJVO7+ubBy4GMwsv3eoeDS8KCNddL5MN3 3Lh4sRFhqs2sdAgPxOfpxCHczxQOAQdwXdxYIFkYSSlTs31Kij7wwitrsremwAQodaqq fIS9aHvU/Sd/4CNg0/iUfxMdwYk8uaUKBUAoE/YPQVceQdc6qawlZj1cNg34kr4RPNc4 Nh0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2-v6si2357051plp.144.2018.09.25.06.06.22; Tue, 25 Sep 2018 06:06:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729015AbeIYTNp (ORCPT + 99 others); Tue, 25 Sep 2018 15:13:45 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12700 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727165AbeIYTNp (ORCPT ); Tue, 25 Sep 2018 15:13:45 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 497DF521CB4AA; Tue, 25 Sep 2018 21:05:48 +0800 (CST) Received: from localhost (10.202.226.46) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Tue, 25 Sep 2018 21:05:42 +0800 Date: Tue, 25 Sep 2018 14:05:30 +0100 From: Jonathan Cameron To: Song Qiang CC: , , , , , , , , , , Subject: Re: [PATCH 1/2] iio: magnetometer: Add DT support for PNI RM3100 Message-ID: <20180925140530.00005fa3@huawei.com> In-Reply-To: <20180925031724.21399-1-songqiang1304521@gmail.com> References: <20180925031724.21399-1-songqiang1304521@gmail.com> Organization: Huawei X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 Sep 2018 11:17:23 +0800 Song Qiang wrote: > PNI RM3100 is a high resolution, large signal immunity magnetometer, > composed of 3 single sensors and a processing chip with MagI2C Interface. > PNI is not in the vendors' list, so this patch is also adding it. > > Signed-off-by: Song Qiang Hi Song, Please clearly mark the title of the patch with V2. [PATCH 1/2 V2] ... (or I'm also happy with a cover letter that does the same though other maintainers ask for every patch to be marked v2). This makes it easy to quickly short the versions and check we are looking at the latest. > --- > Changes in v2: > - Remove bus specific part in compatible string. > > .../bindings/iio/magnetometer/pni,rm3100.txt | 20 +++++++++++++++++++ > .../devicetree/bindings/vendor-prefixes.txt | 1 + > 2 files changed, 21 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>; > +}; > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt > index 41f0b97eb933..5bf3395fe9ae 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.txt > +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt > @@ -288,6 +288,7 @@ pine64 Pine64 > pixcir PIXCIR MICROELECTRONICS Co., Ltd > plathome Plat'Home Co., Ltd. > plda PLDA > +pni PNI A quick scan around their website suggests they are actually "PNI Sensor Corporation" I'm not sure how fussy we are on naming in here but probable best to be as specific as possible. > portwell Portwell Inc. > poslab Poslab Technology Co., Ltd. > powervr PowerVR (deprecated, use img)