Skip to contentSkip to conversation

Add support for texas dac121c081 to the dac5571 driver

PATCH Applied Peter Rosin 3 participants 8 messages Apr 25, 2022 – May 22, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Add support for texas dac121c081 to the dac5571 driver

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Cheers,
Peter

Peter Rosin (2):
dt-bindings: iio: ti-dac5571: Add ti,dac121c081
iio: dac: ti-dac5571: add support for ti,dac121c081

 Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml | 1 +
 drivers/iio/dac/Kconfig                                   | 2 +-
 drivers/iio/dac/ti-dac5571.c                              | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/2 dt-bindings: iio: ti-dac5571: Add ti,dac121c081

It works much the same as ti,dac7571, so it fits in the "family" even if the name is a little bit different.

---
 Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml +1 -0
index 714191724f7c..88298bc43b81 100644
@@ -21,6 +21,7 @@ properties:
       - ti,dac5573
       - ti,dac6573
       - ti,dac7573
+      - ti,dac121c081
 
   reg:
     maxItems: 1
Signature · 1 line
2.20.1
#2 lore raw

PATCH v2 2/2 iio: dac: ti-dac5571: add support for ti,dac121c081

In reply to Peter Rosin

It fits right in as a single 12-bit DAC.

---
 drivers/iio/dac/Kconfig      | 2 +-
 drivers/iio/dac/ti-dac5571.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/iio/dac/Kconfig +1 -1
index c0bf0d84197f..d6248b188645 100644
@@ -417,7 +417,7 @@ config TI_DAC5571
 	help
 	  Driver for the Texas Instruments
 	  DAC5571, DAC6571, DAC7571, DAC5574, DAC6574, DAC7574, DAC5573,
-	  DAC6573, DAC7573, DAC8571, DAC8574.
+	  DAC6573, DAC7573, DAC8571, DAC8574, DAC121C081.
 
 	  If compiled as a module, it will be called ti-dac5571.
 
drivers/iio/dac/ti-dac5571.c +3 -0
index 4a3b8d875518..ce542bd8b69e 100644
@@ -13,6 +13,7 @@
  * https://www.ti.com/lit/ds/symlink/dac5573.pdf
  * https://www.ti.com/lit/ds/symlink/dac6573.pdf
  * https://www.ti.com/lit/ds/symlink/dac7573.pdf
+ * https://www.ti.com/lit/ds/symlink/dac121c081.pdf
  */
 
 #include <linux/iio/iio.h>
@@ -394,6 +395,7 @@ static const struct of_device_id dac5571_of_id[] = {
 	{.compatible = "ti,dac5573"},
 	{.compatible = "ti,dac6573"},
 	{.compatible = "ti,dac7573"},
+	{.compatible = "ti,dac121c081"},
 	{}
 };
 MODULE_DEVICE_TABLE(of, dac5571_of_id);
@@ -408,6 +410,7 @@ static const struct i2c_device_id dac5571_id[] = {
 	{"dac5573", quad_8bit},
 	{"dac6573", quad_10bit},
 	{"dac7573", quad_12bit},
+	{"dac121c081", single_12bit},
 	{}
 };
 MODULE_DEVICE_TABLE(i2c, dac5571_id);
Signature · 1 line
2.20.1
maintainer Applied
#3 lore raw
In reply to Peter Rosin
Quoted 9 lines · On Mon, 25 Apr 2022 22:46:30 +0200 Peter Rosin <[email protected]> wrote:

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Applied. Thanks

Jonathan

Quoted 13 lines

Cheers,
Peter

Peter Rosin (2):
dt-bindings: iio: ti-dac5571: Add ti,dac121c081
iio: dac: ti-dac5571: add support for ti,dac121c081

 Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml | 1 +
 drivers/iio/dac/Kconfig                                   | 2 +-
 drivers/iio/dac/ti-dac5571.c                              | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)
maintainer
#4 lore raw
Quoted 8 lines · On Thu, 28 Apr 2022 20:44:39 +0100 Jonathan Cameron <[email protected]> wrote:
Quoted 5 lines · On Mon, 25 Apr 2022 22:46:30 +0200 Peter Rosin <[email protected]> wrote:

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Quoted 6 lines
Quoted 4 lines

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Applied. Thanks

Backed out temporarily because they have crossed with a fix (that I'd forgotten about) and were requiring a non trivial merge in linux-next.

https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/

Hopefully that will get resolved in my upstream fairly soon and I can fix this one up whilst applying it myself.

Thanks,

Jonathan

Quoted 17 lines

Jonathan

Quoted 13 lines

Cheers,
Peter

Peter Rosin (2):
dt-bindings: iio: ti-dac5571: Add ti,dac121c081
iio: dac: ti-dac5571: add support for ti,dac121c081

 Documentation/devicetree/bindings/iio/dac/ti,dac5571.yaml | 1 +
 drivers/iio/dac/Kconfig                                   | 2 +-
 drivers/iio/dac/ti-dac5571.c                              | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)
#5 lore raw

HI!

Quoted 18 lines · Jonathan Cameron
Quoted 8 lines · On Thu, 28 Apr 2022 20:44:39 +0100 Jonathan Cameron <[email protected]> wrote:
Quoted 5 lines · On Mon, 25 Apr 2022 22:46:30 +0200 Peter Rosin <[email protected]> wrote:

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Quoted 6 lines
Quoted 4 lines

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Applied. Thanks

Quoted 7 lines

Backed out temporarily because they have crossed with a fix (that I'd forgotten about) and were requiring a non trivial merge in linux-next.

https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/

Hopefully that will get resolved in my upstream fairly soon and I can fix this one up whilst applying it myself.

Looks like it might be time to bring this one in from the cold?

Cheers,
Peter

#6 lore raw
Quoted 24 lines · On Thu, 12 May 2022 10:59:48 +0200 Peter Rosin <[email protected]> wrote:

HI!

Quoted 21 lines · Jonathan Cameron
Quoted 8 lines · On Thu, 28 Apr 2022 20:44:39 +0100 Jonathan Cameron <[email protected]> wrote:
Quoted 5 lines · On Mon, 25 Apr 2022 22:46:30 +0200 Peter Rosin <[email protected]> wrote:

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Quoted 6 lines
Quoted 4 lines

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Applied. Thanks

Backed out temporarily because they have crossed with a fix (that I'd forgotten about) and were requiring a non trivial merge in linux-next.

Quoted 6 lines
Quoted 4 lines

https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/

Hopefully that will get resolved in my upstream fairly soon and I can fix this one up whilst applying it myself.

Looks like it might be time to bring this one in from the cold?

Nearly. I have a pull request out to Greg. Once he's taken that I'll fastforward the togreg branch to include the fix and can then apply this.

Jonathan

Quoted 3 lines

Cheers,
Peter

maintainer
#7 lore raw
Quoted 29 lines · On Thu, 12 May 2022 14:02:32 +0100 Jonathan Cameron…
Quoted 26 lines · On Thu, 12 May 2022 10:59:48 +0200 Peter Rosin <[email protected]> wrote:

HI!

Quoted 23 lines · Jonathan Cameron
Quoted 8 lines · On Thu, 28 Apr 2022 20:44:39 +0100 Jonathan Cameron <[email protected]> wrote:
Quoted 5 lines · On Mon, 25 Apr 2022 22:46:30 +0200 Peter Rosin <[email protected]> wrote:

Hi!

The new chip works much like the other chips supported by the driver, so this is just adding another compatible to the list.

Quoted 6 lines
Quoted 4 lines

Chenages since v1:
- Guenter Roeck noticed elsewhere that my mail setup was botched and that my patches were clobbered. Hopefully fixed. *blush*
- added tags from Sean Nyekjaer and Rob Herring

Applied. Thanks

Backed out temporarily because they have crossed with a fix (that I'd forgotten about) and were requiring a non trivial merge in linux-next.

https://patchwork.kernel.org/project/linux-iio/patch/[email protected]/

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Hopefully that will get resolved in my upstream fairly soon and I can fix this one up whilst applying it myself.

Looks like it might be time to bring this one in from the cold?

Nearly. I have a pull request out to Greg. Once he's taken that I'll fastforward the togreg branch to include the fix and can then apply this.

Now we are good. Applied to the togreg branch of iio.git and added the tweak needed to provide data in the of_device_id table.

Unfortunately timing is against me this time, and unless the merge window is delayed this is now 5.20 material.

Thanks,

Jonathan

Quoted 7 lines

Jonathan

Quoted 3 lines

Cheers,
Peter