All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
@ 2014-09-16 11:45 ` Kiran Padwal
  0 siblings, 0 replies; 7+ messages in thread
From: Kiran Padwal @ 2014-09-16 11:45 UTC (permalink / raw)
  To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, davidb,
	afaerber
  Cc: linux, devicetree, linux-arm-kernel, linux-arm-msm, linux-kernel,
	Kiran Padwal

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>
---
 arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
 arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
index b4dfb01..4737049 100644
--- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
@@ -22,6 +22,13 @@
 
 
 		pinctrl@fd510000 {
+			i2c11_pins: i2c11 {
+				mux {
+					pins = "gpio83", "gpio84";
+					function = "blsp_i2c11";
+				};
+			};
+
 			spi8_default: spi8_default {
 				mosi {
 					pins = "gpio45";
@@ -41,5 +48,19 @@
 				};
 			};
 		};
+
+		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;
+			};
+		};
 	};
 };
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 69dca2a..e265ec1 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -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";
@@ -236,5 +236,16 @@
 			#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>;
+		};
 	};
 };
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
@ 2014-09-16 11:45 ` Kiran Padwal
  0 siblings, 0 replies; 7+ messages in thread
From: Kiran Padwal @ 2014-09-16 11:45 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
 arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
index b4dfb01..4737049 100644
--- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts
@@ -22,6 +22,13 @@
 
 
 		pinctrl at fd510000 {
+			i2c11_pins: i2c11 {
+				mux {
+					pins = "gpio83", "gpio84";
+					function = "blsp_i2c11";
+				};
+			};
+
 			spi8_default: spi8_default {
 				mosi {
 					pins = "gpio45";
@@ -41,5 +48,19 @@
 				};
 			};
 		};
+
+		i2c at f9967000 {
+			status = "okay";
+			clock-frequency = <200000>;
+			pinctrl-0 = <&i2c11_pins>;
+			pinctrl-names = "default";
+
+			eeprom: eeprom at 52 {
+				compatible = "atmel,24c128";
+				reg = <0x52>;
+				pagesize = <32>;
+				read-only;
+			};
+		};
 	};
 };
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 69dca2a..e265ec1 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -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";
@@ -236,5 +236,16 @@
 			#interrupt-cells = <2>;
 			interrupts = <0 208 0>;
 		};
+
+		blsp_i2c11: i2c at 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>;
+		};
 	};
 };
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
  2014-09-16 11:45 ` Kiran Padwal
  (?)
@ 2014-09-16 18:59     ` Kumar Gala
  -1 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2014-09-16 18:59 UTC (permalink / raw)
  To: Kiran Padwal
  Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
	davidb-sgV2jX0FEOL9JmXXK+q4OQ, afaerber-l3A5Bk7waGM,
	linux-lFZ/pmaqli7XmaaqVzeoHQ, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-arm-msm-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA


On Sep 16, 2014, at 4:45 AM, Kiran Padwal <kiran.padwal-edOiRQu9Xnj5XLMNweQjbQ@public.gmane.org> wrote:

> 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-edOiRQu9Xnj5XLMNweQjbQ@public.gmane.org>
> ---
> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
> arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
> 2 files changed, 34 insertions(+), 2 deletions(-)

Can you rebase this on:

 git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-dt-for-3.18

- k

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
@ 2014-09-16 18:59     ` Kumar Gala
  0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2014-09-16 18:59 UTC (permalink / raw)
  To: Kiran Padwal
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, davidb,
	afaerber, linux, devicetree, linux-arm-kernel, linux-arm-msm,
	linux-kernel


On Sep 16, 2014, at 4:45 AM, Kiran Padwal <kiran.padwal@smartplayin.com> wrote:

> 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>
> ---
> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
> arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
> 2 files changed, 34 insertions(+), 2 deletions(-)

Can you rebase this on:

 git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-dt-for-3.18

- k

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
@ 2014-09-16 18:59     ` Kumar Gala
  0 siblings, 0 replies; 7+ messages in thread
From: Kumar Gala @ 2014-09-16 18:59 UTC (permalink / raw)
  To: linux-arm-kernel


On Sep 16, 2014, at 4:45 AM, Kiran Padwal <kiran.padwal@smartplayin.com> wrote:

> 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>
> ---
> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
> arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
> 2 files changed, 34 insertions(+), 2 deletions(-)

Can you rebase this on:

 git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git tags/qcom-dt-for-3.18

- k

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
  2014-09-16 18:59     ` Kumar Gala
@ 2014-09-17 11:18       ` kiran.padwal at smartplayin.com
  -1 siblings, 0 replies; 7+ messages in thread
From: kiran.padwal @ 2014-09-17 11:18 UTC (permalink / raw)
  To: Kumar Gala
  Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, davidb,
	afaerber, linux, devicetree, linux-arm-kernel, linux-arm-msm,
	linux-kernel

Hi Kumar,

On Tuesday, September 16, 2014 2:59pm, "Kumar Gala" <galak@codeaurora.org> said:

> 
> On Sep 16, 2014, at 4:45 AM, Kiran Padwal <kiran.padwal@smartplayin.com> wrote:
> 
>> 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>
>> ---
>> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
>> arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
>> 2 files changed, 34 insertions(+), 2 deletions(-)
> 
> Can you rebase this on:
> 
>  git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git
> tags/qcom-dt-for-3.18

This patches apply on this tree with no warnings/errors.

> 
> - k
> 
> --
> Employee of Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The
> Linux Foundation
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board
@ 2014-09-17 11:18       ` kiran.padwal at smartplayin.com
  0 siblings, 0 replies; 7+ messages in thread
From: kiran.padwal at smartplayin.com @ 2014-09-17 11:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Kumar,

On Tuesday, September 16, 2014 2:59pm, "Kumar Gala" <galak@codeaurora.org> said:

> 
> On Sep 16, 2014, at 4:45 AM, Kiran Padwal <kiran.padwal@smartplayin.com> wrote:
> 
>> 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>
>> ---
>> arch/arm/boot/dts/qcom-apq8074-dragonboard.dts |   21 +++++++++++++++++++++
>> arch/arm/boot/dts/qcom-msm8974.dtsi            |   15 +++++++++++++--
>> 2 files changed, 34 insertions(+), 2 deletions(-)
> 
> Can you rebase this on:
> 
>  git://git.kernel.org/pub/scm/linux/kernel/git/galak/linux-qcom.git
> tags/qcom-dt-for-3.18

This patches apply on this tree with no warnings/errors.

> 
> - k
> 
> --
> Employee of Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The
> Linux Foundation
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-17 11:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-16 11:45 [PATCH] ARM: dts: qcom: Add I2C dt node for MSM8974 and DB8074 board Kiran Padwal
2014-09-16 11:45 ` Kiran Padwal
     [not found] ` <1410867938-6254-1-git-send-email-kiran.padwal-edOiRQu9Xnj5XLMNweQjbQ@public.gmane.org>
2014-09-16 18:59   ` Kumar Gala
2014-09-16 18:59     ` Kumar Gala
2014-09-16 18:59     ` Kumar Gala
2014-09-17 11:18     ` kiran.padwal
2014-09-17 11:18       ` kiran.padwal at smartplayin.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.