Skip to content

Add rpipmic - #207

Open
JamesH65 wants to merge 1 commit into
masterfrom
add_rpipmic
Open

Add rpipmic#207
JamesH65 wants to merge 1 commit into
masterfrom
add_rpipmic

Conversation

@JamesH65

Copy link
Copy Markdown
Collaborator

Quick utility to make PMIC events human readable.

Comment thread rpipmic/rpipmic
exit 1
fi

raw_output=$(vcgencmd pmicrd "$REG_ADDR")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bootloader clears fatal PMIC events at power on. You'd need to read them from

/proc/device-tree/chosen/power/power_reset

Comment thread rpipmic/rpipmic
@@ -0,0 +1,61 @@
#!/usr/bin/env bash
#
# Reads the PMIC EVT status register via vcgencmd and reports any

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to the PMIC on Pi5.

vcgencmd pmicrd and pmicwr may well get deleted, but I think we'd probably need to replace them with a mailbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants