Skip to contentSkip to conversation

dt-binding: pcf85063: Add an entry for pca85073a

PATCH Applied Fabio Estevam 3 participants 4 messages Apr 19, 2022 – May 17, 2022

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

PATCH 1/2 dt-binding: pcf85063: Add an entry for pca85073a

From: Fabio Estevam <[email protected]>

The PCA85073A RTC has the same programming model as the PCF85063A.

Add a compatible entry for it.

---
 Documentation/devicetree/bindings/rtc/nxp,pcf85063.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/rtc/nxp,pcf85063.txt +1 -0
index 6439682c9319..217b7cd06c11 100644
@@ -2,6 +2,7 @@
 
 Required properties:
 - compatible: Should one of contain:
+	"nxp,pca85073a",
 	"nxp,pcf85063",
 	"nxp,pcf85063a",
 	"nxp,pcf85063tp",
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 rtc: pcf85063: Add a compatible entry for pca85073a

From: Fabio Estevam <[email protected]>

The PCA85073A RTC has the same programming model as the PCF85063A.

Add a compatible entry for it.

Tested on a custom i.MX6SX based board.

---
 drivers/rtc/rtc-pcf85063.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rtc-pcf85063.c +2 -0
index 9760824ec199..095891999da1 100644
@@ -650,6 +650,7 @@ static int pcf85063_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pcf85063_ids[] = {
+	{ "pca85073a", PCF85063A },
 	{ "pcf85063", PCF85063 },
 	{ "pcf85063tp", PCF85063TP },
 	{ "pcf85063a", PCF85063A },
@@ -660,6 +661,7 @@ MODULE_DEVICE_TABLE(i2c, pcf85063_ids);
 
 #ifdef CONFIG_OF
 static const struct of_device_id pcf85063_of_match[] = {
+	{ .compatible = "nxp,pca85073a", .data = &pcf85063_cfg[PCF85063A] },
 	{ .compatible = "nxp,pcf85063", .data = &pcf85063_cfg[PCF85063] },
 	{ .compatible = "nxp,pcf85063tp", .data = &pcf85063_cfg[PCF85063TP] },
 	{ .compatible = "nxp,pcf85063a", .data = &pcf85063_cfg[PCF85063A] },
Signature · 1 line
2.25.1
maintainer Applied
#3 lore raw
In reply to Fabio Estevam
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

The PCA85073A RTC has the same programming model as the PCF85063A.

Add a compatible entry for it.

[...]

Applied, thanks!

[1/2] dt-binding: pcf85063: Add an entry for pca85073a

      commit: bb9b98071eacc5f195fe3e7cb0c7664df4cff60f
[2/2] rtc: pcf85063: Add a compatible entry for pca85073a
      commit: aabfe05a824585f64a0620f131841f12ee259a20

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com