Other Parts Discussed in Thread: AM3358
工具/软件:Linux
你好
我已经设计了基于 AM335X 通用 EVM 的 AM3358定制板、在该定制板中、我已将 SPI0配置为从器件(更改内核中的寄存器值)。
问题是当主器件驱动片选信号和 SCK 信号 时,AM33358的 SPI 端口将线路拉低,使片选和 SCK 信号从1V 运行到0V,而不是从3.3V 运行到0V。
如何避免这种情况发生?
此致
MAD_HU
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好 Biser、
以下是在 DTS 文件中写入的与 SPI 相关的代码。 当配置为主模式时、SPI 工作正常、但是当配置为从模式时、问题存在。 spi0_cs0 在输出和输入两种情况下均可尝试、但没有使用。
spi0_pins:pinmux_spi0_pins{
pinctrl-single、pins =<
AM33XX_IOPAD (0x950、PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_SCLK.spi0_SCLK *
AM33XX_IOPAD (0x954、PIN_OUTPUT 上拉| MUX_MODE0) /* spi0_d0.spi0_d0 *
AM33XX_IOPAD (0x958、PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_D1.spi0_D1 *
AM33XX_IOPAD (0x95C、PIN_INPUT_PULLUP | MUX_MODE0) /* spi0_cs0.spi0_cs0 *
>;
};
spi0{(&S)
pinctrl-0=<&spi0_pines>;
status="oke";
pinctrl-names ="default";
ti、pidd-d0-out-d1-in=<1>;
spidev@0{
compatible ="linux、spidev";
SPI-max-frequency =<48000000>;
REG=<0x0>;
status="oke";
};
};
此处附上了 SPI 的原理图部分。 AM3358的 SPI 线路直接连接到另一个 IC 的 I2S。
此致
MAD_HU