Skip to content

Commit 2bda748

Browse files
aford173bebarino
authored andcommitted
clk: vc5: Add support for IDT VersaClock 5P49V6965
Update IDT VersaClock 5 driver to support 5P49V6965. Signed-off-by: Adam Ford <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 8f3d9f3 commit 2bda748

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/clk/clk-versaclock5.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ enum vc5_model {
124124
IDT_VC5_5P49V5933,
125125
IDT_VC5_5P49V5935,
126126
IDT_VC6_5P49V6901,
127+
IDT_VC6_5P49V6965,
127128
};
128129

129130
/* Structure to describe features of a particular VC5 model */
@@ -683,6 +684,7 @@ static int vc5_map_index_to_output(const enum vc5_model model,
683684
case IDT_VC5_5P49V5925:
684685
case IDT_VC5_5P49V5935:
685686
case IDT_VC6_5P49V6901:
687+
case IDT_VC6_5P49V6965:
686688
default:
687689
return n;
688690
}
@@ -956,12 +958,20 @@ static const struct vc5_chip_info idt_5p49v6901_info = {
956958
.flags = VC5_HAS_PFD_FREQ_DBL,
957959
};
958960

961+
static const struct vc5_chip_info idt_5p49v6965_info = {
962+
.model = IDT_VC6_5P49V6965,
963+
.clk_fod_cnt = 4,
964+
.clk_out_cnt = 5,
965+
.flags = 0,
966+
};
967+
959968
static const struct i2c_device_id vc5_id[] = {
960969
{ "5p49v5923", .driver_data = IDT_VC5_5P49V5923 },
961970
{ "5p49v5925", .driver_data = IDT_VC5_5P49V5925 },
962971
{ "5p49v5933", .driver_data = IDT_VC5_5P49V5933 },
963972
{ "5p49v5935", .driver_data = IDT_VC5_5P49V5935 },
964973
{ "5p49v6901", .driver_data = IDT_VC6_5P49V6901 },
974+
{ "5p49v6965", .driver_data = IDT_VC6_5P49V6965 },
965975
{ }
966976
};
967977
MODULE_DEVICE_TABLE(i2c, vc5_id);
@@ -972,6 +982,7 @@ static const struct of_device_id clk_vc5_of_match[] = {
972982
{ .compatible = "idt,5p49v5933", .data = &idt_5p49v5933_info },
973983
{ .compatible = "idt,5p49v5935", .data = &idt_5p49v5935_info },
974984
{ .compatible = "idt,5p49v6901", .data = &idt_5p49v6901_info },
985+
{ .compatible = "idt,5p49v6965", .data = &idt_5p49v6965_info },
975986
{ },
976987
};
977988
MODULE_DEVICE_TABLE(of, clk_vc5_of_match);

0 commit comments

Comments
 (0)