Skip to content

Commit 6c50c67

Browse files
committed
WORKAROUND: arm64: dts: qcom: rb3gen2: add a temporary overlay
Add an overlay devicetree for Rb3Gen2 for temporary enablement of the QPS615 PCIE switch's 10GbE and 2.5Gbe ethernet ports. Signed-off-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
1 parent 763455e commit 6c50c67

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb
141141
dtb-$(CONFIG_ARCH_QCOM) += qcs615-ride.dtb
142142
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-dragon-q6a.dtb
143143
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2.dtb
144+
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-staging.dtbo
144145

145146
qcs6490-rb3gen2-vision-mezzanine-dtbs := qcs6490-rb3gen2.dtb qcs6490-rb3gen2-vision-mezzanine.dtbo
146147
qcs6490-rb3gen2-industrial-mezzanine-dtbs := qcs6490-rb3gen2.dtb qcs6490-rb3gen2-industrial-mezzanine.dtbo
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
#include <dt-bindings/gpio/gpio.h>
7+
8+
/ {
9+
qep_vreg: qep_vreg {
10+
compatible = "regulator-fixed";
11+
regulator-name = "qep_vreg";
12+
gpio = <&pm7325_gpios 8 0>;
13+
regulator-min-microvolt = <1800000>;
14+
regulator-max-microvolt = <1800000>;
15+
enable-active-high;
16+
};
17+
18+
aqr_vreg: aqr_vreg {
19+
compatible = "regulator-fixed";
20+
regulator-name = "aqr_vreg";
21+
gpio = <&pm7250b_gpios 4 0>;
22+
regulator-min-microvolt = <1800000>;
23+
regulator-max-microvolt = <1800000>;
24+
enable-active-high;
25+
};
26+
};
27+
28+
&pcie1_port0 {
29+
pcie@0,0 {
30+
pcie@3,0 {
31+
/*
32+
* PF0: also acts as the QPS615 GPIO controller.
33+
* gpio-controller / #gpio-cells expose the TC956X
34+
* internal GPIO lines (hardware numbers 0-13) so that
35+
* phy-reset-gpios can reference them.
36+
*/
37+
qps615: pci@0,0 {
38+
interrupts-extended = <&tlmm 141 IRQ_TYPE_EDGE_FALLING>;
39+
interrupt-names = "wol_irq";
40+
phy-supply = <&aqr_vreg>;
41+
pinctrl-names = "default";
42+
pinctrl-0 = <&aqr_intn_wol_sig>;
43+
phy-reset-gpios = <&qps615 0 GPIO_ACTIVE_LOW>;
44+
reset-deassert-us = <221000>;
45+
46+
gpio-controller;
47+
#gpio-cells = <2>;
48+
};
49+
50+
pci@0,1 {
51+
interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
52+
interrupt-names = "wol_irq";
53+
phy-supply = <&qep_vreg>;
54+
pinctrl-names = "default";
55+
pinctrl-0 = <&napa_intn_wol_sig>;
56+
phy-reset-gpios = <&qps615 1 GPIO_ACTIVE_LOW>;
57+
reset-deassert-us = <20000>;
58+
};
59+
};
60+
};
61+
};
62+
63+
&tlmm {
64+
qps615_intn_wol {
65+
aqr_intn_wol_sig: aqr_intn_wol_sig {
66+
mux {
67+
pins = "gpio141";
68+
function = "gpio";
69+
};
70+
71+
config {
72+
pins = "gpio141";
73+
input-enable;
74+
bias-disable;
75+
};
76+
};
77+
78+
napa_intn_wol_sig: napa_intn_wol_sig {
79+
mux {
80+
pins = "gpio101";
81+
function = "gpio";
82+
};
83+
84+
config {
85+
pins = "gpio101";
86+
input-enable;
87+
bias-disable;
88+
};
89+
};
90+
};
91+
};
92+

0 commit comments

Comments
 (0)