u-boot/arch/arm/dts/at91-sam9x60_curiosity-u-boot.dtsi
Alexander Dahl 1818b44b7b board: sam9x60-curiosity: Let LED subsystem init leds if enabled
If CONFIG_LED and CONFIG_LED_GPIO are enabled, it is not necessary to
initialize the RGB LED on the board by manually setting hardcoded GPIOs
anymore.  Everything is well defined in dts and can be used like on
boards of other vendors.

Keep the old behaviour as fallback, though.

With all this in place enabling CONFIG_CMD_LED gives us a working 'led'
command on the U-Boot shell.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
2023-08-29 17:39:01 +03:00

98 lines
958 B
Plaintext

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* at91-sam9x60_curiosity-u-boot.dtsi - Device Tree Include file for SAM9X60
* CURIOSITY.
*
* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries
*
* Author: Durai Manickam KR <durai.manickamkr@microchip.com>
*/
/ {
ahb {
bootph-all;
apb {
bootph-all;
};
};
chosen {
bootph-all;
};
config {
u-boot,boot-led = "blue";
};
leds {
led-red {
default-state = "off";
};
led-green {
default-state = "off";
};
led-blue {
default-state = "off";
};
};
};
&clk32 {
bootph-all;
};
&dbgu {
bootph-all;
};
&main_rc {
bootph-all;
};
&main_xtal {
bootph-all;
};
&pinctrl {
bootph-all;
};
&pinctrl_dbgu {
bootph-all;
};
&pinctrl_sdhci0 {
bootph-all;
};
&pioA {
bootph-all;
};
&pioB {
bootph-all;
};
&pit64b0 {
bootph-all;
};
&pmc {
bootph-all;
};
&sdhci0 {
bootph-all;
};
&slow_rc_osc {
bootph-all;
};
&slow_xtal {
bootph-all;
};