On Fri, Jul 10, 2020 at 11:41:25AM -0400, min.li...@renesas.com wrote: > From: Min Li <min.li...@renesas.com> > > This patch is to add debugfs support for ptp_clockmatrix and ptp_idt82p33. > It will create a debugfs directory called idtptp{x} and x is the ptp index. > Three inerfaces are present, which are cmd, help and regs. help is read > only and will display a brief help message. regs is read only amd will show > all register values.
You can get register dumps for free in debugfs if you use regmap. And i2c devices are well supported by regmap. Andrew