From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 8804B7263B for ; Thu, 2 Oct 2025 20:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759435368; cv=none; b=n3are9F0rYHMnVaGvzH7VGpVuJ3zHPxBbeAinGebC3MpXN2BfO8XbgUpQw7DAJY7y/W+crmNB7SVnY5W+POWpjrrCCDpSY3nh3gLzujeX24xN9FbUv9SLqA+xRnR5wWygbjUm81BPD7Zio/B05GX4GaoO0yfYzolhlKtehfDeTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759435368; c=relaxed/simple; bh=RWsMT7+A3hOigM/6lKe9y0xp7C7c2WQ715Dnkvpx1sA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=c5d7FQLMhj1d9msH05W6J1t6T8cJA4le0PekfrPjR/BMUfcvYx0SzO48I6O/v1vTnwpu9ZeoYZZDFczBnIbDRZui67B2S5VEpm0/dQZKGFc5gTiKbj9obDSJoQi2Xr99gwVXweF4t2skXe4N2KxpGDSw+tHT8NEtvk0JlMZRuDI= 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=jY/HhwZP; arc=none smtp.client-ip=209.85.218.51 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="jY/HhwZP" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-b48d8deafaeso237076766b.1 for ; Thu, 02 Oct 2025 13:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759435364; x=1760040164; 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=8EXqlzb/n7e+U7sXee7rlDRiXcbYy1hChaEgy4phOls=; b=jY/HhwZPFa5Y78c7vY+N4KI/c8/3keXc/UQNq4IgK1BB3WdVofZofy3VqcEUgG7EK0 JlB03TeWEZp8BinjqL9H1AaXPEkLguzuWuuGmRyrs7zWCPlcMqSy5cy6q+wPN4Jpo9jB 0W8dnkTrjMX/2vx7qba6WzCtMFvDB4QO54O4WearBFBX9sB0mL4qRxReM4qUWO8r7kXS +ZnvOelPWI9m88fc6CeyVlHe+uNV8Kp0Fray8+qrWLv4mMXyRPE58r+StbA2APDJUMly 38XNEyHJ4zl+dvlRNeQANsqVMGaUludRCjDVpGqQBKycrxeqjH4P1zDnce0IuQB8jf8/ 3Lig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759435364; x=1760040164; 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=8EXqlzb/n7e+U7sXee7rlDRiXcbYy1hChaEgy4phOls=; b=OdEVWeFoY7gssgOTgXTjbXA2BRl68S0Tv/bxCCPh6Rbsw5XT6vyVp7aCnLy0Se+Xmm l2xSiiVvbKZNOF9iK9RG1q1cUaxXne0BadtfNCxorWSc3v2nTc3AyzruVoCiAV3fOqMM Ihj43bOg8irC+ehVmTNcbYvPvCUp6XLqDhf+UgSFlTABZBitwwBIEavXaq8I5K9ChEfr mgcG1F+giHB0LVcE0WVkGjVQ4S43WC0gPNkyHdQhsoKk0jWLev5gxp5jU/Cl/Dg70UOv kRMPna/yK48QKqosAyvpiunKzfjjTBmLp47qOg64S3xrTvJrb4JpamFDhVXgFPfPJvgw 1OUw== X-Forwarded-Encrypted: i=1; AJvYcCXeU+13lO6AN4DVbmAxhbFiXaq5mGg+XVbHY7S/lSWIxY9cqrc2uVvcMsYWrjTRee9c0ykAtzR6Pqep@vger.kernel.org X-Gm-Message-State: AOJu0YyIWjcdeP7as0vcZS+r/6bKEni/h5yFxVFbdwYbme03YHy9Xgpr GxgDSYlawMHfw7BuBinMLXxXzbIz2T4cW/rFefIHG+FRVG2RSABaGmNo X-Gm-Gg: ASbGncuNrirJ6Jre9+EzRfrRf3VrR+Lmcp9IppjoF8WDtY8twS3FYhNsXEIojr/R8So YOxUspCgR+6C9W77dOwkBn0KaCfIIvCcrvYkaf/QBbFxICxA49w+GvuBwF3DSS7CN4DWtxztnVS 6uHQ5QQHl8nsV2OM9v/a0rCsRhNOpkQW5ca35IdG+CtiSnkZB52Zsl1ZXsfMQjR/+1U5uvWDM7r ilDb1ELdPtMK+1bwD8g+Jn7AW/eOWB13pBtUNh3nBB/ihjsPL+tdJM1qV6s+7qIfomjwNNlGupL BkQzLjA1U55q1aLDGCqur2ZzLy1GdRpWjBelXnB0Hpa5NiVnrZyyEFBjeFooF+tiax8aapSG4oK 7d47e84lMmG9MZMzMFtNLOebxyy7fhOEYdf0dm1fl9vW9xzJdvPHCfq0= X-Google-Smtp-Source: AGHT+IGDdBFIO4tfvjNMAM3xa2U/WAw5504eAo3K2h133YQZPtkoxtvH6poX5eZQ+RiUYMpg/ev5nA== X-Received: by 2002:a17:907:3c89:b0:b3c:896:abdc with SMTP id a640c23a62f3a-b49c525eccamr75259466b.60.1759435363618; Thu, 02 Oct 2025 13:02:43 -0700 (PDT) Received: from localhost.localdomain ([78.212.167.232]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b4869c4c1f6sm270880466b.78.2025.10.02.13.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Oct 2025 13:02:43 -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 v4 1/5] dt-bindings: iio: pressure: add binding for mpl3115 Date: Thu, 2 Oct 2025 22:02:02 +0200 Message-Id: <20251002200206.59824-2-apokusinski01@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20251002200206.59824-1-apokusinski01@gmail.com> References: <20251002200206.59824-1-apokusinski01@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Reviewed-by: Rob Herring (Arm) Signed-off-by: Antoni Pokusinski --- .../bindings/iio/pressure/fsl,mpl3115.yaml | 71 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml b/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml new file mode 100644 index 000000000000..2933c2e10695 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/fsl,mpl3115.yaml @@ -0,0 +1,71 @@ +# 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 + + vdd-supply: true + + vddio-supply: true + + 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 + - vdd-supply + - vddio-supply + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@60 { + compatible = "fsl,mpl3115"; + reg = <0x60>; + vdd-supply = <&vdd>; + vddio-supply = <&vddio>; + interrupt-parent = <&gpio1>; + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "INT2"; + }; + }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/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 -- 2.25.1