Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9f50325 authored by Marek Vasut's avatar Marek Vasut Committed by Dinh Nguyen
Browse files

ARM: dts: socfpga: Add support for HPS LEDs on SoCKit



Add support for the blue LEDs on the SoCFPGA SoCkit board.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: default avatarDinh Nguyen <dinguyen@opensource.altera.com>
parent 702744ce
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -39,6 +39,34 @@
		ethernet0 = &gmac1;
	};

	leds {
		compatible = "gpio-leds";

		hps_led0 {
			label = "hps:blue:led0";
			gpios = <&portb 24 0>;	/* HPS_GPIO53 */
			linux,default-trigger = "heartbeat";
		};

		hps_led1 {
			label = "hps:blue:led1";
			gpios = <&portb 25 0>;	/* HPS_GPIO54 */
			linux,default-trigger = "heartbeat";
		};

		hps_led2 {
			label = "hps:blue:led2";
			gpios = <&portb 26 0>;	/* HPS_GPIO55 */
			linux,default-trigger = "heartbeat";
		};

		hps_led3 {
			label = "hps:blue:led3";
			gpios = <&portb 27 0>;	/* HPS_GPIO56 */
			linux,default-trigger = "heartbeat";
		};
	};

	regulator_3_3v: vcc3p3-regulator {
		compatible = "regulator-fixed";
		regulator-name = "VCC3P3";
@@ -61,6 +89,10 @@
	rxc-skew-ps = <2000>;
};

&gpio1 {	/* GPIO 30..57 */
	status = "okay";
};

&gpio2 {
	status = "okay";
};