devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/1] dt-bindings: rtc: atcrtc100: add Andes atcrtc100
@ 2024-11-04 14:40 CL Wang
  2024-11-04 14:40 ` [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock CL Wang
  0 siblings, 1 reply; 4+ messages in thread
From: CL Wang @ 2024-11-04 14:40 UTC (permalink / raw)
  To: cl634, alexandre.belloni, robh, krzk+dt, conor+dt, linux-rtc,
	devicetree, linux-kernel
  Cc: tim609

Document the Andes atcrtc100 device tree bindings.

CL Wang (1):
  dt-bindings: rtc: add atcrtc100 Real Time Clock

 .../bindings/rtc/andestech,atcrtc100.yaml     | 44 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock
  2024-11-04 14:40 [PATCH V3 0/1] dt-bindings: rtc: atcrtc100: add Andes atcrtc100 CL Wang
@ 2024-11-04 14:40 ` CL Wang
  2024-11-04 14:47   ` Krzysztof Kozlowski
  2024-11-04 20:50   ` Alexandre Belloni
  0 siblings, 2 replies; 4+ messages in thread
From: CL Wang @ 2024-11-04 14:40 UTC (permalink / raw)
  To: cl634, alexandre.belloni, robh, krzk+dt, conor+dt, linux-rtc,
	devicetree, linux-kernel
  Cc: tim609

Document devicetree bindings for the Andes atcrtc100 Real Time Clock.

Signed-off-by: CL Wang <cl634@andestech.com>
---
 .../bindings/rtc/andestech,atcrtc100.yaml     | 44 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml

diff --git a/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml b/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
new file mode 100644
index 000000000000..cf99cff76734
--- /dev/null
+++ b/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rtc/andestech,atcrtc100.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Andes ATCRTC100 Real-Time Clock
+
+maintainers:
+  - CL Wang <cl634@andestech.com>
+
+allOf:
+  - $ref: rtc.yaml#
+
+properties:
+  compatible:
+    enum:
+      - andestech,atcrtc100
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: Periodic timekeeping interrupt
+      - description: RTC alarm interrupt
+
+  wakeup-source: true
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    rtc@f0300000 {
+        compatible = "andestech,atcrtc100";
+        reg = <0xf0300000 0x100>;
+        interrupts = <1>, <2>;
+        wakeup-source;
+    };
diff --git a/MAINTAINERS b/MAINTAINERS
index 10342c0fa599..372d7ea53c98 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3357,6 +3357,7 @@ F:	include/linux/mfd/atc260x/*
 ATCRTC100 RTC DRIVER
 M:	CL Wang <cl634@andestech.com>
 S:	Supported
+F:	Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
 F:	drivers/rtc/rtc-atcrtc100.c
 
 ATHEROS 71XX/9XXX GPIO DRIVER
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock
  2024-11-04 14:40 ` [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock CL Wang
@ 2024-11-04 14:47   ` Krzysztof Kozlowski
  2024-11-04 20:50   ` Alexandre Belloni
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-11-04 14:47 UTC (permalink / raw)
  To: CL Wang, alexandre.belloni, robh, krzk+dt, conor+dt, linux-rtc,
	devicetree, linux-kernel
  Cc: tim609

On 04/11/2024 15:40, CL Wang wrote:
> Document devicetree bindings for the Andes atcrtc100 Real Time Clock.
> 
> Signed-off-by: CL Wang <cl634@andestech.com>
> ---

What changed? Explain in details.

In the future, please provide changelog under '---' or in cover letter.

Where is the driver? Why this is sent separately?

>  .../bindings/rtc/andestech,atcrtc100.yaml     | 44 +++++++++++++++++++
>  MAINTAINERS                                   |  1 +
>  2 files changed, 45 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
> 

...

> diff --git a/MAINTAINERS b/MAINTAINERS
> index 10342c0fa599..372d7ea53c98 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3357,6 +3357,7 @@ F:	include/linux/mfd/atc260x/*
>  ATCRTC100 RTC DRIVER
>  M:	CL Wang <cl634@andestech.com>
>  S:	Supported
> +F:	Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
>  F:	drivers/rtc/rtc-atcrtc100.c

There is no such file.


Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock
  2024-11-04 14:40 ` [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock CL Wang
  2024-11-04 14:47   ` Krzysztof Kozlowski
@ 2024-11-04 20:50   ` Alexandre Belloni
  1 sibling, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2024-11-04 20:50 UTC (permalink / raw)
  To: CL Wang
  Cc: robh, krzk+dt, conor+dt, linux-rtc, devicetree, linux-kernel,
	tim609

On 04/11/2024 22:40:53+0800, CL Wang wrote:
> Document devicetree bindings for the Andes atcrtc100 Real Time Clock.
> 
> Signed-off-by: CL Wang <cl634@andestech.com>
> ---
>  .../bindings/rtc/andestech,atcrtc100.yaml     | 44 +++++++++++++++++++
>  MAINTAINERS                                   |  1 +
>  2 files changed, 45 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
> 
> diff --git a/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml b/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
> new file mode 100644
> index 000000000000..cf99cff76734
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/andestech,atcrtc100.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Andes ATCRTC100 Real-Time Clock
> +
> +maintainers:
> +  - CL Wang <cl634@andestech.com>
> +
> +allOf:
> +  - $ref: rtc.yaml#
> +
> +properties:
> +  compatible:
> +    enum:
> +      - andestech,atcrtc100
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    items:
> +      - description: Periodic timekeeping interrupt
> +      - description: RTC alarm interrupt
> +
> +  wakeup-source: true

The driver misuses this property. wakeup-source is mutually exclusive
with the alarm interrupt. The driver requires both interrupts to be
present so the property is useless (which is expected as the interrupt
lines are always connected to the CPU)

> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    rtc@f0300000 {
> +        compatible = "andestech,atcrtc100";
> +        reg = <0xf0300000 0x100>;
> +        interrupts = <1>, <2>;
> +        wakeup-source;
> +    };
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 10342c0fa599..372d7ea53c98 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3357,6 +3357,7 @@ F:	include/linux/mfd/atc260x/*
>  ATCRTC100 RTC DRIVER
>  M:	CL Wang <cl634@andestech.com>
>  S:	Supported
> +F:	Documentation/devicetree/bindings/rtc/andestech,atcrtc100.yaml
>  F:	drivers/rtc/rtc-atcrtc100.c
>  
>  ATHEROS 71XX/9XXX GPIO DRIVER
> -- 
> 2.34.1
> 

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-04 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-04 14:40 [PATCH V3 0/1] dt-bindings: rtc: atcrtc100: add Andes atcrtc100 CL Wang
2024-11-04 14:40 ` [PATCH V3 1/1] dt-bindings: rtc: add atcrtc100 Real Time Clock CL Wang
2024-11-04 14:47   ` Krzysztof Kozlowski
2024-11-04 20:50   ` Alexandre Belloni

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).