dm: spi: soft_spi: switch to use linux compatible string
authorPeng Fan <van.freenix@gmail.com>
Tue, 3 May 2016 02:02:21 +0000 (10:02 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit102412c415b5e51b01ed5797c965d0feaa065439
tree60836d7e1174ffcc4a67b7d5279031a8ae10719c
parentb6d54d527325f27c460777b882e23d21a935765a
dm: spi: soft_spi: switch to use linux compatible string

1. Support compatible string "spi-gpio" which is used by Linux
   Linux use different bindings, so use UBOOT_COMPAT and
   LINUX_COMPAT to differentiate them.
2. Introduce SPI_MASTER_NO_RX and SPI_MASTER_NO_TX to handle
   no rx or no tx case.
3. Tested on i.MX6 UltraLite board with 74LV595 spi-gpio chip.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/exynos4210-universal_c210.dts
drivers/spi/soft_spi.c