Other Parts Discussed in Thread: AM3352, TPS65910
Tool/software: Linux
Hello all,
We have designed custom board based on AM3354 processor and during design of board Am335x starter kit and beagle bone black taken as reference. we have interfaced external RTC using SPI port1. We would like to test as SPI device using some tools.
-> added the SPI and RTC related changes in device tree (am335x-evm.dts)
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
0x190 ( PIN_OUTPUT | MUX_MODE3 ) /* (A13) mcasp0_aclkx.spi1_sclk */
0x194 ( PIN_INPUT | MUX_MODE3 ) /* (B13) mcasp0_fsx.spi1_d0 */
0x198 ( PIN_OUTPUT | MUX_MODE3 ) /* (D12) mcasp0_axr0.spi1_d1 */
0x19c ( PIN_OUTPUT | MUX_MODE3 ) /* (C12) mcasp0_ahclkr.spi1_cs0 */
>;
};
&spi1{
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
/* DO is MOSI, D1 is MISO */
ti,pindir-d0-out-d1-in = <1>;
spidev {
compatible = "spidev";
/* We use SPI CS 0; register the same */
reg = <0>;
spi-max-frequency = <1000000>;
spi-cs-high;
/* Operate with CPOL and CPHA set to zero */
/* spi-cpol; */
/* spi-cpha; */
};
};
Rebuild the .dtb and kernel together and loaded into custom board.
SPI dev should get listed in /dev which is not listed.
Kindly suggest the possible reason and solution to the problem.
Regards,
Anil