Re: [PATCH v10 2/2] rtc: Add NXP PCF85053 driver support
From: Potin Lai
Date: Tue Oct 20 2026 - 00:41:53 EST
On Mon, 14 Sep 2026 19:45:37 +0530, Lakshay Piplani <lakshay.piplani@xxxxxxx> wrote:
> diff --git a/drivers/rtc/rtc-pcf85053.c b/drivers/rtc/rtc-pcf85053.c
> new file mode 100644
> index 000000000000..2eb94b1da3ed
> --- /dev/null
> +++ b/drivers/rtc/rtc-pcf85053.c
> @@ -0,0 +1,900 @@
> [ ... skip 770 lines ... ]
> +
> + dev_set_drvdata(dev, pcf85053);
> +
> + if (of_property_read_string(dev->of_node, "nxp,interface", &iface))
> + return dev_err_probe(dev, -EINVAL,
> + "Missing mandatory property: nxp,interface\n");
Hi Lakshay,
Would it be possible to provide a fallback default true for
`pcf85053->is_primary` if the property is omitted?
In the current implementation, nxp,interface is strictly mandatory.
However, when users instantiate the device via the sysfs new_device
interface (e.g., echo pcf85053a 0x6f > /sys/bus/i2c/devices/i2c-X/new_device),
there is no way to pass Device Tree properties. Because of this, probe
will always fail with -EINVAL.
Thanks,
Potin
--
Potin Lai <potin.lai.pt@xxxxxxxxx>