Part Number: AM5728
Hello,
I'm trying to configure MCSPI 1 module from the AM5728,
I have a task on my application side that is transmitting data every 1ms,
I have hooked a scope to the pins and I only see activity on the clk and the cs0 pins, but not seeing any transmitted data on the MOSI pin (spi1_d1 pin F16)
I'm already using MCSPI 2 module and it works fine,
these are the nodes configuration on my dts file:
mcspi1_pads: mcspi1pads
{
pin-set = <
0x17A4 0x00040000 /*( PIN_INPUT | MUX_MODE0 ) (A25) spi1_sclk.spi1_sclk */
0x17A8 0x00010000 /*( PIN_OUTPUT | MUX_MODE0 ) (F16) spi1_d1.spi1_d1 MOSI*/
0x17AC 0x00050000 /*( PIN_INPUT | MUX_MODE0 ) (B25) spi1_d0.spi1_d0 MISO */
0x17B0 0x00010000 /*( PIN_OUTPUT | MUX_MODE0 ) (A24) spi1_cs0.spi1_cs0 */
>;
};
mcspi2_pads: mcspi2pads
{
pin-set = <
0x17C0 0x00040000 /*( PIN_INPUT | MUX_MODE0 ) (A26) spi2_sclk */
0x17C4 0x00010000 /*( PIN_OUTPUT | MUX_MODE0 ) (B22) spi2_d1 MOSI*/
0x17C8 0x00050000 /*( PIN_INPUT | MUX_MODE0 ) (G17) spi2_d0 MISO */
0x17CC 0x00010000 /*( PIN_OUTPUT | MUX_MODE0 ) (B24) spi2_cs0 */
0x17B4 0x00010003 /*( PIN_OUTPUT | MUX_MODE0 ) (A22) spi2_cs1 */
>;
};
mcspi1@48098000
{
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,am335x-spi";
clocks = <&mcspi1_clkctrl>;
reg = <0x48098000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <60>;
pinmux-0 = <&mcspi1_pads>;
};
mcspi2@4809A000
{
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,am335x-spi";
clocks = <&mcspi2_clkctrl>;
reg = <0x4809A000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <61>;
pinmux-0 = <&mcspi2_pads>;
};
mcspi1_clkctrl: mcspi1_clkctrl
{
#clock-cells = <0>;
compatible = "ti,fixed-factor-clock";
clocks = <&dpll_per_ck>;
clock-mult = <1>;
clock-div = <4>;
module-en-mask = <0x2>;
reg = <0x4A0097F0 0x4>; /* CM_L4PER_MCSPI1_CLKCTRL */
reg-names = "control";
};
mcspi2_clkctrl: mcspi2_clkctrl
{
#clock-cells = <0>;
compatible = "ti,fixed-factor-clock";
clocks = <&dpll_per_ck>;
clock-mult = <1>;
clock-div = <4>;
module-en-mask = <0x2>;
reg = <0x4A0097f8 0x4>; /* CM_L4PER_MCSPI2_CLKCTRL */
reg-names = "control";
};
intc: interrupt-controller@48210000
{
compatible = "arm,gic";
#interrupt-cells = <3>;
interrupt-controller;
reg = <0x48211000 0x00001000>, /* MPU Interrupt Controller Interfaces */
<0x48212000 0x00001000>; /* MPU Interrupt Distributor */
max-int-lvl = <480>;
};
Am I missing something ?
thanks,