From nobody Thu Oct 2 07:43:59 2025 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8845F2D879C for ; Sun, 21 Sep 2025 13:34:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758461680; cv=none; b=tteYS+H2W+TfvAETzKaqyWVlYujCWe8l0ybQhw5+kiHhScb2m8jnBqU+ew6qjRwRyK7i7zR9Tb1gsspeLax2OY/qhN56SUC03c3BxwYf65tG3n/ke9gPY0SYGHj0Q8F7RRRryu1VTcK8ePolQbV8Ug0lFVjnF5UgeIiUg/s1Pcg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758461680; c=relaxed/simple; bh=NFyeB6ju9m115L65OhNjR32f5T9X8J1/wrM7Y8OOye4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K9L1uWawk6592orjVaHotvmS7ZobMa5gyQRpF03Pw6Cx6T04fSUKIZShM6DcvEmOLwk93bhlaQojH8BB0vlSqM1JpLGnSxpMygY8vXapW4r3NGOEmxwjO3o1UCdh39DB5Ny7qd/GBY5ZSIN5Z7AStc43DoWDGiDQx+bHnD8GX3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wv/ipY9k; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wv/ipY9k" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-46b7bf21fceso7713785e9.3 for ; Sun, 21 Sep 2025 06:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758461677; x=1759066477; 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=g7ht9dZzFF99ls4xm0VOmGwJPt2OOFyLTtvr3hHqcHc=; b=Wv/ipY9kQrmTIxnnvN2kubGSmrKTrbPVJlOCn47e0bWs68yF2wAI1Zl5HHoRhc0K7b xbu84q+Z1ymKKwGRHM2HRbklKPxvXfy4Pm0zJd6UGjtdTvE9tCU225047aBEi/gAPzJU pInnLsA4vgqGon7h2iRrczpb9aHc/jUrxyYD1hKalIGX5IyHeUUnFfogSLShbNYG+KTb 3+N+BKTSpbgZ6lfLlyPyrEcl9YPgFfmowdpDo/o2zYHTyFGgLmd3dQC/l4QsS5zzblQY W2DUmjEUFrnGmSV4BfmZUfYcKpIqTr3y3hdBzY/cn8urqkbvYPuVLg8nerEJDxShRb5V p6eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758461677; x=1759066477; 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=g7ht9dZzFF99ls4xm0VOmGwJPt2OOFyLTtvr3hHqcHc=; b=rKrbSCKMgVm9GYtR5zjCj7m4Xlx36cyDp0UwFjTxKH0abE8XG5PgmbijODc8/wG0z1 f6Zdk1fIHKla5AQx1to4KXfKe6XyoIwrp0y7xbhS03F7AMl8P1k2r1yCSed0rE4aAlPp ZC7q8W+5JkJ7p8MsH9xSE+T1VLEj7JPH9llwhNkpZk0sonmpTsDO+rlj492ZLCvWHKkD rp8+fP0a7QWfceRA/ARRrSmwPP8jBWZG661rAQcVH5yicwLCdjBh5d52L4pWauToMAc6 BznM+R7jEW7+7phoprc4ZggdtqrzRP0lTrbTzToslgSDi5VvNq2RoqQk4uVG2hFOws6Z Z9dA== X-Gm-Message-State: AOJu0YzzRvvvRSpxGPEx1u5sCYsfrprtIZmIV5gFNb16AqwI1j2YGFwi lERfMuWREpZosY6M4YYr/mS0cZkWmKZu+7o6PEGmIKMaH9S3/Q+ISXqz X-Gm-Gg: ASbGncu5eXOK3KZo8tKArMWjv8qHFDUmtOZRftjy7g5QWciY5SjF++TJgLefTOQ7u+W VW4RayqOdaQZGFTu7BgUrQINwamJqHI1U7d8cYbB37AsevUWSrdJpXxVoO7LWpWmQhjzWKPtRaV SXqa0t0bs3hlbN4lMXe/3ishD5W5C8ydyRrIKh1irsgY0WwFl+QDmpx0y5h0xIH1X+rQ2UXUaHq 21YfqBht3RDFtEAlQnfpJCJ7LZWZhK7pgJEr0jar4plMQF0Btj4Svzvtd9PNiHMuv1JMl3LlsAa ggEYihPzhpIN8xXXmu6MNPRdKRYGAj9kxoESKrXu+Xfh0JYJzU9MHiHyAbsIsEu4H7OpP+E6VqH VSk6oys2XLF4QckGzMHqvou3Ydy/TuQ8OszwZMMTz X-Google-Smtp-Source: AGHT+IGnRb6YhgM63CbQqsRad+5cVyjz8UjWsrBeMNcTbyxbeMaAOqC7gtJWMChqRMi7YfK+Dhb9rA== X-Received: by 2002:a05:600c:630d:b0:45d:d9ab:b86d with SMTP id 5b1f17b1804b1-467f2cc87c4mr93954475e9.31.1758461676624; Sun, 21 Sep 2025 06:34:36 -0700 (PDT) Received: from localhost.localdomain ([78.211.117.102]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3ee0fc00a92sm15910316f8f.63.2025.09.21.06.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Sep 2025 06:34:35 -0700 (PDT) From: Antoni Pokusinski To: jic23@kernel.org, dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux@roeck-us.net, rodrigo.gobbi.7@gmail.com, naresh.solanki@9elements.com, michal.simek@amd.com, grantpeltier93@gmail.com, farouk.bouabid@cherry.de, marcelo.schmitt1@gmail.com, Antoni Pokusinski Subject: [PATCH 1/3] dt-bindings: iio: pressure: add binding for mpl3115 Date: Sun, 21 Sep 2025 15:33:26 +0200 Message-Id: <20250921133327.123726-2-apokusinski01@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20250921133327.123726-1-apokusinski01@gmail.com> References: <20250921133327.123726-1-apokusinski01@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" MPL3115 is an I2C pressure and temperature sensor. It features 2 interrupt lines which can be configured to indicate events such as data ready or pressure/temperature threshold reached. Signed-off-by: Antoni Pokusinski Reviewed-by: Rob Herring (Arm) --- .../bindings/iio/pressure/fsl,mpl3115.yaml | 63 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3= 115.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yam= l b/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml new file mode 100644 index 000000000000..9e21eae7acc7 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/fsl,mpl3115.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MPL3115 precision pressure sensor with altimetry + +maintainers: + - Antoni Pokusinski + +description: | + MPL3115 is a pressure/altitude and temperature sensor with I2C interface. + It features two programmable interrupt lines which indicate events such = as + data ready or pressure/temperature threshold reached. + https://www.nxp.com/docs/en/data-sheet/MPL3115A2.pdf + +properties: + compatible: + const: fsl,mpl3115 + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + minItems: 1 + maxItems: 2 + items: + enum: + - INT1 + - INT2 + + drive-open-drain: + type: boolean + description: + set if the specified interrupt pins should be configured as + open drain. If not set, defaults to push-pull. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + pressure@60 { + compatible =3D "fsl,mpl3115"; + reg =3D <0x60>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <4 IRQ_TYPE_EDGE_FALLING>; + interrupt-names =3D "INT2"; + }; + }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Docum= entation/devicetree/bindings/trivial-devices.yaml index f3dd18681aa6..918d4a12d61c 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -113,8 +113,6 @@ properties: - fsl,mma7660 # MMA8450Q: Xtrinsic Low-power, 3-axis Xtrinsic Accelerometer - fsl,mma8450 - # MPL3115: Absolute Digital Pressure Sensor - - fsl,mpl3115 # MPR121: Proximity Capacitive Touch Sensor Controller - fsl,mpr121 # Honeywell Humidicon HIH-6130 humidity/temperature sensor --=20 2.25.1