From patchwork Tue Sep 5 12:50:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H. Nikolaus Schaller" X-Patchwork-Id: 720309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E52ECA0FFD for ; Tue, 5 Sep 2023 15:58:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230459AbjIEP6z (ORCPT ); Tue, 5 Sep 2023 11:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354594AbjIEMug (ORCPT ); Tue, 5 Sep 2023 08:50:36 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFD88C9 for ; Tue, 5 Sep 2023 05:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693918224; cv=none; d=strato.com; s=strato-dkim-0002; b=IlkLxkSJLoDWPpvuQm95h8en90I+pQ6WwHdO2iJfQ1AqDFPucHuvBZc/pUvbmvugjG VeKCj5w7xhFegdEZzLCMphieZ7tB9CNQ2rzeLF5Md844b62GBXCKXb/Sz33p0tpmsR8T Lzn7Rgk4y5mol7a1Q1xEDULufZXXEqk7ogcWk50UcDyrh+/6lGsuhviQoCZ9u720qYlj ou0uIaQC2WjompDqaGViuEAxMSfsEeW0yQkpGKIu1poPFKE4MWIMTv20c8F2zWk7IQ3O LzKOlZVgvAY1Trm0kcPWHcjNUMCcDv+k3hxLUEHd5yEo77tW6ToEyz7gaaJujBedeSaX un3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1693918224; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=0xjo9zaxvNCLi7I93swS7ghP7W5bgPFcncd8+c+M7hA=; b=VKWzPbAdTaEQvso+PZ0YgiqQkWYcnEUyuOBmeTxyWcC/Os3y00aDTpL58OyYQHahys HbPXsVwlay06PIStYSbwMaWHNcuo0FWwew7zjdSqwK5yWCwfSO/cW35f9uSxurJFNO8d 664/kDtS9h33uQhqVc6FwuGLlQiuJoyGAZML39gAOyGYg/urExjBNh24chXCwQFdUBbx 1P8zD5nNtS6tfcb085ejy9MAlEYLYu2P41P63v4xf1uOyDimkUOvCdckrPFXKSKqrGDy Olf2u7lXFTj/KK4yA83oDVHhPU/QVFCWxJUGDSm/stSNNASIkAIWYpVmh5xT6SZS2C+0 ez4Q== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1693918224; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=0xjo9zaxvNCLi7I93swS7ghP7W5bgPFcncd8+c+M7hA=; b=ZC2ZuNHtO0DSvy0DfYv4H9LQP+lu3T/sv2e/1MCKFb2Eg5AXEk/Rw4p7s1Ep3ZdVYv jO01hqlrMaVYmVF6c2qFTP2k0Tas6aHA5yUpKiJFEOO5q8KcWl0703L5CsHYr7QgP+jv Yq7zpSWofdoT63M9olwErTxvG+9FATQKwE8eqLEO4gqs8rg1qrhe1UX7X/m/UvuvCE88 MGlKc1jRHeIzGPYLpfZs3u9TeWClffKb5MXJ/I1KS5oSnf94h8ccjLjGFGVDYxMdpFae WOCDd6t3nKDG/sWQvbDFNdf4vKnz6nA+evWdINJL1AB8bazTUSotul34tqF9rV9ymiKJ 8L4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1693918224; s=strato-dkim-0003; d=goldelico.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=0xjo9zaxvNCLi7I93swS7ghP7W5bgPFcncd8+c+M7hA=; b=/qkt+Q8XLeGv7rstyT6oaYVcy4x8gKEVlmj4K3OIxRiP3fGlUsZMLQDy53eEGtfS7J VvHZ9dht2G2zylkQTQAg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1iTDUhfN4hi3qVZrW7J" Received: from localhost.localdomain by smtp.strato.de (RZmta 49.8.2 DYNA|AUTH) with ESMTPSA id 04cbadz85CoOLbH (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 5 Sep 2023 14:50:24 +0200 (CEST) From: "H. Nikolaus Schaller" To: Tony Lindgren , Andreas Kemnade , =?utf-8?q?Patrik_Dahlstr=C3=B6m?= , peter.ujfalusi@gmail.com Cc: letux-kernel@openphoenux.org, kernel@pyra-handheld.com, linux-omap@vger.kernel.org, "H. Nikolaus Schaller" Subject: [RFC 2/6] ARM: DTS: omap5-l4-abe: add an aess (audio DSP of OMAP4 and OMAP5) child Date: Tue, 5 Sep 2023 14:50:11 +0200 Message-ID: <1a8d9c1e393ddd1968a0b197b469e45ff7711ab2.1693918214.git.hns@goldelico.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org make the aess module a child of the target-module. Define ranges, register names, interrupts, dmas. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/ti/omap/omap5-l4-abe.dtsi | 71 +++++++++++++++++---- 1 file changed, 57 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/ti/omap/omap5-l4-abe.dtsi b/arch/arm/boot/dts/ti/omap/omap5-l4-abe.dtsi index 7d223f938d479..611c92e04fe7a 100644 --- a/arch/arm/boot/dts/ti/omap/omap5-l4-abe.dtsi +++ b/arch/arm/boot/dts/ti/omap/omap5-l4-abe.dtsi @@ -41,12 +41,14 @@ segment@0 { /* 0x40100000 */ <0x0003d000 0x0003d000 0x001000>, /* ap 23 */ <0x0003e000 0x0003e000 0x001000>, /* ap 24 */ <0x0003f000 0x0003f000 0x001000>, /* ap 25 */ - <0x00080000 0x00080000 0x010000>, /* ap 26 */ - <0x00080000 0x00080000 0x001000>, /* ap 27 */ - <0x000a0000 0x000a0000 0x010000>, /* ap 28 */ - <0x000a0000 0x000a0000 0x001000>, /* ap 29 */ - <0x000c0000 0x000c0000 0x010000>, /* ap 30 */ - <0x000c0000 0x000c0000 0x001000>, /* ap 31 */ + <0x00080000 0x00080000 0x010000>, /* dmem */ + <0x00090000 0x00090000 0x001000>, /* dmem */ + <0x000a0000 0x000a0000 0x010000>, /* cmem */ + <0x000b0000 0x000b0000 0x001000>, /* cmem */ + <0x000c0000 0x000c0000 0x010000>, /* smem */ + <0x000d0000 0x000d0000 0x001000>, /* smem */ + <0x000e0000 0x000e0000 0x010000>, /* pmem */ + <0x000f0000 0x000f0000 0x001000>, /* pmem */ <0x000f1000 0x000f1000 0x001000>, /* ap 32 */ <0x000f2000 0x000f2000 0x001000>, /* ap 33 */ @@ -77,12 +79,14 @@ segment@0 { /* 0x40100000 */ <0x4903d000 0x4903d000 0x001000>, /* ap 23 */ <0x4903e000 0x4903e000 0x001000>, /* ap 24 */ <0x4903f000 0x4903f000 0x001000>, /* ap 25 */ - <0x49080000 0x49080000 0x010000>, /* ap 26 */ - <0x49080000 0x49080000 0x001000>, /* ap 27 */ - <0x490a0000 0x490a0000 0x010000>, /* ap 28 */ - <0x490a0000 0x490a0000 0x001000>, /* ap 29 */ - <0x490c0000 0x490c0000 0x010000>, /* ap 30 */ - <0x490c0000 0x490c0000 0x001000>, /* ap 31 */ + <0x49080000 0x49080000 0x010000>, /* dmem */ + <0x49090000 0x49090000 0x001000>, /* dmem */ + <0x490a0000 0x490a0000 0x010000>, /* cmem */ + <0x490b0000 0x490b0000 0x001000>, /* cmem */ + <0x490c0000 0x490c0000 0x010000>, /* smem */ + <0x490d0000 0x490d0000 0x001000>, /* smem */ + <0x490e0000 0x490e0000 0x010000>, /* pmem */ + <0x490f0000 0x490f0000 0x001000>, /* pmem */ <0x490f1000 0x490f1000 0x001000>, /* ap 32 */ <0x490f2000 0x490f2000 0x001000>; /* ap 33 */ @@ -421,8 +425,47 @@ target-module@f1000 { /* 0x401f1000, ap 32 20.0 */ clock-names = "fck"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0xf1000 0x1000>, - <0x490f1000 0x490f1000 0x1000>; + + /* CHECKME: OMAP4 and OMAP5 may differ in memory sizes, here we define more than available... */ + ranges = <0 0xf1000 0x1000>, /* MPU private access */ + <0x80000 0x80000 0x10000>, /* DMEM 64KiB - MPU */ + <0xa0000 0xa0000 0x10000>, /* CMEM 6KiB - MPU */ + <0xc0000 0xc0000 0x10000>, /* SMEM 64KiB - MPU */ + <0xe0000 0xe0000 0x10000>, /* PMEM 8KiB - MPU */ + <0x490f1000 0x490f1000 0x10000>, /* L3 Interconnect */ + <0x49080000 0x49080000 0x10000>, /* DMEM 64KiB - L3 */ + <0x490a0000 0x490a0000 0x10000>, /* CMEM 6KiB - L3 */ + <0x490ce000 0x490c0000 0x10000>, /* SMEM 64KiB - L3 */ + <0x490e0000 0x490e0000 0x10000>; /* PMEM 8KiB - L3 */ + + aess: aess { + compatible = "ti,omap4-aess"; + status = "disabled"; + reg = <0 0xfff>, /* MPU private access */ + <0x80000 0xffff>, /* DMEM - MPU */ + <0xa0000 0xffff>, /* CMEM - MPU */ + <0xc0000 0xffff>, /* SMEM - MPU */ + <0xe0000 0xffff>, /* PMEM - MPU */ + <0x490f1000 0xfff>, /* L3 Interconnect */ + <0x49080000 0xffff>, /* DMEM - L3 */ + <0x490a0000 0xffff>, /* CMEM - L3 */ + <0x490ce000 0xffff>, /* SMEM - L3 */ + <0x490e0000 0xffff>; /* PMEM - L3 */ + reg-names = "mpu", "dmem", "cmem", "smem", "pmem", + "dma", "dmem_dma", "cmem_dma", "smem_dma", + "pmem_dma"; + interrupts = ; + dmas = <&sdma 101>, + <&sdma 102>, + <&sdma 103>, + <&sdma 104>, + <&sdma 105>, + <&sdma 106>, + <&sdma 107>, + <&sdma 108>; + dma-names = "fifo0", "fifo1", "fifo2", "fifo3", "fifo4", + "fifo5", "fifo6", "fifo7"; + }; }; }; };