[Armadeus-commitlog] armadeus branch, buildroot-update, updated. armadeus-6.0-169-gaec5dcd
Brought to you by:
sszy
|
From: Julien B a. A. <ar...@us...> - 2016-12-15 15:23:35
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, buildroot-update has been updated
via aec5dcd295ea00244db41343aaadd9182bb894a3 (commit)
from fcc11a399b21c7d882f24db86f24b7c0ff621ec0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit aec5dcd295ea00244db41343aaadd9182bb894a3
Author: Julien BOIBESSOT <jul...@ar...>
Date: Thu Dec 15 16:23:13 2016 +0100
[LINUX] 4.8: add device tree support to si7020 (temp+humidity sensor)
-----------------------------------------------------------------------
Summary of changes:
...d-devicetree-support-and-trivial-bindings.patch | 48 ++++++++++++++++++++
1 files changed, 48 insertions(+), 0 deletions(-)
create mode 100644 patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
diff --git a/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch b/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
new file mode 100644
index 0000000..2d6d899
--- /dev/null
+++ b/patches/linux/4.8/0802-mainline-iio-si7020-add-devicetree-support-and-trivial-bindings.patch
@@ -0,0 +1,48 @@
+This adds devicetree support for the si7020 iio driver. Since it works
+well without requiring any additional property, its compatible string is
+added to the trivial i2c devices bindings list.
+
+Signed-off-by: Paul Kocialkowski <contact@xxxxxxxx>
+---
+ Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
+ drivers/iio/humidity/si7020.c | 11 ++++++++++-
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+index 5c70ce9..6afba26 100644
+--- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt
++++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+@@ -145,6 +145,7 @@ ricoh,rv5c387a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC
+ samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
+ sgx,vz89x SGX Sensortech VZ89X Sensors
+ sii,s35390a 2-wire CMOS real-time clock
++silabs,si7020 Relative Humidity and Temperature Sensors
+ skyworks,sky81452 Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply
+ st,24c256 i2c serial eeprom (24cxx)
+ st,m41t00 Serial real-time clock (RTC)
+diff --git a/drivers/iio/humidity/si7020.c b/drivers/iio/humidity/si7020.c
+index ffc2ccf..345a765 100644
+--- a/drivers/iio/humidity/si7020.c
++++ b/drivers/iio/humidity/si7020.c
+@@ -154,8 +154,17 @@ static const struct i2c_device_id si7020_id[] = {
+ };
+ MODULE_DEVICE_TABLE(i2c, si7020_id);
+
++static const struct of_device_id si7020_dt_ids[] = {
++ { .compatible = "silabs,si7020" },
++ { }
++};
++MODULE_DEVICE_TABLE(of, si7020_dt_ids);
++
+ static struct i2c_driver si7020_driver = {
+- .driver.name = "si7020",
++ .driver = {
++ .name = "si7020",
++ .of_match_table = of_match_ptr(si7020_dt_ids),
++ },
+ .probe = si7020_probe,
+ .id_table = si7020_id,
+ };
+--
+2.10.0
+
hooks/post-receive
--
armadeus
|