AnsweredAssumed Answered

sc16is7xx: probe of spi1.0 failed with error -22

Question asked by jagadiswar barri on Oct 16, 2018

Hi Team,

I am using sc16is740 SPI to UART converter while loading the driver getting error sc16is7xx: probe of spi1.0 failed with error -22 . I am using below dtsi content for SPI in kernel version 4.4.60.

 

 

 

spi_1_pins: spi_1_pinmux {
mux {
pins = "gpio47", "gpio46", "gpio44";
function = "blsp_spi1";
bias-disable;
};
pinmux_cs {
function = "gpio";
pins = "gpio45";
bias-disable;
output-high;
};
};

 

 

spi_1: spi@78b6000 { /* BLSP1 QUP2 */
pinctrl-0 = <&spi_1_pins>;
pinctrl-names = "default";
status = "ok";
cs-gpios = <&tlmm 45 0>;

sc16is740@0 {
reg = <0>;
compatible = "nxp,sc16is740";
spi-max-frequency = <4000000>;
gpio-controller;
use-default-sizes;
#gpio-cells = <2>;
};

};

Outcomes