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

Message ID 20200519192340.16624-4-jagan@amarulasolutions.com
State New
Headers show
Series
  • riscv: sifive/fu540: Booting from SPI
Related show

Commit Message

Jagan Teki May 19, 2020, 7:23 p.m. UTC
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(+)

Patch

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@1000 {
+			compatible = "sifive,fu540-modeselect";
+			reg = <0x0 0x1000 0x0 0x1FFF>;
+			u-boot,dm-spl;
+		};
+
 		otp: otp@10070000 {
 			compatible = "sifive,fu540-c000-otp";
 			reg = <0x0 0x10070000 0x0 0x0FFF>;