mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Conor Dooley <conor@kernel.org>
Cc: Alex Elder <elder@riscstar.com>,
	tglx@kernel.org, radu@rendec.net, robh@kernel.org,
	krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de,
	mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com,
	danielt@kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Daniel Thompson <daniel@riscstar.com>
Subject: Re: [PATCH 1/2] dt-bindings: interrupt-controller: introduce toshiba,tc9564-msigen.yaml
Date: Wed, 14 Oct 2026 12:22:25 +0200	[thread overview]
Message-ID: <c5af1a40-e498-4855-8797-2663db83b9e6@kernel.org> (raw)
In-Reply-To: <20261014-eminent-normal-lynx-3ebba3@quoll>

On 14/10/2026 12:15, Krzysztof Kozlowski wrote:
> On Tue, Oct 13, 2026 at 06:54:11PM +0100, Conor Dooley wrote:
>> On Mon, Oct 12, 2026 at 02:02:43PM -0500, Alex Elder wrote:
>>> Define the binding for the MSIGEN interrupt controller present in the
>>> Toshiba TC9564 SoC.
>>>
>>> Co-developed-by: Daniel Thompson <daniel@riscstar.com>
>>> Signed-off-by: Daniel Thompson <daniel@riscstar.com>
>>> Signed-off-by: Alex Elder <elder@riscstar.com>
>>> ---
>>>  .../toshiba,tc9564-msigen.yaml                | 70 +++++++++++++++++++
>>>  MAINTAINERS                                   |  6 ++
>>>  2 files changed, 76 insertions(+)
>>>  create mode 100644 Documentation/devicetree/bindings/interrupt-controller/toshiba,tc9564-msigen.yaml
>>>
>>> diff --git a/Documentation/devicetree/bindings/interrupt-controller/toshiba,tc9564-msigen.yaml b/Documentation/devicetree/bindings/interrupt-controller/toshiba,tc9564-msigen.yaml
>>> new file mode 100644
>>> index 0000000000000..39dc63964bd52
>>> --- /dev/null
>>> +++ b/Documentation/devicetree/bindings/interrupt-controller/toshiba,tc9564-msigen.yaml
>>> @@ -0,0 +1,70 @@
>>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>>> +%YAML 1.2
>>> +---
>>> +$id: http://devicetree.org/schemas/interrupt-controller/toshiba,tc9564-msigen.yaml#
>>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>>> +
>>> +title: Toshiba TC9564 MSIGEN Interrupt Controller
>>> +
>>> +maintainers:
>>> +  - Daniel Thompson <daniel@riscstar.com>
>>> +  - Alex Elder <elder@riscstar.com>
>>> +
>>> +description: |
>>> +  The Toshiba TC9564 is an SoC accessed by a host system through the
>>> +  upstream PCIe port on the PCIe switch it implements.  The switch
>>> +  includes an embedded PCIe endpoint that provides access to various
>>> +  SoC peripherals (including an interrupt controller) via its BARs.
>>> +
>>> +  The TC9564 MSIGEN (MSI Generator) provides an interrupt controller
>>> +  with 25 hardware interrupt lines.  It aggregates internal interrupts
>>> +  and generates a single PCIe MSI to the host.  Each PCIe function
>>> +  implements an MSIGEN instance.
>>> +
>>> +  Each MSIGEN uses a gated clock and reset line.  These are provided
>>> +  by the clock and reset controllers internal to the TC9564.
>>> +
>>> +allOf:
>>> +  - $ref: /schemas/interrupt-controller.yaml#
>>> +
>>> +properties:
>>> +  compatible:
>>> +    const: toshiba,tc9564-msigen
>>> +
>>> +  reg:
>>> +    maxItems: 1
>>> +
>>> +  interrupt-controller: true
>>> +
>>> +  '#interrupt-cells':
>>> +    const: 1
>>> +
>>> +  clocks:
>>> +    maxItems: 1
>>> +    description: Gate clock from the TC9564 clock controller
>>
>> I'm surprised that the clock is not mandatory.. Realistically the reset
>> is also mandatory, there's probably one instance of this on the device,
>> where both clock and reset are connected. I'd add both to the required
>> list.
>>
>> Otherwise this looks
>> fine to me. I know you mentioned this device in the other series that
>> we were discussing but I don't see how it is related and is perfectly
>> fine to implement as a standalone device as you have done here.
> 
> I still do not understand why do we need to describe the inner wirings
> of the tc9564 device. So far I found no posting of DTS showing proper
> usage of it on the host. Without proper usage, what is the point exactly
> to describe the inner specifics of tc9564?

And as shown here:
https://lore.kernel.org/all/20261012152408.3729237-5-elder@riscstar.com/

there is no single user of any of this (this=reset, clock, irqchip
probably and more) in upstreamed patches.

I am getting tired to keep discussing it, so next time instead of words,
please post CODE which is the argument - who uses any of these devices
you keep adding.

Best regards,
Krzysztof

  reply	other threads:[~2026-10-14 10:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12 19:02 [PATCH 0/2] irqchip: add TC9564 support Alex Elder
2026-10-12 19:02 ` [PATCH 1/2] dt-bindings: interrupt-controller: introduce toshiba,tc9564-msigen.yaml Alex Elder
2026-10-13 17:54   ` Conor Dooley
2026-10-14 10:15     ` Krzysztof Kozlowski
2026-10-14 10:22       ` Krzysztof Kozlowski [this message]
2026-10-14 14:55         ` Alex Elder
2026-10-14 16:41           ` Conor Dooley
2026-10-14 16:57             ` Alex Elder
2026-10-12 19:02 ` [PATCH 2/2] irqchip: introduce TC9564 SoC MSIGEN support Alex Elder

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=c5af1a40-e498-4855-8797-2663db83b9e6@kernel.org \
    --to=krzk@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=conor@kernel.org \
    --cc=daniel@riscstar.com \
    --cc=danielt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=elder@riscstar.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lorenzo.bianconi@oss.qualcomm.com \
    --cc=mohd.anwar@oss.qualcomm.com \
    --cc=p.zabel@pengutronix.de \
    --cc=radu@rendec.net \
    --cc=robh@kernel.org \
    --cc=tglx@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®