mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
1818b44b7b
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>
97 lines
958 B
Text
97 lines
958 B
Text
// 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;
|
|
};
|