Skip to content

Commit 304deb2

Browse files
krishnachaitanya-linuxKomal Bajaj
authored andcommitted
FROMLIST: arm64: dts: qcom: qcs6490-rb3gen2: Add TC9563 PCIe switch node
Add a node for the TC9563 PCIe switch, which has three downstream ports. Two embedded Ethernet devices are present on one of the downstream ports. As all these ports are present in the node represent the downstream ports and embedded endpoints. Power to the TC9563 is supplied through two LDO regulators, controlled by two GPIOs, which are added as fixed regulators. Configure the TC9563 through I2C. Link: https://lore.kernel.org/lkml/20250412-qps615_v4_1-v5-0-5b6a06132fec@oss.qualcomm.com/ Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent e9c1cce commit 304deb2

2 files changed

Lines changed: 130 additions & 1 deletion

File tree

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

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,31 @@
318318
};
319319
};
320320
};
321+
322+
vdd_ntn_0p9: regulator-vdd-ntn-0p9 {
323+
compatible = "regulator-fixed";
324+
regulator-name = "VDD_NTN_0P9";
325+
gpio = <&pm8350c_gpios 2 GPIO_ACTIVE_HIGH>;
326+
regulator-min-microvolt = <899400>;
327+
regulator-max-microvolt = <899400>;
328+
enable-active-high;
329+
pinctrl-0 = <&ntn_0p9_en>;
330+
pinctrl-names = "default";
331+
regulator-enable-ramp-delay = <4300>;
332+
};
333+
334+
vdd_ntn_1p8: regulator-vdd-ntn-1p8 {
335+
compatible = "regulator-fixed";
336+
regulator-name = "VDD_NTN_1P8";
337+
gpio = <&pm8350c_gpios 3 GPIO_ACTIVE_HIGH>;
338+
regulator-min-microvolt = <1800000>;
339+
regulator-max-microvolt = <1800000>;
340+
enable-active-high;
341+
pinctrl-0 = <&ntn_1p8_en>;
342+
pinctrl-names = "default";
343+
regulator-enable-ramp-delay = <10000>;
344+
};
345+
321346
};
322347

323348
&apps_rsc {
@@ -843,6 +868,78 @@
843868
status = "okay";
844869
};
845870

871+
&pcie1_port0 {
872+
pcie@0,0 {
873+
compatible = "pci1179,0623";
874+
reg = <0x10000 0x0 0x0 0x0 0x0>;
875+
#address-cells = <3>;
876+
#size-cells = <2>;
877+
878+
device_type = "pci";
879+
ranges;
880+
bus-range = <0x2 0xff>;
881+
882+
vddc-supply = <&vdd_ntn_0p9>;
883+
vdd18-supply = <&vdd_ntn_1p8>;
884+
vdd09-supply = <&vdd_ntn_0p9>;
885+
vddio1-supply = <&vdd_ntn_1p8>;
886+
vddio2-supply = <&vdd_ntn_1p8>;
887+
vddio18-supply = <&vdd_ntn_1p8>;
888+
889+
i2c-parent = <&i2c0 0x77>;
890+
891+
reset-gpios = <&pm8350c_gpios 1 GPIO_ACTIVE_LOW>;
892+
893+
pinctrl-0 = <&tc9563_rsex_n>;
894+
pinctrl-names = "default";
895+
896+
pcie@1,0 {
897+
reg = <0x20800 0x0 0x0 0x0 0x0>;
898+
#address-cells = <3>;
899+
#size-cells = <2>;
900+
901+
device_type = "pci";
902+
ranges;
903+
bus-range = <0x3 0xff>;
904+
};
905+
906+
pcie@2,0 {
907+
reg = <0x21000 0x0 0x0 0x0 0x0>;
908+
#address-cells = <3>;
909+
#size-cells = <2>;
910+
911+
device_type = "pci";
912+
ranges;
913+
bus-range = <0x4 0xff>;
914+
};
915+
916+
pcie@3,0 {
917+
reg = <0x21800 0x0 0x0 0x0 0x0>;
918+
#address-cells = <3>;
919+
#size-cells = <2>;
920+
device_type = "pci";
921+
ranges;
922+
bus-range = <0x5 0xff>;
923+
924+
pci@0,0 {
925+
reg = <0x50000 0x0 0x0 0x0 0x0>;
926+
#address-cells = <3>;
927+
#size-cells = <2>;
928+
device_type = "pci";
929+
ranges;
930+
};
931+
932+
pci@0,1 {
933+
reg = <0x50100 0x0 0x0 0x0 0x0>;
934+
#address-cells = <3>;
935+
#size-cells = <2>;
936+
device_type = "pci";
937+
ranges;
938+
};
939+
};
940+
};
941+
};
942+
846943
&pm7325_gpios {
847944
kypd_vol_up_n: kypd-vol-up-n-state {
848945
pins = "gpio6";
@@ -1126,6 +1223,38 @@
11261223
};
11271224
};
11281225

1226+
&pm8350c_gpios {
1227+
ntn_0p9_en: ntn-0p9-en-state {
1228+
pins = "gpio2";
1229+
function = "normal";
1230+
1231+
bias-disable;
1232+
input-disable;
1233+
output-enable;
1234+
power-source = <0>;
1235+
};
1236+
1237+
ntn_1p8_en: ntn-1p8-en-state {
1238+
pins = "gpio3";
1239+
function = "normal";
1240+
1241+
bias-disable;
1242+
input-disable;
1243+
output-enable;
1244+
power-source = <0>;
1245+
};
1246+
1247+
tc9563_rsex_n: tc9563-resx-state {
1248+
pins = "gpio1";
1249+
function = "normal";
1250+
1251+
bias-disable;
1252+
input-disable;
1253+
output-enable;
1254+
power-source = <0>;
1255+
};
1256+
};
1257+
11291258
&tlmm {
11301259
gpio-reserved-ranges = <32 2>, /* ADSP */
11311260
<48 4>; /* NFC */

arch/arm64/boot/dts/qcom/sc7280.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2286,7 +2286,7 @@
22862286

22872287
status = "disabled";
22882288

2289-
pcie@0 {
2289+
pcie1_port0: pcie@0 {
22902290
device_type = "pci";
22912291
reg = <0x0 0x0 0x0 0x0 0x0>;
22922292
bus-range = <0x01 0xff>;

0 commit comments

Comments
 (0)