i.MX8M Plus LPDDR4 EVK Device Tree

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

i.MX8M Plus LPDDR4 EVK Device Tree

跳至解决方案
1,422 次查看
Jimmychea
Contributor III

In imx8mp-evk.dts, what is below node for ? Because i can't find the "rohm,dh2228fv" SPI device in schematic.

 

&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 解答
1,400 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the link as below:

https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree#...

spidev is a detail of how Linux controls a device rather than a description of the hardware in the system, any SPI device could be a spidev

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,409 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复
1,405 次查看
Jimmychea
Contributor III

Thanks for the information provided. But i want to know does this driver needed ? Because i can't find any dh2228fv hardware component in i.MX8M Plus LPDDR4 EVK schematic.

0 项奖励
回复
1,401 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the link as below:

https://stackoverflow.com/questions/53634892/linux-spidev-why-it-shouldnt-be-directly-in-devicetree#...

spidev is a detail of how Linux controls a device rather than a description of the hardware in the system, any SPI device could be a spidev

 

0 项奖励
回复