arm64: dts: qcom: sa8775p-ride: enable the SPI node
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 9 Mar 2023 10:37:49 +0000 (11:37 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 22 Mar 2023 02:51:42 +0000 (19:51 -0700)
Enable the SPI interface exposed on the sa8775p-ride development board.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230309103752.173541-7-brgl@bgdev.pl
arch/arm64/boot/dts/qcom/sa8775p-ride.dts

index 5fdce82..d01ca3a 100644 (file)
@@ -14,6 +14,7 @@
        aliases {
                serial0 = &uart10;
                i2c18 = &i2c18;
+               spi16 = &spi16;
        };
 
        chosen {
        clock-frequency = <32764>;
 };
 
+&spi16 {
+       pinctrl-0 = <&qup_spi16_default>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &tlmm {
        qup_uart10_default: qup-uart10-state {
                pins = "gpio46", "gpio47";
                function = "qup1_se3";
        };
 
+       qup_spi16_default: qup-spi16-state {
+               pins = "gpio86", "gpio87", "gpio88", "gpio89";
+               function = "qup2_se2";
+               drive-strength = <6>;
+               bias-disable;
+       };
+
        qup_i2c18_default: qup-i2c18-state {
                pins = "gpio95", "gpio96";
                function = "qup2_se4";