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

Commit 89e3e131 authored by Derek Chen's avatar Derek Chen
Browse files

ARM: dts: msm: add spi_0 dev subnode on msm8996 adp/cdp platform



Add spi-msm-codec-slave device as a subnode of spi_0 on
msm8996 adp/cdp platform.

CRs-fixed: 1027162
Signed-off-by: default avatarDerek Chen <chenche@codeaurora.org>
Change-Id: I0b402ef31b53b7f0408e2eec39cc8dea2729cedd
parent a4ef0784
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -35,7 +35,24 @@ Optional properties:


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

+4 −3
Original line number Diff line number Diff line
@@ -900,9 +900,10 @@
};

&spi_0 {
	spi_codec@2 {
	spi_codec@0 {
		compatible = "qcom,spi-msm-codec-slave";
		reg = <2>;
		spi-max-frequency = <19200000>;
		reg = <0>;
		spi-max-frequency = <2000000>;
		spi-cpha;
	};
};
+9 −0
Original line number Diff line number Diff line
@@ -1276,3 +1276,12 @@
&blsp1_uart2 {
	status = "ok";
};

&spi_0 {
	spi_codec@0 {
		compatible = "qcom,spi-msm-codec-slave";
		reg = <0>;
		spi-max-frequency = <2000000>;
		spi-cpha;
	};
};
+9 −0
Original line number Diff line number Diff line
@@ -56,6 +56,15 @@
	status = "ok";
};

&spi_0 {
	spi_codec@0 {
		compatible = "qcom,spi-msm-codec-slave";
		reg = <0>;
		spi-max-frequency = <2000000>;
		spi-cpha;
	};
};

&uartblsp2dm1 {
	status = "ok";
	pinctrl-names = "default";
+9 −0
Original line number Diff line number Diff line
@@ -859,3 +859,12 @@
	status = "disabled";
	/delete-property/ qcom,spkr-sd-n-gpio;
};

&spi_0 {
	spi_codec@0 {
		compatible = "qcom,spi-msm-codec-slave";
		reg = <0>;
		spi-max-frequency = <2000000>;
		spi-cpha;
	};
};