Hello,
I am using SDKv2.0 for AM57xx EVM. I have modified device tree file am57xx-evm.dts as below.
mcspi4_pins: mcspi4_pins {
pinctrl-single,pins = <
0x350 (PIN_OUTPUT | MUX_MODE2) /*mcasp5_axr1.spi4_cs0*/
0x34C (PIN_OUTPUT | MUX_MODE2) /*mcasp5_axr0.spi4_d0*/
0x348 (PIN_INPUT | MUX_MODE2) /*mcasp5_fsx.spi4_d1*/
0x344 (PIN_OUTPUT | MUX_MODE2) /*mcasp5_aclkx.spi4_clk*/
>;
};
&mcspi4 {
pinctrl-names = "default";
pinctrl-0 = <&mcspi4_pins>;
status = "okay";
spidev@0 {
compatible = "linux, spidev";
spi-max-frequency = <48000000>;
reg = <0x0>;
status = "okay";
};
};
But after a kernel boot I can not see the spidev in /dev/ . I also want to add custom device driver i.e. mcp23s08. When I have modified device tree for MCP23S08, as below, it gives error during kernel boot that.
&mcspi4 {
pinctrl-names = "default";
pinctrl-0 = <&mcspi4_pins>;
status = "okay";
gpiom1: mcp23s17@3 {
compitible = "microchip,mcp23s17";
spi-max-frequency = <1000000>;
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
};
};
Below is the error:
[ 1.610137] spi_master spi32766: cannot find modalias for /ocp/spi@480ba000/mcp23s17@3
[ 1.618095] spi_master spi32766: Failed to create SPI device for /ocp/spi@480ba000/mcp23s17@3
So could you please help me resolve this two issues?