[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <afcdee8d-5ea9-4ece-bf4e-c347881d2b97@altera.com>
Date: Thu, 13 Nov 2025 16:24:22 +0800
From: Niravkumar L Rabara <niravkumarlaxmidas.rabara@...era.com>
To: Dinh Nguyen <dinguyen@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] arm64: dts: socfpga: add Agilex3 board
On 13/11/2025 2:41 am, Dinh Nguyen wrote:
>
>
> On 11/12/25 04:56, niravkumarlaxmidas.rabara@...era.com wrote:
>> From: Niravkumar L Rabara <niravkumarlaxmidas.rabara@...era.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@...0000 {
>> + 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
Powered by blists - more mailing lists