This adds reboot-mode support for the AM625 and AM62L SoCs. We only add usbdfu, emmc and nand for now. Most other boot modes require additional board specific configuration in bit[9-7], so these have to be added in a board specific dts. Also we only touch the primary boot mode and leave the secondary boot mode untouched.
Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de> --- arch/arm/dts/k3-am625.dtsi | 16 ++++++++++++++++ arch/arm/dts/k3-am62l-barebox.dtsi | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/arch/arm/dts/k3-am625.dtsi b/arch/arm/dts/k3-am625.dtsi index bb61586fe2..2aa77ab2d5 100644 --- a/arch/arm/dts/k3-am625.dtsi +++ b/arch/arm/dts/k3-am625.dtsi @@ -9,6 +9,22 @@ chosen { }; }; +&wkup_conf { + reboot-mode-syscon@10030 { + compatible = "syscon", "simple-mfd"; + reg = <0x10030 0x4>; + + reboot_mode: reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + mask = <0x3f8>; + mode-usbdfu = <0x250>; + mode-emmc = <0x48>; + mode-nand = <0x58>; + }; + }; +}; + &phy_gmii_sel { compatible = "ti,am654-phy-gmii-sel", "syscon"; }; diff --git a/arch/arm/dts/k3-am62l-barebox.dtsi b/arch/arm/dts/k3-am62l-barebox.dtsi index b287ca5b83..34bf42c01f 100644 --- a/arch/arm/dts/k3-am62l-barebox.dtsi +++ b/arch/arm/dts/k3-am62l-barebox.dtsi @@ -15,6 +15,22 @@ &wkup_gpio0 { status = "okay"; }; +&wkup_conf { + reboot-mode-syscon@10030 { + compatible = "syscon", "simple-mfd"; + reg = <0x10030 0x4>; + + reboot_mode: reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + mask = <0x3f8>; + mode-usbdfu = <0x250>; + mode-emmc = <0x48>; + mode-nand = <0x58>; + }; + }; +}; + / { aliases { serial0 = &uart0; -- 2.39.5