Renesas ARM64 Based SoC DT Updates for v4.15
Subsystems (3)
Hi Olof, Hi Kevin, Hi Arnd,
Please consider these Renesas ARM64 based SoC DT updates for v4.15.
The following changes since commit 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e:
Linux 4.14-rc1 (2017-09-16 15:47:51 -0700)
are available in the git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-arm64-dt-for-v4.15
for you to fetch changes up to 2affee619d48d101831e83e74cadeb7c5200d9cb:
arm64: dts: renesas: r8a7796: add USB3.0 peripheral device node (2017-09-25 09:09:51 +0200)
----------------------------------------------------------------
Renesas ARM64 Based SoC DT Updates for v4.15
* r8a7795 (H3)
- Use r8a7795-cpg-mssr and r8a7795-sysc bindings
Hardcoded indicies are replaced with symbols now that they are available
- Drop bogus HDMI node name suffixes
Laurent Pinchart says: Node names should not use numerical suffixes if the nodes can be distinguished by unit-address
- Update PFC node name to pin-controller
Shimoda-san says the PFC node name is changed "from e6060000.pfc and pfc at e6060000 to e6060000.pin-controller and pin-controller at e6060000 like other Renesas SoCs."
* r8a7795 (H3) ES1.0
- Drop extra zero from XHCI unit address
This corrects a typo were ee0400000 rather than ee040000 was used as the unit address.
* r8a7796 (M3-W)
- Add FDP1 instance
Laurent Pinchart says: The r8a7796 has a single FDP1 instance.
* r8a7795 (H3) and r8a7796 (M3-W) SoCs
- Add USB3.0 peripheral device nodes
Shimoda-san says that this is not enabled on the Salvator-X/XS boards for now as:
+ we need a special cable (USB type-A to A cross cable).
+ we can swap the role by renesas_usb3 driver even if we use a normal cable and after usb3.0 host is running, but I think it's a special use case.
* r8a7795 (H3) and r8a7796 (M3-W) ULCB boards
- Enable display output
Laurent Pinchart says: The DU is already wired up to the HDMI encoder, all we need to do is enable it.
* r8a77995 (D3) Draak board
- Enable EthernetAVB and , USB2.0 Host and PHY
- Add serial console pins.
This is safe to do now that r8a77995 PFC driver support is present
* r8a77970 (V3M)
- Add basic support for SoC and EtherAVB, [H]SCIF and SYS-DMAC nodes This is a step towards enabling EtherAVB and [H]SCIF with SYS-DMAC in the Eagle board support for which is under review
----------------------------------------------------------------
Geert Uytterhoeven (6):
arm64: dts: renesas: r8a7795-es1: Drop extra zero from usb unit address
arm64: dts: renesas: r8a7795: Drop bogus HDMI node names suffixes
arm64: renesas: Add Renesas R8A77970 Kconfig support
arm64: dts: renesas: r8a77995: Use r8a7795-sysc binding definitions
arm64: dts: renesas: r8a77995: Use r8a7795-cpg-mssr binding definitions
arm64: dts: draak: Add serial console pins
Laurent Pinchart (2):
arm64: dts: renesas: r8a7796: Add FDP1 instance
arm64: dts: renesas: ulcb: Enable display output
Sergei Shtylyov (4):
arm64: dts: renesas: initial R8A77970 SoC device tree
arm64: dts: renesas: r8a77970: add SYS-DMAC support
arm64: dts: renesas: r8a77970: add [H]SCIF support
arm64: dts: renesas: r8a77970: add EtherAVB support
Yoshihiro Shimoda (10):
arm64: dts: renesas: r8a77995: update PFC node name to pin-controller
arm64: dts: renesas: r8a77995: add GPIO device nodes
arm64: dts: renesas: r8a77995: Add EthernetAVB device node
arm64: dts: renesas: r8a77995: Add USB2.0 PHY device node
arm64: dts: renesas: r8a77995: add USB2.0 Host (EHCI/OHCI) device node
arm64: dts: renesas: r8a77995: draak: enable USB2.0 PHY
arm64: dts: renesas: r8a77995: draak: enable USB2.0 Host (EHCI/OHCI)
arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
arm64: dts: renesas: r8a7795: add USB3.0 peripheral device node
arm64: dts: renesas: r8a7796: add USB3.0 peripheral device node
arch/arm64/Kconfig.platforms | 6 + arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi | 2 +- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 15 +- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 21 ++ arch/arm64/boot/dts/renesas/r8a77970.dtsi | 366 +++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 55 ++++ arch/arm64/boot/dts/renesas/r8a77995.dtsi | 211 +++++++++++++- arch/arm64/boot/dts/renesas/ulcb.dtsi | 4 + 8 files changed, 669 insertions(+), 11 deletions(-) create mode 100644 arch/arm64/boot/dts/renesas/r8a77970.dtsi
PATCH 1/22 arm64: dts: renesas: r8a7795-es1: Drop extra zero from usb unit address
From: Geert Uytterhoeven <[email protected]>
With W=1:
arch/arm64/boot/dts/renesas/r8a7795-es1-salvator-x.dtb: Warning (simple_bus_reg): Node /soc/usb at ee0400000 simple-bus unit address format error, expected "ee040000"
arch/arm64/boot/dts/renesas/r8a7795-es1-h3ulcb.dtb: Warning (simple_bus_reg): Node /soc/usb at ee0400000 simple-bus unit address format error, expected "ee040000"--- arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795-es1.dtsi +1 -1
@@ -11,7 +11,7 @@ #include "r8a7795.dtsi" &soc { - xhci1: usb at ee0400000 { + xhci1: usb at ee040000 { compatible = "renesas,xhci-r8a7795", "renesas,rcar-gen3-xhci"; reg = <0 0xee040000 0 0xc00>; interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.1.4
PATCH 2/22 arm64: dts: renesas: r8a7796: Add FDP1 instance
In reply to Simon HormanFrom: Laurent Pinchart <[email protected]>
The r8a7796 has a single FDP1 instance.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +10 -0
@@ -1659,6 +1659,16 @@ /* placeholder */ }; + fdp1 at fe940000 { + compatible = "renesas,fdp1"; + reg = <0 0xfe940000 0 0x2400>; + interrupts = <GIC_SPI 262 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 119>; + power-domains = <&sysc R8A7796_PD_A3VC>; + resets = <&cpg 119>; + renesas,fcp = <&fcpf0>; + }; + fcpf0: fcp at fe950000 { compatible = "renesas,fcpf"; reg = <0 0xfe950000 0 0x200>;
Signature · 1 line
2.1.4
PATCH 3/22 arm64: dts: renesas: r8a77995: update PFC node name to pin-controller
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch changes the name from from e6060000.pfc and pfc at e6060000 to e6060000.pin-controller and pin-controller at e6060000 like other Renesas SoCs.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +1 -1
@@ -122,7 +122,7 @@ reg = <0 0xe6160000 0 0x0200>; }; - pfc: pfc at e6060000 { + pfc: pin-controller at e6060000 { compatible = "renesas,pfc-r8a77995"; reg = <0 0xe6060000 0 0x508>; };
Signature · 1 line
2.1.4
PATCH 4/22 arm64: dts: renesas: ulcb: Enable display output
In reply to Simon HormanFrom: Laurent Pinchart <[email protected]>
The DU is already wired up to the HDMI encoder, all we need to do is enable it.
--- arch/arm64/boot/dts/renesas/ulcb.dtsi | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/renesas/ulcb.dtsi +4 -0
@@ -157,6 +157,10 @@ }; }; +&du { + status = "okay"; +}; + &ehci1 { status = "okay"; };
Signature · 1 line
2.1.4
PATCH 5/22 arm64: dts: renesas: r8a7795: Drop bogus HDMI node names suffixes
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Node names should not use numerical suffixes if the nodes can be distinguished by unit-address.
--- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -2
@@ -2014,7 +2014,7 @@ renesas,fcp = <&fcpf1>; }; - hdmi0: hdmi0 at fead0000 { + hdmi0: hdmi at fead0000 { compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi"; reg = <0 0xfead0000 0 0x10000>; interrupts = <GIC_SPI 389 IRQ_TYPE_LEVEL_HIGH>;
@@ -2039,7 +2039,7 @@ }; }; - hdmi1: hdmi1 at feae0000 { + hdmi1: hdmi at feae0000 { compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi"; reg = <0 0xfeae0000 0 0x10000>; interrupts = <GIC_SPI 436 IRQ_TYPE_LEVEL_HIGH>;
Signature · 1 line
2.1.4
PATCH 6/22 arm64: renesas: Add Renesas R8A77970 Kconfig support
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Add a configuration option for the R-Car V3M SoC.
--- arch/arm64/Kconfig.platforms | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64/Kconfig.platforms +6 -0
@@ -184,6 +184,12 @@ config ARCH_R8A7796 help This enables support for the Renesas R-Car M3-W SoC. +config ARCH_R8A77970 + bool "Renesas R-Car V3M SoC Platform" + depends on ARCH_RENESAS + help + This enables support for the Renesas R-Car V3M SoC. + config ARCH_R8A77995 bool "Renesas R-Car D3 SoC Platform" depends on ARCH_RENESAS
Signature · 1 line
2.1.4
PATCH 7/22 arm64: dts: renesas: r8a77995: Use r8a7795-sysc binding definitions
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Replace the hardcoded power domain indices by R8A77995_PD_* symbols.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +6 -5
@@ -11,6 +11,7 @@ #include <dt-bindings/clock/renesas-cpg-mssr.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/power/r8a77995-sysc.h> / { compatible = "renesas,r8a77995";
@@ -30,14 +31,14 @@ compatible = "arm,cortex-a53", "arm,armv8"; reg = <0x0>; device_type = "cpu"; - power-domains = <&sysc 5>; + power-domains = <&sysc R8A77995_PD_CA53_CPU0>; next-level-cache = <&L2_CA53>; enable-method = "psci"; }; L2_CA53: cache-controller-1 { compatible = "cache"; - power-domains = <&sysc 21>; + power-domains = <&sysc R8A77995_PD_CA53_SCU>; cache-unified; cache-level = <2>; };
@@ -76,7 +77,7 @@ (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; clocks = <&cpg CPG_MOD 408>; clock-names = "clk"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; resets = <&cpg 408>; };
@@ -97,7 +98,7 @@ "renesas,rcar-gen3-wdt"; reg = <0 0xe6020000 0 0x0c>; clocks = <&cpg CPG_MOD 402>; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; resets = <&cpg 402>; status = "disabled"; };
@@ -147,7 +148,7 @@ <&cpg CPG_CORE 16>, <&scif_clk>; clock-names = "fck", "brg_int", "scif_clk"; - power-domains = <&sysc 32>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; resets = <&cpg 310>; status = "disabled"; };
Signature · 1 line
2.1.4
PATCH 8/22 arm64: dts: renesas: r8a77995: Use r8a7795-cpg-mssr binding definitions
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Replace the hardcoded clock indices by R8A77995_CLK_* symbols.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +2 -2
@@ -9,7 +9,7 @@ * kind, whether express or implied. */ -#include <dt-bindings/clock/renesas-cpg-mssr.h> +#include <dt-bindings/clock/r8a77995-cpg-mssr.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/power/r8a77995-sysc.h>
@@ -145,7 +145,7 @@ reg = <0 0xe6e88000 0 64>; interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 310>, - <&cpg CPG_CORE 16>, + <&cpg CPG_CORE R8A77995_CLK_S3D1C>, <&scif_clk>; clock-names = "fck", "brg_int", "scif_clk"; power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
Signature · 1 line
2.1.4
PATCH 9/22 arm64: dts: renesas: r8a77995: add GPIO device nodes
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds GPIO device nodes for r8a77995.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 112 ++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +112 -0
@@ -139,6 +139,118 @@ #power-domain-cells = <1>; }; + gpio0: gpio at e6050000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6050000 0 0x50>; + interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 0 9>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 912>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 912>; + }; + + gpio1: gpio at e6051000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6051000 0 0x50>; + interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 32 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 911>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 911>; + }; + + gpio2: gpio at e6052000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6052000 0 0x50>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 64 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 910>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 910>; + }; + + gpio3: gpio at e6053000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6053000 0 0x50>; + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 96 10>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 909>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 909>; + }; + + gpio4: gpio at e6054000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6054000 0 0x50>; + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 128 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 908>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 908>; + }; + + gpio5: gpio at e6055000 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6055000 0 0x50>; + interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 160 21>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 907>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 907>; + }; + + gpio6: gpio at e6055400 { + compatible = "renesas,gpio-r8a77995", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6055400 0 0x50>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 192 14>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 906>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 906>; + }; + scif2: serial at e6e88000 { compatible = "renesas,scif-r8a77995", "renesas,rcar-gen3-scif", "renesas,scif";
Signature · 1 line
2.1.4
PATCH 10/22 arm64: dts: renesas: r8a77995: Add EthernetAVB device node
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds EthernetAVB device node for r8a77995.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +45 -0
@@ -251,6 +251,51 @@ resets = <&cpg 906>; }; + avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a77995", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15", + "ch16", "ch17", "ch18", "ch19", + "ch20", "ch21", "ch22", "ch23", + "ch24"; + clocks = <&cpg CPG_MOD 812>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 812>; + phy-mode = "rgmii-txid"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + scif2: serial at e6e88000 { compatible = "renesas,scif-r8a77995", "renesas,rcar-gen3-scif", "renesas,scif";
Signature · 1 line
2.1.4
PATCH 11/22 arm64: dts: renesas: initial R8A77970 SoC device tree
In reply to Simon HormanFrom: Sergei Shtylyov <[email protected]>
The initial R8A77970 SoC device tree including Cortex-A53 CPU, GIC, timer, CPG, RST, and SYSC.
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 125 ++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77970.dtsi
arch/arm64/boot/dts/renesas/r8a77970.dtsi new file +125 -0
@@ -0,0 +1,125 @@ +/* + * Device Tree Source for the r8a77970 SoC + * + * Copyright (C) 2016-2017 Renesas Electronics Corp. + * Copyright (C) 2017 Cogent Embedded, Inc. + * + * 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 <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/renesas-cpg-mssr.h> + +/ { + compatible = "renesas,r8a77970"; + #address-cells = <2>; + #size-cells = <2>; + + psci { + compatible = "arm,psci-1.0", "arm,psci-0.2"; + method = "smc"; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + a53_0: cpu at 0 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0>; + clocks = <&cpg CPG_CORE 0>; + power-domains = <&sysc 5>; + next-level-cache = <&L2_CA53>; + enable-method = "psci"; + }; + + L2_CA53: cache-controller { + compatible = "cache"; + power-domains = <&sysc 21>; + cache-unified; + cache-level = <2>; + }; + }; + + extal_clk: extal { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board */ + clock-frequency = <0>; + }; + + extalr_clk: extalr { + compatible = "fixed-clock"; + #clock-cells = <0>; + /* This value must be overridden by the board */ + clock-frequency = <0>; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&gic>; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gic: interrupt-controller at f1010000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0 0xf1010000 0 0x1000>, + <0 0xf1020000 0 0x20000>, + <0 0xf1040000 0 0x20000>, + <0 0xf1060000 0 0x20000>; + interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_HIGH)>; + clocks = <&cpg CPG_MOD 408>; + clock-names = "clk"; + power-domains = <&sysc 32>; + resets = <&cpg 408>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>, + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | + IRQ_TYPE_LEVEL_LOW)>; + }; + + cpg: clock-controller at e6150000 { + compatible = "renesas,r8a77970-cpg-mssr"; + reg = <0 0xe6150000 0 0x1000>; + clocks = <&extal_clk>, <&extalr_clk>; + clock-names = "extal", "extalr"; + #clock-cells = <2>; + #power-domain-cells = <0>; + #reset-cells = <1>; + }; + + rst: reset-controller at e6160000 { + compatible = "renesas,r8a77970-rst"; + reg = <0 0xe6160000 0 0x200>; + }; + + sysc: system-controller at e6180000 { + compatible = "renesas,r8a77970-sysc"; + reg = <0 0xe6180000 0 0x440>; + #power-domain-cells = <1>; + }; + + prr: chipid at fff00044 { + compatible = "renesas,prr"; + reg = <0 0xfff00044 0 4>; + }; + }; +};
Signature · 1 line
2.1.4
PATCH 12/22 arm64: dts: renesas: r8a77970: add SYS-DMAC support
In reply to Simon HormanFrom: Sergei Shtylyov <[email protected]>
Describe SYS-DMAC1/2 in the R8A77970 device tree.
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 48 +++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +48 -0
@@ -121,5 +121,53 @@ compatible = "renesas,prr"; reg = <0 0xfff00044 0 4>; }; + + dmac1: dma-controller at e7300000 { + compatible = "renesas,dmac-r8a77970", + "renesas,rcar-dmac"; + reg = <0 0xe7300000 0 0x10000>; + interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7"; + clocks = <&cpg CPG_MOD 218>; + clock-names = "fck"; + power-domains = <&sysc 32>; + resets = <&cpg 218>; + #dma-cells = <1>; + dma-channels = <8>; + }; + + dmac2: dma-controller at e7310000 { + compatible = "renesas,dmac-r8a77970", + "renesas,rcar-dmac"; + reg = <0 0xe7310000 0 0x10000>; + interrupts = <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 312 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 315 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 317 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH + GIC_SPI 319 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7"; + clocks = <&cpg CPG_MOD 217>; + clock-names = "fck"; + power-domains = <&sysc 32>; + resets = <&cpg 217>; + #dma-cells = <1>; + dma-channels = <8>; + }; }; };
Signature · 1 line
2.1.4
PATCH 13/22 arm64: dts: renesas: r8a77970: add [H]SCIF support
In reply to Simon HormanFrom: Sergei Shtylyov <[email protected]>
Describe [H]SCIF ports in the R8A77970 device tree.
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 149 ++++++++++++++++++++++++++++++ 1 file changed, 149 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +149 -0
@@ -59,6 +59,13 @@ clock-frequency = <0>; }; + /* External SCIF clock - to be overridden by boards that provide it */ + scif_clk: scif { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + soc { compatible = "simple-bus"; interrupt-parent = <&gic>;
@@ -169,5 +176,147 @@ #dma-cells = <1>; dma-channels = <8>; }; + + hscif0: serial at e6540000 { + compatible = "renesas,hscif-r8a77970", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6540000 0 96>; + interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 520>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x31>, <&dmac1 0x30>, + <&dmac2 0x31>, <&dmac2 0x30>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 520>; + status = "disabled"; + }; + + hscif1: serial at e6550000 { + compatible = "renesas,hscif-r8a77970", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6550000 0 96>; + interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 519>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x33>, <&dmac1 0x32>, + <&dmac2 0x33>, <&dmac2 0x32>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 519>; + status = "disabled"; + }; + + hscif2: serial at e6560000 { + compatible = "renesas,hscif-r8a77970", + "renesas,rcar-gen3-hscif", + "renesas,hscif"; + reg = <0 0xe6560000 0 96>; + interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 518>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x35>, <&dmac1 0x34>, + <&dmac2 0x35>, <&dmac2 0x34>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 518>; + status = "disabled"; + }; + + hscif3: serial at e66a0000 { + compatible = "renesas,hscif-r8a77970", + "renesas,rcar-gen3-hscif", "renesas,hscif"; + reg = <0 0xe66a0000 0 96>; + interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 517>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x37>, <&dmac1 0x36>, + <&dmac2 0x37>, <&dmac2 0x36>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 517>; + status = "disabled"; + }; + + scif0: serial at e6e60000 { + compatible = "renesas,scif-r8a77970", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6e60000 0 64>; + interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 207>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x51>, <&dmac1 0x50>, + <&dmac2 0x51>, <&dmac2 0x50>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 207>; + status = "disabled"; + }; + + scif1: serial at e6e68000 { + compatible = "renesas,scif-r8a77970", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6e68000 0 64>; + interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 206>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x53>, <&dmac1 0x52>, + <&dmac2 0x53>, <&dmac2 0x52>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 206>; + status = "disabled"; + }; + + scif3: serial at e6c50000 { + compatible = "renesas,scif-r8a77970", + "renesas,rcar-gen3-scif", + "renesas,scif"; + reg = <0 0xe6c50000 0 64>; + interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 204>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x57>, <&dmac1 0x56>, + <&dmac2 0x57>, <&dmac2 0x56>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 204>; + status = "disabled"; + }; + + scif4: serial at e6c40000 { + compatible = "renesas,scif-r8a77970", + "renesas,rcar-gen3-scif", "renesas,scif"; + reg = <0 0xe6c40000 0 64>; + interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 203>, + <&cpg CPG_CORE 9>, + <&scif_clk>; + clock-names = "fck", "brg_int", "scif_clk"; + dmas = <&dmac1 0x59>, <&dmac1 0x58>, + <&dmac2 0x59>, <&dmac2 0x58>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc 32>; + resets = <&cpg 203>; + status = "disabled"; + }; }; };
Signature · 1 line
2.1.4
PATCH 14/22 arm64: dts: renesas: r8a77970: add EtherAVB support
In reply to Simon HormanFrom: Sergei Shtylyov <[email protected]>
Define the generic R8A77970 part of the EtherAVB device node.
Based on the original (and large) patch by Daisuke Matsushita <[email protected]>.
--- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm64/boot/dts/renesas/r8a77970.dtsi +44 -0
@@ -318,5 +318,49 @@ resets = <&cpg 203>; status = "disabled"; }; + + avb: ethernet at e6800000 { + compatible = "renesas,etheravb-r8a77970", + "renesas,etheravb-rcar-gen3"; + reg = <0 0xe6800000 0 0x800>, <0 0xe6a00000 0 0x10000>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15", + "ch16", "ch17", "ch18", "ch19", + "ch20", "ch21", "ch22", "ch23", + "ch24"; + clocks = <&cpg CPG_MOD 812>; + power-domains = <&sysc 32>; + resets = <&cpg 812>; + phy-mode = "rgmii-id"; + #address-cells = <1>; + #size-cells = <0>; + }; }; };
Signature · 1 line
2.1.4
PATCH 15/22 arm64: dts: draak: Add serial console pins
In reply to Simon HormanFrom: Geert Uytterhoeven <[email protected]>
Add pin control for SCIF2.
--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +11 -0
@@ -36,7 +36,18 @@ clock-frequency = <48000000>; }; +&pfc { + scif2_pins: scif2 { + groups = "scif2_data"; + function = "scif2"; + }; + +}; + &scif2 { + pinctrl-0 = <&scif2_pins>; + pinctrl-names = "default"; + status = "okay"; };
Signature · 1 line
2.1.4
PATCH 16/22 arm64: dts: renesas: r8a77995: Add USB2.0 PHY device node
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds USB2.0 PHY device node for r8a77995.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +12 -0
@@ -309,5 +309,17 @@ resets = <&cpg 310>; status = "disabled"; }; + + usb2_phy0: usb-phy at ee080200 { + compatible = "renesas,usb2-phy-r8a77995", + "renesas,rcar-gen3-usb2-phy"; + reg = <0 0xee080200 0 0x700>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 703>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 703>; + #phy-cells = <0>; + status = "disabled"; + }; }; };
Signature · 1 line
2.1.4
PATCH 17/22 arm64: dts: renesas: r8a77995: add USB2.0 Host (EHCI/OHCI) device node
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds USB2.0 Host (EHCI/OHCI) device node for r8a77995.
--- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995.dtsi +25 -0
@@ -310,6 +310,31 @@ status = "disabled"; }; + ehci0: usb at ee080100 { + compatible = "generic-ehci"; + reg = <0 0xee080100 0 0x100>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 703>; + phys = <&usb2_phy0>; + phy-names = "usb"; + companion = <&ohci0>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 703>; + status = "disabled"; + }; + + ohci0: usb at ee080000 { + compatible = "generic-ohci"; + reg = <0 0xee080000 0 0x100>; + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 703>; + phys = <&usb2_phy0>; + phy-names = "usb"; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 703>; + status = "disabled"; + }; + usb2_phy0: usb-phy at ee080200 { compatible = "renesas,usb2-phy-r8a77995", "renesas,rcar-gen3-usb2-phy";
Signature · 1 line
2.1.4
PATCH 18/22 arm64: dts: renesas: r8a77995: draak: enable USB2.0 PHY
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch enables USB2.0 PHY for R-Car D3 draak board.
--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +11 -0
@@ -42,6 +42,10 @@ function = "scif2"; }; + usb0_pins: usb0 { + groups = "usb0"; + function = "usb0"; + }; }; &scif2 {
@@ -51,6 +55,13 @@ status = "okay"; }; +&usb2_phy0 { + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + &rwdt { timeout-sec = <60>; status = "okay";
Signature · 1 line
2.1.4
PATCH 19/22 arm64: dts: renesas: r8a77995: draak: enable USB2.0 Host (EHCI/OHCI)
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch enables USB2.0 Host (EHCI/OHCI) for r8a77995.
--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +8 -0
@@ -48,6 +48,14 @@ }; }; +&ehci0 { + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";
Signature · 1 line
2.1.4
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +25 -0
@@ -11,6 +11,7 @@ /dts-v1/; #include "r8a77995.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Renesas Draak board based on r8a77995";
@@ -18,6 +19,7 @@ aliases { serial0 = &scif2; + ethernet0 = &avb; }; chosen {
@@ -37,6 +39,14 @@ }; &pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc", + "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2";
@@ -56,6 +66,21 @@ status = "okay"; }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 { + rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";
Signature · 1 line
2.1.4
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
Hello!
Quoted 15 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0
[...]
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 44
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0@@ -37,6 +39,14 @@ }; &pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",
^^^^^^^^^^^^^^
Hum, I don't think it's compatible with routing the PHY interrupt viaGPIO5_19 below. The driver doesn't support signalling via AVB_PHY_INT anyway.
Quoted 20 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +13
-0+ "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2";@@ -56,6 +66,21 @@ status = "okay"; }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 {
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 86
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +7
-0+ rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";
MBR, Sergei
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
Hello,
Quoted 27 lines
-----Original Message-----
From: Sergei Shtylyov
Sent: Saturday, September 30, 2017 7:24 PMHello!
Quoted 15 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0[...]
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0@@ -37,6 +39,14 @@ };
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 44
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0&pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",^^^^^^^^^^^^^^
Hum, I don't think it's compatible with routing the PHY interrupt viaGPIO5_19below. The driver doesn't support signalling viaAVB_PHY_INTanyway.
Oops! You're correct. I should drop "avb0_phy_int".
Simon-san, may I send a follow-up patch to fix this?
Best regards,
Yoshihiro Shimoda
Quoted 32 lines
Quoted 20 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +13
-0+ "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2";@@ -56,6 +66,21 @@ status = "okay"; }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 {arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 86
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +7
-0+ rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";MBR, Sergei
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
Quoted 37 lines · Yoshihiro Shimoda
Hello,
Quoted 27 lines
-----Original Message-----
From: Sergei Shtylyov
Sent: Saturday, September 30, 2017 7:24 PMHello!
Quoted 15 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0[...]
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0@@ -37,6 +39,14 @@ };Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 44
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0&pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",^^^^^^^^^^^^^^
Hum, I don't think it's compatible with routing the PHY interrupt viaGPIO5_19below. The driver doesn't support signalling viaAVB_PHY_INTanyway.
Quoted 3 lines
Oops! You're correct. I should drop "
avb0_phy_int".Simon-san, may I send a follow-up patch to fix this?
Thanks Sergei, thanks Shimoda-san,
yes, please provide a follow-up patch.
At this stage I don't think we need to re-spin this pull-request to fix this, rather a follow-up patch can be included in a follow-up pull request.
Quoted 36 lines
Best regards,
Yoshihiro ShimodaQuoted 32 lines
Quoted 20 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +13
-0+ "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2";@@ -56,6 +66,21 @@ status = "okay"; }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 {arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 86
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +7
-0+ rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";MBR, Sergei
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
Hi Simon-san,
Quoted 46 lines
-----Original Message-----
From: Simon Horman
Sent: Monday, October 2, 2017 4:15 PMQuoted 37 lines · Yoshihiro Shimoda
Hello,
Quoted 27 lines
-----Original Message-----
From: Sergei Shtylyov
Sent: Saturday, September 30, 2017 7:24 PMHello!
Quoted 15 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0[...]
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0@@ -37,6 +39,14 @@ };Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 44
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0&pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",^^^^^^^^^^^^^^
Hum, I don't think it's compatible with routing the PHY interrupt viaGPIO5_19below. The driver doesn't support signalling viaAVB_PHY_INTanyway.Quoted 3 lines
Oops! You're correct. I should drop "
avb0_phy_int".Simon-san, may I send a follow-up patch to fix this?
Quoted 7 lines
Thanks Sergei, thanks Shimoda-san,
yes, please provide a follow-up patch.
At this stage I don't think we need to re-spin this pull-request to fix this, rather a follow-up patch can be included in a follow-up pull request.
I got it. I will send it. Also, should I send salvator-common and ulcb patches about Geert-san's comment (These dtsi files also enable "avb_phy_int" for now)?
Best regards,
Yoshihiro Shimoda
Quoted 36 lines
Quoted 36 lines
Best regards,
Yoshihiro ShimodaQuoted 32 lines
Quoted 20 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +13
-0+ "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2";@@ -56,6 +66,21 @@ status = "okay"; }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy at 0 {arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 86
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +7
-0+ rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";MBR, Sergei
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
Quoted 50 lines · Yoshihiro Shimoda
Hi Simon-san,
Quoted 48 lines
-----Original Message-----
From: Simon Horman
Sent: Monday, October 2, 2017 4:15 PMQuoted 37 lines · Yoshihiro Shimoda
Hello,
Quoted 27 lines
-----Original Message-----
From: Sergei Shtylyov
Sent: Saturday, September 30, 2017 7:24 PMHello!
Quoted 15 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0[...]
Quoted 3 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0@@ -37,6 +39,14 @@ };Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 44
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0&pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",^^^^^^^^^^^^^^
Hum, I don't think it's compatible with routing the PHY interrupt viaGPIO5_19below. The driver doesn't support signalling viaAVB_PHY_INTanyway.Quoted 3 lines
Oops! You're correct. I should drop "
avb0_phy_int".Simon-san, may I send a follow-up patch to fix this?
Thanks Sergei, thanks Shimoda-san,
Quoted 8 lines
Quoted 5 lines
yes, please provide a follow-up patch.
At this stage I don't think we need to re-spin this pull-request to fix this, rather a follow-up patch can be included in a follow-up pull request.
I got it. I will send it. Also, should I send salvator-common and ulcb patches about Geert-san's comment (These dtsi files also enable "
avb_phy_int" for now)?
Hi Shimoda-san,
yes, I think that would be best.
Please include Fixes tags.
PATCH 20/22 arm64: dts: renesas: r8a77995: draak: enable EthernetAVB
In reply to Sergei ShtylyovHi Sergei,
Quoted 22 lines · Sergei Shtylyov
Quoted 10 lines · Simon Horman
From: Yoshihiro Shimoda <[email protected]>
This patch enables EthernetAVB for R-Car D3 draak board.
Signed-off-by Yoshihiro Shimoda <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Signed-off-by Simon Horman <[email protected]>arch/arm64/boot/dts/renesas/r8a77995-draak.dts +0
-0[...]
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 43
Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +3
-0@@ -37,6 +39,14 @@ }; &pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc",^^^^^^^^^^^^^^
Quoted 3 lines
Hum, I don't think it's compatible with routing the PHY interrupt via
GPIO5_19below. The driver doesn't support signalling viaAVB_PHY_INTanyway.
Seems we have the same issue in arch/arm64/boot/dts/renesas/ulcb.dtsi and arch/arm64/boot/dts/renesas/salvator-common.dtsi?
Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts line 82
Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a77995-draak.dts +7
-0+&avb { + phy0: ethernet-phy at 0 { + rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +};
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 21/22 arm64: dts: renesas: r8a7795: add USB3.0 peripheral device node
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds USB3.0 peripheral channel 0 device node for r8a7795.
--- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +11 -0
@@ -1471,6 +1471,17 @@ status = "disabled"; }; + usb3_peri0: usb at ee020000 { + compatible = "renesas,r8a7795-usb3-peri", + "renesas,rcar-gen3-usb3-peri"; + reg = <0 0xee020000 0 0x400>; + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 328>; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; + resets = <&cpg 328>; + status = "disabled"; + }; + usb_dmac0: dma-controller at e65a0000 { compatible = "renesas,r8a7795-usb-dmac", "renesas,usb-dmac";
Signature · 1 line
2.1.4
PATCH 22/22 arm64: dts: renesas: r8a7796: add USB3.0 peripheral device node
In reply to Simon HormanFrom: Yoshihiro Shimoda <[email protected]>
This patch adds USB3.0 peripheral channel 0 device node for r8a7796.
--- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/renesas/r8a7796.dtsi +11 -0
@@ -1279,6 +1279,17 @@ status = "disabled"; }; + usb3_peri0: usb at ee020000 { + compatible = "renesas,r8a7796-usb3-peri", + "renesas,rcar-gen3-usb3-peri"; + reg = <0 0xee020000 0 0x400>; + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 328>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + resets = <&cpg 328>; + status = "disabled"; + }; + ohci0: usb at ee080000 { compatible = "generic-ohci"; reg = <0 0xee080000 0 0x100>;
Signature · 1 line
2.1.4
Quoted 42 lines · Simon Horman
----------------------------------------------------------------
Renesas ARM64 Based SoC DT Updates for v4.15* r8a7795 (H3)
- Use r8a7795-cpg-mssr and r8a7795-sysc bindings
Hardcoded indicies are replaced with symbols now that they are available- Drop bogus HDMI node name suffixes
Laurent Pinchart says: Node names should not use numerical suffixes if the nodes can be distinguished by unit-address- Update PFC node name to pin-controller
Shimoda-san says the PFC node name is changed "from e6060000.pfc and pfc ate6060000to e6060000.pin-controller and pin-controller ate6060000like other Renesas SoCs."* r8a7795 (H3) ES1.0
- Drop extra zero from XHCI unit address
This corrects a typo wereee0400000rather thanee040000was used as the unit address.* r8a7796 (M3-W)
- Add FDP1 instance
Laurent Pinchart says: The r8a7796 has a single FDP1 instance.* r8a7795 (H3) and r8a7796 (M3-W) SoCs
- Add USB3.0 peripheral device nodes
Shimoda-san says that this is not enabled on the Salvator-X/XS boards for now as:
+ we need a special cable (USB type-A to A cross cable).
+ we can swap the role byrenesas_usb3driver even if we use a normal cable and after usb3.0 host is running, but I think it's a special use case.* r8a7795 (H3) and r8a7796 (M3-W) ULCB boards
- Enable display output
Laurent Pinchart says: The DU is already wired up to the HDMI encoder, all we need to do is enable it.* r8a77995 (D3) Draak board
- Enable EthernetAVB and , USB2.0 Host and PHY
Quoted 7 lines
- Add serial console pins.
This is safe to do now that r8a77995 PFC driver support is present* r8a77970 (V3M)
- Add basic support for SoC and EtherAVB, [H]SCIF and SYS-DMAC nodes This is a step towards enabling EtherAVB and [H]SCIF with SYS-DMAC in the Eagle board support for which is under review
Thanks for the detailed changelog!
Quoted 5 lines
----------------------------------------------------------------
Geert Uytterhoeven (6):
arm64: dts: renesas: r8a7795-es1: Drop extra zero from usb unit address
arm64: dts: renesas: r8a7795: Drop bogus HDMI node names suffixes
arm64: renesas: Add Renesas R8A77970Kconfigsupport
That one last commit doesn't seem to belong in here, but I've pulled it anyway, thanks!
Arnd
Quoted 54 lines · Arnd Bergmann
Quoted 42 lines · Simon Horman
----------------------------------------------------------------
Renesas ARM64 Based SoC DT Updates for v4.15* r8a7795 (H3)
- Use r8a7795-cpg-mssr and r8a7795-sysc bindings
Hardcoded indicies are replaced with symbols now that they are available- Drop bogus HDMI node name suffixes
Laurent Pinchart says: Node names should not use numerical suffixes if the nodes can be distinguished by unit-address- Update PFC node name to pin-controller
Shimoda-san says the PFC node name is changed "from e6060000.pfc and pfc ate6060000to e6060000.pin-controller and pin-controller ate6060000like other Renesas SoCs."* r8a7795 (H3) ES1.0
- Drop extra zero from XHCI unit address
This corrects a typo wereee0400000rather thanee040000was used as the unit address.* r8a7796 (M3-W)
- Add FDP1 instance
Laurent Pinchart says: The r8a7796 has a single FDP1 instance.* r8a7795 (H3) and r8a7796 (M3-W) SoCs
- Add USB3.0 peripheral device nodes
Shimoda-san says that this is not enabled on the Salvator-X/XS boards for now as:
+ we need a special cable (USB type-A to A cross cable).
+ we can swap the role byrenesas_usb3driver even if we use a normal cable and after usb3.0 host is running, but I think it's a special use case.* r8a7795 (H3) and r8a7796 (M3-W) ULCB boards
- Enable display output
Laurent Pinchart says: The DU is already wired up to the HDMI encoder, all we need to do is enable it.* r8a77995 (D3) Draak board
- Enable EthernetAVB and , USB2.0 Host and PHYQuoted 7 lines
- Add serial console pins.
This is safe to do now that r8a77995 PFC driver support is present* r8a77970 (V3M)
- Add basic support for SoC and EtherAVB, [H]SCIF and SYS-DMAC nodes This is a step towards enabling EtherAVB and [H]SCIF with SYS-DMAC in the Eagle board support for which is under reviewThanks for the detailed changelog!
Quoted 8 lines
Quoted 5 lines
----------------------------------------------------------------
Geert Uytterhoeven (6):
arm64: dts: renesas: r8a7795-es1: Drop extra zero from usb unit address
arm64: dts: renesas: r8a7795: Drop bogus HDMI node names suffixes
arm64: renesas: Add Renesas R8A77970KconfigsupportThat one last commit doesn't seem to belong in here, but I've pulled it anyway, thanks!
Thanks! I take it you would have prefered this in an soc branch?
Quoted 7 lines · Simon Horman
Quoted 4 lines · Arnd Bergmann
On Fri, Sep 29, 2017 at 1:52 PM, Simon Horman
That one last commit doesn't seem to belong in here, but I've pulled it anyway, thanks!
Thanks! I take it you would have prefered this in an soc branch?
Yes, correct.
Arnd
Quoted 10 lines · Arnd Bergmann
Quoted 7 lines · Simon Horman
Quoted 4 lines · Arnd Bergmann
On Fri, Sep 29, 2017 at 1:52 PM, Simon Horman
That one last commit doesn't seem to belong in here, but I've pulled it anyway, thanks!
Thanks! I take it you would have prefered this in an soc branch?
Yes, correct.
Understood and noted for next time.