lkml.org 
[lkml]   [2022]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 4/5] dt-bindings: rtc: at91: Use macros for the IRQ type
Date
Prefer using macros for the IRQ type of the example node's
interrupt property.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
---
Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
index af25cc275356..d2452067bfe4 100644
--- a/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/atmel,at91sam9-rtc.yaml
@@ -54,10 +54,12 @@ unevaluatedProperties: false

examples:
- |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
rtc@fffffd20 {
compatible = "atmel,at91sam9260-rtt";
reg = <0xfffffd20 0x10>;
- interrupts = <1 4 7>;
+ interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
clocks = <&clk32k>;
atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
};
--
2.25.1
\
 
 \ /
  Last update: 2022-03-04 15:30    [W:0.094 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site