mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add a directory by kernel instead of a common root, add qnap-301w and rpi4 kernel 6.1 suppport
This commit is contained in:
parent
e910436a7a
commit
46837ec4c0
9459 changed files with 362648 additions and 116345 deletions
|
|
@ -0,0 +1,157 @@
|
|||
From b84e8ea9a5379a872e014b1e891373ec6eb51144 Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.com>
|
||||
Date: Wed, 4 Jan 2023 09:14:53 +0000
|
||||
Subject: [PATCH 552/726] overlays: i2c-sensor: MS temp & pressure sensors
|
||||
|
||||
Add support for the Measurement Specialities temperature and pressure
|
||||
sensors to the i2c-sensor overlay. The supported devices are MS5637,
|
||||
MS5803, MS5805, MS5837 and MS8607.
|
||||
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
||||
---
|
||||
arch/arm/boot/dts/overlays/README | 20 ++++-
|
||||
.../boot/dts/overlays/i2c-sensor-common.dtsi | 79 ++++++++++++++++++-
|
||||
2 files changed, 96 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
|
||||
index e1e694fd9c33..9b404673600c 100644
|
||||
--- a/arch/arm/boot/dts/overlays/README
|
||||
+++ b/arch/arm/boot/dts/overlays/README
|
||||
@@ -1982,8 +1982,9 @@ Info: Adds support for a number of I2C barometric pressure, temperature,
|
||||
light level and chemical sensors on i2c_arm
|
||||
Load: dtoverlay=i2c-sensor,<param>=<val>
|
||||
Params: addr Set the address for the BH1750, BME280, BME680,
|
||||
- BMP280, CCS811, DS1621, HDC100X, LM75, SHT3x or
|
||||
- TMP102
|
||||
+ BMP280, CCS811, DS1621, HDC100X, JC42, LM75,
|
||||
+ MCP980x, MS5637, MS5803, MS5805, MS5837, MS8607,
|
||||
+ SHT3x or TMP102
|
||||
|
||||
aht10 Select the Aosong AHT10 temperature and humidity
|
||||
sensor
|
||||
@@ -2044,6 +2045,21 @@ Params: addr Set the address for the BH1750, BME280, BME680,
|
||||
use the "jc42" option.
|
||||
Valid addresses are 0x18-0x1f (default 0x18)
|
||||
|
||||
+ ms5637 Select the Measurement Specialities MS5637
|
||||
+ pressure and temperature sensor.
|
||||
+
|
||||
+ ms5803 Select the Measurement Specialities MS5803
|
||||
+ pressure and temperature sensor.
|
||||
+
|
||||
+ ms5805 Select the Measurement Specialities MS5805
|
||||
+ pressure and temperature sensor.
|
||||
+
|
||||
+ ms5837 Select the Measurement Specialities MS5837
|
||||
+ pressure and temperature sensor.
|
||||
+
|
||||
+ ms8607 Select the Measurement Specialities MS8607
|
||||
+ pressure and temperature sensor.
|
||||
+
|
||||
no_timeout Disable the SMBUS timeout. N.B. Only supported
|
||||
by some jc42 devices - using with an
|
||||
incompatible device can stop it from being
|
||||
diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
||||
index c81d8e5db548..6504c7578b9d 100755
|
||||
--- a/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
||||
+++ b/arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi
|
||||
@@ -351,6 +351,76 @@ jc42: jc42@18 {
|
||||
};
|
||||
};
|
||||
|
||||
+ fragment@23 {
|
||||
+ target = <&i2cbus>;
|
||||
+ __dormant__ {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ms5637: ms5637@76 {
|
||||
+ compatible = "meas,ms5637";
|
||||
+ reg = <0x76>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ fragment@24 {
|
||||
+ target = <&i2cbus>;
|
||||
+ __dormant__ {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ms5803: ms5803@76 {
|
||||
+ compatible = "meas,ms5803";
|
||||
+ reg = <0x76>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ fragment@25 {
|
||||
+ target = <&i2cbus>;
|
||||
+ __dormant__ {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ms5805: ms5805@76 {
|
||||
+ compatible = "meas,ms5805";
|
||||
+ reg = <0x76>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ fragment@26 {
|
||||
+ target = <&i2cbus>;
|
||||
+ __dormant__ {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ms5837: ms5837@76 {
|
||||
+ compatible = "meas,ms5837";
|
||||
+ reg = <0x76>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ fragment@27 {
|
||||
+ target = <&i2cbus>;
|
||||
+ __dormant__ {
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <0>;
|
||||
+ status = "okay";
|
||||
+
|
||||
+ ms8607: ms8607@76 {
|
||||
+ compatible = "meas,ms8607-temppressure";
|
||||
+ reg = <0x76>;
|
||||
+ };
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
__overrides__ {
|
||||
bme280 = <0>,"+0";
|
||||
bmp085 = <0>,"+1";
|
||||
@@ -376,11 +446,18 @@ __overrides__ {
|
||||
aht10 = <0>,"+20";
|
||||
mcp980x = <0>,"+21";
|
||||
jc42 = <0>,"+22";
|
||||
+ ms5637 = <0>,"+23";
|
||||
+ ms5803 = <0>,"+24";
|
||||
+ ms5805 = <0>,"+25";
|
||||
+ ms5837 = <0>,"+26";
|
||||
+ ms8607 = <0>,"+27";
|
||||
|
||||
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
|
||||
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
|
||||
<&ds1621>,"reg:0", <&bme680>,"reg:0", <&ccs811>,"reg:0",
|
||||
- <&bh1750>,"reg:0", <&mcp980x>,"reg:0", <&jc42>,"reg:0";
|
||||
+ <&bh1750>,"reg:0", <&mcp980x>,"reg:0", <&jc42>,"reg:0",
|
||||
+ <&ms5637>,"reg:0", <&ms5803>,"reg:0", <&ms5805>,"reg:0",
|
||||
+ <&ms5837>,"reg:0", <&ms8607>,"reg:0";
|
||||
int_pin = <&max30102>, "interrupts:0";
|
||||
no_timeout = <&jc42>, "smbus-timeout-disable?";
|
||||
};
|
||||
--
|
||||
2.33.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue