Skip to content

Commit 3c9b49b

Browse files
robhancocksedbebarino
authored andcommitted
clk: si5341: Update initialization magic
Update the default register settings to include the VCO_RESET_CALCODE settings (set by the SiLabs ClockBuilder software but not described in the datasheet). Also update part of the initialization sequence to match ClockBuilder and the datasheet. Fixes: 3044a86 ("clk: Add Si5341/Si5340 driver") Signed-off-by: Robert Hancock <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 71dcc4d commit 3c9b49b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/clk/clk-si5341.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ static const struct si5341_reg_default si5341_reg_defaults[] = {
350350
{ 0x094A, 0x00 }, /* INx_TO_PFD_EN (disabled) */
351351
{ 0x0A02, 0x00 }, /* Not in datasheet */
352352
{ 0x0B44, 0x0F }, /* PDIV_ENB (datasheet does not mention what it is) */
353+
{ 0x0B57, 0x10 }, /* VCO_RESET_CALCODE (not described in datasheet) */
354+
{ 0x0B58, 0x05 }, /* VCO_RESET_CALCODE (not described in datasheet) */
353355
};
354356

355357
/* Read and interpret a 44-bit followed by a 32-bit value in the regmap */
@@ -1104,7 +1106,7 @@ static const struct si5341_reg_default si5341_preamble[] = {
11041106
{ 0x0B25, 0x00 },
11051107
{ 0x0502, 0x01 },
11061108
{ 0x0505, 0x03 },
1107-
{ 0x0957, 0x1F },
1109+
{ 0x0957, 0x17 },
11081110
{ 0x0B4E, 0x1A },
11091111
};
11101112

0 commit comments

Comments
 (0)