]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm64: dt: Add WCNSS related nodes
authorAndy Gross <agross@codeaurora.org>
Tue, 14 Jul 2015 03:47:03 +0000 (22:47 -0500)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:24 +0000 (09:54 +0000)
This patch addes DT nodes for reservered memory, smp2p, wcnss/pronto

Signed-off-by: Andy Gross <agross@codeaurora.org>
arch/arm64/boot/dts/qcom/msm8916-pins.dtsi
arch/arm64/boot/dts/qcom/msm8916.dtsi

index f4e577b7336e08270a180463fa479345654b762c..1badb82923f3bde6cfc6e0d7686d05dce979924a 100644 (file)
                        };
                };
        };
+
+       wcnss_default: wcnss_default {
+               pinmux2 {
+                       function = "wcss_wlan";
+                       pins = "gpio40";
+               };
+               pinmux1 {
+                       function = "wcss_wlan";
+                       pins = "gpio41";
+               };
+               pinmux0 {
+                       function = "wcss_wlan";
+                       pins = "gpio42";
+               };
+               pinmux {
+                       function = "wcss_wlan";
+                       pins = "gpio43", "gpio44";
+               };
+               pinconf {
+                       pins = "gpio40", "gpio41", "gpio42", "gpio43",
+                              "gpio44";
+                       drive-strength = <6>;
+                       bias-pull-up;
+               };
+       };
 };
index 4d754993f6a3f45bc40381f3de61d67d01a41ca0..c040e8acd76f88c994bfffcd6b8bbf72a8b77f1d 100644 (file)
                        reg = <0x0 0x86300000 0x0 0x0100000>;
                        no-map;
                };
+
+                modem_adsp_mem: modem_adsp_region@86400000 {
+                        no-map;
+                        reg = <0x0 0x86400000 0x0 0x05200000>;
+                };
+
+                peripheral_mem: peripheral_region@8b600000 {
+                        no-map;
+                        reg = <0x0 0x8b600000 0x0 0x0600000>;
+                };
        };
 
        cpus {
                        qcom,sensor-id = <0 1 2 4 5>;
                        #thermal-sensor-cells = <1>;
                };
+
+               wcnss-smp2p {
+                       compatible = "qcom,smp2p";
+                       qcom,smem = <451>, <431>;
+
+                       interrupts = <0 143 1>;
+
+                       qcom,ipc = <&apcs 8 18>;
+
+                       qcom,local-pid = <0>;
+                       qcom,remote-pid = <4>;
+
+                       wcnss_smp2p_out: master-kernel {
+                               qcom,entry-name = "master-kernel";
+                               qcom,outbound;
+
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                       };
+
+                       wcnss_smp2p_in: slave-kernel {
+                               qcom,entry-name = "slave-kernel";
+                               qcom,inbound;
+
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                       };
+               };
+
+               pronto_rproc {
+                       compatible = "qcom,tz-pil";
+
+                       interrupts-extended = <&intc 0 149 1>,
+                                             <&wcnss_smp2p_in 0 0>,
+                                             <&wcnss_smp2p_in 1 0>,
+                                             <&wcnss_smp2p_in 2 0>,
+                                             <&wcnss_smp2p_in 3 0>;
+                       interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
+
+                       clocks = <&gcc GCC_CRYPTO_CLK>,
+                                <&gcc GCC_CRYPTO_AHB_CLK>,
+                                <&gcc GCC_CRYPTO_AXI_CLK>,
+                                <&gcc CRYPTO_CLK_SRC>;
+                       clock-names = "scm_core_clk", "scm_iface_clk", "scm_bus_clk", "scm_src_clk";
+
+                       qcom,firmware-name = "wcnss";
+                       qcom,pas-id = <6>;
+
+                       qcom,crash-reason = <422>;
+                       qcom,smd-edges = <&pronto_smd_edge>;
+
+                       qcom,pll-supply = <&pm8916_l7>;
+                       qcom,pll-uV = <1800000>;
+                       qcom,pll-uA = <18000>;
+
+                       qcom,stop-gpio = <&wcnss_smp2p_out 0 0>;
+
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&wcnss_default>;
+
+                       memory-region = <&peripheral_mem>;
+               };
        };
 
        smd {
                        interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
                        qcom,ipc = <&apcs 8 0>;
                        qcom,smd-edge = <15>;
+                       qcom,remote-pid = <0xffffffff>;
 
                        rpm_requests {
                                compatible = "qcom,rpm-msm8916";
                                };
                        };
                };
+
+               pronto_smd_edge: pronto {
+                       interrupts = <0 142 1>;
+
+                       qcom,ipc = <&apcs 8 17>;
+                       qcom,smd-edge = <6>;
+                       qcom,remote-pid = <4>;
+
+#if 0
+                       bt {
+                               compatible = "qcom,hci-smd";
+                               qcom,smd-channels = "APPS_RIVA_BT_CMD", "APPS_RIVA_BT_ACL";
+                               qcom,smd-channel-names = "event", "data";
+                       };
+
+                       ipcrtr {
+                               compatible = "qcom,ipcrtr";
+                               qcom,smd-channels = "IPCRTR";
+                       };
+
+                       wifi {
+                               compatible = "qcom,wcn3680";
+                               qcom,smd-channels = "WLAN_CTRL";
+
+                               interrupts = <0 145 0>, <0 146 0>;
+                               interrupt-names = "wcnss_wlantx_irq", "wcnss_wlanrx_irq";
+
+                               qcom,wcnss_mmio = <0xfb000000 0x21b000>;
+
+                               qcom,tx-enable-gpios = <&apps_smsm 10 0>;
+                               qcom,tx-rings-empty-gpios = <&apps_smsm 9 0>;
+                       };
+
+                       wcnss_ctrl {
+                               compatible = "qcom,wcnss-ctrl";
+                               qcom,smd-channels = "WCNSS_CTRL";
+
+                               qcom,wcnss_mmio = <0xfb21b000 0x3000>;
+                       };
+#endif
+               };
        };
 };