Skip to content

Commit efe08a4

Browse files
committed
overlays: i2c-sensor: Add tmp117 support
Add support for the TMP117 temperature sensor to the i2c-sensor overlay. See: #7077 Signed-off-by: Phil Elwell <[email protected]>
1 parent 6ddd8cb commit efe08a4

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,9 @@ Params: addr Set the address for the ADS7828, ADS7830,
26032603
tmp102 Select the Texas Instruments TMP102 temp sensor
26042604
Valid addresses 0x48-0x4b, default 0x48
26052605

2606+
tmp117 Select the Texas Instruments TMP117 temp sensor
2607+
Valid addresses 0x48-0x4b, default 0x48
2608+
26062609
tsl4531 Select the AMS TSL4531 digital ambient light
26072610
sensor
26082611

arch/arm/boot/dts/overlays/i2c-sensor-common.dtsi

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,34 @@
789789
};
790790
};
791791

792+
fragment@51 {
793+
target = <&i2cbus>;
794+
__dormant__ {
795+
#address-cells = <1>;
796+
#size-cells = <0>;
797+
status = "okay";
798+
799+
tmp117: tmp117@48 {
800+
compatible = "ti,tmp117";
801+
reg = <0x48>;
802+
vcc-supply = <&reg_3v3>;
803+
};
804+
};
805+
};
806+
807+
fragment@98 {
808+
target-path = "/";
809+
__dormant__ {
810+
reg_3v3: i2c-sensor-reg-3v3 {
811+
compatible = "regulator-fixed";
812+
regulator-name = "i2c_sensor_reg_3v3";
813+
regulator-min-microvolt = <3300000>;
814+
regulator-max-microvolt = <3300000>;
815+
regulator-always-on;
816+
};
817+
};
818+
};
819+
792820
fragment@99 {
793821
target = <&gpio>;
794822
__dormant__ {
@@ -852,6 +880,7 @@
852880
adxl355 = <0>,"+48";
853881
bmp58x = <0>,"+49";
854882
veml6030 = <0>,"+50+99";
883+
tmp117 = <0>,"+51+98";
855884

856885
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
857886
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -866,7 +895,7 @@
866895
<&as7331>,"reg:0", <&adxl345>,"reg:0",
867896
<&ads7828>,"reg:0", <&ads7830>,"reg:0",
868897
<&adxl355>,"reg:0", <&bmp58x>,"reg:0",
869-
<&veml6030>,"reg:0";
898+
<&veml6030>,"reg:0", <&tmp117>,"reg:0";
870899
int_pin = <&int_pins>, "brcm,pins:0",
871900
<&int_pins>, "reg:0",
872901
<&max30102>, "interrupts:0",

0 commit comments

Comments
 (0)