mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergiu Moga <sergiu.moga@microchip.com>
To: <a.zummo@towertech.it>, <alexandre.belloni@bootlin.com>,
	<robh+dt@kernel.org>, <krzysztof.kozlowski@canonical.com>,
	<nicolas.ferre@microchip.com>, <claudiu.beznea@microchip.com>
Cc: <linux-rtc@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	Sergiu Moga <sergiu.moga@microchip.com>
Subject: [PATCH v3 4/5] dt-bindings: rtc: at91: Use macros for the IRQ type
Date: Fri, 4 Mar 2022 16:27:45 +0200	[thread overview]
Message-ID: <20220304142746.121947-5-sergiu.moga@microchip.com> (raw)
In-Reply-To: <20220304142746.121947-1-sergiu.moga@microchip.com>

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


  parent reply	other threads:[~2022-03-04 14:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-04 14:27 [PATCH v3 0/5] dt-bindings: rtc: convert at91sam9 bindings to Sergiu Moga
2022-03-04 14:27 ` [PATCH v3 1/5] ARM: dts: at91: Add the required `atmel,rtt-rtc-time-reg` property Sergiu Moga
2022-03-04 14:53   ` Alexandre Belloni
2022-03-04 15:29     ` Sergiu.Moga
2022-03-04 15:43       ` Alexandre Belloni
2022-03-04 14:27 ` [PATCH v3 2/5] ARM: dts: at91: Use the generic "rtc" node name for the rtt IPs Sergiu Moga
2022-03-04 14:27 ` [PATCH v3 3/5] dt-bindings: rtc: convert at91sam9 bindings to json-schema Sergiu Moga
2022-03-04 14:42   ` Krzysztof Kozlowski
2022-03-04 14:27 ` Sergiu Moga [this message]
2022-03-04 14:44   ` [PATCH v3 4/5] dt-bindings: rtc: at91: Use macros for the IRQ type Krzysztof Kozlowski
2022-03-04 15:52     ` Sergiu.Moga
2022-03-04 14:27 ` [PATCH v3 5/5] dt-bindings: rtc: at91: Add SAMA7G5 compatible strings list Sergiu Moga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220304142746.121947-5-sergiu.moga@microchip.com \
    --to=sergiu.moga@microchip.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@bootlin.com \
    --cc=claudiu.beznea@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski@canonical.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rtc@vger.kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®