arm64: dts: msm8996: Add device node for qcom qmp-phy for pcie
authorVivek Gautam <vivek.gautam@codeaurora.org>
Mon, 31 Jul 2017 06:44:43 +0000 (12:14 +0530)
committerAndy Gross <andy.gross@linaro.org>
Tue, 8 Aug 2017 21:29:52 +0000 (16:29 -0500)
Add required device node for QMP phy based 3-lane PCIe phy
present on msm8996 chipset to enable support for the same.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
arch/arm64/boot/dts/qcom/msm8996.dtsi

index 562fa1a72c025edff6ef2040b01fe42cad741691..f05a64bad7ff90f2766c24b07422be8d31969dea 100644 (file)
                        status = "okay";
                };
 
+               phy@34000 {
+                       status = "okay";
+               };
+
                phy@7410000 {
                        status = "okay";
                };
index 0bcfd9f4fac2e5d5037d913375b35df1fce39188..27e16762aacaf9fa1cdc1f6fd83035f4293aaf4d 100644 (file)
                        };
                };
 
+               phy@34000 {
+                       compatible = "qcom,msm8996-qmp-pcie-phy";
+                       reg = <0x34000 0x488>;
+                       #clock-cells = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges;
+
+                       clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
+                               <&gcc GCC_PCIE_PHY_CFG_AHB_CLK>,
+                               <&gcc GCC_PCIE_CLKREF_CLK>;
+                       clock-names = "aux", "cfg_ahb", "ref";
+
+                       vdda-phy-supply = <&pm8994_l28>;
+                       vdda-pll-supply = <&pm8994_l12>;
+
+                       resets = <&gcc GCC_PCIE_PHY_BCR>,
+                               <&gcc GCC_PCIE_PHY_COM_BCR>,
+                               <&gcc GCC_PCIE_PHY_COM_NOCSR_BCR>;
+                       reset-names = "phy", "common", "cfg";
+                       status = "disabled";
+
+                       pciephy_0: lane@35000 {
+                               reg = <0x035000 0x130>,
+                                       <0x035200 0x200>,
+                                       <0x035400 0x1dc>;
+                               #phy-cells = <0>;
+
+                               clock-output-names = "pcie_0_pipe_clk_src";
+                               clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
+                               clock-names = "pipe0";
+                               resets = <&gcc GCC_PCIE_0_PHY_BCR>;
+                               reset-names = "lane0";
+                       };
+
+                       pciephy_1: lane@36000 {
+                               reg = <0x036000 0x130>,
+                                       <0x036200 0x200>,
+                                       <0x036400 0x1dc>;
+                               #phy-cells = <0>;
+
+                               clock-output-names = "pcie_1_pipe_clk_src";
+                               clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
+                               clock-names = "pipe1";
+                               resets = <&gcc GCC_PCIE_1_PHY_BCR>;
+                               reset-names = "lane1";
+                       };
+
+                       pciephy_2: lane@37000 {
+                               reg = <0x037000 0x130>,
+                                       <0x037200 0x200>,
+                                       <0x037400 0x1dc>;
+                               #phy-cells = <0>;
+
+                               clock-output-names = "pcie_2_pipe_clk_src";
+                               clocks = <&gcc GCC_PCIE_2_PIPE_CLK>;
+                               clock-names = "pipe2";
+                               resets = <&gcc GCC_PCIE_2_PHY_BCR>;
+                               reset-names = "lane2";
+                       };
+               };
+
                phy@7410000 {
                        compatible = "qcom,msm8996-qmp-usb3-phy";
                        reg = <0x7410000 0x1c4>;