I’m Having trouble in getting SPI interface work with ADS1292. Basically, what I’m facing is my SPI clock is’t coming.
I searched through e2e forum and I got one link who had similar problem(http://e2e.ti.com/support/embedded/linux/f/354/p/340805/1194573#pi317016=1). Accordingly I did all my configuration. But still I don’t have luck. Could you be able to guide in this regard?
I understood that there is no readily available driver code for ADS1292. So trying to use available driver.
The changes are made in am335x-evmsk.dts
I have added the device tree for spi is as follow. (sdk 7.0 and kernel version 3.12.10)
spi0_pins: pinmux_spi0_pins {
pinctrl-single,pins = <
0x150 (PIN_OUTPUT| MUX_MODE0) /* spi0_clk.spi0_clk */ //o/p
0x154 (PIN_OUTPUT_PULLUP| MUX_MODE0) /* spi0_d0.spi0_d0 */ // o/p pull
0x158 (PIN_INPUT| MUX_MODE0) /* spi0_d1.spi0_d1 */ // i/p
0x15c (PIN_OUTPUT_PULLUP| MUX_MODE0) /* spi0_cs0.spi0_cs0 */ //o/p pull
>;
};
-------
spi0: spi@48030000 {
compatible = "ti,omap4-mcspi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x48030000 0x400>;
interrupts = <65>;
ti,spi-num-cs = <2>;
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
ti,hwmods = "spi0";
clocks = <&dpll_per_m2_div4_ck>;
clock-names = "fck";
clock-frequency = <1000000>;
dmas = <&edma 16
&edma 17
&edma 18
&edma 19>;
dma-names = "tx0", "rx0", "tx1", "rx1";
status = "okay";
spidev:spidev@0{
compatible = "spidev";
reg = <0>;
spi-max-frequency = <10000000>;
};