From 5ff1c42c83849fc69c8d5bad13c6c7dc1e02a481 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 16 May 2021 19:56:55 +1200 Subject: Document DT binding for simple-reset-consumer --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3da1264..51341f3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,15 @@ reset. This is the quickest way I had for hackily debugging the effect of a reset driver such as cds9k-reset, as there doesn't appear to be any sysfs or debugfs nodes exposed for reset controllers in general. -Usage: +If you include a segment in your device tree like: + + some_reset_consumer { + compatible = "david,simple-reset-consumer"; + resets = <&some_reset>; + status = "okay"; + }; + +Then firing the resets looks like: root@de10-nano:~# rmmod simple-reset-consumer root@de10-nano:~# modprobe simple-reset-consumer -- cgit v1.1