OSDN Git Service

ARM: dts: msm: enable sensor node on msm8996 and apq8096
authorDerek Chen <chenche@codeaurora.org>
Mon, 30 Oct 2017 19:37:30 +0000 (15:37 -0400)
committerGerrit - the friendly Code Review server <code-review@localhost>
Mon, 30 Apr 2018 20:39:28 +0000 (13:39 -0700)
Enable sensor device node to allow Anti-Noise
Cancellation (ANC) algorithm to be running on
sensor subsystem for automotive msm8996 and
apq8096 platforms.

CRs-fixed: 2153236
Change-Id: I213c2eb94f6fe01e7c2ceca2d9033616817db38b
Signed-off-by: Derek Chen <chenche@codeaurora.org>
arch/arm/boot/dts/qcom/apq8096-v3-auto-adp.dts
arch/arm/boot/dts/qcom/apq8096pro-v1.1-auto-adp-lite.dts
arch/arm/boot/dts/qcom/apq8096pro-v1.1-auto-adp.dts
arch/arm/boot/dts/qcom/msm8996-agave-adp.dtsi
arch/arm/boot/dts/qcom/msm8996-v3-auto-adp.dts
arch/arm/boot/dts/qcom/msm8996pro-auto-adp-lite.dts
arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts

index a91ec5e..46894ea 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;
index 6c2413d..e4eca6a 100644 (file)
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;
index fa34676..c8f2e58 100644 (file)
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;
index 9e14211..cb3ee32 100644 (file)
                status = "disabled";
        };
 
+       qcom,msm-ssc-sensors {
+               compatible = "qcom,msm-ssc-sensors";
+               qcom,firmware-name = "slpi";
+               status = "ok";
+       };
+
        sound-adp-agave {
                compatible = "qcom,apq8096-asoc-snd-adp-agave";
                qcom,model = "apq8096-adp-agave-snd-card";
                asoc-codec-names = "msm-stub-codec.1";
        };
 
+       qcom,msm-dai-tdm-tert-rx {
+               qcom,msm-cpudai-tdm-group-num-ports = <6>;
+               qcom,msm-cpudai-tdm-group-port-id = <36896 36898 36900
+                       36902 36904 36906>;
+
+               dai_tert_tdm_rx_5: qcom,msm-dai-q6-tdm-tert-rx-5 {
+                       compatible = "qcom,msm-dai-q6-tdm";
+                       qcom,msm-cpudai-tdm-dev-id = <36906>;
+                       qcom,msm-cpudai-tdm-data-align = <0>;
+               };
+       };
+
+       qcom,msm-ext-anc {
+               compatible = "qcom,msm-ext-anc";
+               qcom,refs-port-id = <36906>;
+               qcom,spkr-port-id = <36912>;
+               qcom,mic-port-id = <36913>;
+               qcom,sample-rate = <48000>;
+               qcom,num-channels = <8>;
+               qcom,bit-width = <32>;
+               qcom,num-anc-mic = <4>;
+               qcom,num-add-mic-signal = <0>;
+               qcom,anc-mic-array = <0 1 2 3>;
+               qcom,num-anc-spkr = <4>;
+               qcom,num-add-spkr-signal = <0>;
+               qcom,anc-spkr-array = <0 1 2 3>;
+               qcom,refs-tdm-rx = <&dai_tert_tdm_rx_5>;
+               qcom,spkr-tdm-rx = <&dai_quat_tdm_rx_0>;
+               qcom,mic-tdm-tx = <&dai_quat_tdm_tx_0>;
+       };
+
        usb_detect: usb_detect {
                compatible = "qcom,gpio-usbdetect";
                qcom,vbus-det-gpio = <&pm8994_gpios 17 0>;
index 68956d7..89a585b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;
index 9fd2686..02f5dbc 100644 (file)
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;
index d2aa5c8..398aaa6 100644 (file)
 };
 
 &soc {
-       qcom,msm-ssc-sensors {
-               status = "disabled";
-       };
-
        qcom,msm-thermal {
                qcom,hotplug-temp = <115>;
                qcom,hotplug-temp-hysteresis = <25>;