Skip to contentSkip to conversation

dt-bindings: rtc: Add rv3028 to rv3032.yaml dtschema

PATCH In review Wadim Egorov 3 participants 5 messages Dec 28, 2022 – Dec 30, 2022

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

PATCH 1/1 dt-bindings: rtc: Add rv3028 to rv3032.yaml dtschema

Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml. RV3028 can have a trickle-resitor-ohms property. Make it known to dtschema.

---
 .../bindings/rtc/microcrystal,rv3028.yaml     | 56 +++++++++++++++++++
 .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
 2 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +56 -0
new file mode 100644
index 000000000000..4abe4756bc9b
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3028 RTC
+
+allOf:
+  - $ref: "rtc.yaml#"
+
+maintainers:
+  - Alexandre Belloni <[email protected]>
+
+properties:
+  compatible:
+    const: microcrystal,rv3028
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  start-year: true
+
+  trickle-resistor-ohms:
+    enum:
+      - 3000
+      - 5000
+      - 9000
+      - 15000
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        rtc@51 {
+            compatible = "microcrystal,rv3028";
+            reg = <0x51>;
+            pinctrl-0 = <&rtc_nint_pins>;
+            interrupts-extended = <&gpio1 16 IRQ_TYPE_LEVEL_HIGH>;
+            trickle-resistor-ohms = <3000>;
+        };
+    };
+
+...
Documentation/devicetree/bindings/rtc/trivial-rtc.yaml +0 -2
index d9fc120c61cc..84cce1f0ca0c 100644
@@ -48,8 +48,6 @@ properties:
       # Intersil ISL12022 Real-time Clock
       - isil,isl12022
       # Real Time Clock Module with I2C-Bus
-      - microcrystal,rv3028
-      # Real Time Clock Module with I2C-Bus
       - microcrystal,rv3029
       # Real Time Clock
       - microcrystal,rv8523
Signature · 1 line
2.34.1
#1 lore raw

Your subject is a bit incorrect. You do not add rv3028 to rv3032.yaml. Also drop redundant "dtschema". Instead "Extend rv3028 bindings"

Quoted 2 lines · Wadim Egorov

Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml. RV3028 can have a trickle-resitor-ohms property. Make it known to dtschema.

I don't understand what is here made known to dtschema, so maybe drop last sentence.

Quoted 14 lines
---
 .../bindings/rtc/microcrystal,rv3028.yaml     | 56 +++++++++++++++++++
 .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
 2 files changed, 56 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +0 -0
new file mode 100644
index 000000000000..4abe4756bc9b

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +10 -0
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3028 RTC
+
+allOf:
+  - $ref: "rtc.yaml#"

Drop quotes.

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 13

Quoted 3 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +3 -0
+
+maintainers:
+  - Alexandre Belloni <[email protected]>

This should not be maintainer of subsystem but maintainer of device (unless it is the same person?).

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 25

Quoted 12 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +12 -0
+
+properties:
+  compatible:
+    const: microcrystal,rv3028
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  start-year: true

Drop, it's coming from rtc.yaml.

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 38

Quoted 13 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +13 -0
+
+  trickle-resistor-ohms:
+    enum:
+      - 3000
+      - 5000
+      - 9000
+      - 15000
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false

Instead:
unevaluatedProperties: false

Best regards,
Krzysztof

#2 lore raw

Am 28.12.22 um 15:15 schrieb Krzysztof Kozlowski:

Quoted 35 lines

Your subject is a bit incorrect. You do not add rv3028 to rv3032.yaml. Also drop redundant "dtschema". Instead "Extend rv3028 bindings"

Quoted 2 lines · Wadim Egorov

Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml. RV3028 can have a trickle-resitor-ohms property. Make it known to dtschema.

I don't understand what is here made known to dtschema, so maybe drop last sentence.

Quoted 13 lines
---
  .../bindings/rtc/microcrystal,rv3028.yaml     | 56 +++++++++++++++++++
  .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
  2 files changed, 56 insertions(+), 2 deletions(-)

create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +0 -0
new file mode 100644
index 000000000000..4abe4756bc9b

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +10 -0
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3028 RTC
+
+allOf:
+  - $ref: "rtc.yaml#"

Drop quotes.

Quoted 6 lines

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 13

Quoted 3 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +3 -0
+
+maintainers:
+  - Alexandre Belloni <[email protected]>

This should not be maintainer of subsystem but maintainer of device (unless it is the same person?).

Hi Krzysztof,

who would be the maintainer for this RTC?
I am not able to find a maintainer.

Can I keep Alexandre Belloni as the maintainer since there seem to be no maintainer for the RV3028 RTC.

Regards,
Wadim

#3 lore raw
Quoted 6 lines · Wadim Egorov
Quoted 6 lines

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 13

Quoted 3 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +3 -0
+
+maintainers:
+  - Alexandre Belloni <[email protected]>

This should not be maintainer of subsystem but maintainer of device (unless it is the same person?).

Quoted 7 lines

Hi Krzysztof,

who would be the maintainer for this RTC?
I am not able to find a maintainer.

Can I keep Alexandre Belloni as the maintainer since there seem to be no maintainer for the RV3028 RTC.

I guess it is fine. Alexandre contributed a lot to the driver, so actually he might know it.

Best regards,
Krzysztof

#4 lore raw
In reply to Wadim Egorov
Quoted 42 lines · Wadim Egorov

Am 28.12.22 um 15:15 schrieb Krzysztof Kozlowski:

Quoted 35 lines

Your subject is a bit incorrect. You do not add rv3028 to rv3032.yaml. Also drop redundant "dtschema". Instead "Extend rv3028 bindings"

Quoted 2 lines · Wadim Egorov

Move RV3028 RTC bindings from trivial-rtc.yaml into microcrystal,rv3032.yaml. RV3028 can have a trickle-resitor-ohms property. Make it known to dtschema.

I don't understand what is here made known to dtschema, so maybe drop last sentence.

Quoted 13 lines
---
  .../bindings/rtc/microcrystal,rv3028.yaml     | 56 +++++++++++++++++++
  .../devicetree/bindings/rtc/trivial-rtc.yaml  |  2 -
  2 files changed, 56 insertions(+), 2 deletions(-)

create mode 100644 Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +0 -0
new file mode 100644
index 000000000000..4abe4756bc9b

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +10 -0
@@ -0,0 +1,56 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/microcrystal,rv3028.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip RV-3028 RTC
+
+allOf:
+  - $ref: "rtc.yaml#"

Drop quotes.

Quoted 6 lines

Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml line 13

Quoted 3 lines
Documentation/devicetree/bindings/rtc/microcrystal,rv3028.yaml new file +3 -0
+
+maintainers:
+  - Alexandre Belloni <[email protected]>

This should not be maintainer of subsystem but maintainer of device (unless it is the same person?).

Quoted 5 lines

Hi Krzysztof,

who would be the maintainer for this RTC?
I am not able to find a maintainer.

I am the maintainer for this RTC driver

Quoted 7 lines

Can I keep Alexandre Belloni as the maintainer since there seem to be no maintainer for the RV3028 RTC.

Regards,
Wadim

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