[PATCH] arm64: dts: socfpga: agilex5: add gpio led and memory node

niravkumar.l.rabara@intel.com posted 1 patch 10 months ago
There is a newer version of this series
.../boot/dts/intel/socfpga_agilex5_socdk.dts  | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
[PATCH] arm64: dts: socfpga: agilex5: add gpio led and memory node
Posted by niravkumar.l.rabara@intel.com 10 months ago
From: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>

Add GPIO led and memory node for Agilex5 devkit.

Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
---
 .../boot/dts/intel/socfpga_agilex5_socdk.dts  | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
index c533e5a3a610..59530eada2ea 100644
--- a/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
+++ b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
@@ -15,6 +15,25 @@ aliases {
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+	leds {
+		compatible = "gpio-leds";
+
+		led1 {
+			label = "hps_led1";
+			gpios = <&porta 11 GPIO_ACTIVE_HIGH>;
+		};
+
+	};
+
+	memory@80000000 {
+		device_type = "memory";
+		/* We expect the bootloader to fill in the reg */
+		reg = <0x0 0x80000000 0x0 0x0>;
+	};
+};
+
+&gpio0 {
+	status = "okay";
 };
 
 &gpio1 {
-- 
2.25.1
Re: [PATCH] arm64: dts: socfpga: agilex5: add gpio led and memory node
Posted by Krzysztof Kozlowski 10 months ago
On 17/02/2025 06:27, niravkumar.l.rabara@intel.com wrote:
> From: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
> 
> Add GPIO led and memory node for Agilex5 devkit.
> 
> Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@intel.com>
> ---
>  .../boot/dts/intel/socfpga_agilex5_socdk.dts  | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
> index c533e5a3a610..59530eada2ea 100644
> --- a/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
> +++ b/arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
> @@ -15,6 +15,25 @@ aliases {
>  	chosen {
>  		stdout-path = "serial0:115200n8";
>  	};

Missing blank line

> +	leds {
> +		compatible = "gpio-leds";
> +
> +		led1 {

led-0

> +			label = "hps_led1";
> +			gpios = <&porta 11 GPIO_ACTIVE_HIGH>;
> +		};
> +

And that's not necessary

> +	};
> +


Best regards,
Krzysztof