Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6q-logicpd: Use GPIO chipselect

Using the native SPI chipselect on i.MX6 is known to be problematic.

Doing it on a imx6q-sabresd causes the SPI NOR probe to fail:

[ 5.388704] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00

Use the GPIO chipselect to avoid such problem.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Fabio Estevam and committed by
Shawn Guo
55df2079 dd1d4def

+2 -1
+2 -1
arch/arm/boot/dts/imx6-logicpd-baseboard.dtsi
··· 212 212 &ecspi1 { 213 213 pinctrl-names = "default"; 214 214 pinctrl-0 = <&pinctrl_ecspi1>; 215 + cs-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; 215 216 status = "disabled"; 216 217 }; 217 218 ··· 384 383 MX6QDL_PAD_KEY_COL0__ECSPI1_SCLK 0x100b1 385 384 MX6QDL_PAD_KEY_ROW0__ECSPI1_MOSI 0x100b1 386 385 MX6QDL_PAD_KEY_COL1__ECSPI1_MISO 0x100b1 387 - MX6QDL_PAD_KEY_ROW1__ECSPI1_SS0 0x100b1 386 + MX6QDL_PAD_KEY_ROW1__GPIO4_IO09 0x1b0b0 388 387 >; 389 388 }; 390 389