Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2412185rdh; Wed, 27 Sep 2023 01:34:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/iob/copvw2aqhxt3YE3w90kuYksJoJ2wyJ7OG0l+QJnH2v5d8jy3G/I2tcbwZVbuTbPK X-Received: by 2002:a17:90b:1b4c:b0:274:5638:2a03 with SMTP id nv12-20020a17090b1b4c00b0027456382a03mr1035729pjb.20.1695803669851; Wed, 27 Sep 2023 01:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695803669; cv=none; d=google.com; s=arc-20160816; b=QlH3KF+hkeBXz8YgB8LIPGX0GeniihuiPHe1ItJCq7UsLr4r7abSTBzWzrGxXH06kr 1AqaLKtvMv2MaIhGRfcz4Ewvg5i+Hnxz+jIuqoE2q/XVY9L/uWVYxiE2IXeoYnciiS8k gQB0Fj2hNuqB0o/N8iucDBbcEt0enqnNhBkXJxMI55loecPL7nVzvWO6jbnOrWYSTuQX TZTFxUZWk35rCjsyWU1nxj3PK+KcB+OrkQBgEEzEctU4fZXU98PmnonROBwT/g4AGizJ xgi3G8syCPNIJk7n7Zm4XCJwO7EpsCaEM3Qc+Q5kGniqGqCEi5wc9VW9GRlKDTiotK7n pYKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jp/xqOMX+J33+aUureIjJV02KkIU6sGPnf8h+MBVqZQ=; fh=UdmbWaEkiZjiE5aS9fW0BpH9MhEg6tNeE+OQ6eH7yzc=; b=V6vQS5dwe5rd3TfdCcgDp7pmy5AvwcGifmyy/KpFHvY93YUw25jHscYvHuu0iNIVvv c6esrGNbKL56myrXJ9Y1J9iPAtKZD8bEtBL2tX6rLhp1nLWF1oznQHIAOwp2KwsS7wsz r8KtAHS3esT9hgXwmR75jEXcNoEHTafCNwgLwaDJndcoH6t6Vfk1qNpp2jfVfxMkVrxU DSEmK9lEeiP1mNTLjGGLs4Uc9RBk2l5MG8hbSWd2pnqdXuKKpw8/QDrm7dmM9UzXrJfu xYUaMBgUmTGfsY99Tb2x2J6krXLqeD+n3kEWbufm1yUMtOxkdmUd5L2dTKDttARIc+wF H0oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pjpl6KZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id pg1-20020a17090b1e0100b00262f7dccaecsi16296463pjb.170.2023.09.27.01.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 01:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Pjpl6KZk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id EA90F8295365; Wed, 27 Sep 2023 01:28:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230305AbjI0I20 (ORCPT + 99 others); Wed, 27 Sep 2023 04:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjI0I2J (ORCPT ); Wed, 27 Sep 2023 04:28:09 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A4321A6; Wed, 27 Sep 2023 01:28:04 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2c15463ddd4so113029321fa.3; Wed, 27 Sep 2023 01:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695803283; x=1696408083; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jp/xqOMX+J33+aUureIjJV02KkIU6sGPnf8h+MBVqZQ=; b=Pjpl6KZkMs9EU/WmfVgwqkV33km+oq9IhrboPx0BUpTqCy9ssOHHs+vrKMd8vwmpej jt6w8j1EOBDXLN4HsX+4dxb5Nd/JDXmkneS5ftqueWCGhp2/x5x4OFc1niJbehJijcDm 97+iVW+G8jmdctALudLh+yLqtG9cqeYTVNjvIobzU6S4Vp+xYcvxxndIgo1KUDLWqsL4 F9riIuhsMFv8QQXP3laZvBXUsWdnavSicOonKYslaTtwFIdL5Fpy1pU5JgU2lgXd/PGv bHTLHFMTsImj0gp4MH0xbJwnZ9XjgfAdevlBF5mum9d6oXsFPDwhICrm3BvH8tGhx0id mZWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695803283; x=1696408083; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jp/xqOMX+J33+aUureIjJV02KkIU6sGPnf8h+MBVqZQ=; b=HR99WUvHLqtpencP5SJPt+AfQE/zWCVYk2P2JoeaKnfz1I1uIYuim4pRsac3G4IHcY +UIBR3HKI9Ko2buOd4O1F5dlfx6o2HZK0HoZrOhkvlnBhQp3xKtIRFBq/1dw4dhHW5I3 l6Lqzrou1bN0FR1DdNL29lJKUpHEMbPCnyj6n7t8WRTEx7lc3JgTWLP4fQdmKBR93Bxb 8xkwRvm4s21wo7z5Jiuj4g51R12uXzjamR0Unsj3DGJCcVO7ILPSXDurcOMs6+N2uQrR 0vbZjzFkz67M46qzlirm7V+9J0tL//wgpH189iFpXinMxzBfSz4PUEXWtmXBuMSWC/Ea JGnw== X-Gm-Message-State: AOJu0YwMSxC8k+dlG6GdZE60aHyXZszSyqgA/Ytqdke0ZRZTC+CrKHi2 G5lsqmYfeQ+KZFsIMqwfwbU= X-Received: by 2002:a2e:8010:0:b0:2bd:102c:4161 with SMTP id j16-20020a2e8010000000b002bd102c4161mr1480084ljg.43.1695803283107; Wed, 27 Sep 2023 01:28:03 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id b10-20020a2e848a000000b002bf6852d135sm3003306ljh.94.2023.09.27.01.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 01:28:02 -0700 (PDT) Date: Wed, 27 Sep 2023 11:27:57 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Andy Shevchenko , Angel Iglesias , Andreas Klinger , Benjamin Bara , Christophe JAILLET , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/5] dt-bindings: Add ROHM BM1390 pressure sensor Message-ID: <08796e6b28d2c67933b1a1a5eca0f43da322a597.1695727471.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TfjuISBGJ0mmRPk2" Content-Disposition: inline In-Reply-To: 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 27 Sep 2023 01:28:42 -0700 (PDT) --TfjuISBGJ0mmRPk2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable BM1390GLV-Z is a pressure sensor which performs internal temperature compensation for the MEMS. Pressure range is from 300 hPa to 1300 hPa and sample averaging and IIR filtering is built in sensor. Temperature measurement is also supported. Add dt-bindings for the sensor. Signed-off-by: Matti Vaittinen Reviewed-by: Conor Dooley --- Revision history: v1 =3D> v2: - Improve spelling in description - Drop unnecessary '|' - Use correct example (fix compatible) --- .../bindings/iio/pressure/rohm,bm1390.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/pressure/rohm,bm1= 390.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yam= l b/Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yaml new file mode 100644 index 000000000000..7c4ca6322bf8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/rohm,bm1390.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BM1390 pressure sensor + +maintainers: + - Matti Vaittinen + +description: + BM1390GLV-Z is a pressure sensor which performs internal temperature + compensation for the MEMS. Pressure range is from 300 hPa to 1300 hPa + and sample averaging and IIR filtering is built in. Temperature + measurement is also supported. + +properties: + compatible: + const: rohm,bm1390glv-z + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: true + +required: + - compatible + - reg + - vdd-supply + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + pressure-sensor@5d { + compatible =3D "rohm,bm1390glv-z"; + reg =3D <0x5d>; + + interrupt-parent =3D <&gpio1>; + interrupts =3D <29 IRQ_TYPE_LEVEL_LOW>; + + vdd-supply =3D <&vdd>; + }; + }; --=20 2.41.0 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --TfjuISBGJ0mmRPk2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmUT540ACgkQeFA3/03a ocUzXwgAxR4FUgws79gwtQqbAtk+ZDbawpPVK9+yi03P2fLUzcLhvV0NGle49Nk0 ulmJWzA+nPND7jICXPcEntsBBSCNbOuMnU6fTazPgmPDZmQPr/IYtmqbnLeZDvUr hhujuVIl5Au+Muj+TWTgVxQAzhukgv5qXmg+TvJwAsdIL79SskybxStO9LB128CO EvHXF6A7Ym2i+VBiKhGkgtlxXGWyhz9rZ5Pzz+OOgEpI3CJHewTkQHDw11lz8J8v be/fOITZyrJfwIDhjyJwdqYdOxxA0pC2RasF0SQ3eMwGhXJfQkqBZkXvMW+mAQEV yevOUXWB6FE/Jtna4POWhn1yppk99g== =3iyJ -----END PGP SIGNATURE----- --TfjuISBGJ0mmRPk2--