add debugfs for reading from scratch register