Oooohh now it works good!!! Very well done Yuriy ! :)
It follows my dts changes in order to enable even the spi1.
The spi0 seems to work perfectly , while spi1 shows a strange behaviour on CS pin. It always remains low. Other pins seems to works properly.
//----------------------------------------------------------------------------------------------------------------------------//
spi0_pins: pinmux_spi0_pins {
pinctrl-single,pins = <
0x150 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_sclk.spi0_sclk
0x154 (PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_d0.spi0_d0 */
0x158 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_d1.spi0_d1 */
0x15C (PIN_OUTPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 */
>;
};
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
0x190 (PIN_OUTPUT_PULLUP | MUX_MODE3)
0x194 (PIN_INPUT_PULLUP | MUX_MODE3)
0x198 (PIN_OUTPUT_PULLUP | MUX_MODE3)
0x19c (PIN_OUTPUT_PULLUP | MUX_MODE3) spi1_cs0
>;
};
//----------------------------------------------------------------------------------------------------------------------//
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>;
};
};
spi1: spi@481a0000 {
compatible = "ti,omap4-mcspi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x481a0000 0x400>;
interrupts = <125>;
ti,spi-num-cs = <2>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
ti,hwmods = "spi1";
clocks = <&dpll_per_m2_div4_ck>;
clock-names = "fck";
clock-frequency = <1000000>;
dmas = <&edma 42
&edma 43
&edma 44
&edma 45>;
dma-names = "tx0", "rx0", "tx1", "rx1";
status = "okay";
spidev1:spidev@1{
compatible = "spidev";
reg = <1>;
spi-max-frequency = <10000000>;
};
};
Thank you too for your support Yuriy!!!
Best Regards
Marco