Serial port on i.MX6 with DCD via IO expander

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Serial port on i.MX6 with DCD via IO expander

617件の閲覧回数
astrand
Contributor I

Hi. We are building a i.MX6ULL system with a modem connected to CPU serial port, but the DCD signal is routed via an IO expander (PCA953x). This is configured via devicetree:

&uart2 {
...
	dcd-gpios = <&i2c_gpio1 6 GPIO_ACTIVE_LOW>;
};

 However, when booting we get:

 imx-uart 21e8000.serial: failed to request irq for dcd (idx=0, err=-22)

Don't really know how this can be fixed. However, perhaps it would be easier to use a polling solution for DCD instead? imx.c actually polls for it's own DCD, but a naive implementation to poll the IO expander does not work; only gives "BUG: scheduling while atomic". 

So, how is this supposed to work...? imx.c and serial_mctrl_gpio.c obviously tries to support generic GPIO via gpiod, but for some reason this does not work for our IO expander. Thankful for any help.

Using i.MX yocto platform L5.4.24_2.1.0. Also tried kernel from lf-5.10.y.

ラベル(3)
0 件の賞賛
返信
0 返答(返信)