arm64: dts: qcom: msm8916: Add blsp_i2c1
authorStephan Gerhold <stephan@gerhold.net>
Sun, 26 Apr 2020 14:06:39 +0000 (16:06 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 12 May 2020 18:22:08 +0000 (11:22 -0700)
MSM8916 has another I2C QUP controller that can be enabled on
GPIO 2 and 3.

Add blsp_i2c1 to msm8916.dtsi and disable it by default.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20200426140642.204395-2-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8916-pins.dtsi
arch/arm64/boot/dts/qcom/msm8916.dtsi

index 242aaea..b45fd12 100644 (file)
                };
        };
 
+       i2c1_default: i2c1_default {
+               pinmux {
+                       function = "blsp_i2c1";
+                       pins = "gpio2", "gpio3";
+               };
+               pinconf {
+                       pins = "gpio2", "gpio3";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
+
+       i2c1_sleep: i2c1_sleep {
+               pinmux {
+                       function = "gpio";
+                       pins = "gpio2", "gpio3";
+               };
+               pinconf {
+                       pins = "gpio2", "gpio3";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
+
        i2c2_default: i2c2_default {
                pinmux {
                        function = "blsp_i2c2";
index 8b42995..6ab7cab 100644 (file)
                        status = "disabled";
                };
 
+               blsp_i2c1: i2c@78b5000 {
+                       compatible = "qcom,i2c-qup-v2.2.1";
+                       reg = <0x078b5000 0x500>;
+                       interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&gcc GCC_BLSP1_AHB_CLK>,
+                                <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>;
+                       clock-names = "iface", "core";
+                       pinctrl-names = "default", "sleep";
+                       pinctrl-0 = <&i2c1_default>;
+                       pinctrl-1 = <&i2c1_sleep>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                blsp_i2c2: i2c@78b6000 {
                        compatible = "qcom,i2c-qup-v2.2.1";
                        reg = <0x078b6000 0x500>;