summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmandeep Singh <amansing@codeaurora.org>2018-08-06 00:06:55 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-29 07:16:12 -0700
commit7475bc3d16ddc76bc6c23dc5e16df408642bf994 (patch)
treee45ec8e4426afff913985f58723e6b6bd1b53ef2
parentcff9fccb6789bc67cd23e3083a40b627e521bd48 (diff)
msm-4.4: dts: mhi: Added and enabled mhi support
Added and enabled mhi node in the dts for msm8996 auto. Change-Id: I3932f4e51844437172b0f9e71731b42de9d5b4c4 Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
-rw-r--r--arch/arm/boot/dts/qcom/msm8996.dtsi2
-rw-r--r--arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts37
2 files changed, 38 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/qcom/msm8996.dtsi b/arch/arm/boot/dts/qcom/msm8996.dtsi
index 95b100e10e5b..117161ff40cc 100644
--- a/arch/arm/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm/boot/dts/qcom/msm8996.dtsi
@@ -25,7 +25,7 @@
bootargs = "fpsimd.fpsimd_settings=1 app_setting.use_app_setting=1 app_setting.use_32bit_app_setting=1";
};
- aliases {
+ aliases: aliases {
sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
sdhc2 = &sdhc_2; /* SDC2 SD card slot */
smd7 = &smdtty_data1;
diff --git a/arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts b/arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts
index 75631bbb56b8..0ed6d90c64f3 100644
--- a/arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts
+++ b/arch/arm/boot/dts/qcom/msm8996pro-auto-adp.dts
@@ -90,3 +90,40 @@
qcom,smmu-support;
status = "ok";
};
+
+&aliases {
+ mhi1 = &mhi;
+};
+
+&mhi {
+ compatible = "qcom,mhi";
+ qcom,pci-dev_id = <0x1102>;
+ qcom,pci-domain = <0>;
+ qcom,pci-bus = <1>;
+ qcom,pci-slot = <0>;
+ qcom,mhi-address-window = <0x0 0x80000000 0x1 0xFFFFFFFF>;
+
+ /* RUMI Specific param */
+ qcom,mhi-ready-timeout = <600000>;
+ qcom,bhi-poll-timeout = <600000>;
+ qcom,bhi-alignment = <0x40000>;
+
+ /* firmware transfer */
+ qcom,mhi-manage-boot;
+ qcom,mhi-fw-image = "amss.bin";
+ qcom,mhi-max-sbl = <0x40000>;
+ qcom,mhi-sg-size = <0x80000>;
+
+ /* mhi cntxt parameters */
+ mhi-chan-cfg-0 = <0x0 0x80 0x1 0x92>;
+ mhi-chan-cfg-1 = <0x1 0x80 0x1 0xa2>;
+ mhi-chan-cfg-4 = <0x4 0x80 0x1 0x92>;
+ mhi-chan-cfg-5 = <0x5 0x80 0x1 0xa2>;
+ mhi-chan-cfg-16 = <0x10 0x40 0x1 0x92>;
+ mhi-chan-cfg-17 = <0x11 0x40 0x1 0xa2>;
+ mhi-event-rings = <2>;
+ mhi-event-cfg-0 = <0xa 0x0 0x1 0 1 0x31>;
+ mhi-event-cfg-1 = <0x80 0x1 0x1 0 1 0x31>;
+
+ status = "okay";
+};