Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions arch/arm/dts/talos-evk-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,30 @@
no-map;
};
};

reboot-mode {
compatible = "nvmem-reboot-mode";
nvmem-cells = <&reboot_reason>;
nvmem-cell-names = "reboot-mode";

mode-bootloader = <0x02>;
mode-recovery = <0x01>;
};
};

&pm8150_0 {
/* Virtual NVMEM node for PON-based reboot reason storage */
nvram@800 {
compatible = "qcom,spmi-sdam";
reg = <0x800>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x00 0x800 0x100>;

/* Reboot reason cell at PON_SOFT_RB_SPARE (0x88F) */
reboot_reason: reboot-reason@8f {
reg = <0x8f 0x1>;
bits = <1 7>;
};
};
};