i.MX7 QSPI devicetree to get /dev/spidevX.X device or equal

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX7 QSPI devicetree to get /dev/spidevX.X device or equal

522 次查看
bdskpef
Contributor I

Hi, i am trying to get a /dev device based on i.MX7 QSPI_A , that will work with the simple spidev_test.c from the linux documentation. I have /dev/spidev4.0 , but i get unknown error -524.

Does anyone have a working dts/dtsi for this ?

When using the flash example, the chip-id is read correctly. But i would like to use something like sidev_test.c method for testing devices on the QSPI bus.

Linux 5.4 Toradex Colibri - based on imx7d-colibri-eval-v3.dts and imx7d-sdb-qspi.dtsi

&qspi1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qspi1_1>;
status = "okay";
ddrsmp=<0>;

spidev1: spidev@0 {
compatible = "toradex,evalspi";
reg = <0>;
spi-max-frequency = <33000000>;
spi-rx-bus-width = <1>;
spi-tx-bus-width = <1>;
status = "okay";
};};

标记 (4)
0 项奖励
回复
0 回复数