在写suniv-f1c100s.dtsi设备树的时候
按墨云大佬的博客添加了代码:
mmc0: mmc@1c0f000 {
compatible = "allwinner,suniv-f1c100s-mmc",
"allwinner,sun7i-a20-mmc";
reg = <0x01c0f000 0x1000>;
clocks = <&ccu CLK_BUS_MMC0>,
<&ccu CLK_MMC0>,
<&ccu CLK_MMC0_OUTPUT>,
<&ccu CLK_MMC0_SAMPLE>;
clock-names = "ahb",
"mmc",
"output",
"sample";
resets = <&ccu RST_BUS_MMC0>;
reset-names = "ahb";
interrupts = <23>;
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
};
就是简单复制粘贴的事情,结果。。。。
)
如图,报语法错误,报错跟着在时钟这一行,我把时钟那一行挪到哪,哪报错,去群里询问很久没找到哪错,所以贴出来了
墨云大大这篇博客连接:
https://www.cnblogs.com/twzy/p/15355842.html
最近编辑记录 duya25446 (2022-01-05 21:50:43)
离线