我使用的是飞思卡尔i.mx28主板。有一个ad7266通过SPI与cpu通信。 ad7266具有可与三个GPIO配合使用的多路复用器。 (A0,A1,A2)。过去,我直接在驱动程序中配置此GPIO。现在我想在另一个SPI-Bus上使用第二个ad7266。现在,当然不能直接在驱动程序中配置多路复用器。所以我的问题是,如何在设备树中配置此Pins?那可能吗?这里是代码片段:
ssp2: ssp@80014000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
pinctrl-names = "default";
pinctrl-0 = <&spi2_pins_pwr003>;
status = "okay";
flash: m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "sst,sst25vf016b";
spi-max-frequency = <40000000>;
reg = <0>;
};
AD7266_PWR003: AD7266@0 {
compatible = "adi,ad7266";
spi-max-frequency = <1000000>;
spi-cpol;
vref-supply = <®_vref_2p5v>;
reg = <1>;
};
};
由于
答案 0 :(得分:0)
我发现司机没有没有设备支持。 - eddi