[PATCH v2 3/9] riscv: dts: fu540-c000-u-boot: Add sifive, fu540-modeselect

Jagan Teki
2020-05-19T19:23:34Z

Add sifive,fu540-modeselect node, which usually get runtime
boot mode of fu540 boards.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
Changes for v2:
- new patch

arch/riscv/dts/fu540-c000-u-boot.dtsi | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi b/arch/riscv/dts/fu540-c000-u-boot.dtsi
index fc91a7c987..0ccda0e59b 100644
--- a/arch/riscv/dts/fu540-c000-u-boot.dtsi
+++ b/arch/riscv/dts/fu540-c000-u-boot.dtsi
@@ -48,6 +48,13 @@

soc {
u-boot,dm-spl;
+
+ board: mode at 1000 {
+ compatible = "sifive,fu540-modeselect";
+ reg = <0x0 0x1000 0x0 0x1FFF>;
+ u-boot,dm-spl;
+ };
+
otp: otp at 10070000 {
compatible = "sifive,fu540-c000-otp";
reg = <0x0 0x10070000 0x0 0x0FFF>;
--
2.20.1