ARM: dts: apq8064: add gsbi7 i2c support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 12 Apr 2016 09:33:52 +0000 (10:33 +0100)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Apr 2016 20:03:11 +0000 (15:03 -0500)
This patch adds support to gsbi7 i2c which is used in some of the new
boards.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
arch/arm/boot/dts/qcom-apq8064-pins.dtsi
arch/arm/boot/dts/qcom-apq8064.dtsi

index 8bb5e5f3d07acbf0bf3206a07aba4f3f42474692..4102a98f475b648a2b50c7a6e04ea42d4cf12bfd 100644 (file)
                        function = "gsbi7";
                };
        };
+
+       i2c7_pins: i2c7 {
+               mux {
+                       pins = "gpio84", "gpio85";
+                       function = "gsbi7";
+               };
+
+               pinconf {
+                       pins = "gpio84", "gpio85";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+       };
+
+       i2c7_pins_sleep: i2c7_pins_sleep {
+               mux {
+                       pins = "gpio84", "gpio85";
+                       function = "gpio";
+               };
+               pinconf {
+                       pins = "gpio84", "gpio85";
+                       drive-strength = <2>;
+                       bias-disable = <0>;
+               };
+       };
 };
index 407a072dea69ab0728a56c4e9df0db852a55ca9a..b176c094cd6f1f074c2001e1790fac5aecb3600a 100644 (file)
                                clock-names = "core", "iface";
                                status = "disabled";
                        };
+
+                       gsbi7_i2c: i2c@16680000 {
+                               compatible = "qcom,i2c-qup-v1.1.1";
+                               pinctrl-0 = <&i2c7_pins>;
+                               pinctrl-1 = <&i2c7_pins_sleep>;
+                               pinctrl-names = "default", "sleep";
+                               reg = <0x16680000 0x1000>;
+                               interrupts = <GIC_SPI 159 IRQ_TYPE_NONE>;
+                               clocks = <&gcc GSBI7_QUP_CLK>,
+                                        <&gcc GSBI7_H_CLK>;
+                               clock-names = "core", "iface";
+                               status = "disabled";
+                       };
                };
 
                rng@1a500000 {