Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2268417pxv; Sat, 17 Jul 2021 08:39:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZrM4zwF82KXUVT3WJNBr3QhZLjbPR1Jt/EbuM1RyWuVRqHRcQq9DvrWIRmpqsCHTydhIO X-Received: by 2002:a6b:f41a:: with SMTP id i26mr11545469iog.162.1626536385485; Sat, 17 Jul 2021 08:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626536385; cv=none; d=google.com; s=arc-20160816; b=bG2nQInJ1EryDK6b5r6v4ZcECdhGm/EXEuOZCz/oVeMTMvGpt19M/FtH+OLFkSpCkM cBt/tEVHybxSG4EQAxfPYXjgyMNnDhqWVsLR70BZ/h7Hfkl02zfEPokGUDal3z6YCxfH wb9FEarfYCqvKriRu84IIkfGeODK35n89cXLcH9dg2xJkBwvDjizHiVN7V5w2QRc+BwO Q6+grd46EagkphTQrqO8wof9zCkaO05ZASAXXmK8PGUMkgsOSNDfYGGEWWxTkOUKCBjj xhQSFRmuJsY0Cgjdx0Zt35GvgaCnaBG4yBSIvKrPf3eBpqVnWwuB/Bp7DZIU42Wn8KIh omhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=DFstUZFi5gvxS1f6fgsAfqD0LiC6l8uEcEEY2B9TObg=; b=x6wT+pT8qz+wDt3/sikZMaBPDPTr4zHlGfcHBHjodFP8DBBKn4dPqDgGZZR4ia/deq RKVQWv5O2k6SAZeGdO32J2cFiafhUlc1z6jbQ05v2TLXhNVsjj6a+ylNuMbg8UEVvVld TaDL7gadb2+IddLIIlpLJixUrhBkUwCZKC0rsQ7rcl3S9tZy7vJGJQHhRje4L2IG0J7J LT900KKRq3eQRLX5kgDcCOiqiTiwhhON2e8HkauOieUEspO4GAUsd+n0X2/lnmv9pg2/ rD4V+B10mSINzGcR00bbLHMsGpqI4LGVb7wCui6DOSU6KIILtEpYiO29xo3oTZFglspU hi7A== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si8179058jav.23.2021.07.17.08.39.33; Sat, 17 Jul 2021 08:39:45 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236805AbhGQPjj (ORCPT + 99 others); Sat, 17 Jul 2021 11:39:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:54900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236355AbhGQPjh (ORCPT ); Sat, 17 Jul 2021 11:39:37 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 165BB6109E; Sat, 17 Jul 2021 15:36:37 +0000 (UTC) Date: Sat, 17 Jul 2021 16:39:00 +0100 From: Jonathan Cameron To: Andrea Merello Cc: lars@metafoo.de, robh+dt@kernel.org, matt.ranostay@konsulko.com, andriy.shevchenko@linux.intel.com, vlad.dogaru@intel.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Andrea Merello Subject: Re: [PATCH 3/4] dt-bindings: iio: imu: add bosch BNO055 serdev driver bindings Message-ID: <20210717163900.657ec48b@jic23-huawei> In-Reply-To: <20210715141742.15072-4-andrea.merello@gmail.com> References: <20210715141742.15072-1-andrea.merello@gmail.com> <20210715141742.15072-4-andrea.merello@gmail.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). > 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. > @@ -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. > + > +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 > + 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 > + reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>; > + clocks = <&imu_clk>; > + };