Commit e5bd7343 authored by Stefan Tatschner's avatar Stefan Tatschner Committed by Phil Elwell
Browse files

Add device tree config for htu21

parent a34dfa0c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -673,6 +673,8 @@ Params: addr Set the address for the BME280, BMP280, TMP102
        bmp280                  Select the Bosch Sensortronic BMP280
                                Valid addresses 0x76-0x77, default 0x76

        htu21                   Select the HTU21 temperature and humidity sensor

        lm75                    Select the Maxim LM75 temperature sensor
                                Valid addresses 0x48-0x4f, default 0x4f

+21 −5
Original line number Diff line number Diff line
@@ -67,6 +67,21 @@
	};

	fragment@4 {
		target = <&i2c_arm>;
		__dormant__ {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";

			htu21: htu21@40 {
				compatible = "htu21";
				reg = <0x40>;
				status = "okay";
			};
		};
	};

	fragment@5 {
		target = <&i2c_arm>;
		__dormant__ {
			#address-cells = <1>;
@@ -81,7 +96,7 @@
		};
	};

	fragment@5 {
	fragment@6 {
		target = <&i2c_arm>;
		__dormant__ {
			#address-cells = <1>;
@@ -96,7 +111,7 @@
		};
	};

	fragment@6 {
	fragment@7 {
		target = <&i2c_arm>;
		__dormant__ {
			#address-cells = <1>;
@@ -118,9 +133,10 @@
		bmp085 = <0>,"+1";
		bmp180 = <0>,"+2";
		bmp280 = <0>,"+3";
		lm75 = <0>,"+4";
		htu21 = <0>,"+4";
		lm75 = <0>,"+5";
		lm75addr = <&lm75>,"reg:0";
		si7020 = <0>,"+5";
		tmp102 = <0>,"+6";
		si7020 = <0>,"+6";
		tmp102 = <0>,"+7";
	};
};