Disable spi2 imx8m plus

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

Disable spi2 imx8m plus

690 次查看
dskim2
Contributor IV

I want to disable spi2 of the i.mx8m plus demo board and use the pins of spi2 as gpio.

How can do it?

I commented out the below part in the dts file, but failed to set gpio.

&ecspi2 {
#address-cells = <1>;
#size-cells = <0>;
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2 &pinctrl_ecspi2_cs>;
cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay";

spidev1: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <500000>;
};
};

 

0 项奖励
回复
1 回复

655 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Does it work now?

0 项奖励
回复