Skip to content

Commit 4bb69c4

Browse files
committed
Merge remote-tracking branch tech/all/dt/qcs615 into qcom-next
2 parents b35fbfa + 0209969 commit 4bb69c4

4 files changed

Lines changed: 327 additions & 24 deletions

File tree

Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ description:
1515

1616
properties:
1717
compatible:
18-
enum:
19-
- qcom,sm8150-adsp-pas
20-
- qcom,sm8150-cdsp-pas
21-
- qcom,sm8150-mpss-pas
22-
- qcom,sm8150-slpi-pas
23-
- qcom,sm8250-adsp-pas
24-
- qcom,sm8250-cdsp-pas
25-
- qcom,sm8250-slpi-pas
18+
oneOf:
19+
- items:
20+
- enum:
21+
- qcom,qcs615-adsp-pas
22+
- const: qcom,sm8150-adsp-pas
23+
- enum:
24+
- qcom,sm8150-adsp-pas
25+
- qcom,sm8150-cdsp-pas
26+
- qcom,sm8150-mpss-pas
27+
- qcom,sm8150-slpi-pas
28+
- qcom,sm8250-adsp-pas
29+
- qcom,sm8250-cdsp-pas
30+
- qcom,sm8250-slpi-pas
2631

2732
reg:
2833
maxItems: 1
@@ -59,16 +64,17 @@ allOf:
5964
- if:
6065
properties:
6166
compatible:
62-
enum:
63-
- qcom,sc8180x-adsp-pas
64-
- qcom,sc8180x-cdsp-pas
65-
- qcom,sc8180x-slpi-pas
66-
- qcom,sm8150-adsp-pas
67-
- qcom,sm8150-cdsp-pas
68-
- qcom,sm8150-slpi-pas
69-
- qcom,sm8250-adsp-pas
70-
- qcom,sm8250-cdsp-pas
71-
- qcom,sm8250-slpi-pas
67+
contains:
68+
enum:
69+
- qcom,sc8180x-adsp-pas
70+
- qcom,sc8180x-cdsp-pas
71+
- qcom,sc8180x-slpi-pas
72+
- qcom,sm8150-adsp-pas
73+
- qcom,sm8150-cdsp-pas
74+
- qcom,sm8150-slpi-pas
75+
- qcom,sm8250-adsp-pas
76+
- qcom,sm8250-cdsp-pas
77+
- qcom,sm8250-slpi-pas
7278
then:
7379
properties:
7480
interrupts:
@@ -85,12 +91,13 @@ allOf:
8591
- if:
8692
properties:
8793
compatible:
88-
enum:
89-
- qcom,sc8180x-adsp-pas
90-
- qcom,sc8180x-cdsp-pas
91-
- qcom,sm8150-adsp-pas
92-
- qcom,sm8150-cdsp-pas
93-
- qcom,sm8250-cdsp-pas
94+
contains:
95+
enum:
96+
- qcom,sc8180x-adsp-pas
97+
- qcom,sc8180x-cdsp-pas
98+
- qcom,sm8150-adsp-pas
99+
- qcom,sm8150-cdsp-pas
100+
- qcom,sm8250-cdsp-pas
94101
then:
95102
properties:
96103
power-domains:

Documentation/devicetree/bindings/sram/qcom,imem.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ properties:
2222
- qcom,msm8974-imem
2323
- qcom,msm8976-imem
2424
- qcom,qcs404-imem
25+
- qcom,qcs615-imem
2526
- qcom,qcs8300-imem
2627
- qcom,qdu1000-imem
2728
- qcom,sa8775p-imem

arch/arm64/boot/dts/qcom/qcs615-ride.dts

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,60 @@
211211
};
212212
};
213213

214+
&ethernet {
215+
pinctrl-0 = <&ethernet_defaults>;
216+
pinctrl-names = "default";
217+
218+
phy-handle = <&rgmii_phy>;
219+
phy-mode = "rgmii-id";
220+
qcom,rx-prog-swap;
221+
222+
snps,mtl-rx-config = <&mtl_rx_setup>;
223+
snps,mtl-tx-config = <&mtl_tx_setup>;
224+
225+
status = "okay";
226+
227+
mdio {
228+
compatible = "snps,dwmac-mdio";
229+
#address-cells = <1>;
230+
#size-cells = <0>;
231+
232+
rgmii_phy: phy@7 {
233+
compatible = "ethernet-phy-ieee802.3-c22";
234+
reg = <0x7>;
235+
236+
interrupts-extended = <&tlmm 121 IRQ_TYPE_EDGE_FALLING>;
237+
device_type = "ethernet-phy";
238+
reset-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>;
239+
reset-assert-us = <11000>;
240+
reset-deassert-us = <70000>;
241+
};
242+
};
243+
244+
mtl_rx_setup: rx-queues-config {
245+
snps,rx-queues-to-use = <1>;
246+
snps,rx-sched-sp;
247+
248+
queue0 {
249+
snps,dcb-algorithm;
250+
snps,map-to-dma-channel = <0x0>;
251+
snps,route-up;
252+
snps,priority = <0x1>;
253+
};
254+
};
255+
256+
mtl_tx_setup: tx-queues-config {
257+
snps,tx-queues-to-use = <1>;
258+
snps,tx-sched-wrr;
259+
260+
queue0 {
261+
snps,weight = <0x10>;
262+
snps,dcb-algorithm;
263+
snps,priority = <0x0>;
264+
};
265+
};
266+
};
267+
214268
&gcc {
215269
clocks = <&rpmhcc RPMH_CXO_CLK>,
216270
<&rpmhcc RPMH_CXO_CLK_A>,
@@ -240,6 +294,18 @@
240294
status = "okay";
241295
};
242296

297+
&remoteproc_adsp {
298+
firmware-name = "qcom/qcs615/adsp.mbn";
299+
300+
status = "okay";
301+
};
302+
303+
&remoteproc_cdsp {
304+
firmware-name = "qcom/qcs615/cdsp.mbn";
305+
306+
status = "okay";
307+
};
308+
243309
&rpmhcc {
244310
clocks = <&xo_board_clk>;
245311
};
@@ -278,6 +344,57 @@
278344
status = "okay";
279345
};
280346

347+
&tlmm {
348+
ethernet_defaults: ethernet-defaults-state {
349+
mdc-pins {
350+
pins = "gpio113";
351+
function = "rgmii";
352+
bias-pull-up;
353+
};
354+
355+
mdio-pins {
356+
pins = "gpio114";
357+
function = "rgmii";
358+
bias-pull-up;
359+
};
360+
361+
rgmii-rx-pins {
362+
pins = "gpio81", "gpio82", "gpio83", "gpio102", "gpio103", "gpio112";
363+
function = "rgmii";
364+
bias-disable;
365+
drive-strength = <2>;
366+
};
367+
368+
rgmii-tx-pins {
369+
pins = "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97";
370+
function = "rgmii";
371+
bias-pull-up;
372+
drive-strength = <16>;
373+
};
374+
375+
phy-intr-pins {
376+
pins = "gpio121";
377+
function = "gpio";
378+
bias-disable;
379+
drive-strength = <8>;
380+
};
381+
382+
phy-reset-pins {
383+
pins = "gpio104";
384+
function = "gpio";
385+
bias-pull-up;
386+
drive-strength = <16>;
387+
};
388+
389+
pps-pins {
390+
pins = "gpio91";
391+
function = "rgmii";
392+
bias-disable;
393+
drive-strength = <8>;
394+
};
395+
};
396+
};
397+
281398
&uart0 {
282399
status = "okay";
283400
};

0 commit comments

Comments
 (0)