From: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
To: Krzysztof Kozlowski <krzk@kernel.org>,
"tglx@linutronix.de" <tglx@linutronix.de>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"tsbogend@alpha.franken.de" <tsbogend@alpha.franken.de>,
"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
"paulburton@kernel.org" <paulburton@kernel.org>,
"peterz@infradead.org" <peterz@infradead.org>,
"mail@birger-koblitz.de" <mail@birger-koblitz.de>,
"bert@biot.com" <bert@biot.com>,
"john@phrozen.org" <john@phrozen.org>,
"sander@svanheule.net" <sander@svanheule.net>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-mips@vger.kernel.org" <linux-mips@vger.kernel.org>,
"kabel@kernel.org" <kabel@kernel.org>,
"ericwouds@gmail.com" <ericwouds@gmail.com>
Subject: Re: [PATCH v3 6/9] dt-bindings: interrupt-controller: realtek,rtl-intc: Add rtl9300-intc
Date: Sun, 30 Jun 2024 22:12:30 +0000 [thread overview]
Message-ID: <1b9f9deb-37b9-4be7-9e95-9ee4f95d3d69@alliedtelesis.co.nz> (raw)
In-Reply-To: <8a708add-52a7-4189-b0f1-e2a4c83230a9@kernel.org>
On 27/06/24 19:41, Krzysztof Kozlowski wrote:
> On 27/06/2024 06:33, Chris Packham wrote:
>> Add a compatible string for the interrupt controller found on the
>> rtl930x SoCs. The interrupt controller has registers for VPE1 so these
>> are added as a second reg cell.
>>
>> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>> ---
>>
>> Notes:
>> Changes in v3:
>> - Use items to describe the regs property
>> Changes in v2:
>> - Set reg:maxItems to 2 to allow for VPE1 registers on the rtl9300. Add
>> a condition to enforce the old limit on other SoCs.
>> - Connor and Krzysztof offered acks on v1 but I think the changes here
>> are big enough to void those.
>>
>> .../interrupt-controller/realtek,rtl-intc.yaml | 18 +++++++++++++++++-
>> 1 file changed, 17 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
>> index fb5593724059..d0e5bdf45d05 100644
>> --- a/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
>> +++ b/Documentation/devicetree/bindings/interrupt-controller/realtek,rtl-intc.yaml
>> @@ -25,6 +25,7 @@ properties:
>> - items:
>> - enum:
>> - realtek,rtl8380-intc
>> + - realtek,rtl9300-intc
>> - const: realtek,rtl-intc
>> - const: realtek,rtl-intc
>> deprecated: true
>> @@ -35,7 +36,9 @@ properties:
>> const: 1
>>
>> reg:
>> - maxItems: 1
> Missing minItems (as testing would tell you)
Hmm I really did test this. Even now running
`make ARCH=mips O=build_mips
DT_SCHEMA_FILES=realtek,rtl-intc.yaml:realtek-rtl.yaml:realtek,otto-timer.yaml
clean dt_binding_check` doesn't seem to yield any complaints. Am I
testing this properly?
>
>> + items:
>> + - description: vpe0 registers
>> + - description: vpe1 registers
>>
>> interrupts:
>> minItems: 1
>> @@ -71,6 +74,19 @@ allOf:
>> else:
>> required:
>> - interrupts
>> + - if:
>> + properties:
>> + compatible:
>> + contains:
>> + const: realtek,rtl9300-intc
>> + then:
>> + properties:
>> + reg:
> Needed is: minItems: 2
>
>> + maxItems: 2
>> + else:
>> + properties:
>> + reg:
>> + maxItems: 1
>>
>> additionalProperties: false
>>
> Best regards,
> Krzysztof
>
next prev parent reply other threads:[~2024-06-30 22:21 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 4:33 [PATCH v3 0/9] mips: Support for RTL9302C Chris Packham
2024-06-27 4:33 ` [PATCH v3 1/9] mips: dts: realtek: use "serial" instead of "uart" in node name Chris Packham
2024-06-27 10:59 ` Marek Behún
2024-06-27 4:33 ` [PATCH v3 2/9] mips: dts: realtek: add device_type property to cpu node Chris Packham
2024-06-27 11:01 ` Marek Behún
2024-06-27 4:33 ` [PATCH v3 3/9] dt-bindings: vendor-prefixes: Add Cameo Communications Chris Packham
2024-06-27 7:39 ` Krzysztof Kozlowski
2024-06-27 4:33 ` [PATCH v3 4/9] dt-bindings: mips: realtek: Add rtl930x-soc compatible Chris Packham
2024-06-27 7:39 ` Krzysztof Kozlowski
2024-06-27 4:33 ` [PATCH v3 5/9] dt-bindings: timer: Add schema for realtek,otto-timer Chris Packham
2024-06-27 7:40 ` Krzysztof Kozlowski
2024-06-29 20:40 ` Sander Vanheule
2024-07-01 2:15 ` Chris Packham
2024-06-27 4:33 ` [PATCH v3 6/9] dt-bindings: interrupt-controller: realtek,rtl-intc: Add rtl9300-intc Chris Packham
2024-06-27 5:37 ` Rob Herring (Arm)
2024-06-27 7:41 ` Krzysztof Kozlowski
2024-06-30 22:12 ` Chris Packham [this message]
2024-07-01 3:02 ` Chris Packham
2024-06-27 4:33 ` [PATCH v3 7/9] clocksource: realtek: Add timer driver for rtl-otto platforms Chris Packham
2024-06-27 11:17 ` Marek Behún
2024-07-01 4:41 ` Chris Packham
2024-06-29 21:03 ` Sander Vanheule
2024-07-01 2:07 ` Chris Packham
2024-06-30 1:10 ` kernel test robot
2024-06-27 4:33 ` [PATCH v3 8/9] mips: generic: add fdt fixup for Realtek reference board Chris Packham
2024-06-27 11:19 ` Marek Behún
2024-06-27 17:48 ` Rob Herring
2024-06-30 22:39 ` Chris Packham
2024-06-27 4:33 ` [PATCH v3 9/9] mips: dts: realtek: Add RTL9302C board Chris Packham
2024-06-27 14:42 ` [PATCH v3 0/9] mips: Support for RTL9302C Rob Herring
2024-06-30 23:43 ` Chris Packham
2024-07-01 3:26 ` Chris Packham
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=1b9f9deb-37b9-4be7-9e95-9ee4f95d3d69@alliedtelesis.co.nz \
--to=chris.packham@alliedtelesis.co.nz \
--cc=bert@biot.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=ericwouds@gmail.com \
--cc=john@phrozen.org \
--cc=kabel@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mail@birger-koblitz.de \
--cc=paulburton@kernel.org \
--cc=peterz@infradead.org \
--cc=robh@kernel.org \
--cc=sander@svanheule.net \
--cc=tglx@linutronix.de \
--cc=tsbogend@alpha.franken.de \
/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).