Skip to content

Commit 14a1705

Browse files
FROMLIST: arm64: dts: qcom: qcs6490-rb3gen2-industrial-mezzanine: Add second TC9563 PCIe switch node for PCIe1
Add a node for the second TC9563 PCIe switch on PCIe1, which is connected in cascade to the first TC9563 switch via the former's downstream port. Two embedded Ethernet devices are present on one of the downstream ports of this second switch as well. All the ports present in the node represent the downstream ports and embedded endpoints. The second TC9563 is powered up via the same LDO regulators as the first one, and these can be controlled via two GPIOs, which are already present as fixed regulators. This TC9563 can also be configured through I2C. Signed-off-by: Sushrut Shree Trivedi <sushrut.trivedi@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260305-industrial-mezzanine-pcie-v4-2-1f2c9d1344d7@oss.qualcomm.com
1 parent 0fd6331 commit 14a1705

2 files changed

Lines changed: 103 additions & 1 deletion

File tree

arch/arm64/boot/dts/qcom/qcs6490-rb3gen2-industrial-mezzanine.dtso

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,100 @@
146146
};
147147
};
148148

149+
&pcie1 {
150+
iommu-map = <0x0 &apps_smmu 0x1c80 0x1>,
151+
<0x100 &apps_smmu 0x1c81 0x1>,
152+
<0x208 &apps_smmu 0x1c84 0x1>,
153+
<0x210 &apps_smmu 0x1c85 0x1>,
154+
<0x218 &apps_smmu 0x1c86 0x1>,
155+
<0x300 &apps_smmu 0x1c87 0x1>,
156+
<0x408 &apps_smmu 0x1c90 0x1>,
157+
<0x410 &apps_smmu 0x1c91 0x1>,
158+
<0x418 &apps_smmu 0x1c92 0x1>,
159+
<0x500 &apps_smmu 0x1c93 0x1>,
160+
<0x600 &apps_smmu 0x1c94 0x1>,
161+
<0x700 &apps_smmu 0x1c95 0x1>,
162+
<0x701 &apps_smmu 0x1c96 0x1>,
163+
<0x800 &apps_smmu 0x1c97 0x1>,
164+
<0x900 &apps_smmu 0x1c98 0x1>,
165+
<0x901 &apps_smmu 0x1c99 0x1>;
166+
};
167+
168+
&pcie1_switch0_dsp1 {
169+
#address-cells = <3>;
170+
#size-cells = <2>;
171+
172+
pcie@0,0 {
173+
compatible = "pci1179,0623";
174+
reg = <0x30000 0x0 0x0 0x0 0x0>;
175+
#address-cells = <3>;
176+
#size-cells = <2>;
177+
178+
device_type = "pci";
179+
ranges;
180+
bus-range = <0x2 0xff>;
181+
182+
vddc-supply = <&vdd_ntn_0p9>;
183+
vdd18-supply = <&vdd_ntn_1p8>;
184+
vdd09-supply = <&vdd_ntn_0p9>;
185+
vddio1-supply = <&vdd_ntn_1p8>;
186+
vddio2-supply = <&vdd_ntn_1p8>;
187+
vddio18-supply = <&vdd_ntn_1p8>;
188+
189+
i2c-parent = <&i2c1 0x77>;
190+
191+
resx-gpios = <&tlmm 124 GPIO_ACTIVE_LOW>;
192+
193+
pinctrl-0 = <&pcie1_tc9563_resx_n>;
194+
pinctrl-names = "default";
195+
196+
pcie@1,0 {
197+
reg = <0x40800 0x0 0x0 0x0 0x0>;
198+
#address-cells = <3>;
199+
#size-cells = <2>;
200+
201+
device_type = "pci";
202+
ranges;
203+
bus-range = <0x3 0xff>;
204+
};
205+
206+
pcie@2,0 {
207+
reg = <0x41000 0x0 0x0 0x0 0x0>;
208+
#address-cells = <3>;
209+
#size-cells = <2>;
210+
211+
device_type = "pci";
212+
ranges;
213+
bus-range = <0x4 0xff>;
214+
};
215+
216+
pcie@3,0 {
217+
reg = <0x41800 0x0 0x0 0x0 0x0>;
218+
#address-cells = <3>;
219+
#size-cells = <2>;
220+
device_type = "pci";
221+
ranges;
222+
bus-range = <0x5 0xff>;
223+
224+
pci@0,0 {
225+
reg = <0x50000 0x0 0x0 0x0 0x0>;
226+
#address-cells = <3>;
227+
#size-cells = <2>;
228+
device_type = "pci";
229+
ranges;
230+
};
231+
232+
pci@0,1 {
233+
reg = <0x50100 0x0 0x0 0x0 0x0>;
234+
#address-cells = <3>;
235+
#size-cells = <2>;
236+
device_type = "pci";
237+
ranges;
238+
};
239+
};
240+
};
241+
};
242+
149243
&tlmm {
150244
pcie0_tc9563_resx_n: pcie0-tc9563-resx-state {
151245
pins = "gpio78";
@@ -177,4 +271,12 @@
177271
bias-pull-up;
178272
};
179273

274+
pcie1_tc9563_resx_n: pcie1-tc9563-resx-state {
275+
pins = "gpio124";
276+
function = "gpio";
277+
bias-disable;
278+
input-disable;
279+
output-enable;
280+
};
281+
180282
};

arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@
892892
pinctrl-0 = <&tc9563_rsex_n>;
893893
pinctrl-names = "default";
894894

895-
pcie@1,0 {
895+
pcie1_switch0_dsp1: pcie@1,0 {
896896
reg = <0x20800 0x0 0x0 0x0 0x0>;
897897
#address-cells = <3>;
898898
#size-cells = <2>;

0 commit comments

Comments
 (0)