1 From 837a3647eb9edd7b11d98d85e9c70997a6717397 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Wed, 4 Jan 2023 09:14:53 +0000
4 Subject: [PATCH] overlays: i2c-sensor: MS temp & pressure sensors
6 Add support for the Measurement Specialities temperature and pressure
7 sensors to the i2c-sensor overlay. The supported devices are MS5637,
8 MS5803, MS5805, MS5837 and MS8607.
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
12 arch/arm/boot/dts/overlays/README | 20 ++++-
13 .../boot/dts/overlays/i2c-sensor-common.dtsi | 79 ++++++++++++++++++-
14 2 files changed, 96 insertions(+), 3 deletions(-)
16 --- a/arch/arm/boot/dts/overlays/README
17 +++ b/arch/arm/boot/dts/overlays/README
18 @@ -1982,8 +1982,9 @@ Info: Adds support for a number of I2C
19 light level and chemical sensors on i2c_arm
20 Load: dtoverlay=i2c-sensor,<param>=<val>
21 Params: addr Set the address for the BH1750, BME280, BME680,
22 - BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
24 + BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
25 + MCP980x, MS5637, MS5803, MS5805, MS5837, MS8607,
28 aht10 Select the Aosong AHT10 temperature and humidity
30 @@ -2044,6 +2045,21 @@ Params: addr Set the
31 use the "jc42" option.
32 Valid addresses are 0x18-0x1f (default 0x18)
34 + ms5637 Select the Measurement Specialities MS5637
35 + pressure and temperature sensor.
37 + ms5803 Select the Measurement Specialities MS5803
38 + pressure and temperature sensor.
40 + ms5805 Select the Measurement Specialities MS5805
41 + pressure and temperature sensor.
43 + ms5837 Select the Measurement Specialities MS5837
44 + pressure and temperature sensor.
46 + ms8607 Select the Measurement Specialities MS8607
47 + pressure and temperature sensor.
49 no_timeout Disable the SMBUS timeout. N.B. Only supported
50 by some jc42 devices - using with an
51 incompatible device can stop it from being
52 --- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
53 +++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
61 + #address-cells = <1>;
66 + compatible = "meas,ms5637";
75 + #address-cells = <1>;
80 + compatible = "meas,ms5803";
89 + #address-cells = <1>;
94 + compatible = "meas,ms5805";
101 + target = <&i2cbus>;
103 + #address-cells = <1>;
107 + ms5837: ms5837@76 {
108 + compatible = "meas,ms5837";
115 + target = <&i2cbus>;
117 + #address-cells = <1>;
121 + ms8607: ms8607@76 {
122 + compatible = "meas,ms8607-temppressure";
131 @@ -376,11 +446,18 @@
135 + ms5637 = <0>,"+23";
136 + ms5803 = <0>,"+24";
137 + ms5805 = <0>,"+25";
138 + ms5837 = <0>,"+26";
139 + ms8607 = <0>,"+27";
141 addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
142 <&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
143 <&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
144 - <&bh1750>,"reg:0", <&mcp980x>,"reg:0", <&jc42>,"reg:0";
145 + <&bh1750>,"reg:0", <&mcp980x>,"reg:0", <&jc42>,"reg:0",
146 + <&ms5637>,"reg:0", <&ms5803>,"reg:0", <&ms5805>,"reg:0",
147 + <&ms5837>,"reg:0", <&ms8607>,"reg:0";
148 int_pin = <&max30102>, "interrupts:0";
149 no_timeout = <&jc42>, "smbus-timeout-disable?";