Skip to content

Commit d4bb439

Browse files
committed
PENDING: arm64: dts: qcom: rb3gen2: add overlay for QPS615 ethernet
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 071ded1 commit d4bb439

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ qcs6490-rb3gen2-vision-mezzanine-camx-dtbs := qcs6490-rb3gen2-vision-mezzanine.d
440440

441441
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-vision-mezzanine-camx.dtb
442442

443+
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-staging.dtbo
444+
443445
qcs8300-ride-camx-dtbs:= qcs8300-ride.dtb qcs8300-ride-camx.dtbo
444446

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

0 commit comments

Comments
 (0)