summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayank Rana <mrana@codeaurora.org>2016-03-17 16:06:58 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:26:05 -0700
commit6f339ff0ababd0d7e8dac7c18da31f93fccde97a (patch)
tree7d99d69b38065dfea5c8d4010d277caa8b9a0443
parent5d5f9795782da6ca915a3213c6b1aec1445d358e (diff)
ARM: dts: msm: Add QMP PHY related initialization sequence for MSM8996
This change adds required QMP PHY related initialization from devicetree instead of using getting revision based sequence from QMP PHY driver. Signed-off-by: Mayank Rana <mrana@codeaurora.org>
-rw-r--r--arch/arm/boot/dts/qcom/msm8996-v2.dtsi59
-rw-r--r--arch/arm/boot/dts/qcom/msm8996.dtsi56
2 files changed, 114 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/qcom/msm8996-v2.dtsi b/arch/arm/boot/dts/qcom/msm8996-v2.dtsi
index ea738998b656..d3c262f42ace 100644
--- a/arch/arm/boot/dts/qcom/msm8996-v2.dtsi
+++ b/arch/arm/boot/dts/qcom/msm8996-v2.dtsi
@@ -727,5 +727,62 @@
};
&ssphy {
- qcom,qmp-misc-config;
+ qcom,qmp-phy-init-seq =
+ /* <reg_offset, value, delay> */
+ <0xac 0x14 0x00 /* common block settings */
+ 0x34 0x08 0x00
+ 0x174 0x30 0x00
+ 0x194 0x06 0x00
+ 0x19c 0x01 0x00
+ 0x178 0x01 0x00 /* change */
+ 0x70 0x0f 0x00
+ 0x48 0x0f 0x00
+ 0x3c 0x04 0x00
+ 0xd0 0x82 0x00 /* pll and loop filter settings*/
+ 0xdc 0x55 0x00
+ 0xe0 0x55 0x00
+ 0xe4 0x03 0x00
+ 0x78 0x0b 0x00
+ 0x84 0x16 0x00
+ 0x90 0x28 0x00
+ 0x108 0x80 0x00
+ 0x124 0x00 0x00
+ 0x4c 0x15 0x00
+ 0x50 0x34 0x00
+ 0x18c 0x00 0x00
+ 0xcc 0x00 0x00
+ 0x128 0x00 0x00
+ 0x0c 0x0a 0x00
+ 0x10 0x01 0x00 /* ssc settings */
+ 0x1c 0x31 0x00
+ 0x20 0x01 0x00
+ 0x14 0x00 0x00
+ 0x18 0x00 0x00
+ 0x24 0xde 0x00
+ 0x28 0x07 0x00
+ 0x440 0x0b 0x00 /* Rx settings */
+ 0x41c 0x04 0x00
+ 0x4d8 0x02 0x00
+ 0x4dc 0x4c 0x00
+ 0x4e0 0xbb 0x00
+ 0x508 0x77 0x00
+ 0x50c 0x80 0x00
+ 0x514 0x03 0x00
+ 0x518 0x1b 0x00 /* change */
+ 0x51c 0x16 0x00
+ 0x268 0x45 0x00 /* Tx settings */
+ 0x2ac 0x12 0x00
+ 0x294 0x06 0x00
+ 0x6c4 0x03 0x00 /* FLL settings */
+ 0x6c0 0x02 0x00
+ 0x6c8 0x09 0x00
+ 0x6cc 0x42 0x00
+ 0x6d0 0x85 0x00
+ 0x680 0xd1 0x00 /* Lock Det settings */
+ 0x684 0x1f 0x00
+ 0x688 0x47 0x00
+ 0x664 0x08 0x00
+ 0xc4 0x15 0x00 /* res_code settings */
+ 0x1b8 0x1f 0x00
+ 0xffffffff 0xffffffff 0x00>;
};
diff --git a/arch/arm/boot/dts/qcom/msm8996.dtsi b/arch/arm/boot/dts/qcom/msm8996.dtsi
index a832c0c179a1..debeb3e94bdd 100644
--- a/arch/arm/boot/dts/qcom/msm8996.dtsi
+++ b/arch/arm/boot/dts/qcom/msm8996.dtsi
@@ -2136,6 +2136,62 @@
vdda18-supply = <&pm8994_l12>;
qcom,vdd-voltage-level = <0 925000 925000>;
qcom,vbus-valid-override;
+ qcom,qmp-phy-init-seq =
+ /* <reg_offset, value, delay> */
+ <0xac 0x14 0x00 /* common block settings */
+ 0x34 0x08 0x00
+ 0x174 0x30 0x00
+ 0x194 0x06 0x00
+ 0x19c 0x01 0x00
+ 0x178 0x00 0x00
+ 0x70 0x0f 0x00
+ 0x48 0x0f 0x00
+ 0x3c 0x04 0x00
+ 0xd0 0x82 0x00 /* pll and loop filter settings*/
+ 0xdc 0x55 0x00
+ 0xe0 0x55 0x00
+ 0xe4 0x03 0x00
+ 0x78 0x0b 0x00
+ 0x84 0x16 0x00
+ 0x90 0x28 0x00
+ 0x108 0x80 0x00
+ 0x124 0x00 0x00
+ 0x4c 0x15 0x00
+ 0x50 0x34 0x00
+ 0x18c 0x00 0x00
+ 0xcc 0x00 0x00
+ 0x128 0x00 0x00
+ 0x0c 0x0a 0x00
+ 0x10 0x01 0x00 /* ssc settings */
+ 0x1c 0x31 0x00
+ 0x20 0x01 0x00
+ 0x14 0x00 0x00
+ 0x18 0x00 0x00
+ 0x24 0xde 0x00
+ 0x28 0x07 0x00
+ 0x440 0x0b 0x00 /* Rx settings */
+ 0x41c 0x04 0x00
+ 0x4d8 0x02 0x00
+ 0x4dc 0x4c 0x00
+ 0x4e0 0xbb 0x00
+ 0x508 0x77 0x00
+ 0x50c 0x80 0x00
+ 0x514 0x03 0x00
+ 0x518 0x18 0x00
+ 0x51c 0x16 0x00
+ 0x268 0x45 0x00 /* Tx settings */
+ 0x2ac 0x12 0x00
+ 0x294 0x06 0x00
+ 0x6c4 0x03 0x00 /* FLL settings */
+ 0x6c0 0x02 0x00
+ 0x6c8 0x09 0x00
+ 0x6cc 0x42 0x00
+ 0x6d0 0x85 0x00
+ 0x680 0xd1 0x00 /* Lock Det settings */
+ 0x684 0x1f 0x00
+ 0x688 0x47 0x00
+ 0x664 0x08 0x00
+ 0xffffffff 0xffffffff 0x00>;
qcom,qmp-phy-reg-offset =
<0x77c /* USB3_PHY_PCS_STATUS */