CLKOUT功能,因全志手册完全没有描述,导致大家根本不知如何使用,这里给大家填完坑了,成果如下:
"clk-mux@0x01c000f0": {
"parent": [
{ "name": "losc", "value": 0 },
{ "name": "osc32k", "value": 1 },
{ "name": "hosc", "value": 2 }
],
"name": "mux-clkout", "shift": 24, "width": 2,
"default": { "parent": "hosc" }
},
"clk-ratio@0x01c000f0": { "parent": "mux-clkout", "name": "ratio-clkout", "shift": 20, "width": 2, "default": { "rate": 24000000 } },
"clk-divider@0x01c000f0": { "parent": "ratio-clkout", "name": "div-clkout", "shift": 8, "width": 5, "default": { "rate": 24000000 } },
"clk-gate@0x01c000f0": {"parent": "div-clkout", "name": "gate-clkout", "shift": 31, "invert": false, "default": { "enable": false } },
"clk-link": { "parent": "gate-clkout", "name": "link-clkout" },
好吧,好像也没有什么需要细说的,代码已表达得很明确了,剩下的就是设置PE11 pinmux功能到clkout,就可以了,测试过输出24MHZ,12MHZ,6MHZ,当然还可以更低。
离线
离线
有源晶振如果不要钱的话,还是可以解决这个问题的。
离线