From patchwork Wed Sep 6 12:37:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 720486 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CFC6EB8FB7 for ; Wed, 6 Sep 2023 12:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238362AbjIFMhh (ORCPT ); Wed, 6 Sep 2023 08:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229932AbjIFMhh (ORCPT ); Wed, 6 Sep 2023 08:37:37 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8571980; Wed, 6 Sep 2023 05:37:26 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-501cef42bc9so103200e87.0; Wed, 06 Sep 2023 05:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694003844; x=1694608644; 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=T2g5u3WZ/dzAYIt8bCxzawSyy4sLXVIraI5R0WKnlUU=; b=ArL+jlsz8RCDOJi8GKUy3bRc45WMyUOBsKccgld55zpXJ29pssYFRcCqx8Mw7MrGpb VXIXfPeXaYCcw25usoyXhZzHbxCZatHcAjX+dH1J4AIPunL7I02HFLSApUB4oEqpu9DL i807lxNv49o5/667UYNKtm8HxZqcJTS7SlBTixXwDxgeFqcQiApyPeIbXf54WYXL7sHJ 96B0599Ra9Frkcpq8EBCcppOpf2v0B0QH5bGT6mQQHJOTXWJqMioLmHBszTc0t3xosfa wokop2wU2T1unw3Zs5FJQe2tYvp6zYn8FNNh57vaJj6ziDI/r4b11sGny6Ep0znc6B5J 1wVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694003844; x=1694608644; 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=T2g5u3WZ/dzAYIt8bCxzawSyy4sLXVIraI5R0WKnlUU=; b=ZLiRgDpxOkJMChzXE3ahTOMKDQO7mjQD01GAtcF11EDfCs50+U0WqY0hfSqtSuSSxX WfWIujoC9zY2LeDjaS1KnS2C4D3tsgwywe4DDFSU1NtDGZlNEMz48QpueuuzxrOoYo8g iOf21zPmZzhFHzkQl8E5LU9iNb97L3YVb4Jl1uYVdI9U10S0iEAHuRKBQTT9Ks451ZBC VmA5GvPiQJrRdzDuGbLqGdnHDl7nmgHEtRpnI/76lcykFcOoABRWmN4yd729N2m924Dz n8H1J1eNlvsKEXx6ALHaHLIpASlcLYcDObi7trsBJd4/KvDwmzifbk2jHFGNwjBH927Y /aIg== X-Gm-Message-State: AOJu0YykVycJwG4ZtI3MRpupyOd/GFbnULsh/cthotqY+X0eD/Cg/Ckp CAStsk50RG8XdYT1GUURBwU= X-Google-Smtp-Source: AGHT+IHM0yBHZFaBrm3wLxPrWls75mrOKsFK+auQXASNPKjvQCdRwelbyyE+xiEPWiOLOQVEZDPSJw== X-Received: by 2002:a19:6457:0:b0:4ff:8f45:ab86 with SMTP id b23-20020a196457000000b004ff8f45ab86mr1872262lfj.25.1694003844555; Wed, 06 Sep 2023 05:37:24 -0700 (PDT) Received: from dc78bmyyyyyyyyyyyyybt-3.rev.dnainternet.fi (dc78bmyyyyyyyyyyyyybt-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::3]) by smtp.gmail.com with ESMTPSA id a21-20020ac25215000000b005009b979e3dsm2742541lfl.303.2023.09.06.05.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 05:37:23 -0700 (PDT) Date: Wed, 6 Sep 2023 15:37:19 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Angel Iglesias , Andy Shevchenko , Andreas Klinger , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: Add ROHM BM1390 pressure sensor Message-ID: <55e59e66824f75ce8ffe58d3463a9cbca56e25ac.1694001462.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../bindings/iio/pressure/rohm,bm1390.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yaml b/Documentation/devicetree/bindings/iio/pressure/rohm,bm1390.yaml new file mode 100644 index 000000000000..d681fdd0f5ea --- /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 sensor. 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 = <1>; + #size-cells = <0>; + pressure-sensor@5d { + compatible = "kionix,kx022a"; + reg = <0x5d>; + + interrupt-parent = <&gpio1>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + + vdd-supply = <&vdd>; + }; + }; From patchwork Wed Sep 6 12:40:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 720485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 835EDEB8FB8 for ; Wed, 6 Sep 2023 12:40:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240695AbjIFMkh (ORCPT ); Wed, 6 Sep 2023 08:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238779AbjIFMkg (ORCPT ); Wed, 6 Sep 2023 08:40:36 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B003D171C; Wed, 6 Sep 2023 05:40:31 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-501be2d45e0so2983155e87.3; Wed, 06 Sep 2023 05:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694004030; x=1694608830; 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=vku9jt1/MT2jaACSB57Jc+E96gaHBVPOlSLatq5yZQc=; b=PcG0bLlK9NU/61ijUaLgVClyl8i99mQY1xO3PfZz6Wf9qAzy5/7LIVV61YfhGR+9pc +n5ahaZqQ3XaFLjiw8hXZ14T+XCP4ahVRS1pJM7+kMNZMvb5S42SnwtwOrK9RdsAsRtc Yvyh3DuFbiB4eXWolsx9fw1L8vg4vTTw7EcxjBd3z3KFBR5kT3M6EfrITJ2C/tvkELjl FIZ3GZVd3oJhgcHJW0DfOmzraJih5INM76m4w7JhCtbdROC+8+l1kVWRqJLPSrzg5INP 7WK1VHcjo9H3pkMIPyubMDHILHJBGbTFMlfExqhdIXY+UwnKmLcWLik36C2bpyHYvbE4 GLUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694004030; x=1694608830; 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=vku9jt1/MT2jaACSB57Jc+E96gaHBVPOlSLatq5yZQc=; b=AC6vWqzgEh8jQG77ievrc66GfXXFg9I6+0ExaSRLoYc0f7LDb25oGKVfHhPxpHHVUF Isa4vBvQzThg5NUZV0JJwV8MX7J9/AxU30vYXKc2ngH8l3mf89Lh1cY1gE1fDGG48dj+ fnNaFdxiPR43W0XJW0yjghvR5CFp8U6yQbyX6Fmnu6ZGBPsjXzVPR0PQKganA3czCoW2 2fG++w9FLrJUSCCfOGpybwbbEcm7B0LIg8kjvBT23iAeeFkWewk9exLEl4urw3qWG/Le GYWsoTHB4liriMPi0cidOMue1CqM8X/VPA939ctGGDNCemFyS+FMmF/KnzS8G3/jeu+9 X7UA== X-Gm-Message-State: AOJu0Yyzfh6D62ZyhpxJl+wyM60U0blBH0TayBiF3MSa/zX5dRE6IrpK 6C9q7YOVEUtumgc+w2KRVzI= X-Google-Smtp-Source: AGHT+IE7SbcPR16ee6g5AeRPYZ12DcHdbviRcJSHkOvx2uD7etl58kH5wZnEITsDLXzREIltFTJ3FA== X-Received: by 2002:a05:6512:2148:b0:500:d8d6:fc5a with SMTP id s8-20020a056512214800b00500d8d6fc5amr2222940lfr.37.1694004029676; Wed, 06 Sep 2023 05:40:29 -0700 (PDT) Received: from dc78bmyyyyyyyyyyyyybt-3.rev.dnainternet.fi (dc78bmyyyyyyyyyyyyybt-3.rev.dnainternet.fi. [2001:14ba:16f8:1500::3]) by smtp.gmail.com with ESMTPSA id p21-20020a19f015000000b00500b19152cbsm2727232lfc.8.2023.09.06.05.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 05:40:28 -0700 (PDT) Date: Wed, 6 Sep 2023 15:40:24 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matti Vaittinen , Angel Iglesias , Andy Shevchenko , Andreas Klinger , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] MAINTAINERS: Add ROHM BM1390 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add myself as a maintainer for ROHM BM1390 pressure sensor driver. Signed-off-by: Matti Vaittinen --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4cc6bf79fdd8..ad18c76b7b07 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18422,6 +18422,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/light/bh1750.yaml F: drivers/iio/light/bh1750.c +ROHM BM1390 PRESSURE SENSOR DRIVER +M: Matti Vaittinen +L: linux-iio@vger.kernel.org +S: Supported +F: drivers/iio/pressure/rohm-bm1390.c + ROHM BU270xx LIGHT SENSOR DRIVERs M: Matti Vaittinen L: linux-iio@vger.kernel.org