Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3521819pxv; Mon, 19 Jul 2021 02:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmk1+a5O6WhTfTetmTA7ZCChngYfreEvbui4NQqQu7UDzNdEEXhUoob44sQKnUR52qRtHB X-Received: by 2002:a17:906:254b:: with SMTP id j11mr25986288ejb.187.1626685932597; Mon, 19 Jul 2021 02:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626685932; cv=none; d=google.com; s=arc-20160816; b=jV3BRK6q93ZLRopodTeOLp5KXZ/XCHVsZYDUevUarwFPTBOicIgjWJ0ZXrCeBgsk1P zZVkUJDx+fwz9veNKVcv5rVZQ25a+OzReXl8QXEJqjf64DjXluSRECJIu7hN6rZfRx0g uzmehx6ccPfH67BAhJUjHYAXkSAefwJyNwBZrus1NndAtGd3lsuIXT7btY9k0U4Sv9Yv yFohrfpLpRlqgSWkUdUjBHZSkoIXAujWT3Ct9XEBvxgtV9V0wBkGQn9QeZxMaJJ8PDrG hbS5S/EDMvGiRrv4XJ7c/cobMHXWBpEYJTBSD9GTXtP8V99IKA8mJw5VPNE2NwdXhTZ0 Ebrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=17mSjGJ9fsRSswzgwTitDY8y/XvKmjWDgDcVGv33dcM=; b=ltwgH6jd84eLekW8C6u9oOZWWw1Ee6YbNCQb8XEXX5R3AeifIj1/2wSqMPh/klsETj UrAjl3/ged0bKeoiJTNUdb9svA6fh5EdmMDIDCBWWWvWawpVLiI43rYTDGglMXecdGLv YeGTU8knS6+LwKCxfQgjGnWjn59bycoLnhdudq36p4K2rLroz/hUrX35KQC5p5WwgbQS Uz2xlk9FgqjlUrjgDoF+TsKcTjs/bxUPea9Wyqr3QlSmDjNC/a3VsjtplTmJZWnpdUOl VtLL+TQClVI4oP4CFrh2aZdbqalbHPYJ3lWRc6MPF9Ywm1C0iRjYKyFmglWn8g/XciS+ 52Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BRky+81d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id m17si16338130edc.467.2021.07.19.02.11.50; Mon, 19 Jul 2021 02:12:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20161025 header.b=BRky+81d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S235767AbhGSI2F (ORCPT + 99 others); Mon, 19 Jul 2021 04:28:05 -0400 Received: from mail-oi1-f179.google.com ([209.85.167.179]:41633 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235129AbhGSI2F (ORCPT ); Mon, 19 Jul 2021 04:28:05 -0400 Received: by mail-oi1-f179.google.com with SMTP id t143so19974252oie.8; Mon, 19 Jul 2021 02:08:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=17mSjGJ9fsRSswzgwTitDY8y/XvKmjWDgDcVGv33dcM=; b=BRky+81ddgvnKIrxX630Oda5Ci7yXLdzKcFeXIcpPYWHmZvBT0SyRoBCevIbbEaxS/ DH6RNBWmWOPnAuz4WXs3hMVwDn+0xps8Mynt45Mml6xm87OxGnCkfO2SKN/5mxnkA4kp wDjPuS64kzZaBxgSV9ShNi4KtTecgm2YIBfg0Qnd6x0Ou/n7t2ZbtVkKra77EZaORFwc ujCVa+OOVO5P6OlpcLs+aazaLKpDL23Hv91M9wCTd2BWHOA0ypjTo3oyr1t4gGjqWWPF XrfEhqmLN0lPv5bVoEBtm8fot9PSeOAqvnU2fnVVcmIhdUUXc/kGmRHgSaf0tFjIiqig V42g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=17mSjGJ9fsRSswzgwTitDY8y/XvKmjWDgDcVGv33dcM=; b=jIvkm5sEhNGh7kxbFCChJLIWcZWOAIryAD603kZrZPMR0a5ezYbZX5YKRKiLykwnvX HSWfs+0c/z7RXLyn1U7hLvTUDK3BAq7f3r8dglRrQGr+OyrKIPGOTcgaDIOBdKWhIb4w i6sfLzx1JWFRkmQY2vk4KHeuUiOck7iXNclNYkG+ZT/vXNZAfOR2n3KPZpBQSkNXnOtM qBAEwMj5KbVKB7kAesXeGO4KqjmFQtR/GKdC+d3tp+BJVqJcVuYpQxK16yG1gaByCE44 jYwaxiFz3gWudBeU03ZmFKw2bYDTyDdqqV188D/qAWdsW/CpEYq1tnEvGtPzzB6uXDXD aZGA== X-Gm-Message-State: AOAM531Er2ngXpzLF6SuPE2iBoqOVn+NHwjrOhfK9YE70U1aHK2wTkgJ phoXEZgjPmH+DtgMN8cj0RBxqlkjT+xGh41BH+gjpvwkKDR/eF5Q X-Received: by 2002:a17:90a:7e16:: with SMTP id i22mr29885373pjl.12.1626684268331; Mon, 19 Jul 2021 01:44:28 -0700 (PDT) MIME-Version: 1.0 References: <20210715141742.15072-1-andrea.merello@gmail.com> <20210715141742.15072-4-andrea.merello@gmail.com> <20210717163900.657ec48b@jic23-huawei> In-Reply-To: <20210717163900.657ec48b@jic23-huawei> Reply-To: andrea.merello@gmail.com From: Andrea Merello Date: Mon, 19 Jul 2021 10:44:17 +0200 Message-ID: Subject: Re: [PATCH 3/4] dt-bindings: iio: imu: add bosch BNO055 serdev driver bindings To: Jonathan Cameron Cc: Lars-Peter Clausen , Rob Herring , Matt Ranostay , Andy Shevchenko , vlad.dogaru@intel.com, linux-kernel , linux-iio , Andrea Merello Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno sab 17 lug 2021 alle ore 17:36 Jonathan Cameron ha scritto: > > On Thu, 15 Jul 2021 16:17:41 +0200 > Andrea Merello wrote: > > > Introduce new documentation file for the BNO055 serdev driver that will > dt bindings are for the device not the driver (so don't mention driver > in the binding or the patch description). Ah, right > > be included in next patches of this same series > > > > Signed-off-by: Andrea Merello > > Cc: Andrea Merello > > Cc: Rob Herring > > Cc: Matt Ranostay > > Cc: Andy Shevchenko > > Cc: Vlad Dogaru > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-iio@vger.kernel.org > > --- > > .../bindings/iio/imu/bosch,bno055-serial.yaml | 40 +++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bno055-serial.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,bno055-serial.yaml b/Documentation/devicetree/bindings/iio/imu/bosch,bno055-serial.yaml > > new file mode 100644 > > index 000000000000..743c784ebc94 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/imu/bosch,bno055-serial.yaml > > Better to have just one doc covering this interface and i2c if that gets added. OK > > @@ -0,0 +1,40 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/imu/bosch,bno055-serial.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Serial-attached Bosch BNO055 > > + > > +maintainers: > > + - Jonathan Cameron > > That's just mean! I have plenty of these to look after already! Joking > aside, you'd be a better maintainer for this than me as more likely > to pay attention. Ok. I was really embarrassed about this: didn't want to proclaim me as a maintainer, neither I wanted me to decide something about you :) > > + > > +description: | > > + Inertial Measurement Unit with Accelerometer, Gyroscope, Magnetometer and > > + internal MCU for sensor fusion > > + https://www.bosch-sensortec.com/products/smart-sensors/bno055/ > > + > > +properties: > > + compatible: > > + enum: > > + - bosch,bno055-serial > > + > > + reset-gpios: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + bno055 { > > name needs to be the one for the device type found in the device tree spec or > if it's not there, something in same 'spirit'. Probably imu here OK > > + compatible = "bosch,bno055-serial"; > Don't need the -serial. It will bind based on the bus this is under. > Speaking of which, it's normal to provide that bus info as part of the example. > See for example chemical/sensiron,scd30.yaml OK > > + reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>; > > + clocks = <&imu_clk>; > > + }; >