This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LMK5B33414: Program through Linux application

Part Number: LMK5B33414
Other Parts Discussed in Thread: LMK5C33414A, AM6412, LMK5C33216

Hi Experts,

I have connected LMK5C33414A with AM6412 processor through SPI lines. I used processor-sdk for AM64x.

spidev driver used for the node. 

I want to program LMK chip using .tcs file from the Linux environment. 

Please suggest application for programming LMK through SPI from the Linux environment.

  • Hi Karthick,

    What details are you looking to have specifically? We have SPI programming details listed in the datasheet. 

    We do not have Linux drivers at this time.

    Regards,

    Jennifer

  • Hi Jennifer,


    I have customized tcs file for some specific purpose. I want to program(dump the register values into LMK) for start-up clocking requirements.

    How can we write those register values through SPI ?

  • Hi Karthick,

    Can you please provide your .tcs file? I would like to know which TICSPRO profile you are using. 

    We have timing diagrams in the LMK5C33216 datasheet. 

    You can export the register dump from TICSPRO and program the registers through SPI.

    For more details see: https://www.ti.com/lit/gpn/lmk5c33216#page=74

    Regards,

    Jennifer

  • Hi Jennifer,

    I have attached the tcs file. I can export register map using TICS pro and have a hexdump .txt file.

    I have tried with sample application for reading the register values but i get the value 0x00.

    SPI DEVICE: /dev/spidev1.0

    MODE: MODE0

    SPEED: 400000 Hz

    FIRST: MSB

    ADDRESS: 0x3

    READ DATA: 0x00 0

    Expected value: 0x01

    could you help me to read registers from linux console.

    Do we have any commands or userspace linux software for read the registers.


    ROM6.tcs

  • Hi Karthick,

    What GPIO# are you using for SPI readback? The .tcs file you shared does not show.

    Are you able to confirm the SPI writes are going through? In other words, if you change the output enable register (such as from enable to disable) via SPI, do you see the outputs get disabled/enabled?

    Regards,

    Jennifer 

  • Hi Jennifer

    After doing some changes in hardware, we can able to program through SPI.

    But in LMK output 9 and 11 i'm not getting the frequency 7.68 MHz. Rest all as expected.

    Can you suggest to get the output clock in out 9 and 11 ?

    Here I attached the .tcs and hexdump I used.

    ROM6_all_on.tcs

    HexRegisterValuesfinal.txt
    R0	0x000010
    R1	0x00010B
    R2	0x000240
    R3	0x000304
    R16	0x001012
    R18	0x0012B9
    R19	0x001300
    R20	0x001400
    R21	0x0015A1
    R22	0x00163D
    R23	0x001700
    R24	0x001809
    R25	0x001901
    R26	0x001A36
    R27	0x001B00
    R28	0x001C00
    R29	0x001D00
    R30	0x001E00
    R31	0x001F00
    R32	0x002000
    R33	0x002100
    R34	0x0022D0
    R35	0x002300
    R36	0x002400
    R37	0x002502
    R38	0x0026FF
    R39	0x002720
    R40	0x002820
    R41	0x002900
    R42	0x002A00
    R43	0x002B00
    R44	0x002C00
    R45	0x002D00
    R46	0x002ED0
    R47	0x002F20
    R48	0x003000
    R49	0x003102
    R50	0x00320F
    R52	0x003412
    R53	0x003507
    R54	0x003600
    R55	0x003700
    R56	0x003800
    R57	0x003902
    R58	0x003A73
    R59	0x003B0E
    R60	0x003C14
    R61	0x003D14
    R62	0x003E00
    R63	0x003F08
    R64	0x00400D
    R67	0x004303
    R68	0x004403
    R70	0x0046A8
    R75	0x004B1A
    R76	0x004C1A
    R77	0x004D1A
    R78	0x004E00
    R79	0x004F2E
    R80	0x00502E
    R83	0x0053A0
    R84	0x005400
    R85	0x005500
    R86	0x00560B
    R87	0x005700
    R88	0x005800
    R89	0x00590B
    R96	0x006000
    R97	0x006100
    R98	0x006200
    R99	0x006303
    R100	0x006400
    R101	0x006500
    R102	0x006603
    R109	0x006D00
    R110	0x006E0E
    R111	0x006F00
    R112	0x007014
    R113	0x007100
    R114	0x00720E
    R115	0x007300
    R116	0x007414
    R125	0x007D00
    R126	0x007E02
    R127	0x007F7B
    R128	0x0080C9
    R129	0x008100
    R130	0x008203
    R131	0x00830D
    R132	0x008441
    R133	0x008500
    R134	0x008602
    R135	0x00877B
    R136	0x0088C9
    R137	0x008900
    R138	0x008A03
    R139	0x008B0D
    R140	0x008C41
    R157	0x009D0A
    R158	0x009E0A
    R161	0x00A100
    R162	0x00A200
    R163	0x00A300
    R164	0x00A400
    R170	0x00AA00
    R171	0x00AB00
    R173	0x00AD00
    R174	0x00AE00
    R176	0x00B000
    R180	0x00B400
    R223	0x00DF00
    R225	0x00E100
    R226	0x00E201
    R227	0x00E300
    R228	0x00E400
    R229	0x00E50A
    R230	0x00E600
    R231	0x00E764
    R232	0x00E800
    R233	0x00E909
    R234	0x00EA27
    R235	0x00EBC0
    R236	0x00EC00
    R237	0x00ED00
    R238	0x00EE00
    R239	0x00EF01
    R240	0x00F006
    R241	0x00F135
    R242	0x00F275
    R243	0x00F30B
    R244	0x00F400
    R245	0x00F500
    R246	0x00F600
    R247	0x00F755
    R248	0x00F842
    R249	0x00F9C2
    R250	0x00FA00
    R251	0x00FB00
    R252	0x00FC00
    R253	0x00FD00
    R254	0x00FE00
    R255	0x00FF00
    R256	0x010000
    R257	0x010100
    R258	0x010200
    R259	0x010300
    R260	0x010400
    R261	0x010562
    R262	0x010695
    R263	0x010702
    R264	0x0108F9
    R265	0x010900
    R266	0x010A00
    R267	0x010B00
    R268	0x010C00
    R269	0x010D00
    R270	0x010E16
    R271	0x010F19
    R272	0x011019
    R273	0x011105
    R274	0x011200
    R275	0x011300
    R276	0x011400
    R277	0x011508
    R278	0x011600
    R279	0x011700
    R280	0x011800
    R281	0x011911
    R282	0x011A0B
    R283	0x011B05
    R284	0x011C16
    R285	0x011D02
    R286	0x011E01
    R287	0x011F61
    R288	0x012001
    R289	0x012185
    R290	0x012202
    R291	0x012335
    R292	0x012401
    R293	0x012592
    R294	0x01260D
    R295	0x012742
    R296	0x012801
    R297	0x012940
    R298	0x012A00
    R299	0x012B0A
    R300	0x012C3E
    R301	0x012D0A
    R302	0x012E08
    R303	0x012F16
    R304	0x013018
    R305	0x013107
    R306	0x01323F
    R307	0x01330F
    R308	0x01343F
    R309	0x013500
    R310	0x013600
    R311	0x013700
    R314	0x013A01
    R315	0x013B2A
    R316	0x013C05
    R317	0x013DF2
    R318	0x013E00
    R319	0x013F00
    R320	0x014000
    R321	0x014100
    R322	0x014200
    R323	0x014300
    R324	0x014400
    R325	0x014500
    R326	0x014600
    R327	0x014700
    R328	0x014800
    R329	0x014900
    R330	0x014A00
    R331	0x014B00
    R332	0x014C01
    R333	0x014DE0
    R334	0x014E00
    R335	0x014F00
    R336	0x015000
    R337	0x015100
    R338	0x015200
    R339	0x015300
    R340	0x015400
    R341	0x015500
    R342	0x015600
    R343	0x015700
    R344	0x015803
    R345	0x015902
    R346	0x015A00
    R347	0x015B00
    R348	0x015C00
    R349	0x015D00
    R350	0x015E00
    R351	0x015F00
    R352	0x016000
    R353	0x016100
    R354	0x016200
    R355	0x016300
    R356	0x016400
    R357	0x016500
    R358	0x016600
    R359	0x016700
    R360	0x016801
    R361	0x016900
    R362	0x016A01
    R367	0x016F00
    R368	0x017000
    R369	0x017100
    R370	0x017200
    R373	0x017511
    R375	0x017700
    R376	0x017801
    R377	0x017904
    R378	0x017A80
    R379	0x017B0A
    R380	0x017C00
    R381	0x017D64
    R382	0x017E00
    R383	0x017F00
    R384	0x018009
    R385	0x0181C5
    R386	0x018200
    R387	0x018310
    R388	0x0184F4
    R389	0x018548
    R390	0x018600
    R391	0x018798
    R392	0x018896
    R393	0x018988
    R394	0x018A05
    R395	0x018B00
    R396	0x018C01
    R397	0x018DD5
    R398	0x018E6E
    R399	0x018F6D
    R400	0x019000
    R401	0x019100
    R402	0x019200
    R403	0x019300
    R404	0x019400
    R405	0x019500
    R406	0x019600
    R407	0x019700
    R408	0x019800
    R409	0x019900
    R410	0x019A00
    R411	0x019B03
    R412	0x019C00
    R413	0x019D00
    R414	0x019E04
    R415	0x019F38
    R416	0x01A002
    R417	0x01A100
    R418	0x01A200
    R419	0x01A300
    R420	0x01A407
    R421	0x01A50E
    R422	0x01A607
    R423	0x01A708
    R424	0x01A810
    R425	0x01A908
    R426	0x01AA10
    R427	0x01AB08
    R428	0x01AC0F
    R429	0x01AD0B
    R430	0x01AE0F
    R431	0x01AF11
    R432	0x01B015
    R433	0x01B107
    R434	0x01B254
    R435	0x01B3B0
    R436	0x01B402
    R437	0x01B534
    R438	0x01B601
    R439	0x01B785
    R440	0x01B801
    R441	0x01B9D2
    R442	0x01BA01
    R443	0x01BB92
    R444	0x01BC0D
    R445	0x01BD42
    R446	0x01BE01
    R447	0x01BF40
    R448	0x01C000
    R449	0x01C10A
    R450	0x01C214
    R451	0x01C308
    R452	0x01C408
    R453	0x01C525
    R454	0x01C627
    R455	0x01C707
    R456	0x01C83F
    R457	0x01C90F
    R458	0x01CA3F
    R459	0x01CB00
    R460	0x01CC35
    R461	0x01CD03
    R464	0x01D000
    R465	0x01D100
    R466	0x01D200
    R467	0x01D302
    R468	0x01D41C
    R469	0x01D500
    R470	0x01D600
    R471	0x01D700
    R472	0x01D800
    R473	0x01D900
    R474	0x01DA00
    R475	0x01DB00
    R476	0x01DC00
    R477	0x01DD00
    R478	0x01DE00
    R479	0x01DF00
    R480	0x01E000
    R481	0x01E100
    R482	0x01E202
    R483	0x01E332
    R484	0x01E480
    R485	0x01E500
    R486	0x01E600
    R487	0x01E700
    R488	0x01E800
    R489	0x01E900
    R490	0x01EA00
    R491	0x01EB00
    R492	0x01EC00
    R493	0x01ED00
    R494	0x01EE04
    R495	0x01EF02
    R496	0x01F000
    R497	0x01F100
    R498	0x01F200
    R499	0x01F300
    R500	0x01F400
    R501	0x01F500
    R502	0x01F600
    R503	0x01F700
    R504	0x01F800
    R505	0x01F900
    R506	0x01FA00
    R507	0x01FB00
    R508	0x01FC00
    R509	0x01FD00
    R510	0x01FE0F
    R511	0x01FF00
    R512	0x02000F
    R517	0x020500
    R518	0x020600
    R519	0x020700
    R520	0x020800
    R523	0x020B13
    R525	0x020D01
    R526	0x020E01
    R527	0x020F20
    R528	0x021080
    R529	0x02110A
    R530	0x021200
    R531	0x021364
    R532	0x021400
    R533	0x021503
    R534	0x02160D
    R535	0x021740
    R536	0x021800
    R537	0x021910
    R538	0x021A1E
    R539	0x021B7A
    R540	0x021C00
    R541	0x021D98
    R542	0x021E96
    R543	0x021F83
    R544	0x022005
    R545	0x022100
    R546	0x022200
    R547	0x0223D5
    R548	0x022456
    R549	0x0225E6
    R550	0x022600
    R551	0x022700
    R552	0x022800
    R553	0x022900
    R554	0x022A00
    R555	0x022B00
    R556	0x022C00
    R557	0x022D00
    R558	0x022E00
    R559	0x022F00
    R560	0x023000
    R561	0x023103
    R562	0x023200
    R563	0x023300
    R564	0x023401
    R565	0x0235C6
    R566	0x023603
    R567	0x023700
    R568	0x023800
    R569	0x023900
    R570	0x023A04
    R571	0x023B0C
    R572	0x023C07
    R573	0x023D08
    R574	0x023E13
    R575	0x023F08
    R576	0x024010
    R577	0x024108
    R578	0x024212
    R579	0x02430D
    R580	0x024411
    R581	0x024511
    R582	0x02461C
    R583	0x02470C
    R584	0x024858
    R585	0x0249B4
    R586	0x024A03
    R587	0x024B73
    R588	0x024C01
    R589	0x024D85
    R590	0x024E03
    R591	0x024F54
    R592	0x025001
    R593	0x025192
    R594	0x02520D
    R595	0x025342
    R596	0x025401
    R597	0x025540
    R598	0x025600
    R599	0x02570A
    R600	0x025814
    R601	0x025908
    R602	0x025A08
    R603	0x025B27
    R604	0x025C29
    R605	0x025D07
    R606	0x025E3F
    R607	0x025F0F
    R608	0x02603F
    R609	0x026100
    R610	0x026235
    R611	0x026305
    R614	0x026600
    R615	0x026700
    R616	0x026800
    R617	0x026900
    R618	0x026AE3
    R619	0x026B31
    R620	0x026C03
    R621	0x026DF5
    R622	0x026E9E
    R623	0x026FEF
    R624	0x0270FF
    R625	0x0271FF
    R626	0x0272FF
    R627	0x0273FC
    R628	0x02747B
    R629	0x027500
    R630	0x027600
    R631	0x027700
    R632	0x027800
    R633	0x0279EB
    R634	0x027AED
    R635	0x027BFA
    R636	0x027C43
    R637	0x027DFD
    R638	0x027E5C
    R639	0x027FFF
    R640	0x0280FF
    R641	0x0281FF
    R642	0x0282FE
    R643	0x0283EC
    R644	0x028403
    R645	0x028502
    R646	0x028600
    R647	0x028700
    R648	0x028800
    R649	0x028900
    R650	0x028A00
    R651	0x028B00
    R652	0x028C00
    R653	0x028D14
    R654	0x028E7A
    R655	0x028FE1
    R656	0x029047
    R657	0x0291AE
    R658	0x029200
    R659	0x029300
    R660	0x02940F
    R661	0x029500
    R662	0x02960F
    R663	0x029700
    R664	0x029801
    R669	0x029D00
    R670	0x029E34
    R707	0x02C36D
    R708	0x02C403
    R709	0x02C509
    R710	0x02C602
    R711	0x02C702
    R712	0x02C8FF
    R713	0x02C900
    R714	0x02CA08
    R715	0x02CB02
    R716	0x02CC00
    R717	0x02CD28
    R718	0x02CE58
    R719	0x02CF56
    R720	0x02D006
    R721	0x02D180
    R722	0x02D201
    R723	0x02D300
    R724	0x02D436
    R725	0x02D5E5
    R726	0x02D6AA
    R727	0x02D7AA
    R728	0x02D8AA
    R729	0x02D9AB
    R731	0x02DBE3
    R732	0x02DC88
    R733	0x02DD08
    R736	0x02E000
    R741	0x02E528
    R746	0x02EA01
    R773	0x030505
    R777	0x030922
    R778	0x030A09
    R779	0x030B07
    R780	0x030C02
    R781	0x030D02
    R782	0x030EFF
    R783	0x030F00
    R784	0x03100A
    R785	0x03111C
    R786	0x031200
    R787	0x03133A
    R788	0x031477
    R789	0x031598
    R790	0x031600
    R791	0x031700
    R792	0x031800
    R793	0x031900
    R794	0x031A07
    R795	0x031B56
    R796	0x031C84
    R797	0x031DBD
    R798	0x031EA1
    R799	0x031F2F
    R803	0x032313
    R804	0x032439
    R805	0x032554
    R808	0x032800
    R813	0x032D28
    R818	0x033200
    R819	0x033301
    R840	0x034822
    R841	0x034915
    R842	0x034A01
    R843	0x034B0D
    R844	0x034C0D
    R845	0x034DFF
    R846	0x034E00
    R847	0x034F0A
    R848	0x03501C
    R849	0x035100
    R850	0x035219
    R851	0x03534C
    R852	0x035499
    R853	0x035599
    R854	0x035699
    R855	0x035799
    R856	0x03589A
    R857	0x035905
    R858	0x035A9A
    R859	0x035BDD
    R860	0x035C3C
    R861	0x035D0C
    R862	0x035EA4
    R863	0x035F00
    R864	0x0360F4
    R865	0x0361A8
    R866	0x03620C
    R872	0x036800
    R961	0x03C148
    R962	0x03C230
    R963	0x03C321
    R964	0x03C448
    R965	0x03C530
    R966	0x03C614
    R967	0x03C701
    R968	0x03C800
    R969	0x03C933
    R971	0x03CB1B
    R972	0x03CC00
    R973	0x03CD3F
    R974	0x03CE00
    R975	0x03CF00
    R976	0x03D000
    R977	0x03D100
    R978	0x03D203
    R979	0x03D3E8
    R980	0x03D400
    R981	0x03D508
    R982	0x03D600
    R983	0x03D70B
    R984	0x03D800
    R985	0x03D90F
    R986	0x03DA42
    R987	0x03DB40
    R988	0x03DC00
    R989	0x03DD00
    R990	0x03DE01
    R991	0x03DF00
    R1024	0x04004F
    R1025	0x04010B
    R1026	0x04024F
    R1027	0x040308
    R1028	0x040400
    R1029	0x040500
    R1030	0x040600
    R1031	0x04070A
    R1056	0x04204F
    R1057	0x04210B
    R1058	0x04224F
    R1059	0x042308
    R1060	0x042400
    R1061	0x042500
    R1062	0x042600
    R1063	0x04270A
    R1089	0x044160
    R1090	0x044209
    R1091	0x044360
    R1092	0x04440C
    R1093	0x044531
    R1094	0x044603
    R1095	0x044700
    R1096	0x044800
    R1097	0x044900
    R1098	0x044A05
    R1099	0x044B00
    R1100	0x044C0D
    R1101	0x044D00
    R1102	0x044E00
    R1103	0x044F00
    R1104	0x045019
    R1105	0x045100
    R1106	0x045200
    R1107	0x045301
    R1108	0x045410
    R1121	0x04614F
    R1122	0x04624C
    R1123	0x046349
    R1124	0x04640C
    R1125	0x046531
    R1126	0x046603
    R1127	0x046700
    R1128	0x046800
    R1129	0x046900
    R1130	0x046A04
    R1131	0x046B00
    R1132	0x046C0D
    R1133	0x046D00
    R1134	0x046E00
    R1135	0x046F00
    R1136	0x047018
    R1137	0x047100
    R1138	0x047200
    R1139	0x047300
    R1140	0x047410
    R1153	0x048160
    R1154	0x04820C
    R1155	0x048360
    R1156	0x048409
    R1157	0x048531
    R1158	0x048623
    R1159	0x048700
    R1160	0x048800
    R1161	0x048900
    R1162	0x048A02
    R1163	0x048B00
    R1164	0x048C0D
    R1165	0x048D00
    R1166	0x048E00
    R1167	0x048F00
    R1168	0x049040
    R1169	0x049100
    R1170	0x049200
    R1171	0x049306
    R1172	0x049410
    R1185	0x04A14E
    R1186	0x04A210
    R1187	0x04A360
    R1188	0x04A409
    R1189	0x04A531
    R1190	0x04A621
    R1191	0x04A700
    R1192	0x04A800
    R1193	0x04A900
    R1194	0x04AA02
    R1195	0x04AB00
    R1196	0x04AC0D
    R1197	0x04AD00
    R1198	0x04AE00
    R1199	0x04AF00
    R1200	0x04B040
    R1201	0x04B100
    R1202	0x04B200
    R1203	0x04B302
    R1204	0x04B410
    R1217	0x04C14F
    R1218	0x04C24C
    R1219	0x04C34F
    R1220	0x04C449
    R1221	0x04C531
    R1222	0x04C623
    R1223	0x04C700
    R1224	0x04C800
    R1225	0x04C900
    R1226	0x04CA04
    R1227	0x04CB00
    R1228	0x04CC0D
    R1229	0x04CD00
    R1230	0x04CE00
    R1231	0x04CF00
    R1232	0x04D018
    R1233	0x04D100
    R1234	0x04D200
    R1235	0x04D305
    R1236	0x04D410
    R1248	0x04E020
    R1249	0x04E103
    R1250	0x04E220
    R1251	0x04E308
    R1252	0x04E400
    R1253	0x04E500
    R1254	0x04E600
    R1255	0x04E704
    R1280	0x05000C
    R1281	0x050103
    R1282	0x050220
    R1283	0x050308
    R1284	0x050400
    R1285	0x050500
    R1286	0x050600
    R1287	0x050702
    

  • Hi Karthick,

    The reason you are not getting 7.68 MHz clocks is because they are created using "SYSREF."  I presume you are using JESD204B or C?

    SYSREF is traditionally just a few pulses that are sent out when requested by GPIO (if GPIO is configured as SYSREF request) or by programming SYSREF_REQ_SW = 1 (this is a self clearing bit).

    If you really want a continuous 7.68 MHz clock, you must set OUT_x_y_SR_MODE = 1 (Continuous) for OUT8/9 and OUT10/11.  So as below:

    R1171 0x049305
    R1203 0x04B301

    Note you already have OUT12/13 with OUT_12_13_SR_MODE = 1 (Continuous) for the 20.48 MHz clock.

    Running clocks in this fashion results in more crosstalk as there are more clocks running 'very close together' --- the traditional JESD204B/C use case only them on momentarily for alignment then turns off to reduce crosstalk/power.

    73,
    Timothy