|
10 | 10 | stdout-path = "serial2:1500000n8";
|
11 | 11 | };
|
12 | 12 |
|
| 13 | + /* Unnamed gated oscillator: 100MHz,3.3V,3225 */ |
| 14 | + pcie30_port0_refclk: pcie30_port1_refclk: pcie-oscillator { |
| 15 | + compatible = "gated-fixed-clock"; |
| 16 | + #clock-cells = <0>; |
| 17 | + clock-frequency = <100000000>; |
| 18 | + clock-output-names = "pcie30_refclk"; |
| 19 | + vdd-supply = <&vcc3v3_pi6c_05>; |
| 20 | + }; |
| 21 | + |
13 | 22 | vcc3v3_pcie2x1l0: regulator-vcc3v3-pcie2x1l0 {
|
14 | 23 | compatible = "regulator-fixed";
|
15 | 24 | regulator-name = "vcc3v3_pcie2x1l0";
|
|
19 | 28 | vin-supply = <&vcc_3v3_s3>;
|
20 | 29 | };
|
21 | 30 |
|
22 |
| - vcc3v3_pcie3x2: regulator-vcc3v3-pcie3x2 { |
| 31 | + vcc3v3_bkey: regulator-vcc3v3-bkey { |
23 | 32 | compatible = "regulator-fixed";
|
24 | 33 | enable-active-high;
|
25 | 34 | gpios = <&gpio2 RK_PC4 GPIO_ACTIVE_HIGH>; /* PCIE_4G_PWEN */
|
26 | 35 | pinctrl-names = "default";
|
27 |
| - pinctrl-0 = <&pcie3x2_vcc3v3_en>; |
28 |
| - regulator-name = "vcc3v3_pcie3x2"; |
| 36 | + pinctrl-0 = <&pcie_4g_pwen>; |
| 37 | + regulator-name = "vcc3v3_bkey"; |
29 | 38 | regulator-min-microvolt = <3300000>;
|
30 | 39 | regulator-max-microvolt = <3300000>;
|
31 | 40 | startup-delay-us = <5000>;
|
32 | 41 | vin-supply = <&vcc5v0_sys>;
|
33 | 42 | };
|
34 | 43 |
|
35 |
| - vcc3v3_pcie3x4: regulator-vcc3v3-pcie3x4 { |
| 44 | + vcc3v3_pcie30: vcc3v3_pi6c_05: regulator-vcc3v3-pi6c-05 { |
36 | 45 | compatible = "regulator-fixed";
|
37 | 46 | enable-active-high;
|
38 | 47 | gpios = <&gpio2 RK_PC5 GPIO_ACTIVE_HIGH>; /* PCIE30x4_PWREN_H */
|
39 | 48 | pinctrl-names = "default";
|
40 |
| - pinctrl-0 = <&pcie3x4_vcc3v3_en>; |
41 |
| - regulator-name = "vcc3v3_pcie3x4"; |
| 49 | + pinctrl-0 = <&pcie30x4_pwren_h>; |
| 50 | + regulator-name = "vcc3v3_pcie30"; |
42 | 51 | regulator-min-microvolt = <3300000>;
|
43 | 52 | regulator-max-microvolt = <3300000>;
|
44 | 53 | startup-delay-us = <5000>;
|
|
98 | 107 | };
|
99 | 108 |
|
100 | 109 | &pcie30phy {
|
| 110 | + data-lanes = <1 1 2 2>; |
| 111 | + /* separate clock lines from the clock generator to phy and devices */ |
| 112 | + rockchip,rx-common-refclk-mode = <0 0 0 0>; |
101 | 113 | status = "okay";
|
102 | 114 | };
|
103 | 115 |
|
104 |
| -/* B-Key and E-Key */ |
| 116 | +/* M-Key */ |
105 | 117 | &pcie3x2 {
|
| 118 | + /* |
| 119 | + * The board has a "pcie_refclk" oscillator that needs enabling, |
| 120 | + * so add it to the list of clocks. |
| 121 | + */ |
| 122 | + clocks = <&cru ACLK_PCIE_2L_MSTR>, <&cru ACLK_PCIE_2L_SLV>, |
| 123 | + <&cru ACLK_PCIE_2L_DBI>, <&cru PCLK_PCIE_2L>, |
| 124 | + <&cru CLK_PCIE_AUX1>, <&cru CLK_PCIE2L_PIPE>, |
| 125 | + <&pcie30_port1_refclk>; |
| 126 | + clock-names = "aclk_mst", "aclk_slv", |
| 127 | + "aclk_dbi", "pclk", |
| 128 | + "aux", "pipe", |
| 129 | + "ref"; |
| 130 | + num-lanes = <2>; |
106 | 131 | pinctrl-names = "default";
|
107 |
| - pinctrl-0 = <&pcie3x2_rst>; |
108 |
| - reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; /* PCIE30X4_PERSTn_M1_L */ |
109 |
| - vpcie3v3-supply = <&vcc3v3_pcie3x2>; |
| 132 | + pinctrl-0 = <&pcie30x2_perstn_m1_l>; |
| 133 | + reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; /* PCIE30X2_PERSTn_M1_L */ |
| 134 | + vpcie3v3-supply = <&vcc3v3_pcie30>; |
110 | 135 | status = "okay";
|
111 | 136 | };
|
112 | 137 |
|
113 |
| -/* M-Key */ |
| 138 | +/* B-Key and E-Key */ |
114 | 139 | &pcie3x4 {
|
| 140 | + /* |
| 141 | + * The board has a "pcie_refclk" oscillator that needs enabling, |
| 142 | + * so add it to the list of clocks. |
| 143 | + */ |
| 144 | + clocks = <&cru ACLK_PCIE_4L_MSTR>, <&cru ACLK_PCIE_4L_SLV>, |
| 145 | + <&cru ACLK_PCIE_4L_DBI>, <&cru PCLK_PCIE_4L>, |
| 146 | + <&cru CLK_PCIE_AUX0>, <&cru CLK_PCIE4L_PIPE>, |
| 147 | + <&pcie30_port0_refclk>; |
| 148 | + clock-names = "aclk_mst", "aclk_slv", |
| 149 | + "aclk_dbi", "pclk", |
| 150 | + "aux", "pipe", |
| 151 | + "ref"; |
115 | 152 | pinctrl-names = "default";
|
116 |
| - pinctrl-0 = <&pcie3x4_rst>; |
117 |
| - reset-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; /* PCIE30X2_PERSTn_M1_L */ |
118 |
| - vpcie3v3-supply = <&vcc3v3_pcie3x4>; |
| 153 | + pinctrl-0 = <&pcie30x4_perstn_m1_l>; |
| 154 | + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; /* PCIE30X4_PERSTn_M1_L */ |
| 155 | + vpcie3v3-supply = <&vcc3v3_bkey>; |
119 | 156 | status = "okay";
|
120 | 157 | };
|
121 | 158 |
|
|
127 | 164 | };
|
128 | 165 |
|
129 | 166 | pcie3 {
|
130 |
| - pcie3x2_rst: pcie3x2-rst { |
131 |
| - rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 167 | + pcie30x2_perstn_m1_l: pcie30x2-perstn-m1-l { |
| 168 | + rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
132 | 169 | };
|
133 | 170 |
|
134 |
| - pcie3x2_vcc3v3_en: pcie3x2-vcc3v3-en { |
135 |
| - rockchip,pins = <2 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 171 | + pcie_4g_pwen: pcie-4g-pwen { |
| 172 | + rockchip,pins = <2 RK_PC4 RK_FUNC_GPIO &pcfg_pull_down>; |
136 | 173 | };
|
137 | 174 |
|
138 |
| - pcie3x4_rst: pcie3x4-rst { |
139 |
| - rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 175 | + pcie30x4_perstn_m1_l: pcie30x4-perstn-m1-l { |
| 176 | + rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; |
140 | 177 | };
|
141 | 178 |
|
142 |
| - pcie3x4_vcc3v3_en: pcie3x4-vcc3v3-en { |
143 |
| - rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 179 | + pcie30x4_pwren_h: pcie30x4-pwren-h { |
| 180 | + rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>; |
144 | 181 | };
|
145 | 182 | };
|
146 | 183 |
|
|
0 commit comments