OSDN Git Service

clk: si5341: Allow different output VDD_SEL values
authorRobert Hancock <robert.hancock@calian.com>
Thu, 25 Mar 2021 19:26:40 +0000 (13:26 -0600)
committerStephen Boyd <sboyd@kernel.org>
Mon, 28 Jun 2021 02:58:14 +0000 (19:58 -0700)
commitb7bbf6ec4940d1a69811ec354edeeb9751fa8e85
tree174001b4779c82755e42665915ab81e73dc82b6a
parent3c9b49b0031aefb81adfdba5ab0ddf3ca3a2cdc9
clk: si5341: Allow different output VDD_SEL values

The driver was not previously programming the VDD_SEL values for each
output to indicate what external VDDO voltage was used for each. Add
ability to specify a regulator supplying the VDDO pin for each output of
the device. The voltage of the regulator is used to automatically set the
VDD_SEL value appropriately. If no regulator is specified and the chip is
being reconfigured, assume 2.5V which appears to be the chip default.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Link: https://lore.kernel.org/r/20210325192643.2190069-7-robert.hancock@calian.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-si5341.c