Change SPI Rate to 2MHz

main
jianglk.darker 4 months ago
parent 70a66d9bf5
commit 8f4c154c05

@ -403,13 +403,13 @@
Fsspclkout = Fsspclk / (cpsdvsr * (1 + scr))
spi work clk(Fsspclk) is 100MHz, spi output max clk(Fsspclkout) is 50MHz.
example
scr = 4, cpsdvsr = 20 --> Fsspclkout = 1MHz
exampleďź? scr = 4, cpsdvsr = 20 --> Fsspclkout = 1MHz
scr = 4, cpsdvsr = 10 --> Fsspclkout = 2MHz
scr = 4, cpsdvsr = 4 --> Fsspclkout = 5MHz
scr = 4, cpsdvsr = 2 --> Fsspclkout = 10MHz
*/
clock-rate = <24 40>;
/*clock-rate = <24 40>;*/
clock-rate = <4 10>;
status="okay";
/* userspace spi interface
* parse by of_register_spi_devices function

Loading…
Cancel
Save