[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231024-topic-pcf85363_hiz_output-v1-0-50908aff0e52@wolfvision.net>
Date: Wed, 25 Oct 2023 18:21:53 +0200
From: Javier Carrasco <javier.carrasco@...fvision.net>
To: Alessandro Zummo <a.zummo@...ertech.it>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org,
Javier Carrasco <javier.carrasco@...fvision.net>
Subject: [PATCH 0/2] rtc: pcf85363: add support for high-impedance output
This series adds support for the high-impedance (hi-Z) output mode. The
current implementation only allows two output modes: output clock
(default) and interrupt. In cases where the output is only used in
low-power modes as a clock source for other devices (PMU, PMIC, etc)
or the output is not needed at all, the hi-Z can be used to reduce power
consumption.
To model the hi-Z output, a new property "hiz-output" has been added and
the following cases have been taken into account:
- hiz-output = enabled: the output is not available in the design and
must be kept in high-impedance mode.
- hiz-output = sleep: the output is only required in sleep (low-power)
mode.
- hiz-output = disabled (default): for the sake of completion, this mode
ignores the hiz-output altogether and acts as if the property was not
defined.
Any other value will trigger a dev_warn and the default value (disabled)
will be used as it is done with other non-mandatory properties.
Signed-off-by: Javier Carrasco <javier.carrasco@...fvision.net>
---
Javier Carrasco (2):
rtc: pcf85363: add support for high-impedance output
dt-bindings: rtc: nxp,pcf8563: add hiz-output property
.../devicetree/bindings/rtc/nxp,pcf85363.yaml | 14 +++++
drivers/rtc/rtc-pcf85363.c | 62 +++++++++++++++++++++-
2 files changed, 75 insertions(+), 1 deletion(-)
---
base-commit: cfb67623ce281e045ec11e3eddb1b68b879b53a1
change-id: 20231024-topic-pcf85363_hiz_output-d9c3c1f5ae59
Best regards,
--
Javier Carrasco <javier.carrasco@...fvision.net>
Powered by blists - more mailing lists