ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
authorkiran.padwal@smartplayin.com <kiran.padwal@smartplayin.com>
Tue, 16 Sep 2014 11:45:38 +0000 (17:15 +0530)
committerKumar Gala <galak@codeaurora.org>
Wed, 17 Sep 2014 22:23:47 +0000 (17:23 -0500)
Add support for i2c controller on the DB8074 board.  It also adds necessary
DT support for i2c eeprom which is present on DB8074 board.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Kumar Gala <galak@codeaurora.org>
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
arch/arm/boot/dts/qcom-msm8974.dtsi

index b4dfb01fe6fbbc695dd9e20b0f8fa9991969070b..47370494d0f84ecf2cec66f4cd9ca22beb4f1269 100644 (file)
 
 
                pinctrl@fd510000 {
+                       i2c11_pins: i2c11 {
+                               mux {
+                                       pins = "gpio83", "gpio84";
+                                       function = "blsp_i2c11";
+                               };
+                       };
+
                        spi8_default: spi8_default {
                                mosi {
                                        pins = "gpio45";
                                };
                        };
                };
+
+               i2c@f9967000 {
+                       status = "okay";
+                       clock-frequency = <200000>;
+                       pinctrl-0 = <&i2c11_pins>;
+                       pinctrl-names = "default";
+
+                       eeprom: eeprom@52 {
+                               compatible = "atmel,24c128";
+                               reg = <0x52>;
+                               pagesize = <32>;
+                               read-only;
+                       };
+               };
        };
 };
index 69dca2aca25ab0e80634c39bf2e790a21cb8ee6d..e265ec16a7879b013639821e2a7b2db56aa57989 100644 (file)
@@ -1,8 +1,8 @@
 /dts-v1/;
 
-#include "skeleton.dtsi"
-
+#include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/qcom,gcc-msm8974.h>
+#include "skeleton.dtsi"
 
 / {
        model = "Qualcomm MSM8974";
                        #interrupt-cells = <2>;
                        interrupts = <0 208 0>;
                };
+
+               blsp_i2c11: i2c@f9967000 {
+                       status = "disable";
+                       compatible = "qcom,i2c-qup-v2.1.1";
+                       reg = <0xf9967000 0x1000>;
+                       interrupts = <0 105 IRQ_TYPE_NONE>;
+                       clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>, <&gcc GCC_BLSP2_AHB_CLK>;
+                       clock-names = "core", "iface";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
        };
 };