[PATCH 3/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano

James Clark jjc at jclark.com
Thu Nov 26 00:10:11 PST 2026


On Thu, Nov 26, 2026 at 7:51 AM James Clark <jjc at jclark.com> wrote:
>
> Hi Alexandra,
>
> Thanks for posting this. I have a DE25-Nano here and have been running
> a mainline kernel on it with a board file based on Altera's.
>
> On Wed, Nov 18, 2026 at 08:07:15PM +0100, Alexandra Østermark wrote:
> > +     leds {
> > +             compatible = "gpio-leds";
> > +
> > +             led-0 {
> > +                     label = "hps_led0";
> > +                     gpios = <&portb 17 GPIO_ACTIVE_LOW>;
>
> My testing found GPIO_ACTIVE_LOW is wrong here. Altera's and Terasic's
> device trees have the same mistake. You can test with
> /sys/class/leds/hps_led0/brightness . With GPIO_ACTIVE_LOW, 0 turns the
> LED on and 1 turns it off. With GPIO_ACTIVE_HIGH, 1 turns it on and 0
> turns it off, as expected.
>
> > +&gpio1 {
> > +     status = "okay";
> > +};
>
> I suggest also enabling i2c1, as Altera's file does:
>
>   &i2c1 {
>         status = "okay";
>   };

 I also suggest adding a &qspi node with the flash, which allows Linux
  to access the flash as /dev/mtd0. This should be disabled initially,
  so that it works with the Terasic flash image, and then U-Boot can
  enable it when the flash has been handed over to the HPS. I used what
  was in Altera's board file, but with the rsu-handle removed.

James



More information about the linux-arm-kernel mailing list