[Linux-stm32][PATCH 1/4] ARM: dts: stm32: add sai support on stm32mp157c
diff --git a/m b/m
index 4928e44..079f912 100644
--- a/m
+++ b/m
@@ -4,20 +4,20 @@
 X-Spam-Level: 
 X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
 	DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,
-	SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no
-	version=3.4.0
+	SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable
+	autolearn_force=no version=3.4.0
 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99])
-	by smtp.lore.kernel.org (Postfix) with ESMTP id 74543C43219
-	for <infradead-linux-arm-kernel@archiver.kernel.org>; Thu, 25 Apr 2019 14:11:27 +0000 (UTC)
+	by smtp.lore.kernel.org (Postfix) with ESMTP id 57202C43219
+	for <infradead-linux-arm-kernel@archiver.kernel.org>; Thu, 25 Apr 2019 14:11:39 +0000 (UTC)
 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133])
 	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 	(No client certificate requested)
-	by mail.kernel.org (Postfix) with ESMTPS id 6499D206BF
-	for <infradead-linux-arm-kernel@archiver.kernel.org>; Thu, 25 Apr 2019 14:11:27 +0000 (UTC)
+	by mail.kernel.org (Postfix) with ESMTPS id 4884720644
+	for <infradead-linux-arm-kernel@archiver.kernel.org>; Thu, 25 Apr 2019 14:11:39 +0000 (UTC)
 Authentication-Results: mail.kernel.org;
-	dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="u0r0c4GO";
-	dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="dNMdmiKN"
-DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6499D206BF
+	dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MfIn9bPo";
+	dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="YCSngOhZ"
+DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4884720644
 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=st.com
 Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org
 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
@@ -26,57 +26,57 @@
 	List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:
 	Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description:
 	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
-	List-Owner; bh=xxbGewQ+IiYIGc6aAJNUgxFbcR+45kxGLZMOF6ivxTE=; b=u0r0c4GOrATDCT
-	Ex4y7EdmGuJ358cjnJY+c5fphl4Wcro9vC6GN9tlFLpI1o7kajzX1xHXU6acK+Tu4IetIJwMa2Ew+
-	pwFh3L9Kh+jEdX1oEnIDaiaBxVLOJxIHhBQLasnI4ru2S9vbNEndlFTrWG54Aw97jgjfmJ7u7ZW3P
-	w1XRPO5N+FhEUF5asCofcJDPXdY1kbxESHwk2Mr3CcsecJdrEUuKxHjrif/Tk8qqNf8C7vNptM/1T
-	xhaerH4AnKiP4uMvP1bGcZAEtNSBZPUK+Y0GbY+/ENMSprZnC1Mn/aOTsco5wYB4YnDX+pMRee2f4
-	OfMC/WywUiiAuL2q49kA==;
+	List-Owner; bh=15FShZWUzbIuG40NkVMUBImGwJ4KTrjdkXP4mnAPGKc=; b=MfIn9bPoYGMS96
+	iiLKwt4WzDPSaeNNMQ82XeRnvIVeUw0/loP2KCVbeSzsne9yPbcQYfkKKeSgeIIS2UgPJhSQfkM4U
+	lFpNVLPrHUqpe+LMS/02SffnxmYu0cgNILRwuHFiwYv+bic08ZGPzX6UJtPsq7lKdcnWeFHHB50zQ
+	Is9TeOw5fYYOaFjMgkwhPlwijOQfWGuttdiitkT63F7H+BvbNvkwqFv9HUq+o64BBe8Myiq0gE03f
+	XvvpFo0n9FptlSfBaaXbnanqiT67Vs0qIp60C5jAy2PgDxPk+TVcl1OwfW9cZLM4TmgZ5IqhuQkXI
+	2PIH1FipkSxBABRNq2zw==;
 Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
 	by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux))
-	id 1hJf5y-00073s-CY; Thu, 25 Apr 2019 14:11:26 +0000
+	id 1hJf65-0007Bz-2Y; Thu, 25 Apr 2019 14:11:33 +0000
 Received: from mx07-00178001.pphosted.com ([62.209.51.94])
  by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux))
- id 1hJf5c-0006iU-Pp
- for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 14:11:09 +0000
+ id 1hJf5e-0006ku-5Y
+ for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 14:11:13 +0000
 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1])
  by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id
- x3PE8M6E005046; Thu, 25 Apr 2019 16:11:00 +0200
+ x3PE8M6I005046; Thu, 25 Apr 2019 16:11:01 +0200
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com;
  h=from : to : subject :
  date : message-id : in-reply-to : references : mime-version :
  content-type; s=STMicroelectronics;
- bh=8FXCzOk28JP/mOmeugF2wTWl4QoTxGBnGveic2Qh+hA=;
- b=dNMdmiKN6O+4sPhbjGyTxSdt+z33l9e7Je1U5GPo5zAMXbk4HwXHbnm2scGllbz1XB9B
- XdlqrluaPtF6gjkmN7OYb7eBuMK+IEJttxJkCS6Q7McNSLo67svhxOvZYsOzVyI59uCR
- 20VVoZx2X1dBo58eMgbWp3LY5cMY/XRnPewNJ9z0bUEIKla6ptg0EyZuhXljOyBi6AyA
- tswISO0j0IPV9zqUpTdRQJGmRUWEah0e/w8MTHiHKzQG2I68kmLpDrW88h6pJCayZoYY
- UZRqKdZRq3R4wzsKSpt+Rcz8GbMlYZnsa5BcuNQGtqOrVn9BXrGcMXvKAzoS+LNO/XI6 nQ== 
+ bh=sYb61MXK9YcNgLWzbWly1c2g4rk/LVY8fN1Msh9FUEM=;
+ b=YCSngOhZlXi6CTAMQ61T1yK+i9aKcQnivGVLvA+5LbfGYEtSPipHxigCHvxvhp8o7Gau
+ qVBt1DDWQkS8B1ClD899kLp3Y2zDQm5ZGdomQHwDArO1lRljbeo8Rki8uplUhP1cj7C4
+ b2O+lz2ObgM+A0asSzX3tq7ZYJ1fyPUoIPK2TROUurhZgVyGuP8fgPNWtF7yAQ9ARkwb
+ g7ROkT0We6mT6QLmik+Iyp56Ql1pqbh13IVbgjbLGVZjaZyoreN9aNPhxxikxyM+lva2
+ UoKzLPFo4zuTaKd1o0oidtLAWb3wF0HbLFwXXTnMKwTlrJaiE/gBkHz8wAk6lW/9IDuG Ug== 
 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35])
- by mx07-00178001.pphosted.com with ESMTP id 2ryrvxm5ha-1
+ by mx07-00178001.pphosted.com with ESMTP id 2ryrvxm5h6-1
  (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT);
- Thu, 25 Apr 2019 16:11:00 +0200
+ Thu, 25 Apr 2019 16:11:01 +0200
 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9])
- by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EFF8A5D;
- Thu, 25 Apr 2019 14:10:48 +0000 (GMT)
+ by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8670C58;
+ Thu, 25 Apr 2019 14:10:45 +0000 (GMT)
 Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92])
- by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BEEE527EA;
- Thu, 25 Apr 2019 14:10:48 +0000 (GMT)
+ by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 701DE27E9;
+ Thu, 25 Apr 2019 14:10:45 +0000 (GMT)
 Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by Safex1hubcas22.st.com
  (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 25 Apr
- 2019 16:10:48 +0200
+ 2019 16:10:45 +0200
 Received: from localhost (10.201.23.16) by webmail-ga.st.com (10.75.90.48)
- with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 25 Apr 2019 16:10:48
+ with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 25 Apr 2019 16:10:44
  +0200
 From: Olivier Moysan <olivier.moysan@st.com>
 To: <linux-stm32@st-md-mailman.stormreply.com>, <alexandre.torgue@st.com>,
  <robh@kernel.org>, <mark.rutland@arm.com>,
  <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>,
  <linux-kernel@vger.kernel.org>, <olivier.moysan@st.com>
-Subject: [Linux-stm32][PATCH 4/4] ARM: dts: stm32: add i2s pins muxing on
- stm32mp157
-Date: Thu, 25 Apr 2019 16:10:40 +0200
-Message-ID: <1556201440-5540-5-git-send-email-olivier.moysan@st.com>
+Subject: [Linux-stm32][PATCH 1/4] ARM: dts: stm32: add sai support on
+ stm32mp157c
+Date: Thu, 25 Apr 2019 16:10:37 +0200
+Message-ID: <1556201440-5540-2-git-send-email-olivier.moysan@st.com>
 X-Mailer: git-send-email 2.7.4
 In-Reply-To: <1556201440-5540-1-git-send-email-olivier.moysan@st.com>
 References: <1556201440-5540-1-git-send-email-olivier.moysan@st.com>
@@ -85,8 +85,8 @@
 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
  definitions=2019-04-25_11:, , signatures=0
 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
-X-CRM114-CacheID: sfid-20190425_071105_653256_7A162730 
-X-CRM114-Status: GOOD (  11.68  )
+X-CRM114-CacheID: sfid-20190425_071107_275235_5A208AC0 
+X-CRM114-Status: GOOD (  14.04  )
 X-BeenThere: linux-arm-kernel@lists.infradead.org
 X-Mailman-Version: 2.1.21
 Precedence: list
@@ -103,43 +103,156 @@
 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org>
 Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org
 
-Add I2S pins muxing to stm32mp157.
+This patch adds support of STM32 SAI on stm32mp157c.
 
 Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
 ---
- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 19 +++++++++++++++++++
- 1 file changed, 19 insertions(+)
+ arch/arm/boot/dts/stm32mp157c.dtsi | 125 +++++++++++++++++++++++++++++++++++++
+ 1 file changed, 125 insertions(+)
 
-diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
-index 6ea9b9ff45e7..e29bf7a2c18a 100644
---- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
-+++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi
-@@ -276,6 +276,25 @@
- 				};
- 			};
+diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi
+index 2afeee65c3ea..9ae40240f635 100644
+--- a/arch/arm/boot/dts/stm32mp157c.dtsi
++++ b/arch/arm/boot/dts/stm32mp157c.dtsi
+@@ -708,6 +708,100 @@
+ 			status = "disabled";
+ 		};
  
-+			i2s2_pins_a: i2s2-0 {
-+				pins {
-+					pinmux = <STM32_PINMUX('I', 3, AF5)>, /* I2S2_SDO */
-+						 <STM32_PINMUX('B', 9, AF5)>, /* I2S2_WS */
-+						 <STM32_PINMUX('A', 9, AF5)>; /* I2S2_CK */
-+					slew-rate = <1>;
-+					drive-push-pull;
-+					bias-disable;
-+				};
++		sai1: sai@4400a000 {
++			compatible = "st,stm32h7-sai";
++			#address-cells = <1>;
++			#size-cells = <1>;
++			ranges = <0 0x4400a000 0x400>;
++			reg = <0x4400a000 0x4>;
++			interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
++			resets = <&rcc SAI1_R>;
++			status = "disabled";
++
++			sai1a: audio-controller@4400a004 {
++				#sound-dai-cells = <0>;
++
++				compatible = "st,stm32-sai-sub-a";
++				reg = <0x4 0x1c>;
++				clocks = <&rcc SAI1_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 87 0x400 0x01>;
++				status = "disabled";
 +			};
 +
-+			i2s2_pins_sleep_a: i2s2-1 {
-+				pins {
-+					pinmux = <STM32_PINMUX('I', 3, ANALOG)>, /* I2S2_SDO */
-+						 <STM32_PINMUX('B', 9, ANALOG)>, /* I2S2_WS */
-+						 <STM32_PINMUX('A', 9, ANALOG)>; /* I2S2_CK */
-+				};
++			sai1b: audio-controller@4400a024 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-b";
++				reg = <0x24 0x1c>;
++				clocks = <&rcc SAI1_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 88 0x400 0x01>;
++				status = "disabled";
++			};
++		};
++
++		sai2: sai@4400b000 {
++			compatible = "st,stm32h7-sai";
++			#address-cells = <1>;
++			#size-cells = <1>;
++			ranges = <0 0x4400b000 0x400>;
++			reg = <0x4400b000 0x4>;
++			interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
++			resets = <&rcc SAI2_R>;
++			status = "disabled";
++
++			sai2a: audio-controller@4400b004 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-a";
++				reg = <0x4 0x1c>;
++				clocks = <&rcc SAI2_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 89 0x400 0x01>;
++				status = "disabled";
 +			};
 +
- 			ltdc_pins_a: ltdc-a-0 {
- 				pins {
- 					pinmux = <STM32_PINMUX('G',  7, AF14)>, /* LCD_CLK */
++			sai2b: audio-controller@4400b024 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-b";
++				reg = <0x24 0x1c>;
++				clocks = <&rcc SAI2_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 90 0x400 0x01>;
++				status = "disabled";
++			};
++		};
++
++		sai3: sai@4400c000 {
++			compatible = "st,stm32h7-sai";
++			#address-cells = <1>;
++			#size-cells = <1>;
++			ranges = <0 0x4400c000 0x400>;
++			reg = <0x4400c000 0x4>;
++			interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
++			resets = <&rcc SAI3_R>;
++			status = "disabled";
++
++			sai3a: audio-controller@4400c004 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-a";
++				reg = <0x04 0x1c>;
++				clocks = <&rcc SAI3_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 113 0x400 0x01>;
++				status = "disabled";
++			};
++
++			sai3b: audio-controller@4400c024 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-b";
++				reg = <0x24 0x1c>;
++				clocks = <&rcc SAI3_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 114 0x400 0x01>;
++				status = "disabled";
++			};
++		};
++
+ 		dfsdm: dfsdm@4400d000 {
+ 			compatible = "st,stm32mp1-dfsdm";
+ 			reg = <0x4400d000 0x800>;
+@@ -1020,6 +1114,37 @@
+ 			status = "disabled";
+ 		};
+ 
++		sai4: sai@50027000 {
++			compatible = "st,stm32h7-sai";
++			#address-cells = <1>;
++			#size-cells = <1>;
++			ranges = <0 0x50027000 0x400>;
++			reg = <0x50027000 0x4>;
++			interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
++			resets = <&rcc SAI4_R>;
++			status = "disabled";
++
++			sai4a: audio-controller@50027004 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-a";
++				reg = <0x04 0x1c>;
++				clocks = <&rcc SAI4_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 99 0x400 0x01>;
++				status = "disabled";
++			};
++
++			sai4b: audio-controller@50027024 {
++				#sound-dai-cells = <0>;
++				compatible = "st,stm32-sai-sub-b";
++				reg = <0x24 0x1c>;
++				clocks = <&rcc SAI4_K>;
++				clock-names = "sai_ck";
++				dmas = <&dmamux1 100 0x400 0x01>;
++				status = "disabled";
++			};
++		};
++
+ 		dts: thermal@50028000 {
+ 			compatible = "st,stm32-thermal";
+ 			reg = <0x50028000 0x100>;
 -- 
 2.7.4