有时候经常需要临时调整部份设备树的属性配置,例如sdc的频率,以太网的delay参数。如果每次都源码修改后编译烧写,比较费时,所以uboot提供了临时修改的方法。
注:uboot修改都是单次启动有效,重启无效。
=> fdt print /soc/sdmmc@4021000
sdmmc@4021000 {
compa
tible = "allwinner,sunxi-mmc-v5p3x";
device_type = "sdc1";
reg = <0x00000000 0x04021000 0x00000000 0x00001000>;
interrupts = <0x00000000 0x00000029 0x00000004>;
clocks = <0x0000000c 0x00000002 0x00000005 0x00000002 0x0000003a 0x00000002 0x0000003d>;
clock-names = "osc24m", "pll_periph", "mmc", "ahb";
resets = <0x00000002 0x00000010>;
reset-names = "rst";
pinctrl-names = "default", "sleep";
pinctrl-0 = <0x00000022>;
pinctrl-1 = <0x00000023>;
max-frequency = <0x08f0d180>;
bus-width = <0x00000004>;
cap-sd-highspeed;
no-mmc;
keep-power-in-suspend;
sunxi-dly-52M-ddr4 = <0x00000001 0x00000000 0x00000000 0x00000000 0x00000002>;
sunxi-dly-104M = <0x00000001 0x00000000 0x00000000 0x00000000 0x00000001>;
sunxi-dly-208M = <0x00000001 0x00000000 0x00000000 0x00000000 0x00000001>;
status = "okay";
no-sd;
cap-sdio-irq;
ignore-pm-notify;
ctl-spec-caps = <0x00000008>;
};
修改sdc的最大支持频率