* [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC
@ 2017-10-23 17:09 Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 3/9] ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB Fabrizio Castro
` (5 more replies)
0 siblings, 6 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Geert Uytterhoeven,
devicetree, linux-arm-kernel, linux-renesas-soc, Chris Paterson,
Biju Das
This series brings under the same roof a few patches that needed a v2
and that are related to either r8a7745 or iwg22d, with the goal of making
the merge process as smooth as possible.
Patches [1-4] define a new DT architecture for the iW-RainboW-G22D SODIMM
Development Platform to include the configuration with the HDMI daughter
board and to define the serial interfaces.
Patches [5-8] add USB function support to the r8a7745 SoC and to the
iwg22d board. The patches providing the definition of compatible strings:
* "renesas,r8a7745-usb-dmac", and
* "renesas,usbhs-r8a7745"
(on which these USB patches depend on) have been accepted by the
respective maintainers already, but it will take a little bit for the
definitions to appear on a renesas-devel tag. For reference:
https://patchwork.kernel.org/patch/9990063/
https://patchwork.kernel.org/patch/9987411/
https://patchwork.kernel.org/patch/9990113/
Patch 9 adds IIC cores to the r8a7745 SoC.
The patches of this series apply smoothly on top of tag:
"renesas-devel-20171018-v4.14-rc5".
Best regards,
Fab
Biju Das (4):
ARM: dts: r8a7745: Add HS-USB device node
ARM: dts: r8a7745: Add USB-DMAC device nodes
ARM: dts: r8a7745: Enable DMA for HSUSB
ARM: dts: iwg22d-sodimm: Enable HS-USB
Fabrizio Castro (5):
ARM: dts: iwg22d: Use /dev/ttySC3 as debug console
ARM: dts: iwg22d: Add /dev/ttySC5 support
ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB
ARM: dts: iwg22d-sodimm: sort dt nodes
ARM: dts: r8a7745: Add IIC cores to dtsi
arch/arm/boot/dts/Makefile | 1 +
.../arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts | 61 +++++++++++++++
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 87 ++++++++++++++--------
arch/arm/boot/dts/r8a7745.dtsi | 81 ++++++++++++++++++++
4 files changed, 199 insertions(+), 31 deletions(-)
create mode 100644 arch/arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts
--
2.7.4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 1/9] ARM: dts: iwg22d: Use /dev/ttySC3 as debug console
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 2/9] ARM: dts: iwg22d: Add /dev/ttySC5 support Fabrizio Castro
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Geert Uytterhoeven,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Chris Paterson,
Biju Das, Chris Paterson
The BSP release from iWave uses /dev/ttySC3 as debug console, this patch
renames the alias accordingly for compatibility.
Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Signed-off-by: Chris Paterson <chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
---
Changes in v2:
* replaced serial0 with serial3 in stdout-path
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 52153ec..edadeee 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -16,13 +16,13 @@
compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
aliases {
- serial0 = &scif4;
+ serial3 = &scif4;
ethernet0 = &avb;
};
chosen {
bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
- stdout-path = "serial0:115200n8";
+ stdout-path = "serial3:115200n8";
};
vccq_sdhi0: regulator-vccq-sdhi0 {
--
2.7.4
--
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 related [flat|nested] 11+ messages in thread
* [PATCH v2 2/9] ARM: dts: iwg22d: Add /dev/ttySC5 support
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-10-23 17:09 ` [PATCH v2 1/9] ARM: dts: iwg22d: Use /dev/ttySC3 as debug console Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 6/9] ARM: dts: r8a7745: Add USB-DMAC device nodes Fabrizio Castro
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Geert Uytterhoeven,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA, Chris Paterson,
Biju Das, Chris Paterson
Add support for HSCIF1 as /dev/ttySC5, keeping the same naming
scheme adopted by iWave in their BSP release. This interface
uses RTS/CTS.
Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Signed-off-by: Chris Paterson <chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
---
Changes in v2:
* Added changelog
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index edadeee..82587d7 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -17,6 +17,7 @@
aliases {
serial3 = &scif4;
+ serial5 = &hscif1;
ethernet0 = &avb;
};
@@ -39,7 +40,20 @@
};
};
+&hscif1 {
+ pinctrl-0 = <&hscif1_pins>;
+ pinctrl-names = "default";
+
+ uart-has-rtscts;
+ status = "okay";
+};
+
&pfc {
+ hscif1_pins: hscif1 {
+ groups = "hscif1_data", "hscif1_ctrl";
+ function = "hscif1";
+ };
+
scif4_pins: scif4 {
groups = "scif4_data_b";
function = "scif4";
--
2.7.4
--
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 related [flat|nested] 11+ messages in thread
* [PATCH v2 3/9] ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 4/9] ARM: dts: iwg22d-sodimm: sort dt nodes Fabrizio Castro
` (4 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Geert Uytterhoeven,
devicetree, linux-arm-kernel, linux-renesas-soc, Chris Paterson,
Biju Das, Chris Paterson
Add file r8a7745-iwg22d-sodimm-dbhd-ca.dts to provide support for
iW-RainboW-G22D with HDMI daughter board plugged in.
The interfaces defined in the new .dts file are: scif1, scif5,
and hscif2.
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
---
Changes in v2:
* none
arch/arm/boot/dts/Makefile | 1 +
.../arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts | 61 ++++++++++++++++++++++
2 files changed, 62 insertions(+)
create mode 100644 arch/arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 8c34d06..e27b194 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -727,6 +727,7 @@ dtb-$(CONFIG_ARCH_RENESAS) += \
r8a7743-iwg20d-q7-dbcm-ca.dtb \
r8a7743-sk-rzg1m.dtb \
r8a7745-iwg22d-sodimm.dtb \
+ r8a7745-iwg22d-sodimm-dbhd-ca.dtb \
r8a7745-sk-rzg1e.dtb \
r8a7778-bockw.dtb \
r8a7779-marzen.dtb \
diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts
new file mode 100644
index 0000000..f925388
--- /dev/null
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm-dbhd-ca.dts
@@ -0,0 +1,61 @@
+/*
+ * Device Tree Source for the iWave-RZG1E SODIMM carrier board + HDMI daughter
+ * board
+ *
+ * Copyright (C) 2017 Renesas Electronics Corp.
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2. This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ */
+
+#include "r8a7745-iwg22d-sodimm.dts"
+
+/ {
+ model = "iWave RainboW-G22D-SODIMM RZ/G1E based board with HDMI add-on";
+ compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
+
+ aliases {
+ serial0 = &scif1;
+ serial4 = &scif5;
+ serial6 = &hscif2;
+ };
+};
+
+&hscif2 {
+ pinctrl-0 = <&hscif2_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&pfc {
+ hscif2_pins: hscif2 {
+ groups = "hscif2_data";
+ function = "hscif2";
+ };
+
+ scif1_pins: scif1 {
+ groups = "scif1_data";
+ function = "scif1";
+ };
+
+ scif5_pins: scif5 {
+ groups = "scif5_data_d";
+ function = "scif5";
+ };
+};
+
+&scif1 {
+ pinctrl-0 = <&scif1_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
+
+&scif5 {
+ pinctrl-0 = <&scif5_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 4/9] ARM: dts: iwg22d-sodimm: sort dt nodes
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 3/9] ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 5/9] ARM: dts: r8a7745: Add HS-USB device node Fabrizio Castro
` (3 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Simon Horman, Magnus Damm, Geert Uytterhoeven,
devicetree, linux-arm-kernel, linux-renesas-soc, Chris Paterson,
Biju Das, Chris Paterson
Improve the layout of r8a7745-iwg22d-sodimm.dts by sorting the
nodes alphabetically.
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
---
Changes in v2:
* rebased
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 62 ++++++++++++++---------------
1 file changed, 31 insertions(+), 31 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 82587d7..3eb4f83 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -16,9 +16,9 @@
compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
aliases {
+ ethernet0 = &avb;
serial3 = &scif4;
serial5 = &hscif1;
- ethernet0 = &avb;
};
chosen {
@@ -40,6 +40,25 @@
};
};
+&avb {
+ pinctrl-0 = <&avb_pins>;
+ pinctrl-names = "default";
+
+ phy-handle = <&phy3>;
+ phy-mode = "gmii";
+ renesas,no-ether-link;
+ status = "okay";
+
+ phy3: ethernet-phy@3 {
+ /*
+ * On some older versions of the platform (before R4.0) the phy address
+ * may be 1 or 3. The address is fixed to 3 for R4.0 onwards.
+ */
+ reg = <3>;
+ micrel,led-mode = <1>;
+ };
+};
+
&hscif1 {
pinctrl-0 = <&hscif1_pins>;
pinctrl-names = "default";
@@ -48,7 +67,18 @@
status = "okay";
};
+&pci1 {
+ status = "okay";
+ pinctrl-0 = <&usb1_pins>;
+ pinctrl-names = "default";
+};
+
&pfc {
+ avb_pins: avb {
+ groups = "avb_mdio", "avb_gmii";
+ function = "avb";
+ };
+
hscif1_pins: hscif1 {
groups = "hscif1_data", "hscif1_ctrl";
function = "hscif1";
@@ -59,11 +89,6 @@
function = "scif4";
};
- avb_pins: avb {
- groups = "avb_mdio", "avb_gmii";
- function = "avb";
- };
-
sdhi0_pins: sd0 {
groups = "sdhi0_data4", "sdhi0_ctrl";
function = "sdhi0";
@@ -83,25 +108,6 @@
status = "okay";
};
-&avb {
- pinctrl-0 = <&avb_pins>;
- pinctrl-names = "default";
-
- phy-handle = <&phy3>;
- phy-mode = "gmii";
- renesas,no-ether-link;
- status = "okay";
-
- phy3: ethernet-phy@3 {
- /*
- * On some older versions of the platform (before R4.0) the phy address
- * may be 1 or 3. The address is fixed to 3 for R4.0 onwards.
- */
- reg = <3>;
- micrel,led-mode = <1>;
- };
-};
-
&sdhi0 {
pinctrl-0 = <&sdhi0_pins>;
pinctrl-names = "default";
@@ -112,12 +118,6 @@
status = "okay";
};
-&pci1 {
- status = "okay";
- pinctrl-0 = <&usb1_pins>;
- pinctrl-names = "default";
-};
-
&usbphy {
status = "okay";
};
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 5/9] ARM: dts: r8a7745: Add HS-USB device node
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 3/9] ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 4/9] ARM: dts: iwg22d-sodimm: sort dt nodes Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
` (2 subsequent siblings)
5 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland
Cc: Biju Das, Simon Horman, Magnus Damm, Chris Paterson,
Fabrizio Castro, devicetree, linux-renesas-soc
From: Biju Das <biju.das@bp.renesas.com>
From: Biju Das <biju.das@bp.renesas.com>
Define the R8A7745 generic part of the HS-USB device node. It is up to the
board file to enable the device.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
Changes in v2:
* rebased
arch/arm/boot/dts/r8a7745.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 3a50f70..40048da1 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -916,6 +916,20 @@
};
};
+ hsusb: usb@e6590000 {
+ compatible = "renesas,usbhs-r8a7745",
+ "renesas,rcar-gen2-usbhs";
+ reg = <0 0xe6590000 0 0x100>;
+ interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 704>;
+ power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+ resets = <&cpg 704>;
+ renesas,buswait = <4>;
+ phys = <&usb0 1>;
+ phy-names = "usb";
+ status = "disabled";
+ };
+
usbphy: usb-phy@e6590100 {
compatible = "renesas,usb-phy-r8a7745",
"renesas,rcar-gen2-usb-phy";
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 6/9] ARM: dts: r8a7745: Add USB-DMAC device nodes
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-10-23 17:09 ` [PATCH v2 1/9] ARM: dts: iwg22d: Use /dev/ttySC3 as debug console Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 2/9] ARM: dts: iwg22d: Add /dev/ttySC5 support Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 7/9] ARM: dts: r8a7745: Enable DMA for HSUSB Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 9/9] ARM: dts: r8a7745: Add IIC cores to dtsi Fabrizio Castro
4 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland
Cc: Biju Das, Simon Horman, Magnus Damm, Chris Paterson,
Fabrizio Castro, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA
From: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
From: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Signed-off-by: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Reviewed-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
---
Changes in v2:
* rebased
arch/arm/boot/dts/r8a7745.dtsi | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 40048da1..9733ac5 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -312,6 +312,34 @@
dma-channels = <15>;
};
+ usb_dmac0: dma-controller@e65a0000 {
+ compatible = "renesas,r8a7745-usb-dmac",
+ "renesas,usb-dmac";
+ reg = <0 0xe65a0000 0 0x100>;
+ interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH
+ GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "ch0", "ch1";
+ clocks = <&cpg CPG_MOD 330>;
+ power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+ resets = <&cpg 330>;
+ #dma-cells = <1>;
+ dma-channels = <2>;
+ };
+
+ usb_dmac1: dma-controller@e65b0000 {
+ compatible = "renesas,r8a7745-usb-dmac",
+ "renesas,usb-dmac";
+ reg = <0 0xe65b0000 0 0x100>;
+ interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH
+ GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "ch0", "ch1";
+ clocks = <&cpg CPG_MOD 331>;
+ power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+ resets = <&cpg 331>;
+ #dma-cells = <1>;
+ dma-channels = <2>;
+ };
+
scifa0: serial@e6c40000 {
compatible = "renesas,scifa-r8a7745",
"renesas,rcar-gen2-scifa", "renesas,scifa";
--
2.7.4
--
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 related [flat|nested] 11+ messages in thread
* [PATCH v2 7/9] ARM: dts: r8a7745: Enable DMA for HSUSB
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
` (2 preceding siblings ...)
2017-10-23 17:09 ` [PATCH v2 6/9] ARM: dts: r8a7745: Add USB-DMAC device nodes Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 9/9] ARM: dts: r8a7745: Add IIC cores to dtsi Fabrizio Castro
4 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland
Cc: Biju Das, Simon Horman, Magnus Damm, Chris Paterson,
Fabrizio Castro, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA
From: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
From: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
This patch adds DMA properties to the HSUSB node.
Signed-off-by: Biju Das <biju.das-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Reviewed-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
---
Changes in v2:
* rebased
arch/arm/boot/dts/r8a7745.dtsi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 9733ac5..6c9a0d6 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -950,6 +950,9 @@
reg = <0 0xe6590000 0 0x100>;
interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 704>;
+ dmas = <&usb_dmac0 0>, <&usb_dmac0 1>,
+ <&usb_dmac1 0>, <&usb_dmac1 1>;
+ dma-names = "ch0", "ch1", "ch2", "ch3";
power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
resets = <&cpg 704>;
renesas,buswait = <4>;
--
2.7.4
--
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 related [flat|nested] 11+ messages in thread
* [PATCH v2 8/9] ARM: dts: iwg22d-sodimm: Enable HS-USB
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
` (3 preceding siblings ...)
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
@ 2017-10-23 17:09 ` Fabrizio Castro
2017-10-29 15:12 ` [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Simon Horman
5 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland
Cc: Biju Das, Simon Horman, Magnus Damm, Chris Paterson,
Fabrizio Castro, devicetree, linux-renesas-soc
From: Biju Das <biju.das@bp.renesas.com>
From: Biju Das <biju.das@bp.renesas.com>
Enable HS-USB on iWave RZ/G1E carrier board.
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
Changes in v2:
* rebased
arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
index 3eb4f83..80c82aa 100644
--- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
+++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts
@@ -67,6 +67,12 @@
status = "okay";
};
+&hsusb {
+ status = "okay";
+ pinctrl-0 = <&usb0_pins>;
+ pinctrl-names = "default";
+};
+
&pci1 {
status = "okay";
pinctrl-0 = <&usb1_pins>;
@@ -95,6 +101,11 @@
power-source = <3300>;
};
+ usb0_pins: usb0 {
+ groups = "usb0";
+ function = "usb0";
+ };
+
usb1_pins: usb1 {
groups = "usb1";
function = "usb1";
--
2.7.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 9/9] ARM: dts: r8a7745: Add IIC cores to dtsi
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
` (3 preceding siblings ...)
2017-10-23 17:09 ` [PATCH v2 7/9] ARM: dts: r8a7745: Enable DMA for HSUSB Fabrizio Castro
@ 2017-10-23 17:09 ` Fabrizio Castro
4 siblings, 0 replies; 11+ messages in thread
From: Fabrizio Castro @ 2017-10-23 17:09 UTC (permalink / raw)
To: Rob Herring, Mark Rutland, Russell King
Cc: Fabrizio Castro, Geert Uytterhoeven, Simon Horman, Magnus Damm,
linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Chris Paterson,
Biju Das
Add iic0 and iic1 nodes to SoC dtsi. Also, define aliases i2c6
and i2c7. Board specific DT files will enable the interfaces
if needed.
Signed-off-by: Fabrizio Castro <fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
Reviewed-by: Chris Paterson <chris.paterson2-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
---
Changes in v2:
* added changelog
arch/arm/boot/dts/r8a7745.dtsi | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7745.dtsi b/arch/arm/boot/dts/r8a7745.dtsi
index 6c9a0d6..d0b9212 100644
--- a/arch/arm/boot/dts/r8a7745.dtsi
+++ b/arch/arm/boot/dts/r8a7745.dtsi
@@ -25,6 +25,8 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
+ i2c6 = &iic0;
+ i2c7 = &iic1;
spi0 = &qspi;
spi1 = &msiof0;
spi2 = &msiof1;
@@ -752,6 +754,40 @@
status = "disabled";
};
+ iic0: i2c@e6500000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,iic-r8a7745",
+ "renesas,rcar-gen2-iic",
+ "renesas,rmobile-iic";
+ reg = <0 0xe6500000 0 0x425>;
+ interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 318>;
+ dmas = <&dmac0 0x61>, <&dmac0 0x62>,
+ <&dmac1 0x61>, <&dmac1 0x62>;
+ dma-names = "tx", "rx", "tx", "rx";
+ power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+ resets = <&cpg 318>;
+ status = "disabled";
+ };
+
+ iic1: i2c@e6510000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "renesas,iic-r8a7745",
+ "renesas,rcar-gen2-iic",
+ "renesas,rmobile-iic";
+ reg = <0 0xe6510000 0 0x425>;
+ interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cpg CPG_MOD 323>;
+ dmas = <&dmac0 0x65>, <&dmac0 0x66>,
+ <&dmac1 0x65>, <&dmac1 0x66>;
+ dma-names = "tx", "rx", "tx", "rx";
+ power-domains = <&sysc R8A7745_PD_ALWAYS_ON>;
+ resets = <&cpg 323>;
+ status = "disabled";
+ };
+
mmcif0: mmc@ee200000 {
compatible = "renesas,mmcif-r8a7745",
"renesas,sh-mmcif";
--
2.7.4
--
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 related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
` (4 preceding siblings ...)
2017-10-23 17:09 ` [PATCH v2 8/9] ARM: dts: iwg22d-sodimm: Enable HS-USB Fabrizio Castro
@ 2017-10-29 15:12 ` Simon Horman
5 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2017-10-29 15:12 UTC (permalink / raw)
To: Fabrizio Castro
Cc: Rob Herring, Mark Rutland, Russell King, Magnus Damm,
Geert Uytterhoeven, devicetree, linux-arm-kernel,
linux-renesas-soc, Chris Paterson, Biju Das
On Mon, Oct 23, 2017 at 06:09:21PM +0100, Fabrizio Castro wrote:
> This series brings under the same roof a few patches that needed a v2
> and that are related to either r8a7745 or iwg22d, with the goal of making
> the merge process as smooth as possible.
>
> Patches [1-4] define a new DT architecture for the iW-RainboW-G22D SODIMM
> Development Platform to include the configuration with the HDMI daughter
> board and to define the serial interfaces.
>
> Patches [5-8] add USB function support to the r8a7745 SoC and to the
> iwg22d board. The patches providing the definition of compatible strings:
> * "renesas,r8a7745-usb-dmac", and
> * "renesas,usbhs-r8a7745"
> (on which these USB patches depend on) have been accepted by the
> respective maintainers already, but it will take a little bit for the
> definitions to appear on a renesas-devel tag. For reference:
> https://patchwork.kernel.org/patch/9990063/
> https://patchwork.kernel.org/patch/9987411/
> https://patchwork.kernel.org/patch/9990113/
>
> Patch 9 adds IIC cores to the r8a7745 SoC.
>
> The patches of this series apply smoothly on top of tag:
> "renesas-devel-20171018-v4.14-rc5".
Thanks, applied.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-10-29 15:12 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23 17:09 [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 3/9] ARM: dts: iwg22d-sodimm-dbhd-ca: Add device tree for HDMI DB Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 4/9] ARM: dts: iwg22d-sodimm: sort dt nodes Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 5/9] ARM: dts: r8a7745: Add HS-USB device node Fabrizio Castro
[not found] ` <1508778570-28795-1-git-send-email-fabrizio.castro-kTT6dE0pTRh9uiUsa/gSgQ@public.gmane.org>
2017-10-23 17:09 ` [PATCH v2 1/9] ARM: dts: iwg22d: Use /dev/ttySC3 as debug console Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 2/9] ARM: dts: iwg22d: Add /dev/ttySC5 support Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 6/9] ARM: dts: r8a7745: Add USB-DMAC device nodes Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 7/9] ARM: dts: r8a7745: Enable DMA for HSUSB Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 9/9] ARM: dts: r8a7745: Add IIC cores to dtsi Fabrizio Castro
2017-10-23 17:09 ` [PATCH v2 8/9] ARM: dts: iwg22d-sodimm: Enable HS-USB Fabrizio Castro
2017-10-29 15:12 ` [PATCH v2 0/9] r8a7745/iwg22d DT rework + serial + HS-USB + IIC Simon Horman
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).