Commit 05c9c5a9 authored by Dinh Nguyen's avatar Dinh Nguyen

arm64: agilex: enable USB and LEDs on agilex devkit

Enable USB on the Agilex devkit. Also the Agilex devkit will use the
same daughter card that is used on Stratix10, thus it map the same
LEDs and GPIOs.

pushbutton PB_SW0 = gpio1.io4
pushbutton PB_SW1 = gpio1.io5
LED HPS_LED0      = gpio1.io20
LED HPS_LED1      = gpio1.io19
LED HPS_LED2      = gpio1.io21
Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
parent 0c33a70b
...@@ -18,6 +18,24 @@ chosen { ...@@ -18,6 +18,24 @@ chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
leds {
compatible = "gpio-leds";
hps0 {
label = "hps_led0";
gpios = <&portb 20 GPIO_ACTIVE_HIGH>;
};
hps1 {
label = "hps_led1";
gpios = <&portb 19 GPIO_ACTIVE_HIGH>;
};
hps2 {
label = "hps_led2";
gpios = <&portb 21 GPIO_ACTIVE_HIGH>;
};
};
memory { memory {
device_type = "memory"; device_type = "memory";
/* We expect the bootloader to fill in the reg */ /* We expect the bootloader to fill in the reg */
...@@ -70,6 +88,11 @@ &uart0 { ...@@ -70,6 +88,11 @@ &uart0 {
status = "okay"; status = "okay";
}; };
&usb0 {
status = "okay";
disable-over-current;
};
&watchdog0 { &watchdog0 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment