From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 ACE2833F8B7 for ; Wed, 10 Jun 2026 02:05:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781057113; cv=none; b=MEpIOarlr+VgtUB1xB5Fegyh53ePAhlxUIF6vjV7Yq+bn2JZdGviQa/AGikTHcKkQCH7Y/wMGfkARMXC7/0BlTReKGIv72k8phlM0y5SpzFeLT4fC1iulWM7GCHRE5CqtCI0XyzsGVvnHQN+GD0br2le3JdwBUk1YyD9Aut2sxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781057113; c=relaxed/simple; bh=c+PFEYG6ni5DWFhYlUmO1aNqlTR+2wCBDhpWe3tJOoc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W6fVDeK/Y+gH1xZtaMN20hsYY15flvSRYR2x+T96YLIgqRp0qpaLPaOoittRjpu7lcr3zClEBagCOvwsJ6a653Mh+oRbbQGZBtONEPKVsWNklpju5xVElhn97sH8jEcYulXC/0tjwENzzcZA+3kTIPIbiN1cfPzAyk1t0oRsM1k= 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=W6HsmEFO; arc=none smtp.client-ip=209.85.222.177 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="W6HsmEFO" Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-9159da9bba5so449056385a.1 for ; Tue, 09 Jun 2026 19:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781057111; x=1781661911; 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=a1oKhnq8sAcCQ1/AgmLgq7v5eloi6h0buEgHTVAGai0=; b=W6HsmEFOokF9qpk3vagj2W2azrMVqSPCyW74fuRN6/gtQAmGuNkmFcsPMx1fZ5t53v dj6XNTHnSHjzBku9oohjrnOikNF3qRDux5TuTr7xxnJGT0E5jP8KFhGo2LN1m9ZbfZWU 0nAmXWuahwf2tjbCnNVgrbJ0SBhJaqEJ7iDd6Gi0OQBRCHKGTjjIp4tDfH0zOWcjH/Ky ibh6C3e6yE4XPrjYkA83xQ3VwB+DdIfoXcsZdp+R/B1GtEQ0n7yOdwFg8Z5Qc5OhCGOh CgBi1delpgVNJ2nWX2JdUMrRe9jVNDbqu/8GlySFm8ykrdkC1iheW71OTFehLwUzpVoP wf6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781057111; x=1781661911; 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; bh=a1oKhnq8sAcCQ1/AgmLgq7v5eloi6h0buEgHTVAGai0=; b=b1wlg/aeN96lVbb3JP+d80rJWf4qAmCzApdp0ygnbkeidOtLxur6S+VYyCYZkOgI9p BGday2PI03Q82cX9Ks/m+RTEOSSZR4WOU3urWHviwh1VYklE0gAccsW9xiFboQDohv23 Geqn62C3k8+LklZzncqUjBjsXTyvg0Fbkjb04L5GZ2j7W5axlhQMIM9zWXum0vs9LzFJ BMP91btTg+gtWuGyD6HNGY9n7Xw6F49f4yNLBor5Aj2UoKwlIOLZgx5KyBJGV7myf8bY /eBn2dX5U3FLgaAcx/k9V54l/wjFzST/AlDPQsBmLvuoZs+5X+jJxcuOkw5ED1HQx8f1 RZhg== X-Forwarded-Encrypted: i=1; AFNElJ/oFluHLRmrhu+EBziaCULSOmILN9fIt+qf1N3AM9cUZATRZ+5jD0kRVmrwp4hLk4jf+DAX1NA7mr3BLv4=@vger.kernel.org X-Gm-Message-State: AOJu0YwKW3hBzbQmBZkeLGW/OSGToy3Afi10mZHlQI1TaDHGeLzfyPlS Na+0Bk02W/IJrADkRfF5BqfObR81pg4PL2KB5XdJFsGDwR1SEzWYCoyy X-Gm-Gg: Acq92OFEUcu8Z+VtFUhlOqwLBBZX9N3Sx49HMmoRXvnAcBzUnRlakmsa10UiRHatmuy Ki5PBWegG8zFSvEpRnukTt4ZF3k9+1q4bsNHhsQ/bDU6yfM7jgTgdc+ugTCewRP0YBh0zPYYJPh UrGPoW461J05WYfqfjyGWChC58GZa5vkDZHOf2BAgsVuNMmqoglt3yT9QIMUdIOdsvf5w++RqgI WcTN5q1hRLWhr1KcmX/JLu8zplEVk9gb07T56BktPTvpQlv3qff16HgjT3pUEfO3ezsgMZJf2tR 8rDJyjhLexp9JNgNXVQZP7zRJ9CY9ZX/iyEjkrFvLddg/D8x7LdoWv6vOs/mp/vSRHIj7mxFhLY DsYnL361MPfOP3z1Jve3segZgOiHI3HVysg1VKYRBP6Jqg5isVmCk+09yl+j99GLD0nyLwRYNj4 MtHs0lDvJ1mmpo+MOl4t3rNBYfVIPVK2giLl8M7i/ixm6KHVg= X-Received: by 2002:a05:620a:198f:b0:915:5cbd:1d96 with SMTP id af79cd13be357-915a9d60cecmr3704954885a.33.1781057110535; Tue, 09 Jun 2026 19:05:10 -0700 (PDT) Received: from louisarchdesktop ([2601:184:417f:5ad5:c570:9008:5a2b:8db7]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9158a40d566sm2267004985a.47.2026.06.09.19.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 19:05:09 -0700 (PDT) From: Louis Adamian To: Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Louis Adamian Subject: [PATCH v2 1/2] dt-bindings: iio: pressure: Add MS5637 Date: Tue, 9 Jun 2026 22:04:57 -0400 Message-ID: <20260610020458.104818-2-adamianlouis@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260610020458.104818-1-adamianlouis@gmail.com> References: <20260610020458.104818-1-adamianlouis@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: 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 | 87 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 10 --- 2 files changed, 87 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..f17ac3ffefc9 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5637.yaml @@ -0,0 +1,87 @@ +# 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: + enum: + - meas,ms5637 + - meas,ms5637-02ba + - meas,ms5637-30ba + - meas,ms5803 + - meas,ms5803-01ba + - meas,ms5803-02ba + - meas,ms5803-05ba + - meas,ms5803-14ba + - meas,ms5803-30ba + - meas,ms5805 + - meas,ms5837 + - meas,ms5837-02ba + - meas,ms5837-30ba + - meas,ms8607-temppressure + + 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 23fd4513933a..a1516ab50a40 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -232,18 +232,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.54.0