ARM: dts: qcom: msm8660: Add GSBI1 SPI bus
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Sep 2022 13:28:44 +0000 (15:28 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Sep 2022 15:14:54 +0000 (10:14 -0500)
GSBI1 can be used to enable an external SPI bus on e.g. the
APQ8060. On the DragonBoard APQ8060 this SPI bus is used to
talk to the LCD display.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
[bjorn: Moved status properties last]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220913132846.305716-1-linus.walleij@linaro.org
arch/arm/boot/dts/qcom-msm8660.dtsi

index 63a501c63cf8e1a1e6ebe2b12e5b7439032aec9d..65f71cf2d5d79b3c78c8d7af228a52b62f6f63b6 100644 (file)
                        reg = <0x900000 0x4000>;
                };
 
+               gsbi1: gsbi@16000000 {
+                       compatible = "qcom,gsbi-v1.0.0";
+                       cell-index = <12>;
+                       reg = <0x16000000 0x100>;
+                       clocks = <&gcc GSBI1_H_CLK>;
+                       clock-names = "iface";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges;
+
+                       syscon-tcsr = <&tcsr>;
+
+                       status = "disabled";
+
+                       gsbi1_spi: spi@16080000 {
+                               compatible = "qcom,spi-qup-v1.1.1";
+                               reg = <0x16080000 0x1000>;
+                               interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
+                               clock-names = "core", "iface";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               status = "disabled";
+                       };
+               };
+
                gsbi6: gsbi@16500000 {
                        compatible = "qcom,gsbi-v1.0.0";
                        cell-index = <12>;