* [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV
@ 2020-09-21 17:17 Alexandre Belloni
2020-09-21 17:17 ` [PATCH 2/3] dt-bindings: rtc: rv3032: add RV-3023 bindings Alexandre Belloni
2020-09-29 17:47 ` [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Rob Herring
0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Belloni @ 2020-09-21 17:17 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni, Rob Herring
Cc: linux-rtc, devicetree, linux-kernel
Some RTCs have a trickle charge that is able to output different voltages
depending on the type of the connected auxiliary power (battery, supercap,
...). Add a property allowing to specify the necessary voltage.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
Documentation/devicetree/bindings/rtc/rtc.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml
index ee237b2ed66a..93f04d5e5307 100644
--- a/Documentation/devicetree/bindings/rtc/rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/rtc.yaml
@@ -42,6 +42,13 @@ properties:
Selected resistor for trickle charger. Should be given
if trickle charger should be enabled.
+ trickle-voltage-mV:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Selected voltage for trickle charger. Should be given
+ if trickle charger should be enabled and the trickle voltage is different
+ from the RTC main power supply.
+
wakeup-source:
$ref: /schemas/types.yaml#/definitions/flag
description:
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/3] dt-bindings: rtc: rv3032: add RV-3023 bindings
2020-09-21 17:17 [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Alexandre Belloni
@ 2020-09-21 17:17 ` Alexandre Belloni
2020-09-29 17:47 ` [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2020-09-21 17:17 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni, Rob Herring
Cc: linux-rtc, devicetree, linux-kernel
Document the Microcrystal RV-3032 device tree bindings
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
.../bindings/rtc/microcrystal,rv3032.yaml | 64 +++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml
diff --git a/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml b/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml
new file mode 100644
index 000000000000..17411125f0b4
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/microcrystal,rv3032.yaml
@@ -0,0 +1,64 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3032.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3032 RTC Device Tree Bindings
+
+allOf:
+ - $ref: "rtc.yaml#"
+
+maintainers:
+ - Alexandre Belloni <alexandre.belloni@bootlin.com>
+
+properties:
+ compatible:
+ const: microcrystal,rv3032
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ start-year: true
+
+ trickle-resistor-ohms:
+ enum:
+ - 1000
+ - 2000
+ - 7000
+ - 11000
+
+ trickle-voltage-mV:
+ enum:
+ - 1750
+ - 3000
+ - 4400
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ rtc@51 {
+ compatible = "microcrystal,rv3032";
+ reg = <0x51>;
+ status = "okay";
+ pinctrl-0 = <&rtc_nint_pins>;
+ interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
+ trickle-resistor-ohms = <7000>;
+ trickle-voltage-mV = <1750>;
+ };
+ };
+
+...
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV
2020-09-21 17:17 [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Alexandre Belloni
2020-09-21 17:17 ` [PATCH 2/3] dt-bindings: rtc: rv3032: add RV-3023 bindings Alexandre Belloni
@ 2020-09-29 17:47 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2020-09-29 17:47 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: Alessandro Zummo, linux-rtc, devicetree, linux-kernel
On Mon, Sep 21, 2020 at 07:17:32PM +0200, Alexandre Belloni wrote:
> Some RTCs have a trickle charge that is able to output different voltages
> depending on the type of the connected auxiliary power (battery, supercap,
> ...). Add a property allowing to specify the necessary voltage.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> Documentation/devicetree/bindings/rtc/rtc.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/rtc/rtc.yaml b/Documentation/devicetree/bindings/rtc/rtc.yaml
> index ee237b2ed66a..93f04d5e5307 100644
> --- a/Documentation/devicetree/bindings/rtc/rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/rtc.yaml
> @@ -42,6 +42,13 @@ properties:
> Selected resistor for trickle charger. Should be given
> if trickle charger should be enabled.
>
> + trickle-voltage-mV:
Use standard unit suffix.
> + $ref: /schemas/types.yaml#/definitions/uint32
And then you don't need a type.
> + description:
> + Selected voltage for trickle charger. Should be given
> + if trickle charger should be enabled and the trickle voltage is different
> + from the RTC main power supply.
> +
> wakeup-source:
> $ref: /schemas/types.yaml#/definitions/flag
> description:
> --
> 2.26.2
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-29 17:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21 17:17 [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Alexandre Belloni
2020-09-21 17:17 ` [PATCH 2/3] dt-bindings: rtc: rv3032: add RV-3023 bindings Alexandre Belloni
2020-09-29 17:47 ` [PATCH 1/3] dt-bindings: rtc: add trickle-voltage-mV Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).