11. modify "ddrbin_param.txt", choose ddr frequency, uart info. 22. run "ddrbin_tool" with argument 1: ddrbin_param.txt, argument 2: ddr bin file. 3 like: ./ddrbin_tool ddrbin_param.txt px30_ddr_333MHz_v1.13.bin 4 5support following chip: 6PX30: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support. The ddr bin version V1.16 and later support ssmod. 7RK1808: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support. The ddr bin version V1.05 and later support ssmod. 8RK322x: ddr bin version should be released later than V1.08. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V1.09 and later support DDR 2t info modification, only DDR2/DDR3 support. 9RK322xh: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support. The ddr bin version V1.17 and later support ssmod. 10RK3288: ddr bin version should be released later than V1.07. Support modify uart info only. The ddr bin version V1.08 and later support DDR 2t info modification, only DDR3 support. 11RK3308: ddr bin version should be released later than V1.28. Support modify uart info and ddr frequency. ddr freq should be one of 393,451,589. The ddr bin version V1.29 and later support DDR 2t info modification, only DDR2/DDR3 support. The ddr bin version V1.31 and later support ssmod. 12RK3326: ddr bin version should be released later than V1.11. Support modify uart info only. The ddr bin version V1.12 and later support DDR 2t info modification, only DDR3 support. The ddr bin version V1.16 and later support ssmod. 13RK3368: ddr bin version should be released later than V2.04. Support modify uart info and ddr frequency. These is no limit to ddr frequency. The ddr bin version V2.05 and later support DDR 2t info modification, only DDR3 support. 14RK3328: ddr bin version should be released later than V1.14. Support modify uart info only. The ddr bin version V1.16 and later support DDR 2t info modification, only DDR3 support. The ddr bin version V1.17 and later support ssmod. 15RK3399: ddr bin version should be released later than V1.25. Support modify uart info only. The ddr bin version V1.25 and later support ssmod. 16RK3399PRO NPU: ddr bin version should be released later than V1.03. Support modify uart info and ddr frequency. ddr freq should be one of 333,400,533,666,786,933. The ddr bin version V1.03 and later support DDR 2t info modification, only DDR2/DDR3/DDR4 support. The ddr bin version V1.05 and later support ssmod. 17RV1126/RV1109: all of version. Support modify uart info and ddr frequency. ddr freq should be one of 330,396,528,664,784,924,1056. Support DDR 2t info modification, only DDR3/DDR4 support. The ddr bin version V1.05 and later support ssmod. 18 19ddrbin_param.txt: 20start tag: keep default value. Do not modify it. 21ddr2_freq: ddr2 frequency, unit:MHz. 22lp2_freq: lpddr2 frequency, unit:MHz. 23ddr3_freq: ddr3 frequency, unit:MHz. 24lp3_freq: lpddr3 frequency, unit:MHz. 25ddr4_freq: ddr4 frequency, unit:MHz. 26lp4_freq: lpddr4 frequency, unit:MHz. 27lp4x_freq: lpddr4x frequency, unit:MHz. 28 29If ddr*_freq/lp*_freq is no value, it's frequency will keep the same with the ddr bin frequency. 30 31uart id: uart number. 0 for uart0, 1 for uart1, 2 for uart2..., 0xf will disable uart. 32uart iomux: uart iomux info, 0 for uartn_m0, 1 for uartn_m1, 2 for uartn_m2...(like uart2_m0, uart2_m1,uart2_m2), 33Or 1 for uartn_a, 2 for uartn_b, 3 for uartn_c.(like uar2a, uart2b, uart2c). 34uart baudrate: uart baudrate should be 115200 or 1500000. 35 36If uart id/iomux/baudrate is no value, uart info will keep the same with ddr bin config. 37 38ddr_2t: ddr 2T timing mode. 1: enable ddr 2T, 0: disable ddr 2T. 39If 'ddr_2t' is no value, ddr_2t info will keep the same with ddr bin config. 40 41ddr2_f1_freq_mhz: ddr2 frequency number 1, unit:MHz. 42ddr2_f2_freq_mhz: ddr2 frequency number 2, unit:MHz. 43ddr2_f3_freq_mhz: ddr2 frequency number 3, unit:MHz. 44ddr2_f4_freq_mhz: ddr2 frequency number 4, unit:MHz. 45ddr2_f5_freq_mhz: ddr2 frequency number 5, unit:MHz. 46... 47ddr*_f*_freq_mhz/lp*_f*_freq_mhz: Only RV1126/RV1109 used.The program will initialize dram by following order for example: ddr4_freq, ddr4_f1_freq_mhz, ddr4_f2_freq_mhz, ddr4_f3_freq_mhz, ddr4_f4_freq_mhz, ddr4_f5_freq_mhz. 48And the final frequency is ddr4_freq to boot system. 49The ddr frequency table in kernel dts/dtsi file need correspond to these frequencies. 50 51These parameters are about Spread Spectrum Modulator(ssmod) for PLL. 52ssmod_downspread: ssmod work mode. 0: down spread, 1: center spread. 53ssmod_div: Divider required to set the modulation frequency. RK3308 suggests to ssmod_div=2, others platforms suggest to ssmod_div=5. 54ssmod_spread: spread amplitude % = 0.1 * ssmod_spread; 0: disable ssmod, others will enable ssmod, max to 0x1f. 55