mirror of
				https://github.com/Ysurac/openmptcprouter.git
				synced 2025-03-09 15:40:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			63 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
	
		
			2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From d891d69abe6cede9251c4419c90fab195ec2da04 Mon Sep 17 00:00:00 2001
 | |
| From: Phil Elwell <phil@raspberrypi.org>
 | |
| Date: Mon, 25 Mar 2019 18:03:48 +0000
 | |
| Subject: [PATCH 394/432] overlays: Add max17040 support to i2c-sensor
 | |
| 
 | |
| See: https://github.com/raspberrypi/linux/issues/2906
 | |
| 
 | |
| Signed-off-by: Phil Elwell <phil@raspberrypi.org>
 | |
| ---
 | |
|  arch/arm/boot/dts/overlays/README                |  3 +++
 | |
|  .../arm/boot/dts/overlays/i2c-sensor-overlay.dts | 16 ++++++++++++++++
 | |
|  2 files changed, 19 insertions(+)
 | |
| 
 | |
| diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README
 | |
| index 74362f95f173..b6fa4fa3388b 100644
 | |
| --- a/arch/arm/boot/dts/overlays/README
 | |
| +++ b/arch/arm/boot/dts/overlays/README
 | |
| @@ -1030,6 +1030,9 @@ Params: addr                    Set the address for the BME280, BMP280, DS1621,
 | |
|  
 | |
|          lm75addr                Deprecated - use addr parameter instead
 | |
|  
 | |
| +        max17040                Select the Maxim Integrated MAX17040 battery
 | |
| +                                monitor
 | |
| +
 | |
|          sht3x                   Select the Sensiron SHT3x temperature and
 | |
|                                  humidity sensor. Valid addresses 0x44-0x45,
 | |
|                                  default 0x44
 | |
| diff --git a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
 | |
| index 4b5be8676d11..0e2efa6ac8ea 100644
 | |
| --- a/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
 | |
| +++ b/arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts
 | |
| @@ -201,6 +201,21 @@
 | |
|  		};
 | |
|  	};
 | |
|  
 | |
| +	fragment@13 {
 | |
| +		target = <&i2c_arm>;
 | |
| +		__dormant__ {
 | |
| +			#address-cells = <1>;
 | |
| +			#size-cells = <0>;
 | |
| +			status = "okay";
 | |
| +
 | |
| +			max17040: max17040@36 {
 | |
| +				compatible = "maxim,max17040";
 | |
| +				reg = <0x36>;
 | |
| +				status = "okay";
 | |
| +			};
 | |
| +		};
 | |
| +	};
 | |
| +
 | |
|  	__overrides__ {
 | |
|  		addr =  <&bme280>,"reg:0", <&bmp280>,"reg:0", <&tmp102>,"reg:0",
 | |
|  			<&lm75>,"reg:0", <&hdc100x>,"reg:0", <&sht3x>,"reg:0",
 | |
| @@ -219,5 +234,6 @@
 | |
|  		veml6070 = <0>,"+10";
 | |
|  		sht3x = <0>,"+11";
 | |
|  		ds1621 = <0>,"+12";
 | |
| +		max17040 = <0>,"+13";
 | |
|  	};
 | |
|  };
 | |
| -- 
 | |
| 2.19.1
 | |
| 
 |