ARM: dts: apq8064: add gsbi4 with i2c node.
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 23 Feb 2016 14:14:50 +0000 (14:14 +0000)
committerAndy Gross <andy.gross@linaro.org>
Fri, 26 Feb 2016 19:15:49 +0000 (13:15 -0600)
This patch adds gsbi4 and i2c node.

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 0a342d31c0a2d1e73be5af48a9103b88a94c9b2b..0cb22cf066479607cd177b73e71fcc8ed4261a6f 100644 (file)
                };
        };
 
+       i2c4_pins: i2c4 {
+               mux {
+                       pins = "gpio12", "gpio13";
+                       function = "gsbi4";
+               };
+
+               pinconf {
+                       pins = "gpio12", "gpio13";
+                       drive-strength = <16>;
+                       bias-disable;
+               };
+       };
+
+       i2c4_pins_sleep: i2c4_pins_sleep {
+               mux {
+                       pins = "gpio12", "gpio13";
+                       function = "gpio";
+               };
+               pinconf {
+                       pins = "gpio12", "gpio13";
+                       drive-strength = <2>;
+                       bias-disable = <0>;
+               };
+       };
+
        spi5_default: spi5_default {
                pinmux {
                        pins = "gpio51", "gpio52", "gpio54";
index 20da87306bb3f78fa9e5276163202342de47f04b..766fead5d4e3039bb75a75f0d8e9f93a6d9b81a4 100644 (file)
                        };
                };
 
+               gsbi4: gsbi@16300000 {
+                       status = "disabled";
+                       compatible = "qcom,gsbi-v1.0.0";
+                       cell-index = <4>;
+                       reg = <0x16300000 0x03>;
+                       clocks = <&gcc GSBI4_H_CLK>;
+                       clock-names = "iface";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges;
+
+                       gsbi4_i2c: i2c@16380000 {
+                               compatible = "qcom,i2c-qup-v1.1.1";
+                               pinctrl-0 = <&i2c4_pins &i2c4_pins_sleep>;
+                               pinctrl-names = "default", "sleep";
+                               reg = <0x16380000 0x1000>;
+                               interrupts = <GIC_SPI 153 IRQ_TYPE_NONE>;
+                               clocks = <&gcc GSBI4_QUP_CLK>,
+                                        <&gcc GSBI4_H_CLK>;
+                               clock-names = "core", "iface";
+                       };
+               };
+
                gsbi5: gsbi@1a200000 {
                        status = "disabled";
                        compatible = "qcom,gsbi-v1.0.0";