From patchwork Fri Nov 18 14:20:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 22352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp222178wrr; Fri, 18 Nov 2022 06:23:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fdBtooGRCNNPHLjGw8GNWYQaoovRHEXKg1LqnTlAJs5cg54s8+YEAo5aOD9sTBXnXPN0n X-Received: by 2002:a17:902:ef52:b0:179:fe08:48da with SMTP id e18-20020a170902ef5200b00179fe0848damr7894889plx.154.1668781381790; Fri, 18 Nov 2022 06:23:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668781381; cv=none; d=google.com; s=arc-20160816; b=houoZJQ25Y13c5X0v102lzKFuCFjkEJLxYtVaDbc7vHK/pmh1oCzF2kT3letRJ9QN1 F7mJqgnDLAAiWnz5pOeSTeKYgG4C4STiYRp7YFTZgegxbdV6IDnmZmLvBYuxmRZ8JOxF 5ktrnwcNDl42Arf0nRKYYCIWk467FfMgh9Ye/dRAhEoVooYUk+P7jVKLe3azBAjwzqFx MtqSayVJw0a+sTNDE6leBE+FE7yJaYvl9AKRmbq8Scr3meQsxbf6jydJk+2Mp6+wNTWp q3vn1xaPgntT2wgIyG+a7rb67098FGR7G4ljtfExobN6BKfomxgwkuexkw0mPF09rUvw YM5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jP12zWQBN+XsiDIL+l1U4dIV3t9oCSoslQ89hmUsN4Q=; b=tl0nuszitBJCygDK/otqBhmQGZDbCgrlBMyeli++Lq96rWGtO3Yt+GYx2huP73W0OS cHrxXGQ/ZR6GRFgtRRMq82TZ2Xs1NHaCyfAX4VqWKPGD9TqXLjrNPo3xs9k0Ek7Mq14c 86uAmGustS60DRXWDYc07ECFyLHyiLIZQUbNneCuE4SD7okYqmftT7z5YuSIPw9V7qxG IZQ9EGjcOP0rlXKgLzyaGV5Zn7Xjc4WczN8wufTNQp4o2KDy/i7CLBvTY8ScKqfi3qaf SbhIBSvfi90Avb7Iz283qt/mgT4VLBjDL3kbysjUklNysrJf0lCU1E7/vR9seogJyxWv eWBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xNRbMJp0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b18-20020a170903229200b00177fd8409b7si4734455plh.73.2022.11.18.06.22.36; Fri, 18 Nov 2022 06:23:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=xNRbMJp0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242352AbiKROVf (ORCPT + 99 others); Fri, 18 Nov 2022 09:21:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242333AbiKROV1 (ORCPT ); Fri, 18 Nov 2022 09:21:27 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 762C3A457; Fri, 18 Nov 2022 06:21:25 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AICNlEX025133; Fri, 18 Nov 2022 15:21:03 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=jP12zWQBN+XsiDIL+l1U4dIV3t9oCSoslQ89hmUsN4Q=; b=xNRbMJp0pldFOwXmvBP40cNRHVHA3tj1hF+K4RMmONcZSnMPcOehO02A1ZygIpvHaGZ/ TG7TciY6fLlSn+P6GWvzMQ03Akv+cSIV2o8TeXTDG9nCNEGDcmRrRJfSRP4wu3YNF90i iESKpB9zq3qPpCRsL/7Ynvol66Dy971tT8Qz2YeY5PB57ZMW1o1fROB1PWwX+rm2NXLL BLfmT5AEu3Pl2DVkkRAt+R2Gq11cRuAIRsINzQwasLSIM1E1NWB1lxWy4XjezQ7DhEXr NK8rf/obGJ9atSvrlsQvD2An3mWHhiGMMRNSgpViY3sElbGnvkO9MK9YwpvJFsVGxafO hg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kx0my47rq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 15:21:02 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 237DE100038; Fri, 18 Nov 2022 15:20:58 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1CF58231DE3; Fri, 18 Nov 2022 15:20:58 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 18 Nov 2022 15:20:57 +0100 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH 1/4] ARM: dts: stm32: add i2s nodes on stm32mp131 Date: Fri, 18 Nov 2022 15:20:03 +0100 Message-ID: <20221118142006.479138-2-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118142006.479138-1-olivier.moysan@foss.st.com> References: <20221118142006.479138-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-18_02,2022-11-18_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749844105566525660?= X-GMAIL-MSGID: =?utf-8?q?1749844105566525660?= Add I2S1, I2S2, I2S3 and I2S4 peripherals support for the STM32MP13 SoC family. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp131.dtsi | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index 2a9b3a5bba83..b8da3844df94 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -121,6 +121,17 @@ scmi_shm: scmi-sram@0 { }; }; + i2s2: audio-controller@4000b000 { + compatible = "st,stm32h7-i2s"; + reg = <0x4000b000 0x400>; + #sound-dai-cells = <0>; + interrupts = ; + dmas = <&dmamux1 39 0x400 0x01>, + <&dmamux1 40 0x400 0x01>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + spi2: spi@4000b000 { compatible = "st,stm32h7-spi"; reg = <0x4000b000 0x400>; @@ -135,6 +146,17 @@ spi2: spi@4000b000 { status = "disabled"; }; + i2s3: audio-controller@4000c000 { + compatible = "st,stm32h7-i2s"; + reg = <0x4000c000 0x400>; + #sound-dai-cells = <0>; + interrupts = ; + dmas = <&dmamux1 61 0x400 0x01>, + <&dmamux1 62 0x400 0x01>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + spi3: spi@4000c000 { compatible = "st,stm32h7-spi"; reg = <0x4000c000 0x400>; @@ -194,6 +216,17 @@ i2c2: i2c@40013000 { status = "disabled"; }; + i2s1: audio-controller@44004000 { + compatible = "st,stm32h7-i2s"; + reg = <0x44004000 0x400>; + #sound-dai-cells = <0>; + interrupts = ; + dmas = <&dmamux1 37 0x400 0x01>, + <&dmamux1 38 0x400 0x01>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + spi1: spi@44004000 { compatible = "st,stm32h7-spi"; reg = <0x44004000 0x400>; @@ -315,6 +348,17 @@ usbotg_hs: usb@49000000 { status = "disabled"; }; + i2s4: audio-controller@4c002000 { + compatible = "st,stm32h7-i2s"; + reg = <0x4c002000 0x400>; + #sound-dai-cells = <0>; + interrupts = ; + dmas = <&dmamux1 83 0x400 0x01>, + <&dmamux1 84 0x400 0x01>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + spi4: spi@4c002000 { compatible = "st,stm32h7-spi"; reg = <0x4c002000 0x400>; From patchwork Fri Nov 18 14:20:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 22353 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp228918wrr; Fri, 18 Nov 2022 06:34:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf7lEVDGPmEr2LCfW1hZJ5fjhUqjHKHRE8PyA6O4RsJPQ0rzSk0TLJdZIeTjoIsXS7AbxvHd X-Received: by 2002:a05:6402:114c:b0:457:35d4:ac66 with SMTP id g12-20020a056402114c00b0045735d4ac66mr6331284edw.415.1668782065216; Fri, 18 Nov 2022 06:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668782065; cv=none; d=google.com; s=arc-20160816; b=EIUTab9D+S834WOBUeTNWmFaB3GtJ3usPutIlzwNTlt53a3dAAVrqbft48kPhN1ezl t7zRWhRHEMcDbWdVD8Xlzpb2JfVlqaXKQ5+ICBrLBJ4/PTcKvs5nihO2NgTZw81i49wY 5NQAsfA9QEw75AbGXIpLlqQmVMByfRelg2BTwK6uokAzuP6OwaxjN+yfMsoU34g+hzS/ ZLQN7+nY6vuYcoJSx77ItsolENR1JgnlXQzKAA2TYSJV0dQV14EBQ+dvnDrUK+cmBCEo BsrR1nQlnUra/otvD6nNNQr9M2pgfXLSYME8HtYTWeRpBt+VPkRnWoy4h6ZejcoyAafV Vm+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qXN2qAP31dtQmh4rlvY3AXXbgtD30siuHxhoQeXtBn0=; b=FiKVC68Sd6e5WQrcEywOLxxJ9XnszlfkkS8HWKWPd6j1NKsrKidCLbeVHId/n5LpWr e0s8V2EkswCecLPeQlT4PBCAy0cQJnnEL8R508cGUFqT37yzXwK7DH9bsUIHQKeCjlB6 no5cO8F7LZ1smt07JvThYJSjgwb+3ORLep1mYBaGPxwmagU/3ge9mhdOnOj8hsa/qR5/ NckCmIarEWJ4mzquP2luGGpoKmNtsQSVWYlgPDVtW7urdAuoDQwvoz38bQgZCMypOSI7 puP3s35jloJZMOeArKdzMKZmPWIcy/8GOV3x8JgfNfiKYuL7NRcgQJQFFkli+EpouPdb wAeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MjecWixt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170906178d00b0078356aaeb63si2442060eje.288.2022.11.18.06.33.54; Fri, 18 Nov 2022 06:34:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MjecWixt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242369AbiKROVh (ORCPT + 99 others); Fri, 18 Nov 2022 09:21:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242334AbiKROV1 (ORCPT ); Fri, 18 Nov 2022 09:21:27 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE715F35; Fri, 18 Nov 2022 06:21:25 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AICNjGF025086; Fri, 18 Nov 2022 15:21:03 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=qXN2qAP31dtQmh4rlvY3AXXbgtD30siuHxhoQeXtBn0=; b=MjecWixtmktzYcWvvgIzqY3QwX5pESADYHtoUQo+yYRfObfIo2az/2HrHEABYRcFuO/u qTn93b9CVWy8Z6LZs/9hIE/GMP0KJesmdqjLLPrXagvNlK8HjrLD7zvmh/v22WIgWJ9m WOj/SdGXJQHU8wttTdl0Up1OKzqimoVcELbY2dIXl/2yDpDHEUH/SFDns1VLuiRY9fLH 18jU50r3EptMjDQ6srrKsqLI/PuDXKdghDKAlyz0m96SHniMaMlD72eu8cnr30l9RwOp 56JgbA4nOgwG6sivQkVCDehqlSYLcysifmOcFvkk0nHJuHCTuMczw5bxyMId+PseW0Fp 5Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kx0my47rt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 15:21:03 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0EC4210002A; Fri, 18 Nov 2022 15:20:59 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E9E4C231DE0; Fri, 18 Nov 2022 15:20:58 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 18 Nov 2022 15:20:58 +0100 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH 2/4] ARM: dts: stm32: add sai nodes on stm32mp131 Date: Fri, 18 Nov 2022 15:20:04 +0100 Message-ID: <20221118142006.479138-3-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118142006.479138-1-olivier.moysan@foss.st.com> References: <20221118142006.479138-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-18_02,2022-11-18_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749844823232225936?= X-GMAIL-MSGID: =?utf-8?q?1749844823232225936?= Add SAI1 and SAI2 peripherals support for the STM32MP13 SoC family. Signed-off-by: Olivier Moysan Change-Id: I79af484702fa4108c106e6013f82d33638e92e6d --- arch/arm/boot/dts/stm32mp131.dtsi | 62 +++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index b8da3844df94..13cf4ee12016 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -241,6 +241,68 @@ spi1: spi@44004000 { status = "disabled"; }; + sai1: sai@4400a000 { + compatible = "st,stm32h7-sai"; + reg = <0x4400a000 0x4>, <0x4400a3f0 0x10>; + ranges = <0 0x4400a000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + interrupts = ; + resets = <&rcc SAI1_R>; + status = "disabled"; + + sai1a: audio-controller@4400a004 { + compatible = "st,stm32-sai-sub-a"; + reg = <0x4 0x20>; + #sound-dai-cells = <0>; + clocks = <&rcc SAI1_K>; + clock-names = "sai_ck"; + dmas = <&dmamux1 87 0x400 0x01>; + status = "disabled"; + }; + + sai1b: audio-controller@4400a024 { + compatible = "st,stm32-sai-sub-b"; + reg = <0x24 0x20>; + #sound-dai-cells = <0>; + clocks = <&rcc SAI1_K>; + clock-names = "sai_ck"; + dmas = <&dmamux1 88 0x400 0x01>; + status = "disabled"; + }; + }; + + sai2: sai@4400b000 { + compatible = "st,stm32h7-sai"; + reg = <0x4400b000 0x4>, <0x4400b3f0 0x10>; + ranges = <0 0x4400b000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + interrupts = ; + resets = <&rcc SAI2_R>; + status = "disabled"; + + sai2a: audio-controller@4400b004 { + compatible = "st,stm32-sai-sub-a"; + reg = <0x4 0x20>; + #sound-dai-cells = <0>; + clocks = <&rcc SAI2_K>; + clock-names = "sai_ck"; + dmas = <&dmamux1 89 0x400 0x01>; + status = "disabled"; + }; + + sai2b: audio-controller@4400b024 { + compatible = "st,stm32-sai-sub-b"; + reg = <0x24 0x20>; + #sound-dai-cells = <0>; + clocks = <&rcc SAI2_K>; + clock-names = "sai_ck"; + dmas = <&dmamux1 90 0x400 0x01>; + status = "disabled"; + }; + }; + dma1: dma-controller@48000000 { compatible = "st,stm32-dma"; reg = <0x48000000 0x400>; From patchwork Fri Nov 18 14:20:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 22350 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp221603wrr; Fri, 18 Nov 2022 06:21:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf54zjrGJetr3cQ0+GLX8GJyKMiKHYF9FaYZZu+Ltx4P3IP3DibCKV6PIENXNreP1ZFKSaGj X-Received: by 2002:a17:902:8c98:b0:186:6d69:6e01 with SMTP id t24-20020a1709028c9800b001866d696e01mr7632997plo.160.1668781306262; Fri, 18 Nov 2022 06:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668781306; cv=none; d=google.com; s=arc-20160816; b=pB3ndVmoj/KYgnCEmmKwLzqvoy5eGMiZNn4Ktx/0aua4K+eS7sk65N9TV2Py8zr8bd Oe05Lnl1CL/DJG0GvaGFS/Fu5xOMg+nN091/UPwHcsPJw8YMF0V9s6buVCN6sHNhFBKE cbbZkrcP2Ob+yRXxZRbkPPjBreU0SXbkDvch5zl9hULJcMfciCEUi3jFmOpE95oBeHHA O2lyDkPdof7grn04Eot0ZwpBXHwGzuJRTu79S3JChMJJdIo+GhEy3xnq2IsLP+h0heqL 4ggGh0XcuXLOr/0B5YHs8HqtjqXI6qjQpQTy56zhY9EogGIl9OLBt14d6E9eLA3rKVj8 MRhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MFi7qoFpTMmgz6uTFsnSKlFNFcJdrq6xgnr14C7fihg=; b=ac82G/2DYUYYK4ywttx86ve/AN3IB/Ye/0dWh0qRdsD4xi/wqlYweDl3JfJ05E50hN pDbYbPdul/U5CtD17l4S/dmMEvRGB1no5uJRCM+gmIouk8agJBWTjhQwsKSVzdW7WhPz FN1a2CbrSEEbBb2V4cc8iYzO9ofdIJQvkmLEXdqJMtHtwnYsARbUy/8urxTi4Md7e2bt a/tQH7HbKWSJhgtBFg+wCMlkGWgI7xDpJpc/B9OH5Ci5bY7h8P+OwvCfJlYjIz6x1IGp 2Kd4ropzoIPd9FGiIpbwwwjdEB6cDLbrc/NBJLyLtTktGhaxDvcaQTjLjufOHw8CJrU2 ZgLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BuHFqRyI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a056a000c8b00b0056301324a24si4093968pfv.133.2022.11.18.06.21.33; Fri, 18 Nov 2022 06:21:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BuHFqRyI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242326AbiKROV0 (ORCPT + 99 others); Fri, 18 Nov 2022 09:21:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242247AbiKROVZ (ORCPT ); Fri, 18 Nov 2022 09:21:25 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5374013CF2; Fri, 18 Nov 2022 06:21:24 -0800 (PST) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AICUZq1014725; Fri, 18 Nov 2022 15:21:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=MFi7qoFpTMmgz6uTFsnSKlFNFcJdrq6xgnr14C7fihg=; b=BuHFqRyImbi5gaV4r21xUtAk/doJlQA/U+VlMvIi0S8DKLNlYGiymTKu5UMF16kHAOlz i5X1Ehj8J3IuQhWp1Ns/NRznJiC0FzNmE71EbfJ8odZHpJVovGVChzH8RXFmDLq9laSh TOtwyY3Yrfn26f5TagEwFuFgjKdbjoqluvaaC26RUzLbXCUyEXvpoBPJQSnPXDomhujY SfmkCSbTAWSoa2D6DT1ltDUl3k9gWQtTZ4Rp4hlskSbLF2IPJDqOrywFjkBXQm/EGaCd RvCxkQQEvysFxAbul5Y6lrEfijtE0ZnoiNVLJH1Pyko+0OtFXsmYk88Q/3XELD4lFy+w wA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kx0ph48b5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 15:21:04 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C2F6D100039; Fri, 18 Nov 2022 15:20:59 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BDA9C231DE0; Fri, 18 Nov 2022 15:20:59 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 18 Nov 2022 15:20:59 +0100 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH 3/4] ARM: dts: stm32: add spdifrx node on stm32mp131 Date: Fri, 18 Nov 2022 15:20:05 +0100 Message-ID: <20221118142006.479138-4-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118142006.479138-1-olivier.moysan@foss.st.com> References: <20221118142006.479138-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-18_02,2022-11-18_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749844026740630700?= X-GMAIL-MSGID: =?utf-8?q?1749844026740630700?= Add S/PDIFRX peripheral support for the STM32MP13 SoC family. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp131.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index 13cf4ee12016..5dd5bf47c92b 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -171,6 +171,19 @@ spi3: spi@4000c000 { status = "disabled"; }; + spdifrx: audio-controller@4000d000 { + compatible = "st,stm32h7-spdifrx"; + reg = <0x4000d000 0x400>; + #sound-dai-cells = <0>; + clocks = <&rcc SPDIF_K>; + clock-names = "kclk"; + interrupts = ; + dmas = <&dmamux1 93 0x400 0x01>, + <&dmamux1 94 0x400 0x01>; + dma-names = "rx", "rx-ctrl"; + status = "disabled"; + }; + uart4: serial@40010000 { compatible = "st,stm32h7-uart"; reg = <0x40010000 0x400>; From patchwork Fri Nov 18 14:20:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 22351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp221897wrr; Fri, 18 Nov 2022 06:22:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5v9q1hbZYFU1CtdQnenGcsZseXf//01Yzgs+ItGrA8IB8Xc2reffuGE+Dw7a1mmGV03+qi X-Received: by 2002:a17:902:e492:b0:181:9900:18df with SMTP id i18-20020a170902e49200b00181990018dfmr7830463ple.70.1668781347218; Fri, 18 Nov 2022 06:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668781347; cv=none; d=google.com; s=arc-20160816; b=NVerJ75czu9McglSHU6qsoi5IUZCE3EmhPRcltFVU3KXlq8DCQ0Hl3U/6tT0pdo6Lj I6NqZG0x6G6npq8CaDiH83YbNsO3Sd6bIgyLJT0cGIQ+c24oeV3KSQjvCINKunWdw+dd d4G4Yeh5K7mswN9v0qV6FbjLySrfM+KwJLBeA6otQeTQKPCl9kDY+2oL1dZF/a8xcDyq 6C1JRo3bo/0siJ+jjUjTAorpTr2HOYiyBwduoO3uVUzCDcwTtYhy54Moa3ie/ziAmgHD YpCuME2lbA5dXmGYS4XxAJAMJ92EzKDtQQukt/Ttasv2ETiZzYBlcvItGLufyOl7ipPw SWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GbL8DKhmJ0QOd/FVvW+SZTH310AuG5Om3taa3DQGiOY=; b=zKmntwLu4CqOjGWIQiqmyswn+sXkYEJdYt/cJUhNNxpm45CK6IWDrI9C1TnUQ5d7VY L8bIY1krOzFSBVjCF2vKwwtS0/AwjKMtgFwoqMvr3iAtm/JzSbpjovp0Z8LIyQ/EMuFr mf4O3sSei8zDg74Rtpkk07pKWqw3tEGLtHYEzMWx5Yu+MdLNmp7NwL8NFzKTPHYec7on 439eCcAt+ahW410asbYLy1HeM8zEXHt2+S9i1VmEq76ZUNA6qWs2e+RNGWLuZvqFh+4c 5Bb0+scCt8DufuEBG9kCdSTv804Ttylcfq+AKf7i/2+RKU5d2Uap1eWoyZbTuLOh0QdM LXPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=lLAnQMT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a635809000000b0046e9da89cebsi3786044pgb.532.2022.11.18.06.22.13; Fri, 18 Nov 2022 06:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=lLAnQMT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242359AbiKROVb (ORCPT + 99 others); Fri, 18 Nov 2022 09:21:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242331AbiKROV1 (ORCPT ); Fri, 18 Nov 2022 09:21:27 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75CF3A444; Fri, 18 Nov 2022 06:21:25 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AICIEUD025054; Fri, 18 Nov 2022 15:21:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=GbL8DKhmJ0QOd/FVvW+SZTH310AuG5Om3taa3DQGiOY=; b=lLAnQMT75MQuGgAmh+1ahWCNSUCIPoUVCwuLX3kSCmXPZVTdLwnNE+1W1XqiRx9CncMT BogeYPIvL9Lkq17+Kv9ExpXyOHdrHGB1ZYdKVl9zvfJV+T5y0BPV98kOpWB1+d66K3FX 3AXwd8xQNFnoZyMsSsmaTNTIQ7iQ2iirqkiF+tU850BLli2CVBz+AybhoX8RGb2bzvua CkEaV6KKC+XktKo3VY1C2zerRg97jr2P5YGJ/jWm0L/P22j9BfBdCVNxXvHTQ5oEF39T DcEBmzaCLZHHH/uLlhFJb0ebV0DUXf0h+WSq9mqncECj/HCdn7N3kxQ31E7UL+gX7Nce XQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3kx0my47s3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Nov 2022 15:21:05 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9997710003A; Fri, 18 Nov 2022 15:21:00 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 92FEC231DE0; Fri, 18 Nov 2022 15:21:00 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 18 Nov 2022 15:21:00 +0100 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH 4/4] ARM: dts: stm32: add dfsdm node on stm32mp131 Date: Fri, 18 Nov 2022 15:20:06 +0100 Message-ID: <20221118142006.479138-5-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118142006.479138-1-olivier.moysan@foss.st.com> References: <20221118142006.479138-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-18_02,2022-11-18_01,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749844069618033632?= X-GMAIL-MSGID: =?utf-8?q?1749844069618033632?= Add DFSDM peripheral support for the STM32MP13 SoC family. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp131.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi index 5dd5bf47c92b..42be0e3176ae 100644 --- a/arch/arm/boot/dts/stm32mp131.dtsi +++ b/arch/arm/boot/dts/stm32mp131.dtsi @@ -316,6 +316,36 @@ sai2b: audio-controller@4400b024 { }; }; + dfsdm: dfsdm@4400d000 { + compatible = "st,stm32mp1-dfsdm"; + reg = <0x4400d000 0x800>; + clocks = <&rcc DFSDM_K>; + clock-names = "dfsdm"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + dfsdm0: filter@0 { + compatible = "st,stm32-dfsdm-adc"; + reg = <0>; + #io-channel-cells = <1>; + interrupts = ; + dmas = <&dmamux1 101 0x400 0x01>; + dma-names = "rx"; + status = "disabled"; + }; + + dfsdm1: filter@1 { + compatible = "st,stm32-dfsdm-adc"; + reg = <1>; + #io-channel-cells = <1>; + interrupts = ; + dmas = <&dmamux1 102 0x400 0x01>; + dma-names = "rx"; + status = "disabled"; + }; + }; + dma1: dma-controller@48000000 { compatible = "st,stm32-dma"; reg = <0x48000000 0x400>;