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.

AM62P: Clock tree summary on /sys/kernel/debug/clk does not list clocks of all the device IDs.

Part Number: AM62P

Tool/software:

Hi,

Referring to the list of clock identifiers in the link and also refer the clock summary taken from /sys/kernel/debug/clk

https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/am62x/clocks.html

Clk_summary does not lis all the Clock IDS. Could you please, let us know how to get the clock frequency corresponding to the device IDs AM62X_DEV_DDR16SS0 (ID = 170)

AM62X_DEV_MMCSD0 (ID = 57)  ? 

Regards, 

Prabhu

  • clock_tree.txt
               ¢Êbÿroot@am62pxx-einstein@21:48:15:/sys/kernel/debug/clk# cat clk_summary
                                     enable  prepare  protect                                duty  hardware
       clock                          count    count    count        rate   accuracy phase  cycle    enable
    -------------------------------------------------------------------------------------------------------
     clk:237:3                            1        1        0   800000000          0     0  50000         Y
     clk:204:2                            0        0        0   500000000          0     0  50000         Y
     clk:186:6                            1        1        0   320000000          0     0  50000         Y
     clk:186:4                            0        0        0           0          0     0  50000         Y
     clk:186:3                            0        0        0   300000000          0     0  50000         Y
        clk:186:2                         0        0        0   300000000          0     0  50000         Y
     clk:186:0                            1        1        0   866666666          0     0  50000         Y
     clk:182:4                            0        0        0   400000000          0     0  50000         Y
     clk:182:3                            0        0        0   250000000          0     0  50000         Y
     clk:182:0                            0        0        0   500000000          0     0  50000         Y
     clk:162:5                            0        0        0    50000000          0     0  50000         Y
     clk:162:4                            1        1        0    25000000          0     0  50000         Y
        clk:162:3                         1        1        0    25000000          0     0  50000         Y
     clk:161:5                            0        0        0    50000000          0     0  50000         Y
     clk:161:4                            1        1        0    25000000          0     0  50000         Y
        clk:161:3                         1        1        0    25000000          0     0  50000         Y
     clk:155:2                            0        0        0   160000000          0     0  50000         Y
     clk:155:1                            0        0        0    48000000          0     0  50000         Y
        clk:155:0                         0        0        0    48000000          0     0  50000         Y
     clk:146:2                            0        0        0   160000000          0     0  50000         Y
     clk:146:1                            0        0        0    48000000          0     0  50000         Y
        clk:146:0                         0        0        0    48000000          0     0  50000         Y
     clk:138:0                            0        0        0  1250000000          0     0  50000         Y
     clk:137:0                            0        0        0  1250000000          0     0  50000         Y
     clk:136:0                            0        0        0  1250000000          0     0  50000         Y
     clk:135:0                            0        0        0  1000000000          0     0  50000         Y
     clk:130:4                            0        0        0       32552          0     0  50000         Y
     clk:130:3                            0        0        0    12500000          0     0  50000         Y
     clk:130:2                            0        0        0       32552          0     0  50000         Y
        clk:130:0                         0        0        0       32552          0     0  50000         Y
     clk:130:1                            0        0        0    25000000          0     0  50000         Y
     clk:128:4                            0        0        0       32552          0     0  50000         Y
     clk:128:3                            0        0        0    12500000          0     0  50000         Y
     clk:128:2                            0        0        0       32552          0     0  50000         Y
        clk:128:0                         0        0        0       32552          0     0  50000         Y
     clk:128:1                            0        0        0    25000000          0     0  50000         Y
     clk:127:4                            0        0        0       32552          0     0  50000         Y
     clk:127:3                            0        0        0    12500000          0     0  50000         Y
     clk:127:2                            0        0        0       32552          0     0  50000         Y
        clk:127:0                         0        0        0       32552          0     0  50000         Y
     clk:127:1                            0        0        0    25000000          0     0  50000         Y
     clk:126:4                            0        0        0       32552          0     0  50000         Y
     clk:126:3                            0        0        0    12500000          0     0  50000         Y
     clk:126:2                            0        0        0       32552          0     0  50000         Y
        clk:126:0                         0        0        0       32552          0     0  50000         Y
     clk:126:1                            0        0        0    25000000          0     0  50000         Y
     clk:125:4                            0        0        0       32552          0     0  50000         Y
     clk:125:3                            0        0        0    12500000          0     0  50000         Y
     clk:125:2                            0        0        0       32552          0     0  50000         Y
        clk:125:0                         0        0        0       32552          0     0  50000         Y
     clk:125:1                            0        0        0    25000000          0     0  50000         Y
     clk:117:8                            0        0        0    50000000          0     0  50000         Y
     clk:117:7                            1        1        0    50000000          0     0  50000         Y
        clk:117:6                         1        1        0    50000000          0     0  50000         Y
     clk:117:2                            0        0        0       32552          0     0  50000         Y
     clk:117:1                            1        1        0       32552          0     0  50000         Y
        clk:117:0                         1        1        0       32552          0     0  50000         Y
     clk:114:0                            0        1        0    48000000          0     0  50000         Y
     clk:79:4                             0        0        0     3125000          0     0  50000         Y
     clk:79:3                             0        0        0        8138          0     0  50000         Y
     clk:79:2                             0        0        0           0          0     0  50000         Y
     clk:79:1                             1        1        0    25000000          0     0  50000         Y
        clk:79:0                          1        1        0    25000000          0     0  50000         Y
     clk:78:0                             1        1        0   125000000          0     0  50000         Y
     clk:77:0                             1        1        0   125000000          0     0  50000         Y
     clk:57:4                             1        1        0   200000000          0     0  50000         Y
        clk:57:2                          1        1        0   200000000          0     0  50000         Y
     clk:57:3                             0        0        0   200000000          0     0  50000         Y
     clk:57:1                             0        0        0   250000000          0     0  50000         Y
     clk:43:4                             0        0        0           0          0     0  50000         Y
     clk:43:3                             0        0        0    25000000          0     0  50000         Y
        clk:43:2                          0        0        0    25000000          0     0  50000         Y
     clk:42:14                            0        0        0           0          0     0  50000         Y
     clk:42:13                            0        0        0           0          0     0  50000         Y
     clk:42:12                            0        0        0   250000000          0     0  50000         Y
     clk:42:11                            0        0        0   192000000          0     0  50000         Y
     clk:42:10                            0        0        0           0          0     0  50000         Y
     clk:42:8                             0        0        0           0          0     0  50000         Y
     clk:42:7                             0        0        0           0          0     0  50000         Y
     clk:42:6                             0        0        0    12500000          0     0  50000         Y
     clk:42:5                             0        0        0   200000000          0     0  50000         Y
     clk:42:4                             0        0        0       32552          0     0  50000         Y
     clk:42:3                             0        0        0    25000000          0     0  50000         Y
        clk:42:2                          0        0        0    25000000          0     0  50000         Y
     clk:41:4                             0        0        0           0          0     0  50000         Y
     clk:41:3                             0        0        0    25000000          0     0  50000         Y
        clk:41:2                          0        0        0    25000000          0     0  50000         Y
     clk:40:14                            0        0        0           0          0     0  50000         Y
     clk:40:13                            0        0        0           0          0     0  50000         Y
     clk:40:12                            0        0        0   250000000          0     0  50000         Y
     clk:40:11                            0        0        0   192000000          0     0  50000         Y
     clk:40:10                            0        0        0           0          0     0  50000         Y
     clk:40:8                             0        0        0           0          0     0  50000         Y
     clk:40:7                             0        0        0           0          0     0  50000         Y
     clk:40:6                             0        0        0    12500000          0     0  50000         Y
     clk:40:5                             0        0        0   200000000          0     0  50000         Y
     clk:40:4                             0        0        0       32552          0     0  50000         Y
     clk:40:3                             0        0        0    25000000          0     0  50000         Y
        clk:40:2                          0        0        0    25000000          0     0  50000         Y
     clk:39:4                             0        0        0           0          0     0  50000         Y
     clk:39:3                             0        0        0    25000000          0     0  50000         Y
        clk:39:2                          0        0        0    25000000          0     0  50000         Y
     clk:38:14                            0        0        0           0          0     0  50000         Y
     clk:38:13                            0        0        0           0          0     0  50000         Y
     clk:38:12                            0        0        0   250000000          0     0  50000         Y
     clk:38:11                            0        0        0   192000000          0     0  50000         Y
     clk:38:10                            0        0        0           0          0     0  50000         Y
     clk:38:8                             0        0        0           0          0     0  50000         Y
     clk:38:7                             0        0        0           0          0     0  50000         Y
     clk:38:6                             0        0        0    12500000          0     0  50000         Y
     clk:38:5                             0        0        0   200000000          0     0  50000         Y
     clk:38:4                             0        0        0       32552          0     0  50000         Y
     clk:38:3                             0        0        0    25000000          0     0  50000         Y
        clk:38:2                          0        0        0    25000000          0     0  50000         Y
     clk:37:4                             0        0        0           0          0     0  50000         Y
     clk:37:3                             0        0        0    25000000          0     0  50000         Y
        clk:37:2                          0        0        0    25000000          0     0  50000         Y
     clk:36:14                            0        0        0           0          0     0  50000         Y
     clk:36:13                            0        0        0           0          0     0  50000         Y
     clk:36:12                            0        0        0   250000000          0     0  50000         Y
     clk:36:11                            0        0        0   192000000          0     0  50000         Y
     clk:36:10                            0        0        0           0          0     0  50000         Y
     clk:36:8                             0        0        0           0          0     0  50000         Y
     clk:36:7                             0        0        0           0          0     0  50000         Y
     clk:36:6                             0        0        0    12500000          0     0  50000         Y
     clk:36:5                             0        0        0   200000000          0     0  50000         Y
     clk:36:4                             0        0        0       32552          0     0  50000         Y
     clk:36:3                             0        0        0    25000000          0     0  50000         Y
        clk:36:2                          0        0        0    25000000          0     0  50000         Y
     clk:13:11                            0        0        0   500000000          0     0  50000         Y
        clk:13:3                          0        0        0   500000000          0     0  50000         Y
     clk:13:9                             0        0        0           0          0     0  50000         Y
     clk:13:8                             0        0        0           0          0     0  50000         Y
     clk:13:6                             0        0        0           0          0     0  50000         Y
     clk:13:5                             0        0        0   200000000          0     0  50000         Y
     clk:13:4                             0        0        0   500000000          0     0  50000         Y
     epwm_tbclk2                          0        0        0           0          0     0  50000         N
     epwm_tbclk1                          0        0        0           0          0     0  50000         N
     epwm_tbclk0                          0        0        0           0          0     0  50000         N
    root@am62pxx-einstein@21:48:21:/sys/kernel/debug/clk#
    root@am62pxx-einstein@21:48:42:/sys/kernel/debug/clk#
    root@am62pxx-einstein@21:48:42:/sys/kernel/debug/clk#
    root@am62pxx-einstein@21:48:42:/sys/kernel/debug/clk# ls
    clk:114:0           clk:126:4           clk:135:0           clk:155:2           clk:237:3           clk:38:10           clk:40:11           clk:42:12           clk:57:4
    clk:117:0           clk:127:0           clk:136:0           clk:161:3           clk:36:10           clk:38:11           clk:40:12           clk:42:13           clk:77:0
    clk:117:1           clk:127:1           clk:137:0           clk:161:4           clk:36:11           clk:38:12           clk:40:13           clk:42:14           clk:78:0
    clk:117:2           clk:127:2           clk:138:0           clk:161:5           clk:36:12           clk:38:13           clk:40:14           clk:42:2            clk:79:0
    clk:117:6           clk:127:3           clk:13:11           clk:162:3           clk:36:13           clk:38:14           clk:40:2            clk:42:3            clk:79:1
    clk:117:7           clk:127:4           clk:13:3            clk:162:4           clk:36:14           clk:38:2            clk:40:3            clk:42:4            clk:79:2
    clk:117:8           clk:128:0           clk:13:4            clk:162:5           clk:36:2            clk:38:3            clk:40:4            clk:42:5            clk:79:3
    clk:125:0           clk:128:1           clk:13:5            clk:182:0           clk:36:3            clk:38:4            clk:40:5            clk:42:6            clk:79:4
    clk:125:1           clk:128:2           clk:13:6            clk:182:3           clk:36:4            clk:38:5            clk:40:6            clk:42:7            clk_dump
    clk:125:2           clk:128:3           clk:13:8            clk:182:4           clk:36:5            clk:38:6            clk:40:7            clk:42:8            clk_orphan_dump
    clk:125:3           clk:128:4           clk:13:9            clk:186:0           clk:36:6            clk:38:7            clk:40:8            clk:43:2            clk_orphan_summary
    clk:125:4           clk:130:0           clk:146:0           clk:186:2           clk:36:7            clk:38:8            clk:41:2            clk:43:3            clk_summary
    clk:126:0           clk:130:1           clk:146:1           clk:186:3           clk:36:8            clk:39:2            clk:41:3            clk:43:4            epwm_tbclk0
    clk:126:1           clk:130:2           clk:146:2           clk:186:4           clk:37:2            clk:39:3            clk:41:4            clk:57:1            epwm_tbclk1
    clk:126:2           clk:130:3           clk:155:0           clk:186:6           clk:37:3            clk:39:4            clk:42:10           clk:57:2            epwm_tbclk2
    clk:126:3           clk:130:4           clk:155:1           clk:204:2           clk:37:4            clk:40:10           clk:42:11           clk:57:3
    root@am62pxx-einstein@21:48:43:/sys/kernel/debug/clk# cd clk
    Display all 140 possibilities? (y or n)^C
    root@am62pxx-einstein@21:48:50:/sys/kernel/debug/clk# cat clk:114:0
    cat: read error: Is a directory
    root@am62pxx-einstein@21:49:00:/sys/kernel/debug/clk# cd clk:114:0
    root@am62pxx-einstein@21:49:10:/sys/kernel/debug/clk/clk:114:0# ls
    clk_accuracy        clk_enable_count    clk_max_rate        clk_notifier_count  clk_prepare_count   clk_rate
    clk_duty_cycle      clk_flags           clk_min_rate        clk_phase           clk_protect_count
    root@am62pxx-einstein@21:49:11:/sys/kernel/debug/clk/clk:114:0# cat clk_max_rate
    18446744073709551615
    root@am62pxx-einstein@21:49:26:/sys/kernel/debug/clk/clk:114:0# cat clk_rate
    48000000
    root@am62pxx-eins
    
    
    
    0FA1 0040h
    

    Clock tree summary taken from /sys/kernel/debug/clk

  • You should be able to dump all the clocks using k3conf like this:

    k3conf dump clock <deviceid>

    /sys/kernel/debug/clk only shows the clocks that are actively configured in the device tree.

    Regards,

    Bas Vermeulen

  • Thanks Bas.

    Yes Prabhu, k3conf utility packaged in the SDK can dump all the clocks.

    Best Regards,

    Suren