-
Notifications
You must be signed in to change notification settings - Fork 55.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (sht15) Add device tree support
Allow the driver to work with device tree support. Based on initial patch submission from Peter Fox. Tested on a imx7d-sdb board connected to a SHT15 board via Mikro Bus. Signed-off-by: Marco Franchi <marco.franchi@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
- Loading branch information
Showing
2 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Sensirion SHT15 Humidity and Temperature Sensor | ||
|
||
Required properties: | ||
|
||
- "compatible": must be "sensirion,sht15". | ||
- "data-gpios": GPIO connected to the data line. | ||
- "clk-gpios": GPIO connected to the clock line. | ||
- "vcc-supply": regulator that drives the VCC pin. | ||
|
||
Example: | ||
|
||
sensor { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pinctrl_sensor>; | ||
compatible = "sensirion,sht15"; | ||
clk-gpios = <&gpio4 12 0>; | ||
data-gpios = <&gpio4 13 0>; | ||
vcc-supply = <®_sht15>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters