kernel: bump 6.1 to 6.1.66
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0532-overlays-i2c-sensor-MS-temp-pressure-sensors.patch
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
5
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.
9
10 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
11 ---
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(-)
15
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
23 - TMP102
24 + BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
25 + MCP980x, MS5637, MS5803, MS5805, MS5837, MS8607,
26 + SHT3x or TMP102
27
28 aht10 Select the Aosong AHT10 temperature and humidity
29 sensor
30 @@ -2044,6 +2045,21 @@ Params: addr Set the
31 use the "jc42" option.
32 Valid addresses are 0x18-0x1f (default 0x18)
33
34 + ms5637 Select the Measurement Specialities MS5637
35 + pressure and temperature sensor.
36 +
37 + ms5803 Select the Measurement Specialities MS5803
38 + pressure and temperature sensor.
39 +
40 + ms5805 Select the Measurement Specialities MS5805
41 + pressure and temperature sensor.
42 +
43 + ms5837 Select the Measurement Specialities MS5837
44 + pressure and temperature sensor.
45 +
46 + ms8607 Select the Measurement Specialities MS8607
47 + pressure and temperature sensor.
48 +
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
54 @@ -351,6 +351,76 @@
55 };
56 };
57
58 + fragment@23 {
59 + target = <&i2cbus>;
60 + __dormant__ {
61 + #address-cells = <1>;
62 + #size-cells = <0>;
63 + status = "okay";
64 +
65 + ms5637: ms5637@76 {
66 + compatible = "meas,ms5637";
67 + reg = <0x76>;
68 + };
69 + };
70 + };
71 +
72 + fragment@24 {
73 + target = <&i2cbus>;
74 + __dormant__ {
75 + #address-cells = <1>;
76 + #size-cells = <0>;
77 + status = "okay";
78 +
79 + ms5803: ms5803@76 {
80 + compatible = "meas,ms5803";
81 + reg = <0x76>;
82 + };
83 + };
84 + };
85 +
86 + fragment@25 {
87 + target = <&i2cbus>;
88 + __dormant__ {
89 + #address-cells = <1>;
90 + #size-cells = <0>;
91 + status = "okay";
92 +
93 + ms5805: ms5805@76 {
94 + compatible = "meas,ms5805";
95 + reg = <0x76>;
96 + };
97 + };
98 + };
99 +
100 + fragment@26 {
101 + target = <&i2cbus>;
102 + __dormant__ {
103 + #address-cells = <1>;
104 + #size-cells = <0>;
105 + status = "okay";
106 +
107 + ms5837: ms5837@76 {
108 + compatible = "meas,ms5837";
109 + reg = <0x76>;
110 + };
111 + };
112 + };
113 +
114 + fragment@27 {
115 + target = <&i2cbus>;
116 + __dormant__ {
117 + #address-cells = <1>;
118 + #size-cells = <0>;
119 + status = "okay";
120 +
121 + ms8607: ms8607@76 {
122 + compatible = "meas,ms8607-temppressure";
123 + reg = <0x76>;
124 + };
125 + };
126 + };
127 +
128 __overrides__ {
129 bme280 = <0>,"+0";
130 bmp085 = <0>,"+1";
131 @@ -376,11 +446,18 @@
132 aht10 = <0>,"+20";
133 mcp980x = <0>,"+21";
134 jc42 = <0>,"+22";
135 + ms5637 = <0>,"+23";
136 + ms5803 = <0>,"+24";
137 + ms5805 = <0>,"+25";
138 + ms5837 = <0>,"+26";
139 + ms8607 = <0>,"+27";
140
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?";
150 };