* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20
@ 2015-01-17 0:58 Simon Horman
2015-01-17 0:58 ` [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property Simon Horman
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these second round of Renesas ARM based SoC DT updates for v3.20.
This pull request is based on the previous round of
such requests, tagged as renesas-dt-for-v3.20,
which you have previously pulled.
The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0:
ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20
for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12:
PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900)
----------------------------------------------------------------
Second Round of Renesas ARM Based SoC DT Updates for v3.20
* Support Renesas memory controllers
* Add SRC interrupt number on r8a779~ and r8a7791 SoCs
* Fix MSTP8 input clocks on r8a7791 SoC
* Add PM domain support to r8a7740
* Add DT bindings for the R-Mobile System Controller
* Use Add sh73a0-specific FSI2 compatible property
----------------------------------------------------------------
Geert Uytterhoeven (8):
ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property
PM / Domains: Add DT bindings for the R-Mobile System Controller
ARM: shmobile: r8a7740 dtsi: Add PM domain support
ARM: shmobile: Add DT bindings for Renesas memory controllers
ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes
ARM: shmobile: r8a7740 dtsi: Add memory-controller node
ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes
PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding
Kuninori Morimoto (2):
ARM: shmobile: r8a7790: add SRC interrupt number on DTSI
ARM: shmobile: r8a7791: add SRC interrupt number on DTSI
Sergei Shtylyov (1):
ARM: shmobile: r8a7791: fix MSTP8 input clocks
.../renesas-memory-controllers.txt | 44 +++++++++
.../bindings/power/renesas,sysc-rmobile.txt | 99 +++++++++++++++++++
arch/arm/boot/dts/r8a73a4.dtsi | 10 ++
arch/arm/boot/dts/r8a7740.dtsi | 105 +++++++++++++++++++++
arch/arm/boot/dts/r8a7790.dtsi | 20 ++--
arch/arm/boot/dts/r8a7791.dtsi | 22 ++---
arch/arm/boot/dts/sh73a0.dtsi | 18 +++-
7 files changed, 296 insertions(+), 22 deletions(-)
create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt
create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller Simon Horman
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
The FSI2 sound node used the generic compatible property only.
Add the SoC-specific one, to make it future proof.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/sh73a0.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index d8def5a..d4cfb06 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -317,7 +317,7 @@
sh_fsi2: sound at ec230000 {
#sound-dai-cells = <1>;
- compatible = "renesas,sh_fsi2";
+ compatible = "renesas,fsi2-sh73a0", "renesas,sh_fsi2";
reg = <0xec230000 0x400>;
interrupts = <0 146 0x4>;
status = "disabled";
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
2015-01-17 0:58 ` [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support Simon Horman
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
The Renesas R-Mobile System Controller provides a.o. power management
support, following the generic PM domain bindings in
Documentation/devicetree/bindings/power/power_domain.txt.
For now this supports the R-Mobile A1 (r8a7740) only, but it should be
sufficiently generic to handle other members of the SH-Mobile/R-Mobile
family in the future.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
.../bindings/power/renesas,sysc-rmobile.txt | 98 ++++++++++++++++++++++
1 file changed, 98 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
new file mode 100644
index 0000000..2460476
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
@@ -0,0 +1,98 @@
+DT bindings for the Renesas R-Mobile System Controller
+
+== System Controller Node ==
+
+The R-Mobile System Controller provides the following functions:
+ - Boot mode management,
+ - Reset generation,
+ - Power management.
+
+Required properties:
+- compatible: Should be "renesas,sysc-<soctype>", "renesas,sysc-rmobile" as
+ fallback.
+ Examples with soctypes are:
+ - "renesas,sysc-r8a7740" (R-Mobile A1)
+- reg: Two address start and address range blocks for the device:
+ - The first block refers to the normally accessible registers,
+ - the second block refers to the registers protected by the HPB
+ semaphore.
+
+Optional nodes:
+- pm-domains: This node contains a hierarchy of PM domain nodes, which should
+ match the Power Area Hierarchy in the Power Domain Specifications section of
+ the device's datasheet.
+
+
+== PM Domain Nodes ==
+
+Each of the PM domain nodes represents a PM domain, as documented by the
+generic PM domain bindings in
+Documentation/devicetree/bindings/power/power_domain.txt.
+
+The nodes should be named by the real power area names, and thus their names
+should be unique.
+
+Required properties:
+ - #power-domain-cells: Must be 0.
+
+Optional properties:
+- reg: If the PM domain is not always-on, this property must contain the bit
+ index number for the corresponding power area in the various Power
+ Control and Status Registers. The parent's node must contain the
+ following two properties:
+ - #address-cells: Must be 1,
+ - #size-cells: Must be 0.
+ If the PM domain is always-on, this property must be omitted.
+
+
+Example:
+
+This shows a subset of the r8a7740 PM domain hierarchy, containing the
+C5 "always-on" domain, 2 of its subdomains (A4S and A4SU), and the A3SP domain,
+which is a subdomain of A4S.
+
+ sysc: system-controller at e6180000 {
+ compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile";
+ reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>;
+
+ pm-domains {
+ pd_c5: c5 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #power-domain-cells = <0>;
+
+ pd_a4s: a4s at 10 {
+ reg = <10>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #power-domain-cells = <0>;
+
+ pd_a3sp: a3sp at 11 {
+ reg = <11>;
+ #power-domain-cells = <0>;
+ };
+ };
+
+ pd_a4su: a4su at 20 {
+ reg = <20>;
+ #power-domain-cells = <0>;
+ };
+ };
+ };
+ };
+
+
+== PM Domain Consumers ==
+
+Hardware blocks belonging to a PM domain should contain a "power-domains"
+property that is a phandle pointing to the corresponding PM domain node.
+
+Example:
+
+ tpu: pwm at e6600000 {
+ compatible = "renesas,tpu-r8a7740", "renesas,tpu";
+ reg = <0xe6600000 0x100>;
+ clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
+ power-domains = <&pd_a3sp>;
+ #pwm-cells = <3>;
+ };
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
2015-01-17 0:58 ` [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property Simon Horman
2015-01-17 0:58 ` [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks Simon Horman
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
Add a device node for the System Controller, with subnodes that
represent the hardware power area hierarchy.
Hook up all devices to their respective PM domains.
Add a minimal device node for the Coresight-ETM hardware block, and hook
it up to the D4 PM domain, so the R-Mobile System Controller driver can
keep the domain powered, until the new Coresight code handles runtime
PM.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7740.dtsi | 99 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 99 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 60ca622..52f2cf4 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -25,6 +25,7 @@
device_type = "cpu";
reg = <0x0>;
clock-frequency = <800000000>;
+ power-domains = <&pd_a3sm>;
};
};
@@ -41,12 +42,18 @@
interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
};
+ ptm {
+ compatible = "arm,coresight-etm3x";
+ power-domains = <&pd_d4>;
+ };
+
cmt1: timer at e6138000 {
compatible = "renesas,cmt-48-r8a7740", "renesas,cmt-48";
reg = <0xe6138000 0x170>;
interrupts = <0 58 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_CMT1>;
clock-names = "fck";
+ power-domains = <&pd_c5>;
renesas,channels-mask = <0x3f>;
@@ -72,6 +79,7 @@
0 149 IRQ_TYPE_LEVEL_HIGH
0 149 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_INTCA>;
+ power-domains = <&pd_a4s>;
};
/* irqpin1: IRQ8 - IRQ15 */
@@ -93,6 +101,7 @@
0 149 IRQ_TYPE_LEVEL_HIGH
0 149 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_INTCA>;
+ power-domains = <&pd_a4s>;
};
/* irqpin2: IRQ16 - IRQ23 */
@@ -114,6 +123,7 @@
0 149 IRQ_TYPE_LEVEL_HIGH
0 149 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_INTCA>;
+ power-domains = <&pd_a4s>;
};
/* irqpin3: IRQ24 - IRQ31 */
@@ -135,6 +145,7 @@
0 149 IRQ_TYPE_LEVEL_HIGH
0 149 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_INTCA>;
+ power-domains = <&pd_a4s>;
};
ether: ethernet at e9a00000 {
@@ -143,6 +154,7 @@
<0xe9a01800 0x800>;
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_GETHER>;
+ power-domains = <&pd_a4s>;
phy-mode = "mii";
#address-cells = <1>;
#size-cells = <0>;
@@ -159,6 +171,7 @@
0 203 IRQ_TYPE_LEVEL_HIGH
0 204 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp1_clks R8A7740_CLK_IIC0>;
+ power-domains = <&pd_a4r>;
status = "disabled";
};
@@ -172,6 +185,7 @@
0 72 IRQ_TYPE_LEVEL_HIGH
0 73 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_IIC1>;
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -181,6 +195,7 @@
interrupts = <0 100 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA0>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -190,6 +205,7 @@
interrupts = <0 101 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA1>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -199,6 +215,7 @@
interrupts = <0 102 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA2>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -208,6 +225,7 @@
interrupts = <0 103 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA3>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -217,6 +235,7 @@
interrupts = <0 104 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA4>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -226,6 +245,7 @@
interrupts = <0 105 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA5>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -235,6 +255,7 @@
interrupts = <0 106 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA6>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -244,6 +265,7 @@
interrupts = <0 107 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFA7>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -253,6 +275,7 @@
interrupts = <0 108 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp2_clks R8A7740_CLK_SCIFB>;
clock-names = "sci_ick";
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -271,12 +294,14 @@
<&irqpin2 4 0>, <&irqpin2 5 0>, <&irqpin2 6 0>, <&irqpin2 7 0>,
<&irqpin3 0 0>, <&irqpin3 1 0>, <&irqpin3 2 0>, <&irqpin3 3 0>,
<&irqpin3 4 0>, <&irqpin3 5 0>, <&irqpin3 6 0>, <&irqpin3 7 0>;
+ power-domains = <&pd_c5>;
};
tpu: pwm at e6600000 {
compatible = "renesas,tpu-r8a7740", "renesas,tpu";
reg = <0xe6600000 0x100>;
clocks = <&mstp3_clks R8A7740_CLK_TPU0>;
+ power-domains = <&pd_a3sp>;
status = "disabled";
#pwm-cells = <3>;
};
@@ -287,6 +312,7 @@
interrupts = <0 56 IRQ_TYPE_LEVEL_HIGH
0 57 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_MMC>;
+ power-domains = <&pd_a3sp>;
status = "disabled";
};
@@ -297,6 +323,7 @@
0 118 IRQ_TYPE_LEVEL_HIGH
0 119 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_SDHI0>;
+ power-domains = <&pd_a3sp>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -309,6 +336,7 @@
0 122 IRQ_TYPE_LEVEL_HIGH
0 123 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp3_clks R8A7740_CLK_SDHI1>;
+ power-domains = <&pd_a3sp>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -321,6 +349,7 @@
0 126 IRQ_TYPE_LEVEL_HIGH
0 127 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp4_clks R8A7740_CLK_SDHI2>;
+ power-domains = <&pd_a3sp>;
cap-sd-highspeed;
cap-sdio-irq;
status = "disabled";
@@ -332,6 +361,7 @@
reg = <0xfe1f0000 0x400>;
interrupts = <0 9 0x4>;
clocks = <&mstp3_clks R8A7740_CLK_FSI>;
+ power-domains = <&pd_a4mp>;
status = "disabled";
};
@@ -343,6 +373,7 @@
<0 200 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp1_clks R8A7740_CLK_TMU0>;
clock-names = "fck";
+ power-domains = <&pd_a4r>;
#renesas,channels = <3>;
@@ -357,6 +388,7 @@
<0 172 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp1_clks R8A7740_CLK_TMU1>;
clock-names = "fck";
+ power-domains = <&pd_a4r>;
#renesas,channels = <3>;
@@ -543,4 +575,71 @@
"usbhost", "sdhi2", "usbfunc", "usphy";
};
};
+
+ sysc: system-controller at e6180000 {
+ compatible = "renesas,sysc-r8a7740", "renesas,sysc-rmobile";
+ reg = <0xe6180000 0x8000>, <0xe6188000 0x8000>;
+
+ pm-domains {
+ pd_c5: c5 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #power-domain-cells = <0>;
+
+ pd_a4lc: a4lc at 1 {
+ reg = <1>;
+ #power-domain-cells = <0>;
+ };
+
+ pd_a4mp: a4mp at 2 {
+ reg = <2>;
+ #power-domain-cells = <0>;
+ };
+
+ pd_d4: d4 at 3 {
+ reg = <3>;
+ #power-domain-cells = <0>;
+ };
+
+ pd_a4r: a4r at 5 {
+ reg = <5>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #power-domain-cells = <0>;
+
+ pd_a3rv: a3rv at 6 {
+ reg = <6>;
+ #power-domain-cells = <0>;
+ };
+ };
+
+ pd_a4s: a4s at 10 {
+ reg = <10>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ #power-domain-cells = <0>;
+
+ pd_a3sp: a3sp at 11 {
+ reg = <11>;
+ #power-domain-cells = <0>;
+ };
+
+ pd_a3sm: a3sm at 12 {
+ reg = <12>;
+ #power-domain-cells = <0>;
+ };
+
+ pd_a3sg: a3sg at 13 {
+ reg = <13>;
+ #power-domain-cells = <0>;
+ };
+ };
+
+ pd_a4su: a4su at 20 {
+ reg = <20>;
+ #power-domain-cells = <0>;
+ };
+ };
+ };
+ };
};
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (2 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI Simon Horman
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
I made a mistake when rebasing Andrey Gusakov's patch adding MLB+ clock to the
R8A7791 device tree, inserting <&hp_clk> into the "clocks" property of the
MSTP8 node at a wrong position, so that the input clocks for MLB+ and IPMMU-SGX
got swapped...
Fixes: 7408d3061d2f ("ARM: shmobile: r8a7791: add MLB+ clock")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7791.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
index 2810226..946cd3a 100644
--- a/arch/arm/boot/dts/r8a7791.dtsi
+++ b/arch/arm/boot/dts/r8a7791.dtsi
@@ -1154,7 +1154,7 @@
mstp8_clks: mstp8_clks at e6150990 {
compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
reg = <0 0xe6150990 0 4>, <0 0xe61509a0 0 4>;
- clocks = <&hp_clk>, <&zg_clk>, <&zg_clk>, <&zg_clk>,
+ clocks = <&zg_clk>, <&hp_clk>, <&zg_clk>, <&zg_clk>,
<&zg_clk>, <&p_clk>, <&zs_clk>, <&zs_clk>;
#clock-cells = <1>;
clock-indices = <
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (3 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 06/11] ARM: shmobile: r8a7791: " Simon Horman
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7790.dtsi | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index af30c24..637e4ee 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/arch/arm/boot/dts/r8a7790.dtsi
@@ -1435,16 +1435,16 @@
};
rcar_sound,src {
- src0: src at 0 { };
- src1: src at 1 { };
- src2: src at 2 { };
- src3: src at 3 { };
- src4: src at 4 { };
- src5: src at 5 { };
- src6: src at 6 { };
- src7: src at 7 { };
- src8: src at 8 { };
- src9: src at 9 { };
+ src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; };
+ src1: src at 1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; };
+ src2: src at 2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; };
+ src3: src at 3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; };
+ src4: src at 4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; };
+ src5: src at 5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; };
+ src6: src at 6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; };
+ src7: src at 7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; };
+ src8: src at 8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; };
+ src9: src at 9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; };
};
rcar_sound,ssi {
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 06/11] ARM: shmobile: r8a7791: add SRC interrupt number on DTSI
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (4 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers Simon Horman
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7791.dtsi | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
index 946cd3a..e3a60a2 100644
--- a/arch/arm/boot/dts/r8a7791.dtsi
+++ b/arch/arm/boot/dts/r8a7791.dtsi
@@ -1420,16 +1420,16 @@
};
rcar_sound,src {
- src0: src at 0 { };
- src1: src at 1 { };
- src2: src at 2 { };
- src3: src at 3 { };
- src4: src at 4 { };
- src5: src at 5 { };
- src6: src at 6 { };
- src7: src at 7 { };
- src8: src at 8 { };
- src9: src at 9 { };
+ src0: src at 0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; };
+ src1: src at 1 { interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; };
+ src2: src at 2 { interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; };
+ src3: src at 3 { interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; };
+ src4: src at 4 { interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; };
+ src5: src at 5 { interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; };
+ src6: src at 6 { interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; };
+ src7: src at 7 { interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; };
+ src8: src at 8 { interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; };
+ src9: src at 9 { interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; };
};
rcar_sound,ssi {
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (5 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 06/11] ARM: shmobile: r8a7791: " Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes Simon Horman
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
Add DT bindings for Renesas R-Mobile and SH-Mobile memory controllers.
Currently memory controller device nodes are used only to reference PM
domains, and prevent these PM domains from being powered down, which
would crash the system.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
.../renesas-memory-controllers.txt | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
create mode 100644 Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt
diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt
new file mode 100644
index 0000000..c64b792
--- /dev/null
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas-memory-controllers.txt
@@ -0,0 +1,44 @@
+DT bindings for Renesas R-Mobile and SH-Mobile memory controllers
+=================================================================
+
+Renesas R-Mobile and SH-Mobile SoCs contain one or more memory controllers.
+These memory controllers differ from one SoC variant to another, and are called
+by different names ("DDR Bus Controller (DBSC)", "DDR3 Bus State Controller
+(DBSC3)", "SDRAM Bus State Controller (SBSC)").
+
+Currently memory controller device nodes are used only to reference PM
+domains, and prevent these PM domains from being powered down, which would
+crash the system.
+
+As there exist no actual drivers for these controllers yet, these bindings
+should be considered EXPERIMENTAL for now.
+
+Required properties:
+ - compatible: Must be one of the following SoC-specific values:
+ - "renesas,dbsc-r8a73a4" (R-Mobile APE6)
+ - "renesas,dbsc3-r8a7740" (R-Mobile A1)
+ - "renesas,sbsc-sh73a0" (SH-Mobile AG5)
+ - reg: Must contain the base address and length of the memory controller's
+ registers.
+
+Optional properties:
+ - interrupts: Must contain a list of interrupt specifiers for memory
+ controller interrupts, if available.
+ - interrupts-names: Must contain a list of interrupt names corresponding to
+ the interrupts in the interrupts property, if available.
+ Valid interrupt names are:
+ - "sec" (secure interrupt)
+ - "temp" (normal (temperature) interrupt)
+ - power-domains: Must contain a reference to the PM domain that the memory
+ controller belongs to, if available.
+
+Example:
+
+ sbsc1: memory-controller at fe400000 {
+ compatible = "renesas,sbsc-sh73a0";
+ reg = <0xfe400000 0x400>;
+ interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>,
+ <0 36 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "sec", "temp";
+ power-domains = <&pd_a4bc0>;
+ };
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (6 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node Simon Horman
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
Add device nodes for the two DDR Bus State Controllers (DBSC).
The DBSCs are located in the A3BC PM domain, which must not be powered
down, else the system will crash.
A reference to the A3BC PM domain will be added later.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a73a4.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi
index 5ac57ba..38136d9 100644
--- a/arch/arm/boot/dts/r8a73a4.dtsi
+++ b/arch/arm/boot/dts/r8a73a4.dtsi
@@ -38,6 +38,16 @@
<1 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
};
+ dbsc1: memory-controller at e6790000 {
+ compatible = "renesas,dbsc-r8a73a4";
+ reg = <0 0xe6790000 0 0x10000>;
+ };
+
+ dbsc2: memory-controller at e67a0000 {
+ compatible = "renesas,dbsc-r8a73a4";
+ reg = <0 0xe67a0000 0 0x10000>;
+ };
+
dmac: dma-multiplexer {
compatible = "renesas,shdma-mux";
#dma-cells = <1>;
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (7 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes Simon Horman
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
Add a device node for the DDR3 Bus State Controller (DBSC3).
The DBSC3 is located in the A4S PM domain, which must not be powered
down, else the system will crash.
This has no visible effect for now, as A4S was never turned off anyway
because its child PM domain A3SM contains the CPU core.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/r8a7740.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi
index 52f2cf4..8a09260 100644
--- a/arch/arm/boot/dts/r8a7740.dtsi
+++ b/arch/arm/boot/dts/r8a7740.dtsi
@@ -37,6 +37,12 @@
<0xc2000000 0x1000>;
};
+ dbsc3: memory-controller at fe400000 {
+ compatible = "renesas,dbsc3-r8a7740";
+ reg = <0xfe400000 0x400>;
+ power-domains = <&pd_a4s>;
+ };
+
pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 83 IRQ_TYPE_LEVEL_HIGH>;
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (8 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-17 0:58 ` [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Simon Horman
2015-01-22 1:01 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Olof Johansson
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
Add device nodes for the two SDRAM Bus State Controllers.
The SBSCs are located in the A4BC0 resp. A4BC1 PM domains, which must
not be powered down, else the system will crash.
References to the A4BC0 and A4BC1 PM domains will be added later.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm/boot/dts/sh73a0.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/sh73a0.dtsi b/arch/arm/boot/dts/sh73a0.dtsi
index d4cfb06..37c8a76 100644
--- a/arch/arm/boot/dts/sh73a0.dtsi
+++ b/arch/arm/boot/dts/sh73a0.dtsi
@@ -42,6 +42,22 @@
<0xf0000100 0x100>;
};
+ sbsc2: memory-controller at fb400000 {
+ compatible = "renesas,sbsc-sh73a0";
+ reg = <0xfb400000 0x400>;
+ interrupts = <0 37 IRQ_TYPE_LEVEL_HIGH>,
+ <0 38 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "sec", "temp";
+ };
+
+ sbsc1: memory-controller at fe400000 {
+ compatible = "renesas,sbsc-sh73a0";
+ reg = <0xfe400000 0x400>;
+ interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>,
+ <0 36 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "sec", "temp";
+ };
+
pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>,
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (9 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes Simon Horman
@ 2015-01-17 0:58 ` Simon Horman
2015-01-22 1:01 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Olof Johansson
11 siblings, 0 replies; 13+ messages in thread
From: Simon Horman @ 2015-01-17 0:58 UTC (permalink / raw)
To: linux-arm-kernel
From: Geert Uytterhoeven <geert+renesas@glider.be>
SH-Mobile AG5 (sh73a0) can be handled by the existing bindings.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
index 2460476..cc3b1f0 100644
--- a/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
+++ b/Documentation/devicetree/bindings/power/renesas,sysc-rmobile.txt
@@ -12,6 +12,7 @@ Required properties:
fallback.
Examples with soctypes are:
- "renesas,sysc-r8a7740" (R-Mobile A1)
+ - "renesas,sysc-sh73a0" (SH-Mobile AG5)
- reg: Two address start and address range blocks for the device:
- The first block refers to the normally accessible registers,
- the second block refers to the registers protected by the HPB
--
2.1.4
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
` (10 preceding siblings ...)
2015-01-17 0:58 ` [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Simon Horman
@ 2015-01-22 1:01 ` Olof Johansson
11 siblings, 0 replies; 13+ messages in thread
From: Olof Johansson @ 2015-01-22 1:01 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Jan 17, 2015 at 09:58:16AM +0900, Simon Horman wrote:
> Hi Olof, Hi Kevin, Hi Arnd,
>
> Please consider these second round of Renesas ARM based SoC DT updates for v3.20.
>
> This pull request is based on the previous round of
> such requests, tagged as renesas-dt-for-v3.20,
> which you have previously pulled.
>
>
> The following changes since commit 7408d3061d2f04181820902fae6e92e4a73d5cc0:
>
> ARM: shmobile: r8a7791: add MLB+ clock (2014-12-23 09:18:23 +0900)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-dt2-for-v3.20
>
> for you to fetch changes up to fbaa5e694a1240c5f6b829b1e17652e4e228ee12:
>
> PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding (2015-01-16 10:59:37 +0900)
Merged, thanks.
-Olof
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2015-01-22 1:01 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-17 0:58 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Simon Horman
2015-01-17 0:58 ` [PATCH 01/11] ARM: shmobile: sh73a0 dtsi: Add SoC-specific FSI2 compatible property Simon Horman
2015-01-17 0:58 ` [PATCH 02/11] PM / Domains: Add DT bindings for the R-Mobile System Controller Simon Horman
2015-01-17 0:58 ` [PATCH 03/11] ARM: shmobile: r8a7740 dtsi: Add PM domain support Simon Horman
2015-01-17 0:58 ` [PATCH 04/11] ARM: shmobile: r8a7791: fix MSTP8 input clocks Simon Horman
2015-01-17 0:58 ` [PATCH 05/11] ARM: shmobile: r8a7790: add SRC interrupt number on DTSI Simon Horman
2015-01-17 0:58 ` [PATCH 06/11] ARM: shmobile: r8a7791: " Simon Horman
2015-01-17 0:58 ` [PATCH 07/11] ARM: shmobile: Add DT bindings for Renesas memory controllers Simon Horman
2015-01-17 0:58 ` [PATCH 08/11] ARM: shmobile: r8a73a4 dtsi: Add memory-controller nodes Simon Horman
2015-01-17 0:58 ` [PATCH 09/11] ARM: shmobile: r8a7740 dtsi: Add memory-controller node Simon Horman
2015-01-17 0:58 ` [PATCH 10/11] ARM: shmobile: sh73a0 dtsi: Add memory-controller nodes Simon Horman
2015-01-17 0:58 ` [PATCH 11/11] PM / Domains: R-Mobile SYSC: Document SH-Mobile AG5 (sh73a0) binding Simon Horman
2015-01-22 1:01 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v3.20 Olof Johansson
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).