From 01acaf5f51c6378aa28fee9be990c9f89c2a44ee Mon Sep 17 00:00:00 2001 From: Phil Elwell Date: Tue, 14 Mar 2017 09:10:05 +0000 Subject: [PATCH] BCM270X_DT: Add lm75 to i2c-sensor overlay See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=177236 Signed-off-by: Phil Elwell --- arch/arm/boot/dts/overlays/README | 8 +++++--- arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index c1883bba9382..a8853b7820cd 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -388,9 +388,6 @@ Params: dr_mode Dual role mode: "host", "peripheral" or "otg" g-np-tx-fifo-size Size of non-periodic tx fifo size in gadget mode - g-tx-fifo-size Size of periodic tx fifo per endpoint - (except ep0) in gadget mode - [ The ds1307-rtc overlay has been deleted. See i2c-rtc. ] @@ -608,6 +605,11 @@ Params: bmp085 Select the Bosch sensortronic BMP085 bmp280 Select the Bosch sensortronic BMP280 + lm75 Select the Maxim LM75 temperature sensor + + lm75addr Choose the address for the LM75 (0x48-0x4f - + default 0x4f) + si7020 Select the Silicon Labs Si7013/20/21 humidity/ temperature sensor diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts index 31bda8da4cb6..606b2d5012ab 100644 --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts @@ -25,6 +25,12 @@ status = "disable"; }; + lm75: lm75@4f { + compatible = "lm75"; + reg = <0x4f>; + status = "disable"; + }; + si7020: si7020@40 { compatible = "si7020"; reg = <0x40>; @@ -36,6 +42,8 @@ __overrides__ { bmp085 = <&bmp085>,"status"; bmp280 = <&bmp280>,"status"; + lm75 = <&lm75>,"status"; + lm75addr = <&lm75>,"reg:0"; si7020 = <&si7020>,"status"; }; }; -- 2.30.2