AnsweredAssumed Answered

dts: configure SPI

Question asked by Kirill Brilliantov on Jul 27, 2015
Latest reply on Jul 28, 2015 by Kirill Brilliantov

Hello!

I work with custom iMX287 CPU board.

On board device connected to SSP2_MOSI, SSP2_SCK and SSP2_CS1, follow my code in dts-file:

apb@80000000 {

    apbh@80000000 {

        ssp0: ssp@80010000 {

                compatible = "fsl,imx28-mmc";

                pinctrl-names = "default";

                pinctrl-0 = <&mmc0_4bit_pins_a

                        &mmc0_cd_cfg

                        &mmc0_sck_cfg

                >;

                bus-width = <4>;

                status = "okay";

        };

 

        ssp2: ssp@80014000 {

                #address-cells = <1>;

                #size-cells = <0>;

                compatible = "fsl,imx28-spi";

                pinctrl-names = "default";

                pinctrl-0 = <&spi2_pins>;

                status = "okay";

 

                spi2_pins: spi2@0 {

                    reg = <0>;

                    fsl,pinmux-ids = <

                        MX28_PAD_SSP2_SCK__SSP2_SCK

                        MX28_PAD_SSP2_MOSI__SSP2_CMD

                        /* SSP2_CS1 */

                        MX28_PAD_SSP2_SS1__SSP2_D4

                    >;

                    fsl,drive-strength = <MXS_DRIVE_8mA>;

                    fsl,voltage = <MXS_VOLTAGE_HIGH>;

                    fsl,pull-up = <MXS_PULL_ENABLE>;

                };

        };

};

Unforunately spidev not present, linux log contained this - spi_master spi1: cannot find modalias for /apb@80000000/apbh@80000000/ssp@80014000/spi2@0

I not understand this message, why spi1 can't found modalis if I not use spi1?

Can you help me?

Thank you and excuse my bad english.

Outcomes