All of lore.kernel.org
 help / color / mirror / Atom feed
From: fabrizio.castro@bp.renesas.com (Fabrizio Castro)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 4.19.y 32/60] arm64: dts: renesas: Initial r8a774a1 SoC device tree
Date: Wed, 28 Aug 2019 12:03:03 +0100	[thread overview]
Message-ID: <1566990211-24785-33-git-send-email-fabrizio.castro@bp.renesas.com> (raw)
In-Reply-To: <1566990211-24785-1-git-send-email-fabrizio.castro@bp.renesas.com>

From: Biju Das <biju.das@bp.renesas.com>

commit 90493b09df41a9c1dd0bf315e81d03b4212384f9 upstream.

Basic support for the RZ/G2M SoC.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
---
 arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 190 ++++++++++++++++++++++++++++++
 1 file changed, 190 insertions(+)
 create mode 100644 arch/arm64/boot/dts/renesas/r8a774a1.dtsi

diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
new file mode 100644
index 0000000..8e63e9a
--- /dev/null
+++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi
@@ -0,0 +1,190 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for the r8a774a1 SoC
+ *
+ * Copyright (C) 2018 Renesas Electronics Corp.
+ */
+
+#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,r8a774a1";
+	#address-cells = <2>;
+	#size-cells = <2>;
+
+	/*
+	 * The external audio clocks are configured as 0 Hz fixed frequency
+	 * clocks by default.
+	 * Boards that provide audio clocks should override them.
+	 */
+	audio_clk_a: audio_clk_a {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_b: audio_clk_b {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	audio_clk_c: audio_clk_c {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	/* External CAN clock - to be overridden by boards that provide it */
+	can_clk: can {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		a57_0: cpu at 0 {
+			compatible = "arm,cortex-a57", "arm,armv8";
+			reg = <0x0>;
+			device_type = "cpu";
+			power-domains = <&sysc 0>;
+			next-level-cache = <&L2_CA57>;
+			enable-method = "psci";
+			clocks =<&cpg CPG_CORE 0>;
+		};
+
+		a57_1: cpu at 1 {
+			compatible = "arm,cortex-a57", "arm,armv8";
+			reg = <0x1>;
+			device_type = "cpu";
+			power-domains = <&sysc 1>;
+			next-level-cache = <&L2_CA57>;
+			enable-method = "psci";
+			clocks =<&cpg CPG_CORE 0>;
+		};
+
+		L2_CA57: cache-controller-0 {
+			compatible = "cache";
+			power-domains = <&sysc 12>;
+			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>;
+	};
+
+	/* External PCIe clock - can be overridden by the board */
+	pcie_bus_clk: pcie_bus {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	pmu_a57 {
+		compatible = "arm,cortex-a57-pmu";
+		interrupts-extended = <&gic GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
+				      <&gic GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-affinity = <&a57_0>, <&a57_1>;
+	};
+
+	psci {
+		compatible = "arm,psci-1.0", "arm,psci-0.2";
+		method = "smc";
+	};
+
+	/* 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>;
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		cpg: clock-controller at e6150000 {
+			compatible = "renesas,r8a774a1-cpg-mssr";
+			reg = <0 0xe6150000 0 0x0bb0>;
+			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,r8a774a1-rst";
+			reg = <0 0xe6160000 0 0x018c>;
+		};
+
+		sysc: system-controller at e6180000 {
+			compatible = "renesas,r8a774a1-sysc";
+			reg = <0 0xe6180000 0 0x0400>;
+			#power-domain-cells = <1>;
+		};
+
+		gic: interrupt-controller at f1010000 {
+			compatible = "arm,gic-400";
+			#interrupt-cells = <3>;
+			#address-cells = <0>;
+			interrupt-controller;
+			reg = <0x0 0xf1010000 0 0x1000>,
+			      <0x0 0xf1020000 0 0x20000>,
+			      <0x0 0xf1040000 0 0x20000>,
+			      <0x0 0xf1060000 0 0x20000>;
+			interrupts = <GIC_PPI 9
+					(GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
+			clocks = <&cpg CPG_MOD 408>;
+			clock-names = "clk";
+			power-domains = <&sysc 32>;
+			resets = <&cpg 408>;
+		};
+
+		prr: chipid at fff00044 {
+			compatible = "renesas,prr";
+			reg = <0 0xfff00044 0 4>;
+		};
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
+				      <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
+				      <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
+				      <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
+	};
+
+	/* External USB clocks - can be overridden by the board */
+	usb3s0_clk: usb3s0 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+
+	usb_extal_clk: usb_extal {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <0>;
+	};
+};
-- 
2.7.4

  parent reply	other threads:[~2019-08-28 11:03 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28 11:02 [cip-dev] [PATCH 4.19.y 00/60] Add basic RZ/G2M SoC support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 01/60] dt-bindings: can: rcar_can: Add r8a774a1 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 02/60] dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 03/60] dt-bindings: can: rcar_can: Add r8a774c0 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 04/60] dt-bindings: rcar-gen3-phy-usb3: Add r8a774a1 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 05/60] dt-bindings: usb-xhci: " Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 06/60] dt-bindings: usb-xhci: Add r8a774c0 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 07/60] dt-bindings: usb: renesas_usbhs: Add r8a774a1 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 08/60] dt-bindings: thermal: rcar-gen3-thermal: " Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 09/60] dt-bindings: dmaengine: usb-dmac: Add binding for r8a774a1 Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 10/60] thermal: rcar_gen3_thermal: Add r8a774a1 support Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 11/60] gpio: rcar: reference device instead of platform device Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 12/60] gpio: rcar: select General Output Register to set output states Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 13/60] gpio: rcar: Pedantic formatting Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 14/60] clk: renesas: cpg-mssr: Use genpd of_node instead of local copy Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 15/60] clk: renesas: cpg-mssr: Remove error messages on out-of-memory conditions Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 16/60] soc: renesas: rcar-sysc: Remove rcar_sysc_power_{down, up}() helpers Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 17/60] soc: renesas: rcar-sysc: Merge PM Domain registration and linking Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 18/60] soc: renesas: rcar-sysc: Fix power domain control after system resume Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 19/60] serial: sh-sci: Fix TX DMA buffer flushing and workqueue races Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 20/60] serial: sh-sci: Terminate TX DMA during buffer flushing Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 21/60] serial: sh-sci: Fix crash in rx_timer_fn() on PIO fallback Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 22/60] serial: sh-sci: Extract sci_dma_rx_chan_invalidate() Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 23/60] serial: sh-sci: Extract sci_dma_rx_reenable_irq() Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 24/60] serial: sh-sci: Fix fallback to PIO in sci_dma_rx_complete() Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 25/60] dmaengine: rcar-dmac: set scatter/gather max segment size Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 26/60] dmaengine: rcar-dmac: Update copyright information Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 27/60] dmaengine: rcar-dmac: Reject zero-length slave DMA requests Fabrizio Castro
2019-08-28 11:02 ` [cip-dev] [PATCH 4.19.y 28/60] spi: sh-msiof: fix deferred probing Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 29/60] ravb: remove tx buffer addr 4byte alilgnment restriction for R-Car Gen3 Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 30/60] ravb: Avoid unsupported internal delay mode for R-Car E3/D3 Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 31/60] mmc: renesas_sdhi_internal_dmac: set scatter/gather max segment size Fabrizio Castro
2019-08-28 11:03 ` Fabrizio Castro [this message]
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 33/60] arm64: dts: renesas: r8a774a1: Add SYS-DMAC controller nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 34/60] arm64: dts: renesas: r8a774a1: Add SCIF and HSCIF nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 35/60] arm64: dts: renesas: r8a774a1: Add INTC-EX device node Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 36/60] arm64: dts: renesas: r8a774a1: Add Ethernet AVB node Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 37/60] arm64: dts: renesas: r8a774a1: Add RWDT node Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 38/60] arm64: dts: renesas: r8a774a1: Add pinctrl device node Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 39/60] arm64: dts: renesas: r8a774a1: Add GPIO device nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 40/60] arm64: dts: renesas: r8a774a1: Add SDHI nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 41/60] arm64: dts: renesas: r8a774a1: Add I2C and IIC-DVFS support Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 42/60] arm64: dts: renesas: r8a774a1: Add RZ/G2M thermal support Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 43/60] arm64: dts: renesas: r8a774a1: Add IPMMU device nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 44/60] arm64: dts: renesas: r8a774a1: Add all MSIOF nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 45/60] arm64: dts: renesas: r8a774a1: Add Cortex-A53 CPU cores Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 46/60] arm64: dts: renesas: r8a774a1: Add PWM device nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 47/60] arm64: dts: renesas: r8a774a1: Add audio support Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 48/60] arm64: dts: renesas: r8a774a1: Add FCPF and FCPV instances Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 49/60] arm64: dts: renesas: r8a774a1: Add USB2.0 phy and host(EHCI/OHCI) device nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 50/60] arm64: dts: renesas: r8a774a1: Add USB-DMAC and HSUSB " Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 51/60] arm64: dts: renesas: r8a774a1: Add USB3.0 " Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 52/60] arm64: dts: renesas: Fix whitespace around assignments Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 53/60] arm64: dts: renesas: Remove unneeded status from thermal nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 54/60] arm64: dts: renesas: r8a774a1: Add CAN nodes Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 55/60] arm64: dts: renesas: r8a774a1: Replace power magic numbers Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 56/60] arm64: dts: renesas: r8a774a1: Replace clock " Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 57/60] arm64: dts: renesas: r8a774a1: Enable DMA for SCIF2 Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 58/60] arm64: dts: renesas: r8a774a1: Fix hsusb reg size Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 59/60] arm64: dts: Remove inconsistent use of 'arm, armv8' compatible string Fabrizio Castro
2019-08-28 11:03 ` [cip-dev] [PATCH 4.19.y 60/60] arm64: dts: renesas: r8a774a1: Add clkp2 clock to CAN nodes Fabrizio Castro
2019-08-28 13:29 ` [cip-dev] [PATCH 4.19.y 00/60] Add basic RZ/G2M SoC support Fabrizio Castro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1566990211-24785-33-git-send-email-fabrizio.castro@bp.renesas.com \
    --to=fabrizio.castro@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.