Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56370654 authored by Miaoqing Pan's avatar Miaoqing Pan
Browse files

spi: qup: add device bindings for spi-msm-slave



Use spidev driver for spi-msm-slave.

CRs-Fixed: 2251010
Change-Id: I4648c2d037eb8fd4fefcbdf3809b01320925b113
Signed-off-by: default avatarMiaoqing Pan <miaoqing@codeaurora.org>
parent e83ca98f
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -40,7 +40,24 @@ Optional properties:
                receive.

SPI slave nodes must be children of the SPI master node and can contain
properties described in Documentation/devicetree/bindings/spi/spi-bus.txt
the following properties.

Required properties:
- compatible:     Should contain:
                  "qcom,spi-msm-slave" for external slave control

- reg:            Chip select address of device.

- spi-max-frequency: Maximum SPI clocking speed of device in Hz.

Optional properties:
- spi-cpol:       Empty property indicating device requires
                  inverse clock polarity (CPOL) mode.
- spi-cpha:       Empty property indicating device requires
                  shifted clock phase (CPHA) mode.

Other optional properties described in
Documentation/devicetree/bindings/spi/spi-bus.txt

Example:

+1 −0
Original line number Diff line number Diff line
@@ -696,6 +696,7 @@ static struct class *spidev_class;
static const struct of_device_id spidev_dt_ids[] = {
	{ .compatible = "rohm,dh2228fv" },
	{ .compatible = "lineartechnology,ltc2488" },
	{ .compatible = "qcom,spi-msm-slave" },
	{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);