ARM: dts: qcom: msm8660: Add GSBI3 I2C bus
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Sep 2022 13:28:45 +0000 (15:28 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 13 Sep 2022 15:15:00 +0000 (10:15 -0500)
GSBI3 can be used to enable an external I2C bus on e.g. the
APQ8060. On the DragonBoard APQ8060 this I2C bus is used to
talk to the Cypress CY8CTMA340 CYTTSP touchscreen.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220913132846.305716-2-linus.walleij@linaro.org
arch/arm/boot/dts/qcom-msm8660.dtsi

index 65f71cf..fd7751d 100644 (file)
                        };
                };
 
+               gsbi3: gsbi@16200000 {
+                       compatible = "qcom,gsbi-v1.0.0";
+                       cell-index = <12>;
+                       reg = <0x16200000 0x100>;
+                       clocks = <&gcc GSBI3_H_CLK>;
+                       clock-names = "iface";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges;
+
+                       syscon-tcsr = <&tcsr>;
+                       status = "disabled";
+
+                       gsbi3_i2c: i2c@16280000 {
+                               compatible = "qcom,i2c-qup-v1.1.1";
+                               reg = <0x16280000 0x1000>;
+                               interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
+                               clocks = <&gcc GSBI3_QUP_CLK>, <&gcc GSBI3_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>;