Skip to content

Commit 4e40b39

Browse files
RjgawuieRadxaYuntian
authored andcommitted
Add spi6/7/12/14 cs0 spidev for qcs6490
1 parent 1fb591a commit 4e40b39

File tree

5 files changed

+156
-0
lines changed

5 files changed

+156
-0
lines changed

arch/arm64/boot/dts/qcom/overlays/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs6490-radxa-dragon-q6a-cam1-imx577.dtbo \
88
qcs6490-radxa-dragon-q6a-kvm.dtbo \
99
qcs6490-radxa-dragon-q6a-radxa-display-8hd.dtbo \
1010
qcs6490-radxa-dragon-q6a-radxa-display-10fhd.dtbo \
11+
qcs6490-radxa-dragon-q6a-spi6-cs0-spidev.dtbo \
12+
qcs6490-radxa-dragon-q6a-spi7-cs0-spidev.dtbo \
13+
qcs6490-radxa-dragon-q6a-spi12-cs0-spidev.dtbo \
14+
qcs6490-radxa-dragon-q6a-spi14-cs0-spidev.dtbo \
1115
qcs6490-radxa-dragon-q6a-uart6-flowctl.dtbo \
1216
qcs6490-radxa-dragon-q6a-uart6.dtbo \
1317
qcs6490-radxa-dragon-q6a-uart12-flowctl.dtbo \
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2025 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
metadata {
11+
title = "Enable spidev on SPI12 over CS0";
12+
compatible = "radxa,dragon-q6a";
13+
category = "misc";
14+
exclusive = "spi12", "uart12", "i2c12", "gpio48", "gpio49", "gpio50", "gpio51";
15+
description = "Enable spidev on SPI12 over CS0.
16+
On Radxa Dragon Q6A, this is pin 19(mosi), 21(miso), 23(sclk), 24(cs0).";
17+
};
18+
};
19+
20+
&i2c12 {
21+
status = "disabled";
22+
};
23+
24+
&uart12 {
25+
status = "disabled";
26+
};
27+
28+
&spi12 {
29+
qcom,enable-gsi-dma;
30+
status = "okay";
31+
32+
spidev@0 {
33+
compatible = "semtech,sx1301";
34+
status = "okay";
35+
reg = <0>;
36+
spi-max-frequency = <50000000>;
37+
};
38+
};
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2025 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
metadata {
11+
title = "Enable spidev on SPI14 over CS0";
12+
compatible = "radxa,dragon-q6a";
13+
category = "misc";
14+
exclusive = "spi14", "uart14", "i2c14", "gpio56", "gpio57", "gpio58", "gpio59";
15+
description = "Enable spidev on SPI14 over CS0.
16+
On Radxa Dragon Q6A, this is pin 22(mosi), 33(miso), 36(cs0), 37(sclk).";
17+
};
18+
};
19+
20+
&i2c14 {
21+
status = "disabled";
22+
};
23+
24+
&uart14 {
25+
status = "disabled";
26+
};
27+
28+
&spi14 {
29+
qcom,enable-gsi-dma;
30+
status = "okay";
31+
32+
spidev@0 {
33+
compatible = "semtech,sx1301";
34+
status = "okay";
35+
reg = <0>;
36+
spi-max-frequency = <50000000>;
37+
};
38+
};
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2025 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
metadata {
11+
title = "Enable spidev on SPI6 over CS0";
12+
compatible = "radxa,dragon-q6a";
13+
category = "misc";
14+
exclusive = "spi6", "uart6", "i2c6", "gpio24", "gpio25", "gpio26", "gpio27";
15+
description = "Enable spidev on SPI6 over CS0.
16+
On Radxa Dragon Q6A, this is pin 3(miso), 5(mosi), 16(sclk), 18(cs0).";
17+
};
18+
};
19+
20+
&i2c6 {
21+
status = "disabled";
22+
};
23+
24+
&uart6 {
25+
status = "disabled";
26+
};
27+
28+
&spi6 {
29+
qcom,enable-gsi-dma;
30+
status = "okay";
31+
32+
spidev@0 {
33+
compatible = "semtech,sx1301";
34+
status = "okay";
35+
reg = <0>;
36+
spi-max-frequency = <50000000>;
37+
};
38+
};
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) 2025 Radxa Computer (Shenzhen) Co., Ltd.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
metadata {
11+
title = "Enable spidev on SPI7 over CS0";
12+
compatible = "radxa,dragon-q6a";
13+
category = "misc";
14+
exclusive = "spi7", "uart7", "i2c7", "gpio28", "gpio29", "gpio30", "gpio31";
15+
description = "Enable spidev on SPI7 over CS0.
16+
On Radxa Dragon Q6A, this is pin 11(mosi), 29(cs0), 31(miso), 32(sclk).";
17+
};
18+
};
19+
20+
&i2c7 {
21+
status = "disabled";
22+
};
23+
24+
&uart7 {
25+
status = "disabled";
26+
};
27+
28+
&spi7 {
29+
qcom,enable-gsi-dma;
30+
status = "okay";
31+
32+
spidev@0 {
33+
compatible = "semtech,sx1301";
34+
status = "okay";
35+
reg = <0>;
36+
spi-max-frequency = <50000000>;
37+
};
38+
};

0 commit comments

Comments
 (0)