All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/18] arm64: renesas: r8a7795: Sound SSI PIO support
Date: Fri, 27 Nov 2015 01:55:27 +0000	[thread overview]
Message-ID: <623197b90c7aa97c0626b0aec06f95d05666b3e0.1448587800.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1448587800.git.horms+renesas@verge.net.au>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

This patch adds SSI for PIO sound support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 95 ++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 2cc58114d1ef..15753f4dcf4e 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -52,6 +52,29 @@
 		clock-frequency = <0>;
 	};
 
+	/*
+	 * 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>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
@@ -534,5 +557,77 @@
 			power-domains = <&cpg>;
 			status = "disabled";
 		};
+
+		rcar_sound: sound@ec500000 {
+			/*
+			 * #sound-dai-cells is required
+			 *
+			 * Single DAI : #sound-dai-cells = <0>;	<&rcar_sound>;
+			 * Multi  DAI : #sound-dai-cells = <1>;	<&rcar_sound N>;
+			 */
+			/*
+			 * #clock-cells is required for audio_clkout0/1/2/3
+			 *
+			 * clkout	: #clock-cells = <0>;	<&rcar_sound>;
+			 * clkout0/1/2/3: #clock-cells = <1>;	<&rcar_sound N>;
+			 */
+			compatible =  "renesas,rcar_sound-r8a7795", "renesas,rcar_sound-gen3";
+			reg =	<0 0xec500000 0 0x1000>, /* SCU */
+				<0 0xec5a0000 0 0x100>,  /* ADG */
+				<0 0xec540000 0 0x1000>, /* SSIU */
+				<0 0xec541000 0 0x280>,  /* SSI */
+				<0 0xec740000 0 0x200>;  /* Audio DMAC peri peri*/
+			reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
+
+			clocks = <&cpg CPG_MOD 1005>,
+				 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
+				 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
+				 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
+				 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
+				 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
+				 <&audio_clk_a>, <&audio_clk_b>,
+				 <&audio_clk_c>,
+				 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
+			clock-names = "ssi-all",
+				      "ssi.9", "ssi.8", "ssi.7", "ssi.6",
+				      "ssi.5", "ssi.4", "ssi.3", "ssi.2",
+				      "ssi.1", "ssi.0",
+				      "clk_a", "clk_b", "clk_c", "clk_i";
+			power-domains = <&cpg>;
+			status = "disabled";
+
+			rcar_sound,ssi {
+				ssi0: ssi@0 {
+					interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi1: ssi@1 {
+					 interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi2: ssi@2 {
+					interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi3: ssi@3 {
+					interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi4: ssi@4 {
+					interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi5: ssi@5 {
+					interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi6: ssi@6 {
+					interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi7: ssi@7 {
+					interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi8: ssi@8 {
+					interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi9: ssi@9 {
+					interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
+				};
+			};
+		};
 	};
 };
-- 
2.1.4


WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 10/18] arm64: renesas: r8a7795: Sound SSI PIO support
Date: Fri, 27 Nov 2015 10:55:27 +0900	[thread overview]
Message-ID: <623197b90c7aa97c0626b0aec06f95d05666b3e0.1448587800.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1448587800.git.horms+renesas@verge.net.au>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

This patch adds SSI for PIO sound support

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 95 ++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)

diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
index 2cc58114d1ef..15753f4dcf4e 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
@@ -52,6 +52,29 @@
 		clock-frequency = <0>;
 	};
 
+	/*
+	 * 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>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&gic>;
@@ -534,5 +557,77 @@
 			power-domains = <&cpg>;
 			status = "disabled";
 		};
+
+		rcar_sound: sound at ec500000 {
+			/*
+			 * #sound-dai-cells is required
+			 *
+			 * Single DAI : #sound-dai-cells = <0>;	<&rcar_sound>;
+			 * Multi  DAI : #sound-dai-cells = <1>;	<&rcar_sound N>;
+			 */
+			/*
+			 * #clock-cells is required for audio_clkout0/1/2/3
+			 *
+			 * clkout	: #clock-cells = <0>;	<&rcar_sound>;
+			 * clkout0/1/2/3: #clock-cells = <1>;	<&rcar_sound N>;
+			 */
+			compatible =  "renesas,rcar_sound-r8a7795", "renesas,rcar_sound-gen3";
+			reg =	<0 0xec500000 0 0x1000>, /* SCU */
+				<0 0xec5a0000 0 0x100>,  /* ADG */
+				<0 0xec540000 0 0x1000>, /* SSIU */
+				<0 0xec541000 0 0x280>,  /* SSI */
+				<0 0xec740000 0 0x200>;  /* Audio DMAC peri peri*/
+			reg-names = "scu", "adg", "ssiu", "ssi", "audmapp";
+
+			clocks = <&cpg CPG_MOD 1005>,
+				 <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
+				 <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
+				 <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
+				 <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
+				 <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
+				 <&audio_clk_a>, <&audio_clk_b>,
+				 <&audio_clk_c>,
+				 <&cpg CPG_CORE R8A7795_CLK_S0D4>;
+			clock-names = "ssi-all",
+				      "ssi.9", "ssi.8", "ssi.7", "ssi.6",
+				      "ssi.5", "ssi.4", "ssi.3", "ssi.2",
+				      "ssi.1", "ssi.0",
+				      "clk_a", "clk_b", "clk_c", "clk_i";
+			power-domains = <&cpg>;
+			status = "disabled";
+
+			rcar_sound,ssi {
+				ssi0: ssi at 0 {
+					interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi1: ssi at 1 {
+					 interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi2: ssi at 2 {
+					interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi3: ssi at 3 {
+					interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi4: ssi at 4 {
+					interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi5: ssi at 5 {
+					interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi6: ssi at 6 {
+					interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi7: ssi at 7 {
+					interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi8: ssi at 8 {
+					interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>;
+				};
+				ssi9: ssi at 9 {
+					interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>;
+				};
+			};
+		};
 	};
 };
-- 
2.1.4

  parent reply	other threads:[~2015-11-27  1:55 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-27  1:54 [GIT PULL] Second Round of Renesas ARM64 Based SoC Defconfig Updates for v4.5 Simon Horman
2015-11-27  1:54 ` Simon Horman
2015-11-27  1:54 ` [PATCH 1/5] arm64: defconfig: Enable GPIO of Renesas R-Car Gen3 SoC Simon Horman
2015-11-27  1:54   ` Simon Horman
2015-11-27  1:54 ` [PATCH 2/5] arm64: defconfig: enable EthernetAVB Simon Horman
2015-11-27  1:54   ` Simon Horman
2015-11-27  1:55 ` [PATCH 3/5] arm64: defconfig: Enable Renesas R-Car I2C Controller Simon Horman
2015-11-27  1:55   ` Simon Horman
2015-11-27  1:55 ` [PATCH 4/5] arm64: defconfig: add Renesas R-Car DMAC driver support Simon Horman
2015-11-27  1:55   ` Simon Horman
2015-11-27  1:55 ` [PATCH 5/5] arm64: defconfig: add Renesas sound and AK4613 support Simon Horman
2015-11-27  1:55   ` Simon Horman
2015-11-27  1:55 ` [GIT PULL] Second Round of Renesas ARM64 Based SoC DT Updates for v4.5 Simon Horman
2015-11-27  1:55   ` Simon Horman
2015-11-27  1:55   ` [PATCH 01/18] arm64: dts: r8a7795: add GPIO nodes Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 02/18] arm64: dts: r8a7795: add EthernetAVB device node Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 03/18] arm64: dts: r8a7795: enable EthernetAVB on Salvator-X Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 04/18] arm64: dts: r8a7795: enable nfs root on Salvator-X board Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 05/18] arm64: renesas: salvator-x: Setup ethernet0 alias for U-Boot Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 06/18] arm64: renesas: r8a7795: add I2C support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  8:17     ` Geert Uytterhoeven
2015-11-27  8:17       ` Geert Uytterhoeven
2015-11-30  0:38       ` Simon Horman
2015-11-30  0:38         ` Simon Horman
2015-11-27  1:55   ` [PATCH 07/18] arm64: renesas: salvator-x: enable I2C Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 08/18] arm64: renesas: r8a7795 dtsi: Add all HSCIF nodes Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 09/18] arm64: renesas: r8a7795: add AUDIO_DMAC support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` Simon Horman [this message]
2015-11-27  1:55     ` [PATCH 10/18] arm64: renesas: r8a7795: Sound SSI PIO support Simon Horman
2015-11-27  1:55   ` [PATCH 11/18] arm64: renesas: r8a7795: Sound SSI DMA support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 12/18] arm64: renesas: r8a7795: Sound SRC support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 13/18] arm64: renesas: r8a7795: Sound DVC support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 14/18] arm64: renesas: salvator-x: Sound SSI PIO support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 15/18] arm64: renesas: salvator-x: Sound SSI DMA support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 16/18] arm64: renesas: salvator-x: Sound SSI DMA support via BUSIF Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 17/18] arm64: renesas: salvator-x: Sound SRC support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-11-27  1:55   ` [PATCH 18/18] arm64: renesas: salvator-x: Sound DVC support Simon Horman
2015-11-27  1:55     ` Simon Horman
2015-12-11 23:53   ` [GIT PULL] Second Round of Renesas ARM64 Based SoC DT Updates for v4.5 Arnd Bergmann
2015-12-11 23:53     ` Arnd Bergmann
2015-12-12  0:08 ` [GIT PULL] Second Round of Renesas ARM64 Based SoC Defconfig " Arnd Bergmann
2015-12-12  0:08   ` Arnd Bergmann
2015-12-12  0:16   ` Arnd Bergmann
2015-12-12  0:16     ` Arnd Bergmann

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=623197b90c7aa97c0626b0aec06f95d05666b3e0.1448587800.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=linux-arm-kernel@lists.infradead.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.