pinctrl: ocelot: add clock monitor option for LAN966x
authorMichael Walle <michael@walle.cc>
Sat, 26 Mar 2022 19:28:48 +0000 (20:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Apr 2022 14:12:08 +0000 (16:12 +0200)
commitbf3e7f49b49b659aaa0d3b2f231eb18da7794fa2
tree3cc205cbaf014f9e79b48fe4406ee712c3b46ef5
parente97e36cd3f05cac1bc6333f903540cac523e4348
pinctrl: ocelot: add clock monitor option for LAN966x

The SoC supports a debug clock output of its internal clocks. Depending
on the clk_sel input (GPIO_31) clk_mon (GPIO_30) will output either
cpu_clk/64 or sys_clk/64. This is very useful for debugging and is
missing in the pinmux table. Add it.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220326192848.2944519-2-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ocelot.c