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

Commit 8c126e98 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "spi: spidev: add Qualcomm spi codec slave driver"

parents 26995ba8 5acfc76c
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -31,7 +31,22 @@ Optional properties:
- qcom,disable-autosuspend: Specifies to disable runtime PM auto suspend.

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-codec-slave" for external codec control

- reg:            Chip select address of device.

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

Optional properties:
- 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:

+10 −0
Original line number Diff line number Diff line
@@ -511,3 +511,13 @@
		status = "disabled";
	};
};

&qupv3_se22_spi {
	status = "ok";
	spi_codec@0 {
		compatible = "qcom,spi-msm-codec-slave";
		reg = <0>;
		spi-max-frequency = <12800000>;
		spi-cpha;
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -669,6 +669,7 @@ static const struct of_device_id spidev_dt_ids[] = {
	{ .compatible = "lineartechnology,ltc2488" },
	{ .compatible = "ge,achc" },
	{ .compatible = "semtech,sx1301" },
	{ .compatible = "qcom,spi-msm-codec-slave" },
	{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);