Enable SPI on LTC. Use HPS LED for SD card activity.

This commit is contained in:
Sorgelig
2018-02-06 00:41:21 +08:00
parent 2cb5b8e0fd
commit 24edd52ad7
2 changed files with 22 additions and 1 deletions

View File

@@ -47,7 +47,16 @@
hps0 {
label = "hps_led0";
gpios = <&portb 24 0>;
linux,default-trigger = "heartbeat";
linux,default-trigger = "mmc0";
};
};
ltcmode {
compatible = "gpio-leds";
ltcsw {
label = "ltc_sw";
gpios = <&portb 11 0>;
default-state = "off";
};
};
};
@@ -109,6 +118,17 @@
};
};
&spi1 {
status = "okay";
timeouts = <3>;
spibri {
status = "okay";
compatible = "altspi";
spi-max-frequency = <25000000>;
reg = <0>;
};
};
&mmc0 {
vmmc-supply = <&regulator_3_3v>;
vqmmc-supply = <&regulator_3_3v>;

View File

@@ -684,6 +684,7 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "menlo,m53cpld" },
{ .compatible = "cisco,spi-petra" },
{ .compatible = "micron,spi-authenta" },
{ .compatible = "altspi" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);