From a18d1de4a2fbaa226bc675b956da39ddc382e9d3 Mon Sep 17 00:00:00 2001 From: Gianluca Boiano Date: Sat, 2 Nov 2024 13:35:23 +0100 Subject: [PATCH 1/2] arm64: dts: qcom: sdm630: add SPI interface This change add spi7 interface to SDM630 devices. Signed-off-by: Gianluca Boiano --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 823c79deb5fd60..30282997b7e93b 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1018,6 +1018,20 @@ 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 { @@ -1966,6 +1980,26 @@ status = "disabled"; }; + blsp_spi7: spi@c1b7000 { + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x0c1b7000 0x600>; + interrupts = ; + + clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>, + <&gcc GCC_BLSP2_AHB_CLK>; + clock-names = "core", "iface"; + clock-frequency = <400000>; + 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>; From 32ffc57515fff60220acc797424262d07ec91337 Mon Sep 17 00:00:00 2001 From: Gianluca Boiano Date: Sat, 2 Nov 2024 14:45:20 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sdm636-xiaomi-tulip: enable spi_7 interface It enables SPI interface on tulip Signed-off-by: Gianluca Boiano --- arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts b/arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts index 8222e5ee4a79ac..3fa0e7c9b73eb0 100644 --- a/arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts +++ b/arch/arm64/boot/dts/qcom/sdm636-xiaomi-tulip.dts @@ -153,6 +153,10 @@ status = "okay"; }; +&blsp_spi7 { + status = "okay"; +}; + &blsp1_uart2 { status = "okay"; };