Other Parts Discussed in Thread: AM625, SYSCONFIG
Hello,
I am looking into adding an ADC as SPI slave and want to have AM625 SoC as SPi master. I have got the driver working but want to change the default SPI clock from 50MHZ to 1MHz or slower.
This is in the device tree but any idea how to add clk divider to generate slower clock?
main_spi0: spi@20100000 {
compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
reg = <0x00 0x20100000 0x00 0x400>;
interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 141 0>;
};
The TRM says the following: