Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3840406ioa; Tue, 26 Apr 2022 10:44:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyshPsns8GCQ7Az2FpzEjtoLu4NpfKx7Gsvh5ujIsz0H3hTzVm4Na8rbjPKFe6tFTbf3lzy X-Received: by 2002:a63:8ac1:0:b0:3ab:199:cbdf with SMTP id y184-20020a638ac1000000b003ab0199cbdfmr13756227pgd.466.1650995059056; Tue, 26 Apr 2022 10:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650995059; cv=none; d=google.com; s=arc-20160816; b=A5N7lzJAoXWxXp7r3Uq3yGIoD+EQ5LlO8iiS7uGKZHLRF0IKjxmz0a5eLxg9pxP5bL r9ithpzKng8e8UEh6pPNbtMQj2sh9FJaheRY2nre7sB226S/1O28kbJiduDUFKdwDgde qYENAdaqv1EnvW4lreM7tf2AHMJ8iEXe/66S2KdLQj1emOIhByE5BGxFJ/EfZB+ZZDbn YjRjnfJSi2HUZGn5VBXgdmWJJohGS/XPgaOs/mslyQDHefQt4czwDXR7vNfVsW4sdb9C gondsFZzeNTRfUfYv58DZbRqF3210E/sAwJhXhOpcdamG64QuSvCVPViR6jP/0Idk8OV r/ZQ== 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:date:subject:cc:to:from :dkim-signature; bh=TMOavQxWrrTel8vmNQCb3OLZWpjveuECwxNG5yTcW58=; b=UJoc+RktX5M7S2Rte5hs4JlIjGhX5wzsY/oxbSYJHw82qC2H8Qjln+iOa6ZdOVMJEK hUyYI31sZ5zESTBg82L1cU5rgVtJDG/nzpCaC6gUSisSbFKhRZGhhQgMn7s4mxDwRfd3 6/c+02JroMDeGy72sOq1oWK5rEg8RHFyBROniSBRKaagbKtd4nakbn3Cn5P8dLcuy5Gc 7FEwwQaFFr4tjH9u3o/P3uSxFfGkZXbp5Drp9XstOhlz1epjJH9AgFzDUDvvzsGXnqlT Bv6uclDdMvSDKohkkT0aFPC0GEEPtgL9mzqQCxDuTiOxfj3KaJne5Je3IDBrirEbuhQe tsug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E6Z3LJv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x69-20020a638648000000b003ab0293ef20si8885437pgd.834.2022.04.26.10.44.02; Tue, 26 Apr 2022 10:44:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E6Z3LJv2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1350784AbiDZNPI (ORCPT + 99 others); Tue, 26 Apr 2022 09:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350730AbiDZNOc (ORCPT ); Tue, 26 Apr 2022 09:14:32 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA77160A94; Tue, 26 Apr 2022 06:11:20 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id d5so10209215wrb.6; Tue, 26 Apr 2022 06:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TMOavQxWrrTel8vmNQCb3OLZWpjveuECwxNG5yTcW58=; b=E6Z3LJv2VyjxdKTtKGXl4tiP6Af2EbpVcUeLbiJsRW8rn+HlQ1ReWnA4PhVPqvihAJ NiMqXl3J61vRXp+k2erjoh2kux7sQwjoLsiWu1WWh97lHcpAsdN8jRKV2x8d1+8Pv/7i dRkoQZWA2udk6Bj96S0J+yHZUalSr+oJQoawL+8GUwIgmnUDsFqruCa0+iMLxn8xjBmn 4/UThDQFtB2xH+Al7lIqcooJaMDzSx4t+SIObgqVvtbABrCGG3Vxjav74QYCV8Z7g4sR aQ/pcb3onPG051d5Tgr0k8mSkL/TUvQJJl0LObdki9pI7S6N0EJ3bRPPGRe+TRGy6HHW xO2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TMOavQxWrrTel8vmNQCb3OLZWpjveuECwxNG5yTcW58=; b=WDBzTrPr9sVQcuMQBV57IpZO37gPOaHhpWu4FNEVV9tdpfSUfr358A/GY6gvMCiydt mr5A/j83xbAItR65AJUKRomT6PanHZ74BnjI2D+IU52ilhaV2rdL/tdRlq+q/NMkA6Nv YaIhnaQ5px8ZaLAXZ3aHcahsmkuG7jkJCE9JWCYa03MrVnGUtQRbR6t2FF1U1vrCtmyb G4i0R2IfIM55oaqIcsP4vpK9lL56S0lq6wDY+06Z0yyTDfVgbcXe43GDARMLDmMLOXt+ SNjUJvoIBws2dEg+BPU8M7gK5Z5sOWnPZhlCRs1SE2HboUgEQ+f2ofzX9mbi9tZTHsyk Vh5w== X-Gm-Message-State: AOAM531hRhsZ0RWF3KaFhiFfgVYhtgKMt60g8+SMNv8emjoaGJM0Z2gf 9Fr1yMyj+Qra8XyvKaw4qPk= X-Received: by 2002:a5d:6d0b:0:b0:20a:d43f:4002 with SMTP id e11-20020a5d6d0b000000b0020ad43f4002mr12661967wrq.230.1650978679178; Tue, 26 Apr 2022 06:11:19 -0700 (PDT) Received: from poker.lan (static.2-229-210-222.ip198.fastwebnet.it. [2.229.210.222]) by smtp.gmail.com with ESMTPSA id h9-20020a05600c350900b00393f01c8f00sm3262910wmq.47.2022.04.26.06.11.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 06:11:18 -0700 (PDT) From: Andrea Merello To: jic23@kernel.org, mchehab+huawei@kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: lars@metafoo.de, robh+dt@kernel.org, andy.shevchenko@gmail.com, matt.ranostay@konsulko.com, ardeleanalex@gmail.com, jacopo@jmondi.org, Andrea Merello , Rob Herring Subject: [v5 11/14] dt-bindings: iio/imu: Add Bosch BNO055 Date: Tue, 26 Apr 2022 15:10:59 +0200 Message-Id: <20220426131102.23966-12-andrea.merello@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426131102.23966-1-andrea.merello@gmail.com> References: <20220426131102.23966-1-andrea.merello@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrea Merello Introduce new documentation file for the Bosch BNO055 IMU. Signed-off-by: Andrea Merello Reviewed-by: Rob Herring --- .../bindings/iio/imu/bosch,bno055.yaml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bno055.yaml diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,bno055.yaml b/Documentation/devicetree/bindings/iio/imu/bosch,bno055.yaml new file mode 100644 index 000000000000..e0d06db161a9 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/imu/bosch,bno055.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/bosch,bno055.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BNO055 + +maintainers: + - Andrea Merello + +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 + + reg: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + serial { + imu { + compatible = "bosch,bno055"; + reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>; + clocks = <&imu_clk>; + }; + }; + + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + imu@28 { + compatible = "bosch,bno055"; + reg = <0x28>; + reset-gpios = <&gpio0 54 GPIO_ACTIVE_LOW>; + clocks = <&imu_clk>; + }; + }; -- 2.17.1