* Re: [PATCH 3/5] dt-bindings: PCI: snps,dw-pcie: Add msi-parent for msi handle check
[not found] ` <20260502101319.2364052-4-inochiama@gmail.com>
@ 2026-05-07 19:10 ` Rob Herring (Arm)
0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2026-05-07 19:10 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Yixun Lan, Bjorn Helgaas, Krzysztof Kozlowski, Palmer Dabbelt,
Krzysztof Wilczyński, Jingoo Han, Manivannan Sadhasivam,
linux-riscv, devicetree, linux-pci, Alex Elder, linux-kernel,
Lorenzo Pieralisi, Gustavo Pimentel, Yixun Lan, Albert Ou,
Paul Walmsley, Alexandre Ghiti, spacemit, Longbin Li,
Conor Dooley
On Sat, 02 May 2026 18:13:16 +0800, Inochi Amaoto wrote:
> The IMSIC device on RISC-V based system does not require ID
> remapping for MSI. So this device only needs "msi-parent"
> property for IMSIC-based SoC, and the "msi-map" is not a
> necessary property.
>
> Add new condition for msi handling on IMSIC based SoC.
>
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> ---
> Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4/5] dt-bindings: pci: spacemit: Introduce Spacemit K3 PCIe host controller
[not found] ` <20260502101319.2364052-5-inochiama@gmail.com>
@ 2026-05-07 19:13 ` Rob Herring
2026-05-09 7:18 ` Inochi Amaoto
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2026-05-07 19:13 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Jingoo Han, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Krzysztof Kozlowski,
Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Alex Elder, Gustavo Pimentel, linux-pci,
devicetree, linux-kernel, linux-riscv, spacemit, Yixun Lan,
Longbin Li
On Sat, May 02, 2026 at 06:13:17PM +0800, Inochi Amaoto wrote:
> Add binding support for the PCIe controller on the SpacemiT K3 SoC.
> This controller is almost a standard Synopsys Designware PCIe IP,
> with some extra link and reset state control.
>
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> ---
> .../bindings/pci/spacemit,k3-pcie-host.yaml | 142 ++++++++++++++++++
> 1 file changed, 142 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
>
> diff --git a/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> new file mode 100644
> index 000000000000..be2641526b19
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> @@ -0,0 +1,142 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/pci/spacemit,k3-pcie-host.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SpacemiT K3 PCI Express Host Controller
> +
> +maintainers:
> + - Inochi Amaoto <inochiama@gmail.com>
> +
> +description:
> + The SpacemiT K3 SoC PCIe host controller is based on the Synopsys
> + DesignWare PCIe IP. The controller uses the external MSI interrupt
> + controller.
> +
> +allOf:
> + - $ref: /schemas/pci/pci-host-bridge.yaml#
> + - $ref: /schemas/pci/snps,dw-pcie.yaml#
> +
> +properties:
> + compatible:
> + const: spacemit,k3-pcie
> +
> + reg:
> + items:
> + - description: DesignWare PCIe registers
> + - description: Data Bus Interface (DBI) shadow registers
> + - description: ATU address space
> + - description: PCIe configuration space
> + - description: Link control registers
> +
> + reg-names:
> + items:
> + - const: dbi
> + - const: dbi2
> + - const: atu
> + - const: config
> + - const: link
> +
> + clocks:
> + items:
> + - description: DWC PCIe Data Bus Interface (DBI) clock
> + - description: DWC PCIe application AXI-bus master interface clock
> + - description: DWC PCIe application AXI-bus slave interface clock
> +
> + clock-names:
> + items:
> + - const: dbi
> + - const: mstr
> + - const: slv
> +
> + resets:
> + items:
> + - description: DWC PCIe Data Bus Interface (DBI) reset
> + - description: DWC PCIe application AXI-bus master interface reset
> + - description: DWC PCIe application AXI-bus slave interface reset
> +
> + reset-names:
> + items:
> + - const: dbi
> + - const: mstr
> + - const: slv
> +
> + interrupts:
> + items:
> + - description: Interrupt used for port state
> +
> + interrupt-names:
> + const: app
> +
> + msi-parent: true
> +
> + phys:
> + minItems: 1
> + maxItems: 6
You have to define what each entry is. I assume this is 1 per lane
though I thought only a power of 2 number of lanes was valid.
Rob
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4/5] dt-bindings: pci: spacemit: Introduce Spacemit K3 PCIe host controller
2026-05-07 19:13 ` [PATCH 4/5] dt-bindings: pci: spacemit: Introduce Spacemit K3 PCIe host controller Rob Herring
@ 2026-05-09 7:18 ` Inochi Amaoto
0 siblings, 0 replies; 3+ messages in thread
From: Inochi Amaoto @ 2026-05-09 7:18 UTC (permalink / raw)
To: Rob Herring, Inochi Amaoto
Cc: Jingoo Han, Manivannan Sadhasivam, Bjorn Helgaas,
Lorenzo Pieralisi, Krzysztof Wilczyński, Krzysztof Kozlowski,
Conor Dooley, Yixun Lan, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Alexandre Ghiti, Alex Elder, Gustavo Pimentel, linux-pci,
devicetree, linux-kernel, linux-riscv, spacemit, Yixun Lan,
Longbin Li
On Thu, May 07, 2026 at 02:13:02PM -0500, Rob Herring wrote:
> On Sat, May 02, 2026 at 06:13:17PM +0800, Inochi Amaoto wrote:
> > Add binding support for the PCIe controller on the SpacemiT K3 SoC.
> > This controller is almost a standard Synopsys Designware PCIe IP,
> > with some extra link and reset state control.
> >
> > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> > ---
> > .../bindings/pci/spacemit,k3-pcie-host.yaml | 142 ++++++++++++++++++
> > 1 file changed, 142 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> > new file mode 100644
> > index 000000000000..be2641526b19
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/pci/spacemit,k3-pcie-host.yaml
> > @@ -0,0 +1,142 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/pci/spacemit,k3-pcie-host.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: SpacemiT K3 PCI Express Host Controller
> > +
> > +maintainers:
> > + - Inochi Amaoto <inochiama@gmail.com>
> > +
> > +description:
> > + The SpacemiT K3 SoC PCIe host controller is based on the Synopsys
> > + DesignWare PCIe IP. The controller uses the external MSI interrupt
> > + controller.
> > +
> > +allOf:
> > + - $ref: /schemas/pci/pci-host-bridge.yaml#
> > + - $ref: /schemas/pci/snps,dw-pcie.yaml#
> > +
> > +properties:
> > + compatible:
> > + const: spacemit,k3-pcie
> > +
> > + reg:
> > + items:
> > + - description: DesignWare PCIe registers
> > + - description: Data Bus Interface (DBI) shadow registers
> > + - description: ATU address space
> > + - description: PCIe configuration space
> > + - description: Link control registers
> > +
> > + reg-names:
> > + items:
> > + - const: dbi
> > + - const: dbi2
> > + - const: atu
> > + - const: config
> > + - const: link
> > +
> > + clocks:
> > + items:
> > + - description: DWC PCIe Data Bus Interface (DBI) clock
> > + - description: DWC PCIe application AXI-bus master interface clock
> > + - description: DWC PCIe application AXI-bus slave interface clock
> > +
> > + clock-names:
> > + items:
> > + - const: dbi
> > + - const: mstr
> > + - const: slv
> > +
> > + resets:
> > + items:
> > + - description: DWC PCIe Data Bus Interface (DBI) reset
> > + - description: DWC PCIe application AXI-bus master interface reset
> > + - description: DWC PCIe application AXI-bus slave interface reset
> > +
> > + reset-names:
> > + items:
> > + - const: dbi
> > + - const: mstr
> > + - const: slv
> > +
> > + interrupts:
> > + items:
> > + - description: Interrupt used for port state
> > +
> > + interrupt-names:
> > + const: app
> > +
> > + msi-parent: true
> > +
> > + phys:
> > + minItems: 1
> > + maxItems: 6
>
> You have to define what each entry is. I assume this is 1 per lane
> though I thought only a power of 2 number of lanes was valid.
>
In fact it is not 1 per lane, the PCIe accept lanes from the Comb PHY,
and the phy can provide 1 lane or 2 lanes according to the PHY MUX.
In detail,
- PHY 0,1 is 2 lanes
- PHY 2,3,4,5 is 1 lane.
So the max number of the phys is 6 with 8 lanes.
Maybe need a description link to the phy mux configuration?
Regards,
Inochi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-09 7:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260502101319.2364052-1-inochiama@gmail.com>
[not found] ` <20260502101319.2364052-4-inochiama@gmail.com>
2026-05-07 19:10 ` [PATCH 3/5] dt-bindings: PCI: snps,dw-pcie: Add msi-parent for msi handle check Rob Herring (Arm)
[not found] ` <20260502101319.2364052-5-inochiama@gmail.com>
2026-05-07 19:13 ` [PATCH 4/5] dt-bindings: pci: spacemit: Introduce Spacemit K3 PCIe host controller Rob Herring
2026-05-09 7:18 ` Inochi Amaoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox