Skip to content

Commit d631c6b

Browse files
authored
arm64: dts: qcom: add staging DT overlays for QPS615 enablement (#335)
arm64: dts: qcom: add staging DT overlays for QPS615 enablement
2 parents e624dc5 + d4bb439 commit d631c6b

4 files changed

Lines changed: 237 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ lemans-camx-el2-dtbs := lemans-evk-el2.dtb lemans-evk-camx.dtbo lemans-camx-el2.
423423

424424
dtb-$(CONFIG_ARCH_QCOM) += lemans-camx-el2.dtb
425425

426+
dtb-$(CONFIG_ARCH_QCOM) += lemans-evk-staging.dtbo
427+
426428
monaco-evk-camx-dtbs := monaco-evk.dtb monaco-evk-camx.dtbo
427429

428430
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-camx.dtb
@@ -431,6 +433,8 @@ monaco-camx-el2-dtbs := monaco-evk-el2.dtb monaco-evk-camx.dtbo monaco-camx-el2.
431433

432434
dtb-$(CONFIG_ARCH_QCOM) += monaco-camx-el2.dtb
433435

436+
dtb-$(CONFIG_ARCH_QCOM) += monaco-evk-staging.dtbo
437+
434438
qcs615-ride-camx-dtbs := qcs615-ride.dtb qcs615-ride-camx.dtbo
435439

436440
dtb-$(CONFIG_ARCH_QCOM) += qcs615-ride-camx.dtb
@@ -440,6 +444,8 @@ qcs6490-rb3gen2-vision-mezzanine-camx-dtbs := qcs6490-rb3gen2-vision-mezzanine.d
440444

441445
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-vision-mezzanine-camx.dtb
442446

447+
dtb-$(CONFIG_ARCH_QCOM) += qcs6490-rb3gen2-staging.dtbo
448+
443449
qcs8300-ride-camx-dtbs:= qcs8300-ride.dtb qcs8300-ride-camx.dtbo
444450

445451
dtb-$(CONFIG_ARCH_QCOM) += qcs8300-ride-camx.dtb
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
&i2c18 {
13+
eeprom@52 {
14+
nvmem-layout {
15+
mac_addr2: mac-addr@6 {
16+
reg = <0x6 0x6>;
17+
};
18+
mac_addr3: mac-addr@c {
19+
reg = <0xc 0x6>;
20+
};
21+
};
22+
};
23+
};
24+
25+
&pcieport0 {
26+
pcie@0,0 {
27+
pcie@3,0 {
28+
pci@0,0 {
29+
interrupts-extended = <&tlmm 56 IRQ_TYPE_EDGE_FALLING>;
30+
interrupt-names = "wol_irq";
31+
nvmem-cells = <&mac_addr2>;
32+
nvmem-cell-names = "mac-address";
33+
pinctrl-names = "default";
34+
pinctrl-0 = <&aqr_intn_wol_sig>;
35+
phy-reset-gpios = <&tlmm 76 GPIO_ACTIVE_HIGH>;
36+
reset-deassert-us = <221000>;
37+
};
38+
39+
pci@0,1 {
40+
interrupts-extended = <&tlmm 57 IRQ_TYPE_EDGE_FALLING>;
41+
interrupt-names = "wol_irq";
42+
nvmem-cells = <&mac_addr3>;
43+
nvmem-cell-names = "mac-address";
44+
pinctrl-names = "default";
45+
pinctrl-0 = <&napa_intn_wol_sig>;
46+
phy-reset-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>;
47+
reset-deassert-us = <20000>;
48+
};
49+
};
50+
};
51+
};
52+
53+
&tlmm {
54+
qps615_intn_wol {
55+
aqr_intn_wol_sig: aqr-intn-wol-sig {
56+
pins = "gpio56";
57+
function = "gpio";
58+
input-enable;
59+
bias-disable;
60+
};
61+
napa_intn_wol_sig: napa-intn-wol-sig {
62+
pins = "gpio57";
63+
function = "gpio";
64+
input-enable;
65+
bias-disable;
66+
};
67+
};
68+
};
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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+
&eeprom1 {
13+
nvmem-layout {
14+
mac_addr1: mac-addr@0 {
15+
reg = <0x0 0x6>;
16+
};
17+
18+
mac_addr2: mac-addr@6 {
19+
reg = <0x6 0x6>;
20+
};
21+
};
22+
};
23+
24+
&pcieport0 {
25+
pcie@0,0 {
26+
pcie@3,0 {
27+
pci@0,0 {
28+
interrupts-extended = <&tlmm 40 IRQ_TYPE_EDGE_FALLING>;
29+
interrupt-names = "wol_irq";
30+
nvmem-cells = <&mac_addr1>;
31+
nvmem-cell-names = "mac-address";
32+
pinctrl-names = "default";
33+
pinctrl-0 = <&aqr_intn_wol_sig>;
34+
phy-reset-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>;
35+
reset-deassert-us = <221000>;
36+
};
37+
38+
pci@0,1 {
39+
interrupts-extended = <&tlmm 39 IRQ_TYPE_EDGE_FALLING>;
40+
interrupt-names = "wol_irq";
41+
nvmem-cells = <&mac_addr2>;
42+
nvmem-cell-names = "mac-address";
43+
pinctrl-names = "default";
44+
pinctrl-0 = <&napa_intn_wol_sig>;
45+
phy-reset-gpios = <&expander5 0 GPIO_ACTIVE_HIGH>;
46+
reset-deassert-us = <20000>;
47+
};
48+
};
49+
};
50+
};
51+
52+
&tlmm {
53+
qps615_intn_wol {
54+
aqr_intn_wol_sig: aqr-intn-wol-sig {
55+
pins = "gpio40";
56+
function = "gpio";
57+
input-enable;
58+
bias-disable;
59+
};
60+
61+
napa_intn_wol_sig: napa-intn-wol-sig {
62+
pins = "gpio39";
63+
function = "gpio";
64+
input-enable;
65+
bias-disable;
66+
};
67+
};
68+
};
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)