From: James Clark <jjc@jclark.com>
To: alex.cramt@gmail.com
Cc: 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,
linux-arm-kernel@lists.infradead.org,
Mahesh Rao <mahesh.rao@altera.com>,
Mohamad Asyraaf Azhar <mohamad.asyraaf.azhar@altera.com>
Subject: Re: [PATCH 3/3] arm64: dts: socfpga: agilex5: add support for Terasic DE25-Nano
Date: Thu, 26 Nov 2026 07:51:20 +0700 [thread overview]
Message-ID: <20261126005120.176307-1-jjc@jclark.com> (raw)
In-Reply-To: <20261118-de25-nano-v1-3-473d16131f7a@gmail.com>
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";
};
Unlike the other HPS I2C controllers, which only reach pins through the
FPGA, i2c1 is on the HPS's own pins (HPS IO 36/37) and goes to the
onboard LIS2DW12 accelerometer at 0x19, so it doesn't depend on the
FPGA design. I've tested it on my board. With i2c1 the only I2C
controller enabled, it is i2c-0:
# i2cdetect -y -r 0 0x18 0x19 (shows 19)
# i2cget -y 0 0x19 0x0f (WHO_AM_I, reads 0x44)
James
prev parent reply other threads:[~2026-11-26 0:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 19:07 [PATCH 0/3] " Alexandra Østermark via B4 Relay
2026-11-18 19:07 ` [PATCH 1/3] arm64: dts: socfpga: agilex5: add the service layer interrupt Alexandra Østermark via B4 Relay
2026-11-18 19:07 ` [PATCH 2/3] dt-bindings: arm: altera: add Terasic DE25-Nano Alexandra Østermark via B4 Relay
2026-11-19 17:55 ` Conor Dooley
2026-11-18 19:07 ` [PATCH 3/3] arm64: dts: socfpga: agilex5: add support for " Alexandra Østermark via B4 Relay
2026-11-26 0:51 ` James Clark [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=20261126005120.176307-1-jjc@jclark.com \
--to=jjc@jclark.com \
--cc=alex.cramt@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mahesh.rao@altera.com \
--cc=mohamad.asyraaf.azhar@altera.com \
--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
all inboxes | Powered by JetHome®