Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: si5351: Add DT property to enable PLL reset

Add optional output clock DT property to enable PLL reset when a clock
output is enabled.

Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Cc: Rabeeh Khoury <rabeeh@solid-run.com>
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Sergej Sawazki <sergej@taudac.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Sergej Sawazki and committed by
Stephen Boyd
51279ef9 758231d5

+6
+1
Documentation/devicetree/bindings/clock/silabs,si5351.txt
··· 49 49 - silabs,multisynth-source: source pll A(0) or B(1) of corresponding multisynth 50 50 divider. 51 51 - silabs,pll-master: boolean, multisynth can change pll frequency. 52 + - silabs,pll-reset: boolean, clock output can reset its pll. 52 53 - silabs,disable-state : clock output disable state, shall be 53 54 0 = clock output is driven LOW when disabled 54 55 1 = clock output is driven HIGH when disabled
+3
drivers/clk/clk-si5351.c
··· 1297 1297 1298 1298 pdata->clkout[num].pll_master = 1299 1299 of_property_read_bool(child, "silabs,pll-master"); 1300 + 1301 + pdata->clkout[num].pll_reset = 1302 + of_property_read_bool(child, "silabs,pll-reset"); 1300 1303 } 1301 1304 client->dev.platform_data = pdata; 1302 1305
+2
include/linux/platform_data/si5351.h
··· 86 86 * @multisynth_src: multisynth source clock 87 87 * @clkout_src: clkout source clock 88 88 * @pll_master: if true, clkout can also change pll rate 89 + * @pll_reset: if true, clkout can reset its pll 89 90 * @drive: output drive strength 90 91 * @rate: initial clkout rate, or default if 0 91 92 */ ··· 96 95 enum si5351_drive_strength drive; 97 96 enum si5351_disable_state disable_state; 98 97 bool pll_master; 98 + bool pll_reset; 99 99 unsigned long rate; 100 100 }; 101 101