aboutsummaryrefslogtreecommitdiffstats
path: root/patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch')
-rw-r--r--patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch b/patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch
new file mode 100644
index 00000000000000..3141645e1bf038
--- /dev/null
+++ b/patches.renesas/0184-ARM-shmobile-emev2-add-IIC-cores-to-dtsi.patch
@@ -0,0 +1,87 @@
+From cdb340241b2be103eb10598b60dbf7551bdfd872 Mon Sep 17 00:00:00 2001
+From: Wolfram Sang <wsa+renesas@sang-engineering.com>
+Date: Sat, 11 Jul 2015 09:46:25 +0200
+Subject: [PATCH 184/326] ARM: shmobile: emev2: add IIC cores to dtsi
+
+Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
+Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
+(cherry picked from commit cd42d042a2e712a7f9880f860075815539ce4baf)
+Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
+---
+ arch/arm/boot/dts/emev2.dtsi | 48 ++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 48 insertions(+)
+
+diff --git a/arch/arm/boot/dts/emev2.dtsi b/arch/arm/boot/dts/emev2.dtsi
+index bb45694d91bc..edad0c4eea35 100644
+--- a/arch/arm/boot/dts/emev2.dtsi
++++ b/arch/arm/boot/dts/emev2.dtsi
+@@ -21,6 +21,8 @@
+ gpio2 = &gpio2;
+ gpio3 = &gpio3;
+ gpio4 = &gpio4;
++ i2c0 = &iic0;
++ i2c1 = &iic1;
+ };
+
+ cpus {
+@@ -66,6 +68,30 @@
+ clock-frequency = <32768>;
+ #clock-cells = <0>;
+ };
++ iic0_sclkdiv: iic0_sclkdiv {
++ compatible = "renesas,emev2-smu-clkdiv";
++ reg = <0x624 0>;
++ clocks = <&pll3_fo>;
++ #clock-cells = <0>;
++ };
++ iic0_sclk: iic0_sclk {
++ compatible = "renesas,emev2-smu-gclk";
++ reg = <0x48c 1>;
++ clocks = <&iic0_sclkdiv>;
++ #clock-cells = <0>;
++ };
++ iic1_sclkdiv: iic1_sclkdiv {
++ compatible = "renesas,emev2-smu-clkdiv";
++ reg = <0x624 16>;
++ clocks = <&pll3_fo>;
++ #clock-cells = <0>;
++ };
++ iic1_sclk: iic1_sclk {
++ compatible = "renesas,emev2-smu-gclk";
++ reg = <0x490 1>;
++ clocks = <&iic1_sclkdiv>;
++ #clock-cells = <0>;
++ };
+ pll3_fo: pll3_fo {
+ compatible = "fixed-factor-clock";
+ clocks = <&c32ki>;
+@@ -234,4 +260,26 @@
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
++
++ iic0: i2c@e0070000 {
++ #address-cells = <1>;
++ #size-cells = <0>;
++ compatible = "renesas,iic-emev2";
++ reg = <0xe0070000 0x28>;
++ interrupts = <0 32 IRQ_TYPE_EDGE_RISING>;
++ clocks = <&iic0_sclk>;
++ clock-names = "sclk";
++ status = "disabled";
++ };
++
++ iic1: i2c@e10a0000 {
++ #address-cells = <1>;
++ #size-cells = <0>;
++ compatible = "renesas,iic-emev2";
++ reg = <0xe10a0000 0x28>;
++ interrupts = <0 33 IRQ_TYPE_EDGE_RISING>;
++ clocks = <&iic1_sclk>;
++ clock-names = "sclk";
++ status = "disabled";
++ };
+ };
+--
+2.6.2
+