Skip to contentSkip to conversation

arm64: dts: qcom: sdm630: add SPI7 interface

PATCH Applied Gianluca Boiano 4 participants 4 messages Jan 20 – Mar 10

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: qcom: sdm630: add SPI7 interface

Add spi7 interface to SDM630 device tree.

---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 34 ++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/qcom/sdm630.dtsi +34 -0
index 8b1a45a4e56e..92afb5428e3c 100644
@@ -1013,6 +1013,20 @@ data-pins {
 					drive-strength = <2>;
 				};
 			};
+
+			spi7_default: spi7-default-state {
+				pins = "gpio24", "gpio25", "gpio26", "gpio27";
+				function = "blsp_spi7";
+				drive-strength = <6>;
+				bias-disable;
+			};
+
+			spi7_sleep: spi7-sleep-state {
+				pins = "gpio24", "gpio25", "gpio26", "gpio27";
+				function = "blsp_spi7";
+				drive-strength = <6>;
+				bias-disable;
+			};
 		};
 
 		remoteproc_mss: remoteproc@4080000 {
@@ -1944,6 +1958,26 @@ blsp_i2c7: i2c@c1b7000 {
 			status = "disabled";
 		};
 
+		blsp_spi7: spi@c1b7000 {
+			compatible = "qcom,spi-qup-v2.2.1";
+			reg = <0x0c1b7000 0x600>;
+			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
+
+			clocks = <&gcc GCC_BLSP2_QUP3_SPI_APPS_CLK>,
+				 <&gcc GCC_BLSP2_AHB_CLK>;
+			clock-names = "core", "iface";
+
+			dmas = <&blsp2_dma 8>, <&blsp2_dma 9>;
+			dma-names = "tx", "rx";
+
+			pinctrl-names = "default", "sleep";
+			pinctrl-0 = <&spi7_default>;
+			pinctrl-1 = <&spi7_sleep>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		blsp_i2c8: i2c@c1b8000 {
 			compatible = "qcom,i2c-qup-v2.2.1";
 			reg = <0x0c1b8000 0x600>;
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#2 lore raw
In reply to Gianluca Boiano
Quoted 19 lines · Gianluca Boiano

Add spi7 interface to SDM630 device tree.

---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 34 ++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
arch/arm64/boot/dts/qcom/sdm630.dtsi +4 -0
index 8b1a45a4e56e..92afb5428e3c 100644
@@ -1013,6 +1013,20 @@ data-pins {
 					drive-strength = <2>;
 				};
 			};
+
+			spi7_default: spi7-default-state {
+				pins = "gpio24", "gpio25", "gpio26", "gpio27";
+				function = "blsp_spi7";

arch/arm64/boot/dts/qcom/sdm630.dtsi data-pins { · line 1029

Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi +10 -0
+				drive-strength = <6>;
+				bias-disable;
+			};
+
+			spi7_sleep: spi7-sleep-state {
+				pins = "gpio24", "gpio25", "gpio26", "gpio27";
+				function = "blsp_spi7";
+				drive-strength = <6>;
+				bias-disable;
+			};

Since they're identical, you can define it once and reference twice

Konrad

maintainer Applied
#3 lore raw
In reply to Gianluca Boiano
Quoted 3 lines · Gianluca Boiano

Add spi7 interface to SDM630 device tree.

Applied, thanks!

[1/1] arm64: dts: qcom: sdm630: add SPI7 interface

      commit: c056679db5ddaa576fb9f347d8e3f0fc1a6f4e20

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>