Devicetree
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Alex Elder <elder@riscstar.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	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: Mon, 19 Oct 2026 20:49:40 +0100	[thread overview]
Message-ID: <20261019-darkroom-endowment-43ef047fc24e@spud> (raw)
In-Reply-To: <af5ce6ac-244c-4fc4-bbc1-8875eec8508a@riscstar.com>

[-- Attachment #1: Type: text/plain, Size: 5408 bytes --]

On Wed, Oct 14, 2026 at 11:57:08AM -0500, Alex Elder wrote:
> On 10/14/26 11:41 AM, Conor Dooley wrote:
> > On Wed, Oct 14, 2026 at 09:55:03AM -0500, Alex Elder wrote:
> > > On 10/14/26 5:22 AM, Krzysztof Kozlowski wrote:
> > > > > 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.
> > > 
> > > I'll take a break from my in-order responses to messages, and will
> > > respond to this first.
> > 
> > Not really replying to any of this, but figured it was worth
> > mentioning that I am reviewing with the assumption that it's similar
> > to the microchip lan9xxx devices that can either be a standalone SoC
> > or connected as PCI endpoint.
> 
> Yes, that was one of two things that this was modeled upon.
> 
> The other is the Raspberry Pi RP1, which is probably a more
> similar example.
> 
> > You keep calling it an SoC, which I took to mean that this had
> > linux-capable CPU cores on it. Is that not actually the case?
> 
> Well it is an SoC, in that it has numerous interacting
> components that are aggregated into a single chip.

If that's it, I wouldn't really call this an SoC, you're just going to
confuse people (like me!) into thinking that this device can work
standalone...

> It does, in fact, have an embedded CPU that uses SRAM, but
> it's just an Arm Cortex M3 and is not Linux capable.

...but maybe it can, depending on whether the devices being discussed
appear in the address space of the M3 or if the M3 is just some sort of
monitor CPU running firmware and bringing the device out of reset.

> 
> So no, it is not a Linux-capable SoC the way the LAN966x is.

IIRC the LAN966x didn't expose the various peripherals as different
discoverable PCI functions and was just like "hey, we're a LAN966x".
What made it special was that there was already drivers etc for this
device from being an SoC, so the DT overlay solution neatly made use of
the existing stuff for the device.

If your device only exposes a single function for the whole device, I
feel like aping the LAN966x and describing it in DT via an overlay is
reasonable.

Cheers,
Conor.

> > > Our ultimate goal is to support the two DWMAC interfaces attached
> > > to PCIe functions within the TC9564.  This is a complex SoC which
> > > interfaces with the host via an upstream PCIe switch port, and
> > > incorporates an embedded PCIe endpoint with two functions.
> > > 
> > > Based on your request, I will plan to send *all* of the code that's
> > > required for DWMAC support for review later today and tomorrow.  I
> > > have been pacing myself (in part not to inundate the lists with
> > > patches).
> > > 
> > > 
> > > A block diagram representing the TC9564 SoC is included in this
> > > devicetree binding:
> > > 
> > > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/commit/?h=char-misc-next&id=ed0a1c1eaa376e11cf8c97d898f2811b8ded322f
> > > 
> > > That explains (and attempts to show) that devices (including clock
> > > and reset functionality) use PCI endpoint BARs for access to their
> > > registers.  Other IP blocks shown are an address translation unit,
> > > a block of SRAM, two XGMAC interfaces, and an MSI generator for
> > > each of the two embedded PCI functions.
> > > 
> > > 
> > > To show the final DTS file, I have squashed the working code I have
> > > and refer you here, starting at line 994:
> > > 
> > > https://github.com/riscstar/linux/blob/18d7146c807a6264388c919391b77a795612e342/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts#L994
> > > 
> > > 
> > > Note that this exposes many internal details of the SoC, which
> > > Krzysztof objected to here:
> > > https://lore.kernel.org/lkml/fbeac5ba-a28d-4d34-8d23-4946aef515ea@kernel.org/
> > > 
> > > I responded, explaining some history on this code and asking
> > > for clarification on criteria for when it's acceptable to
> > > describe chip internals in devicetree, but received no answer.
> > > 
> > > 
> > > The PCI endpoint bus enables a PCI endpoint to be treated as
> > > a *bus* that provides access to multiple peripherals, rather
> > > than as a simple single-peripheral device.  This goes well
> > > beyond the capability of the PCI enumeration process to
> > > discover the nature of the hardware, leveraging devicetree as
> > > a hardware description language to describe the organization
> > > within a complex chip.
> > > 
> > > I understand the desire to consider the PCI endpoint (function)
> > > as the boundary for devicetree descriptions.  But I also see
> > > great benefit from viewing the SoC as a subsystem in itself,
> > > whose IP blocks and connections between them are described
> > > using devicetree.
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-10-19 19:49 UTC|newest]

Thread overview: 15+ 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-12 19:07   ` sashiko-bot
2026-10-12 19:22     ` Alex Elder
2026-10-13 17:54   ` Conor Dooley
2026-10-14 10:15     ` Krzysztof Kozlowski
2026-10-14 10:22       ` Krzysztof Kozlowski
2026-10-14 14:55         ` Alex Elder
2026-10-14 16:41           ` Conor Dooley
2026-10-14 16:57             ` Alex Elder
2026-10-19 19:49               ` Conor Dooley [this message]
2026-10-20  9:04                 ` Daniel Thompson
2026-10-12 19:02 ` [PATCH 2/2] irqchip: introduce TC9564 SoC MSIGEN support Alex Elder
2026-10-12 19:16   ` sashiko-bot
2026-10-12 20:08     ` 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=20261019-darkroom-endowment-43ef047fc24e@spud \
    --to=conor@kernel.org \
    --cc=conor+dt@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=krzk@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