From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 4AF6D4756DC for ; Thu, 20 Aug 2026 14:15:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787235307; cv=none; b=HZmtvIRcdgiloCiDFp1seJShDul6uUC9vzZEQ53FFyqFjelEquLRIam1xbLgeBIv/PXxXZ97k4il3pIOLR20YeEE43z+NQdW1mbX3ZoQKokU81YVX5NtiunX+InXJ6/wiRZnZZGX8D4pVCYsRLWyKclUji3dD2XHZoG9dwNoTHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787235307; c=relaxed/simple; bh=fobC2ACicWUtS4EVSoqMhRTIFqc8DCROa+NXAsIN2vI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=P8JoMSqrcHVXZvEyObNgvKDpURww042q8bTMZHHQipWE0wiNcdCVFeuybhTBR8GIJiZNE4PTtvKID0EMFpPENGORxJ2HzI3Z6H0mFPwPfTs5GgoO1Bsyrl/li7OXYTGaS3B5YHHIGByc9RYAFh9boNKcy6oPrPoU6dJEOMUT6iQ= 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=QXn0RS2P; arc=none smtp.client-ip=209.85.222.181 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="QXn0RS2P" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-9349ad9c857so212649785a.1 for ; Thu, 20 Aug 2026 07:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787235304; x=1787840104; 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:content-type; bh=bch+lsxb6oZsNgL15N5/ZS8mmmvNTFFa+M0d0DpA7ME=; b=QXn0RS2PCOFOrsLRE/OZv2eLHpn4vLr8gRa6TfY+fVZwZq6kGgW3cm/xs4AWRu5gwF 8J6wYET9B5GZ5ja40UwmernE4Ywe0w65Yl2dQlUiiz0T55PvnZaUH0zTDmAWClo/YNOs wpo/5uPm4r0d3+Wd83xbilW9hAdjbJUy68ETBhmkg5QLWo5FNOi+iOGxBmp9Ie7DJ0Hn LC99lIH67F8ULz+lcTBlSxQJHxtytch54ArSPW9d7IebjNXEelHdgoRjEFf0CQsGOelx apMKG5Onj0QVlZKtSUGgINEOqXEeKegkojuw3EllCOdCSF4PiCRAvxXoAq8JmJ90UD0i 4Hbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787235304; x=1787840104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=bch+lsxb6oZsNgL15N5/ZS8mmmvNTFFa+M0d0DpA7ME=; b=p/YiT+scy7RiG+gAEroYaabCrnZqFLeTDyS9O+K9Ff3dVpkMEqUDjGEXYMxaJLIPGZ b6hT9tM0e335WhDbwVd7081RiLVfDFgsNtHSPZjmW7jdjibK8P6hcjsOAkqOO1w8P1D/ x1rBhC59129lbdsYz5W+2oZTZKlGuAPmpvMZ10Rgr6QHsnRjPNotUkBUou5IsshzPdFW YdyztI3ZoWhCU6E866qBwXbaUSYzxwZ2+SsgHh+vMb05RUrrMSbn/vWkXPzltUFB9CIh qYRmykIDTFIecXORgcnDc3LtokGZONCbTzbnMOl3C6dDYyGcVGpiZ5C68Hj60SBm497l /teg== X-Forwarded-Encrypted: i=1; AHgh+RoIhoRiDQd3rgE1QK1fYqLC5+Gz6Q9Xzov8syhnO61IuPVL6nlxFvQTA8cmvicp9awTbdvPql9vGx/h@vger.kernel.org X-Gm-Message-State: AOJu0YyQVkpbT8xFHouLD8MDubeCOq10DaIp4ggdOIv2pz2Ipb4sIqS2 IWN4/LW3BE+vf81YWU7b6xgCmNwn7R3jLocYEUcwmAp88Qe/w8Fv4crGycS2Ymq/ X-Gm-Gg: AR+sD10kQ/CjQtL9VlLAY0YE7m66YHosFjN7mC68QdaOvQKld1a9XSvsD5gJyu1etWd GaQbdRlUCGUniv9K0JtQec3eomYhPH9CNm3svVyLBrfdFzJL6NypQvPiTHyagSuTijib8N7v/yY E9+tMrHi3tmw3+04GfbJCiFHwllA0gfhG6XSyPM9n2DYuZjwQRKHGLysg8CMmwWDd4rlEA1D8v1 FYT8TYV5JMLEQQQCpZjKSFnNQgGhOE7LeDRL2NcZMWOXSFtCNVvhIscp01ZDDbc9krXKkSFfmtx GHazE0WERy2WJpNbeqcHwfErOGvVZ4TFW7dyqf+R5MKYYMsRaskMD+694G9n46S5i5/9Q5qJVy6 IZerqaf+z8fVzVVfG/nwAT41kps/j4HfHKCHOyA8juZqANLSRMfxNARxmSv7Mv3CocJTCcInb9F JYAqW+/rmwHaznYIZM5Sg/iaEM6kdZj30LgkJNK+oKsYtP0dB4LcPOtnXgS8KG+tL3BJsIYDHTF A== X-Received: by 2002:a05:620a:630b:10b0:937:2760:deb9 with SMTP id af79cd13be357-9372760e7a1mr619301185a.23.1787235303958; Thu, 20 Aug 2026 07:15:03 -0700 (PDT) Received: from louisarchdesktop ([2601:184:417f:5ad5:c570:9008:5a2b:8db7]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9372059de87sm372738085a.47.2026.08.20.07.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 07:15:03 -0700 (PDT) From: Louis Adamian To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Louis Adamian Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/5] dt-bindings: iio: pressure: Add MS5637 Date: Thu, 20 Aug 2026 10:12:18 -0400 Message-ID: <20260820141224.23730-4-adamianlouis@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260820141224.23730-1-adamianlouis@gmail.com> References: <20260820141224.23730-1-adamianlouis@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 Create meas,ms5637 devicetree binding and move existing devices from trivial-devices.yaml. Explicit compatible strings are added for the different sub-variants because each requires different constants for the second-order temperature compensation formulas. Previously, the driver exposed the generic compatibles for the ms5637, MS5803, MS5805 and MS5837 families and applied the MS5637-02BA compensation to all of them. To preserve the DT ABI the existing compatibles are retained and mapped to the -02BA variant of each family (ms5637-02ba, ms5803-02ba, ms5837-02ba). Signed-off-by: Louis Adamian --- .../bindings/iio/pressure/meas,ms5637.yaml | 93 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 10 -- 2 files changed, 93 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml new file mode 100644 index 000000000000..befd81d1907b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/pressure/meas,ms5637.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# +title: Measurement Specialties ms5637 and similar pressure sensors + +maintainers: + - Louis Adamian + +description: + Measurement Specialties pressure and temperature sensors. The MS5803 + family supports both I2C and SPI interfaces. All other variants are I2C only. + +properties: + compatible: + oneOf: + - enum: + - meas,ms5637-02ba + - meas,ms5637-30ba + - meas,ms5803-01ba + - meas,ms5803-02ba + - meas,ms5803-05ba + - meas,ms5803-14ba + - meas,ms5803-30ba + - meas,ms5805 + - meas,ms5837-02ba + - meas,ms5837-30ba + - meas,ms8607-temppressure + # These generic compatible strings do not identify the sub-variants of + # the part. They are retained so that existing device trees continue + # to bind, and each is treated as the -02BA variant of its family. + - enum: + - meas,ms5637 + - meas,ms5803 + - meas,ms5837 + deprecated: true + + reg: + maxItems: 1 + + vdd-supply: + description: Regulator that provides power to the sensor + +required: + - compatible + - reg + - vdd-supply + +allOf: + - if: + properties: + compatible: + contains: + enum: + - meas,ms5803 + - meas,ms5803-01ba + - meas,ms5803-02ba + - meas,ms5803-05ba + - meas,ms5803-14ba + - meas,ms5803-30ba + then: + $ref: /schemas/spi/spi-peripheral-props.yaml# + properties: + spi-max-frequency: + maximum: 20000000 + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pressure@76 { + compatible = "meas,ms5637-02ba"; + reg = <0x76>; + vdd-supply = <&vcc_3v3>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + pressure@0 { + compatible = "meas,ms5803-14ba"; + reg = <0>; + vdd-supply = <&vcc_3v3>; + spi-max-frequency = <20000000>; + }; + }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 435c4baab436..2671040e8802 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -240,18 +240,8 @@ properties: - meas,htu21 # Measurement Specialities I2C temperature and humidity sensor - meas,htu31 - # Measurement Specialities I2C pressure and temperature sensor - - meas,ms5637 - # Measurement Specialities I2C pressure and temperature sensor - - meas,ms5803 - # Measurement Specialities I2C pressure and temperature sensor - - meas,ms5805 - # Measurement Specialities I2C pressure and temperature sensor - - meas,ms5837 # Measurement Specialities temp and humidity part of ms8607 device - meas,ms8607-humidity - # Measurement Specialities temp and pressure part of ms8607 device - - meas,ms8607-temppressure # Measurement Specialties temperature sensor - meas,tsys01 # MEMSIC magnetometer -- 2.55.0