Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp205210rdb; Mon, 18 Sep 2023 12:23:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHDojnWQveEFwBIVej8cEQz30GyIgbhktd3jEtV9ljdKth+/bmury1y/bK65TK6p/+b0GVk X-Received: by 2002:a17:902:cec4:b0:1c4:21f3:4be9 with SMTP id d4-20020a170902cec400b001c421f34be9mr9345545plg.62.1695064982656; Mon, 18 Sep 2023 12:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695064982; cv=none; d=google.com; s=arc-20160816; b=BaFdaQiE05UsoWYhtuds13bsXi2RmjcgJn4nZFlUbNG+JeRIjyMAy5sUVCRccq/lgR D5h5s5kCR0FlNo0ZTqwcHNTktDWrAsp5mxuIN3FBLabwuOJcPyCFCNabz+bl/y4zSMgx 0JnLuWGypJxwmR/RHVFB7cRi6ip4MOe39ev+m/fc+0NnP7/nDN8+vZCaSvimD2MhFUsP bMTyBpGInaDSZ0kjvvlfF4YGcIhLgULBuI7+PW2OkNsJphUDiigO4Kd9fssbzXfTCaaj On2fBMVoOz5qQlu2DzFC2c52BzjN6ct41mu5WhuFL5bDZdoUjK0SK4urTfXv7ekQh3qr sTnQ== 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=fMDBjV7ZdvjpiKYjnQ9ji2BJe9Llm9jhB+hSl4BOnZs=; fh=MiBlpE3Jb5j7gopYr3sZ3cHhGlgu/rlJercmH7sUAJk=; b=m6R1hMETELWpiTHNNB5CytCzFAbrp7VeTF8GPCIBcySwsq4Fze8z8IvBh4vxoOB7G5 dBNib65JQvyqXocNUKASr1NR4dkiCknefKeORHAbXjBpqoZaYj1gF0VAGXsw3FAxk0tD mpkytsfDeJsFQrDt65q7CAaw1vF2vbo9vDmLkRYf7amk5fKia5K4hCTSCb0vpGWOQpFq IBbmXU8N3dEB1/F+Rzk3sTx29g4ZbL9VkkyaMjc61UBP7tJqEtELCtp7dG8X3OE+9U1F fcBpLNLreKJNpxKC1wDK/lw71kGf1CpHqTCWpy9bPgOKK6apDlxAkcAO1CN0eRupGCqi IkvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YFdylu1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q14-20020a170902dace00b001c4bc5aba36si3105234plx.580.2023.09.18.12.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 12:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YFdylu1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E4B0F80DBA69; Mon, 18 Sep 2023 01:04:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238231AbjIRIEV (ORCPT + 99 others); Mon, 18 Sep 2023 04:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240451AbjIRIDu (ORCPT ); Mon, 18 Sep 2023 04:03:50 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACEAA197; Mon, 18 Sep 2023 01:03:23 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1c3bd829b86so29929085ad.0; Mon, 18 Sep 2023 01:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695024203; x=1695629003; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fMDBjV7ZdvjpiKYjnQ9ji2BJe9Llm9jhB+hSl4BOnZs=; b=YFdylu1xirAND2CU3V2TjiFJuHh7/pSOGbIlh7l+BvzioafoIKeUoo2MiMpNEdPG/B PLkmkoMqmajf23goODDv3uJDTmstqNTvKqOGh/JR3tyhf/v8RuvMNj5CNIIaCJaTkj1S J/cPGFcqfRs//T2Gcap40Vy/6I/arK2ePAKWqADWADTL4r7u3QHvqIaqL5ArkpukfPpI KHLrftf5coVY0JChKurYKtDTifTYNsZoxzIeq4QsTy3+epynEYaN3/EEtggS7NpxIGIU SOtZ5gsCTS+w7rMWpKY0a5cWQLCH0kWSfCiMY6QJvFl1l1A0CtdmJm/BKvK7R6H0YB5a gZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695024203; x=1695629003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fMDBjV7ZdvjpiKYjnQ9ji2BJe9Llm9jhB+hSl4BOnZs=; b=t0yTJOIwlE5FjzS6kLWDNiAEIsEPDV2oXMriowHpURehcM2s0zlFIaFDdeDFt46Dks fLo6Mpiz5eik1a+32ZztlmcI9Cla7zNKdjoWTMzOeRSO38YnKMbclkqWqp8JGcGETE7C HP42Qlso1t2g7BuUiwE8IDQDS+xtAOt87f3hxvFX0I9hijv7wku67qrKJ9mUj9BO4o8v N9fx+0ILK3Gj5KR1ePC61R/bHDyK8m9TqIRJ0ab/vlu2bUdcC9nQ36U+UoKPqcyBekRJ d2UgwIMnA2q5REpovwnI9huf4Xa42OZEyNOwerc1SOkVnTl5Cf++GH8w0pnlcdO+4xsI WiJA== X-Gm-Message-State: AOJu0YyrdOvTc4hb4AFwsc3xWQyGF86/Vzb2mNQToSxLSTV1asGcIGTG n5jpiOW5D5I6wag1HdX4Wow= X-Received: by 2002:a17:902:e84a:b0:1c5:69fa:23e9 with SMTP id t10-20020a170902e84a00b001c569fa23e9mr2100956plg.58.1695024202898; Mon, 18 Sep 2023 01:03:22 -0700 (PDT) Received: from localhost.localdomain ([115.96.179.37]) by smtp.gmail.com with ESMTPSA id w18-20020a1709029a9200b001bde877a7casm7716161plp.264.2023.09.18.01.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 01:03:22 -0700 (PDT) From: Jagath Jog J To: jic23@kernel.org, andriy.shevchenko@linux.intel.com, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 1/2] dt-bindings: iio: imu: Add DT binding doc for BMI323 Date: Mon, 18 Sep 2023 13:33:13 +0530 Message-Id: <20230918080314.11959-2-jagathjog1996@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230918080314.11959-1-jagathjog1996@gmail.com> References: <20230918080314.11959-1-jagathjog1996@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 01:04:57 -0700 (PDT) Add devicetree description document for Bosch BMI323, a 6-Axis IMU. Signed-off-by: Jagath Jog J --- .../bindings/iio/imu/bosch,bmi323.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml b/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml new file mode 100644 index 000000000000..9c08988103c5 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/bosch,bmi323.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BMI323 6-Axis IMU + +maintainers: + - Jagath Jog J + +description: + BMI323 is a 6-axis inertial measurement unit that supports acceleration and + gyroscopic measurements with hardware fifo buffering. Sensor also provides + events information such as motion, steps, orientation, single and double + tap detection. + +properties: + compatible: + const: bosch,bmi323 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-names: + enum: + - INT1 + - INT2 + description: | + set to "INT1" if INT1 pin should be used as interrupt input, set + to "INT2" if INT2 pin should be used instead + + drive-open-drain: + description: | + set if the specified interrupt pin should be configured as + open drain. If not set, defaults to push-pull. + +required: + - compatible + - reg + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + // Example for I2C + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + bmi323@68 { + compatible = "bosch,bmi323"; + reg = <0x68>; + interrupt-parent = <&gpio1>; + interrupts = <29 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "INT1"; + }; + }; + - | + // Example for SPI + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + bmi323@0 { + compatible = "bosch,bmi323"; + reg = <0>; + spi-max-frequency = <10000000>; + interrupt-parent = <&gpio2>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "INT2"; + }; + }; -- 2.20.1