From: Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
To: Dinh Nguyen <dinguyen@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] arm64: dts: socfpga: add Agilex3 board
Date: Thu, 13 Nov 2025 16:24:22 +0800 [thread overview]
Message-ID: <afcdee8d-5ea9-4ece-bf4e-c347881d2b97@altera.com> (raw)
In-Reply-To: <95aaafe2-a362-4f55-9d38-c0d2dcb21cf0@kernel.org>
On 13/11/2025 2:41 am, Dinh Nguyen wrote:
>
>
> On 11/12/25 04:56, niravkumarlaxmidas.rabara@altera.com wrote:
>> From: Niravkumar L Rabara <niravkumarlaxmidas.rabara@altera.com>
>>
>> Agilex3 SoCFPGA development kit is a small form factor board similar to
>> Agilex5 013b board.
>> Agilex3 SoCFPGA is derived from Agilex5 SoCFPGA, with the main difference
>> of CPU cores — Agilex3 has 2 cores compared to 4 in Agilex5.
>
> Please fix up the message's formatting a bit. I don't think you need the
> additional newline.
I will fix this in next version.
>> +/dts-v1/;
>> +#include "socfpga_agilex5.dtsi"
>> +
>> +/ {
>> + compatible = "intel,socfpga-agilex3", "intel,socfpga-agilex5";
>> +
>> +/* Agilex3 has only 2 CPUs */
>> +&{/cpus} {
>> + /delete-node/ cpu@2;
>> + /delete-node/ cpu@3;
>>
> There's no need for another dtsi if you're referencing the Agilex5 dtsi.
Noted.
>> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex3_socdk.dts
>> @@ -0,0 +1,127 @@
>> +// SPDX-License-Identifier: GPL-2.0-only
>> +/*
>> + * Copyright (C) 2025, Altera Corporation
>> + */
>> +#include "socfpga_agilex3.dtsi"
>
> Include socfpga_agilex5.dtsi here.
Noted.
>> +
>> +/ {
>> + model = "SoCFPGA Agilex3 SoCDK";
>> + compatible = "intel,socfpga-agilex3-socdk", "intel,socfpga-agilex3",
>> + "intel,socfpga-agilex5";
>> +
>> + aliases {
>> + serial0 = &uart0;
>> + ethernet2 = &gmac2;
>> + };
>> +
>> + chosen {
>> + stdout-path = "serial0:115200n8";
>> + };
>
> Just add this here:
>
> + cpus {
> + /delete-node/ cpu@2;
> + /delete-node/ cpu@3;
> + };
CHECK_DTBS gives error if I use above mentioned way.
/delete-node/ cpu@2;
/delete-node/ cpu@3;
Works well without any error or warnings.
>> +&qspi {
>> + status = "okay";
>> + flash@0 {
>> + compatible = "jedec,spi-nor";
>
> You need a specific type of the qpsi memory here.
>
The QSPI flash here is a standard JEDEC-compliant SPI-NOR device, and
the kernel’s SPI-NOR/MTD framework supports SFDP (Serial Flash
Discoverable Parameters).
Since the driver now reads device capabilities (size, erase opcodes,
read modes, etc.) directly via JEDEC ID and SFDP, it’s no longer
necessary to specify a vendor-specific compatible string unless the
flash requires special handling.
Therefore, the generic "jedec,spi-nor" compatible is sufficient.
On board, it can detect the QSPI flash and works correctly.
>> + reg = <0>;
>> + spi-max-frequency = <100000000>;
>> + m25p,fast-read;
>> + cdns,read-delay = <2>;
>> + cdns,tshsl-ns = <50>;
>> + cdns,tsd2d-ns = <50>;
>> + cdns,tchsh-ns = <4>;
>> + cdns,tslch-ns = <4>;
>> + spi-tx-bus-width = <4>;
>> + spi-rx-bus-width = <4>;
>> +
>> + partitions {
>> + compatible = "fixed-partitions";
>> + #address-cells = <1>;
>> + #size-cells = <1>;
>> +
>> + qspi_boot: partition@0 {
>> + label = "u-boot";
>> + reg = <0x0 0x00600000>;
>> + };
>> +
>> + root: partition@4200000 {
>> + label = "root";
>> + reg = <0x00600000 0x03a00000>;
>> + };
btw, I just realized that partition size needs to be updated.
I will fix this in next version.
>> +&uart0 {
>> + status = "okay";
>> +};
>
> No USB?
Support of USB3 will be added in a separate patch by Ng, Adrian Ho Yin.
Agilex5/Agilex3 socdk by default supports only USB3 interface.
(USB2 node should be removed from socfpga_agilex5_socdk.dts when USB3
support is added).
Thanks,
Nirav
prev parent reply other threads:[~2025-11-13 8:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-12 10:56 [PATCH v3 0/2] Add support for Agilex3 SoCFPGA board niravkumarlaxmidas.rabara
2025-11-12 10:56 ` [PATCH v3 1/2] dt-bindings: intel: Add " niravkumarlaxmidas.rabara
2025-11-12 11:43 ` Krzysztof Kozlowski
2025-11-12 10:56 ` [PATCH v3 2/2] arm64: dts: socfpga: add Agilex3 board niravkumarlaxmidas.rabara
2025-11-12 18:41 ` Dinh Nguyen
2025-11-13 8:24 ` Niravkumar L Rabara [this message]
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=afcdee8d-5ea9-4ece-bf4e-c347881d2b97@altera.com \
--to=niravkumarlaxmidas.rabara@altera.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@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).