OSDN Git Service

ARM: dts: msm: Add G-Link SPI Transport device for msmcobalt
authorKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
Wed, 29 Jun 2016 21:17:12 +0000 (15:17 -0600)
committerKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
Thu, 4 Aug 2016 16:30:08 +0000 (10:30 -0600)
G-Link SPI Transport is used to communicate with external audio codec.
Add G-Link SPI Transport device to support that configuration.

CRs-Fixed: 1045916
Change-Id: I97ca857c21d8873574a180d289e2fbca29c8a891
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
arch/arm/boot/dts/qcom/msmcobalt.dtsi

index 3bbc987..d147d4d 100644 (file)
                qcom,rx-ring-size = <0x800>;
        };
 
+       glink_spi_xprt_wdsp: qcom,glink-spi-xprt-wdsp {
+               compatible = "qcom,glink-spi-xprt";
+               label = "wdsp";
+               qcom,remote-fifo-config = <&glink_fifo_wdsp>;
+               qcom,qos-config = <&glink_qos_wdsp>;
+               qcom,ramp-time = <0x10>,
+                                    <0x20>,
+                                    <0x30>,
+                                    <0x40>;
+       };
+
+       glink_fifo_wdsp: qcom,glink-fifo-config-wdsp {
+               compatible = "qcom,glink-fifo-config";
+               qcom,out-read-idx-reg = <0x12000>;
+               qcom,out-write-idx-reg = <0x12004>;
+               qcom,in-read-idx-reg = <0x1200C>;
+               qcom,in-write-idx-reg = <0x12010>;
+       };
+
+       glink_qos_wdsp: qcom,glink-qos-config-wdsp {
+               compatible = "qcom,glink-qos-config";
+               qcom,flow-info = <0x80 0x0>,
+                                <0x70 0x1>,
+                                <0x60 0x2>,
+                                <0x50 0x3>;
+               qcom,mtu-size = <0x800>;
+               qcom,tput-stats-cycle = <0xa>;
+       };
+
        qcom,glink_pkt {
                compatible = "qcom,glinkpkt";