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

Commit 3fe00c0a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM:dts:msm: enable spi slave for apq8009"

parents 7c747f62 99497dbe
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:

+12 −0
Original line number Diff line number Diff line
@@ -207,6 +207,18 @@
	gpio_keys {
		status = "disable";
	};

	spi@78ba000 {
		reg = <0x78ba000 0x600>;
		spi-max-frequency = <50000000>;
		status = "okay";

		spi@0 {
			compatible = "qcom,spi-msm-slave";
			reg = <0>;
			spi-max-frequency = <50000000>;
		};
	};
};

&i2c_1 {
+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);