[PATCH 0/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: Support ACPI probe for AD5592/3 multi-channel converters

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 0/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: Support ACPI probe for AD5592/3 multi-channel converters

Shrirang Bagul
BugLink: http://bugs.launchpad.net/bugs/1654497

Hi,

Dell Caracalla Edge gateways have AD5593R multi-channel coverter on board.
The following patches add ACPI probe support to the kernel driver for this device.

These patches are already accepted in the IIO maintainers git repository
and possibly land in mainline kernel v4.10.
(git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git) "testing"
branch.

For feature complete release, a signed kernel for Caracalla gateways is to be delivered
with the support for this multi-channel converter.

Michael Hennerich (2):
  UBUNTU: SAUCE: iio: dac: ad5592r: Add ACPI support
  UBUNTU: SAUCE: iio: dac: ad5593r: Add ACPI support

 drivers/iio/dac/ad5592r.c | 8 ++++++++
 drivers/iio/dac/ad5593r.c | 8 ++++++++
 2 files changed, 16 insertions(+)

--
2.9.3


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: ad5592r: Add ACPI support

Shrirang Bagul
From: Michael Hennerich <[hidden email]>

BugLink: https://bugs.launchpad.net/bugs/1654497

This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
designed around the unified device property API.

Signed-off-by: Michael Hennerich <[hidden email]>
Signed-off-by: Jonathan Cameron <[hidden email]>
(cherry picked from commit b0570bcee39a313aea693612d061d6417ab06a2e)
(source: git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git)
Signed-off-by: Shrirang Bagul <[hidden email]>
---
 drivers/iio/dac/ad5592r.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/iio/dac/ad5592r.c b/drivers/iio/dac/ad5592r.c
index 0b235a2..0aba8c5 100644
--- a/drivers/iio/dac/ad5592r.c
+++ b/drivers/iio/dac/ad5592r.c
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/spi/spi.h>
+#include <linux/acpi.h>
 
 #define AD5592R_GPIO_READBACK_EN BIT(10)
 #define AD5592R_LDAC_READBACK_EN BIT(6)
@@ -148,10 +149,17 @@ static const struct of_device_id ad5592r_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, ad5592r_of_match);
 
+static const struct acpi_device_id ad5592r_acpi_match[] = {
+ {"ADS5592", },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, ad5592r_acpi_match);
+
 static struct spi_driver ad5592r_spi_driver = {
  .driver = {
  .name = "ad5592r",
  .of_match_table = of_match_ptr(ad5592r_of_match),
+ .acpi_match_table = ACPI_PTR(ad5592r_acpi_match),
  },
  .probe = ad5592r_spi_probe,
  .remove = ad5592r_spi_remove,
--
2.9.3


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: ad5593r: Add ACPI support

Shrirang Bagul
In reply to this post by Shrirang Bagul
From: Michael Hennerich <[hidden email]>

BugLink: https://bugs.launchpad.net/bugs/1654497

This patch adds the ACPI/PNP ID. The AD5592/3 driver core is already
designed around the unified device property API.

Signed-off-by: Michael Hennerich <[hidden email]>
Signed-off-by: Jonathan Cameron <[hidden email]>
(cherry picked from commit 2cc5b0df86dc2e8b3fa0309d145e6ab5f529eff7)
(source: git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git)
Signed-off-by: Shrirang Bagul <[hidden email]>
---
 drivers/iio/dac/ad5593r.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/iio/dac/ad5593r.c b/drivers/iio/dac/ad5593r.c
index dca158a..fc11ea0 100644
--- a/drivers/iio/dac/ad5593r.c
+++ b/drivers/iio/dac/ad5593r.c
@@ -13,6 +13,7 @@
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/of.h>
+#include <linux/acpi.h>
 
 #define AD5593R_MODE_CONF (0 << 4)
 #define AD5593R_MODE_DAC_WRITE (1 << 4)
@@ -115,10 +116,17 @@ static const struct of_device_id ad5593r_of_match[] = {
 };
 MODULE_DEVICE_TABLE(of, ad5593r_of_match);
 
+static const struct acpi_device_id ad5593r_acpi_match[] = {
+ {"ADS5593", },
+ { },
+};
+MODULE_DEVICE_TABLE(acpi, ad5593r_acpi_match);
+
 static struct i2c_driver ad5593r_driver = {
  .driver = {
  .name = "ad5593r",
  .of_match_table = of_match_ptr(ad5593r_of_match),
+ .acpi_match_table = ACPI_PTR(ad5593r_acpi_match),
  },
  .probe = ad5593r_i2c_probe,
  .remove = ad5593r_i2c_remove,
--
2.9.3


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|

ACK: [PATCH 0/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: Support ACPI probe for AD5592/3 multi-channel converters

Tim Gardner-2
In reply to this post by Shrirang Bagul
Reply | Threaded
Open this post in threaded view
|

ACK: [PATCH 0/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: Support ACPI probe for AD5592/3 multi-channel converters

Brad Figg-2
In reply to this post by Shrirang Bagul
Reply | Threaded
Open this post in threaded view
|

APPLIED: [PATCH 0/2][Xenial][SRU] UBUNTU: SAUCE: iio: dac: Support ACPI probe for AD5592/3 multi-channel converters

Luis Henriques
In reply to this post by Shrirang Bagul
Applied to xenial master-next branch.

Cheers,
--
Luís

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team

signature.asc (836 bytes) Download Attachment