* [PATCH 08/20 v2] arm64: renesas: r8a7795: add I2C support
@ 2015-09-17 4:25 Kuninori Morimoto
0 siblings, 0 replies; 2+ messages in thread
From: Kuninori Morimoto @ 2015-09-17 4:25 UTC (permalink / raw)
To: linux-sh
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v1 -> v2
- use power-domains
- add Geert's Reviewed-by
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 96 ++++++++++++++++++++++++++++++-
include/dt-bindings/clock/r8a7795-clock.h | 7 +++
2 files changed, 102 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 31d05b6..3a82eba 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -16,6 +16,16 @@
#address-cells = <2>;
#size-cells = <2>;
+ aliases {
+ i2c0 = &i2c0;
+ i2c1 = &i2c1;
+ i2c2 = &i2c2;
+ i2c3 = &i2c3;
+ i2c4 = &i2c4;
+ i2c5 = &i2c5;
+ i2c6 = &i2c6;
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
@@ -464,13 +474,20 @@
reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>,
<&cp_clk>, <&cp_clk>, <&cp_clk>,
- <&cp_clk>, <&cp_clk>;
+ <&cp_clk>, <&cp_clk>,
+ <&s3d2_clk>, <&s3d2_clk>, <&s3d2_clk>,
+ <&s3d2_clk>, <&s3d2_clk>, <&s3d2_clk>,
+ <&s3d2_clk>;
#clock-cells = <1>;
clock-indices = <
R8A7795_CLK_GPIO7 R8A7795_CLK_GPIO6
R8A7795_CLK_GPIO5 R8A7795_CLK_GPIO4
R8A7795_CLK_GPIO3 R8A7795_CLK_GPIO2
R8A7795_CLK_GPIO1 R8A7795_CLK_GPIO0
+ R8A7795_CLK_I2C6 R8A7795_CLK_I2C5
+ R8A7795_CLK_I2C4 R8A7795_CLK_I2C3
+ R8A7795_CLK_I2C2 R8A7795_CLK_I2C1
+ R8A7795_CLK_I2C0
>;
};
};
@@ -767,6 +784,83 @@
};
};
};
+
+ i2c0: i2c@e6500000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe6500000 0 0x40>;
+ interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C0>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c1: i2c@e6508000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe6508000 0 0x40>;
+ interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C1>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c2: i2c@e6510000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe6510000 0 0x40>;
+ interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C2>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c3: i2c@e66d0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe66d0000 0 0x40>;
+ interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C3>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c4: i2c@e66d8000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe66d8000 0 0x40>;
+ interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C4>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c5: i2c@e66e0000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe66e0000 0 0x40>;
+ interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C5>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
+
+ i2c6: i2c@e66e8000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,i2c-r8a7795";
+ reg = <0 0xe66e8000 0 0x40>;
+ interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp9_clks R8A7795_CLK_I2C6>;
+ power-domains = <&cpg_clocks>;
+ status = "disabled";
+ };
};
};
diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h
index a310dfa..881788f 100644
--- a/include/dt-bindings/clock/r8a7795-clock.h
+++ b/include/dt-bindings/clock/r8a7795-clock.h
@@ -65,6 +65,13 @@
#define R8A7795_CLK_GPIO2 10
#define R8A7795_CLK_GPIO1 11
#define R8A7795_CLK_GPIO0 12
+#define R8A7795_CLK_I2C6 18
+#define R8A7795_CLK_I2C5 19
+#define R8A7795_CLK_I2C4 27
+#define R8A7795_CLK_I2C3 28
+#define R8A7795_CLK_I2C2 29
+#define R8A7795_CLK_I2C1 30
+#define R8A7795_CLK_I2C0 31
/* MSTP10 */
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 08/20 v2] arm64: renesas: r8a7795: add I2C support
@ 2015-10-05 2:30 Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2015-10-05 2:30 UTC (permalink / raw)
To: linux-sh
On Thu, Sep 17, 2015 at 04:25:22AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> v1 -> v2
>
> - use power-domains
> - add Geert's Reviewed-by
>
> arch/arm64/boot/dts/renesas/r8a7795.dtsi | 96 ++++++++++++++++++++++++++++++-
> include/dt-bindings/clock/r8a7795-clock.h | 7 +++
> 2 files changed, 102 insertions(+), 1 deletion(-)
Hi,
I have taken the liberty of updating this patch with the following
incremental change from Geert. The result can be found in the
topic/r8a7795-i2c-v3.rebase branch of my renesas tree.
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 8ce92db14c8bd101..16abf8956c68cb00 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -533,7 +533,9 @@
clock-output-names "gpio7", "gpio6", "gpio5",
"gpio4", "gpio3", "gpio2",
- "gpio1", "gpio0";
+ "gpio1", "gpio0", "i2c6",
+ "i2c5", "i2c4", "i2c3", "i2c2",
+ "i2c1", "i2c0";
};
mstp10_clks: mstp10_clks@e6150998 {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-05 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-05 2:30 [PATCH 08/20 v2] arm64: renesas: r8a7795: add I2C support Simon Horman
-- strict thread matches above, loose matches on Subject: below --
2015-09-17 4:25 Kuninori Morimoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).