From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: linux-renesas-soc@vger.kernel.org
Cc: linux-i2c@vger.kernel.org, devicetree-spec@vger.kernel.org,
Wolfram Sang <wsa+renesas@sang-engineering.com>
Subject: [PATCH v2 dt-schema 2/3] schemas: i2c: clean up interrupt descriptions for I2C targets
Date: Thu, 15 Aug 2024 23:40:12 +0200 [thread overview]
Message-ID: <20240815214013.6519-3-wsa+renesas@sang-engineering.com> (raw)
In-Reply-To: <20240815214013.6519-1-wsa+renesas@sang-engineering.com>
Schemas should be OS agnostic, so don't mention what the "I2C core" will
do because this only applies to Linux. Also, drop the generic
"smbus_alert" naming because this belongs to controllers not targets, so
we don't want to describe it here. Finally, use "contains" instead of
"items" because the enum is not exhaustive.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
dtschema/schemas/i2c/i2c-controller.yaml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dtschema/schemas/i2c/i2c-controller.yaml b/dtschema/schemas/i2c/i2c-controller.yaml
index e475ead..6dc73f8 100644
--- a/dtschema/schemas/i2c/i2c-controller.yaml
+++ b/dtschema/schemas/i2c/i2c-controller.yaml
@@ -171,20 +171,20 @@ patternProperties:
interrupts:
description:
- I2C core will treat "irq" interrupt (or the very first interrupt if
- not using interrupt names) as primary interrupt for the target.
+ If not using interrupt-names, the first interrupt will be treated as
+ the primary interrupt for the target.
interrupt-names:
anyOf:
- {} # Any name is allowed.
- - items:
+ - contains:
enum:
- irq
- wakeup
- - smbus_alert
description:
- Names which are recognized by I2C core, other names are left to
- individual bindings.
+ Generic names are "irq" for the primary interrupt and "wakeup"
+ for the wakeup interrupt. Other names are left to individual
+ bindings.
wakeup-source:
description:
--
2.43.0
next prev parent reply other threads:[~2024-08-15 21:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-15 21:40 [PATCH v2 dt-schema 0/3] schemas: i2c: fix "smbus_alert" handling Wolfram Sang
2024-08-15 21:40 ` [PATCH v2 dt-schema 1/3] schemas: i2c: reword descriptions for inclusive language Wolfram Sang
2024-08-15 21:40 ` Wolfram Sang [this message]
2024-08-15 21:40 ` [PATCH v2 dt-schema 3/3] schemas: i2c: add generic interrupt name for I2C controllers Wolfram Sang
2024-08-15 22:48 ` [PATCH v2 dt-schema 0/3] schemas: i2c: fix "smbus_alert" handling Rob Herring
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=20240815214013.6519-3-wsa+renesas@sang-engineering.com \
--to=wsa+renesas@sang-engineering.com \
--cc=devicetree-spec@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-renesas-soc@vger.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;
as well as URLs for NNTP newsgroup(s).