Skip to content

Commit ebf1936

Browse files
pelwellpopcornmix
authored andcommitted
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 caec95c commit ebf1936

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
@@ -835,6 +835,34 @@
835835
};
836836
};
837837

838+
fragment@54 {
839+
target = <&i2cbus>;
840+
__dormant__ {
841+
#address-cells = <1>;
842+
#size-cells = <0>;
843+
status = "okay";
844+
845+
tmp117: tmp117@48 {
846+
compatible = "ti,tmp117";
847+
reg = <0x48>;
848+
vcc-supply = <&reg_3v3>;
849+
};
850+
};
851+
};
852+
853+
fragment@98 {
854+
target-path = "/";
855+
__dormant__ {
856+
reg_3v3: i2c-sensor-reg-3v3 {
857+
compatible = "regulator-fixed";
858+
regulator-name = "i2c_sensor_reg_3v3";
859+
regulator-min-microvolt = <3300000>;
860+
regulator-max-microvolt = <3300000>;
861+
regulator-always-on;
862+
};
863+
};
864+
};
865+
838866
fragment@99 {
839867
target = <&gpio>;
840868
__dormant__ {
@@ -901,6 +929,7 @@
901929
veml6035 = <0>,"+51+99";
902930
veml7700 = <0>,"+52";
903931
veml3235 = <0>,"+53";
932+
tmp117 = <0>,"+54+98";
904933

905934
addr = <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
906935
<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
@@ -915,7 +944,7 @@
915944
<&as7331>,"reg:0", <&adxl345>,"reg:0",
916945
<&ads7828>,"reg:0", <&ads7830>,"reg:0",
917946
<&adxl355>,"reg:0", <&bmp58x>,"reg:0",
918-
<&veml6030>,"reg:0";
947+
<&veml6030>,"reg:0", <&tmp117>,"reg:0";
919948
int_pin = <&int_pins>, "brcm,pins:0",
920949
<&int_pins>, "reg:0",
921950
<&max30102>, "interrupts:0",

0 commit comments

Comments
 (0)