参考博客: https://blog.csdn.net/radianceblau/article/details/74722395
1. status 属性
一般再.dtsi 里置为disabled,dts里重写为okay;如果不重写为okay,那么driver和deivce不会match,走不到驱动的probe函数。
sdhci0: sdhci@ff160000 {
u-boot,dm-pre-reloc;
compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
status = "disabled";
可在.dts里重写为okay
&sdhci0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sdhci0_default>;
no-1-8-v;
xlnx,mio_bank = <0>;
};