From patchwork Mon Mar 24 16:25:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 14027531 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3AA90C36002 for ; Mon, 24 Mar 2025 16:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=MydIHs3qFCXYHM7b0s9l0s9CjimN0OE0vCb1xP0k2Sk=; b=LvsZuqVCB8OjAlrSGACLvj8psD v88PFHSdFhftPH+unekOmF9BuRd0INwaAp9ISDRzx0dI3H8zT8wZKPYd+TrF/Wn4dvJ8JHYGrqXIo 3C/yrIWUC65J6v8K/LhSee6J1w95rvPFWgKv/+dWWo1SvNPExcq9I9XtoyiWSH3RbLrxRrWeu9LuL OP9prwuzlXTXTWk+AhsqRD3zs7mlvr3fRmOMjS4lMt8wOaubgjvP9B7fF1+PKflpqBQQPvs2Aqofu VnQkag7NHLZAQnFyjqVWSL5O4NDNaBHxRD0EJJAZr59sTZGe/ou1D0eNAPqWk6ZUwhcsOp3cuGg1O EQkvOR0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twkmS-00000003fYS-2CQB; Mon, 24 Mar 2025 16:36:04 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twkgm-00000003eRz-2zgN for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 16:30:14 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-43cf3192f3bso40069645e9.1 for ; Mon, 24 Mar 2025 09:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742833811; x=1743438611; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MydIHs3qFCXYHM7b0s9l0s9CjimN0OE0vCb1xP0k2Sk=; b=Q27gj2MHQISjWANRme6rA4kir7UidI3qw/CfWavWJJxSpEFnx732Vqc1P5tDwDJxb4 4GEP2p+jTlsoLpvLecPD/PuXYOuoRBXpG5RuJ5n/rgETi9QV2jzj+JX8itp4zKYoWfjq R7Oc2F69VEkTPU4+6IAMW6afunOCxlRSlW0BBF/kUkdtzAzlcFChfDwK1ugOHbLS8+g6 u5oNUq+SctCI4IGokjEMAIz+FJbqmg8HfQb4ldyq+jDPJ8674dZvHYMwvJ9DiKKj55yv vYKF/vALH6T+lKkCLXo16zSV5lFO7dX/omcxGZ8ugiH0AWsCc+82DikqjMtU1K4cHwMY bV/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742833811; x=1743438611; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MydIHs3qFCXYHM7b0s9l0s9CjimN0OE0vCb1xP0k2Sk=; b=dVu+Ja+qCCsby/3La+JGLNQzhKz9ZHEGNWBEnJCVDpR2U//75LrKF7h1TRYEkbqIrS evjvxtdvbZJFXbGqVWssTufhqj5/AfqC4O5lJDiWLqm9D5N0ml7HjOuu31ziTMWfrfrR X76/LJuwBErBkaZYsZCfg3SK01g1FT1RaSz1eROdATdBY1i2HzpXArOoJfeObNma5UCK iVLpLSJ+XHMiG6/b2zax0FFvVYbFjQprjYglOTZ6iy1RIeWPHeeVA/TQ/XJkVQ4glgzF mI1aWx/B1zukqRkKijt/TFSsqeLFVK+hExtgwUDxgzTstvBUy0pxBwTzjVbf2VemszI4 4ubA== X-Forwarded-Encrypted: i=1; AJvYcCWNuTerlxFtULCXzi8TRSM70CR80AIXfHxPQmx5u4UGinZWPQeUAXSvLmjLTnRez+dDG4sG+mCMxsUz9ENDSchR@lists.infradead.org X-Gm-Message-State: AOJu0YxMC28nDr6jIAMtPekme+9C0L2aFKJ8TtFL+EDaWWxZM+F8lm9Y UmtldO8VPMvbfWCrb+cTtO4XuI+IYgUOn6YcEHTkbvFnm0L+8Azq X-Gm-Gg: ASbGnctJj1CFjvBWrP30oHxex46n/kD4YrH8bOQF53XoE721QsC7R50na4IrLkiJnNY 25fa3rHhA2QiraaN8qPcAxq7wf/EkYbfFJTKu7UpKsSIB+3kLlZB5N5d3KT3e1wOSSLvSOv/bDn 4TXU29a7bLlizgK+pTgfOxDzrndX2UWzRM5AqqvXJEaBj2FqK3CNG8jNrJ6Bi9O+5y6GK9JNgt+ xv3aTvOiMd0I/hmumuyTZN7SNPX1f8e9/SXRDctEk7qGoFW7jU+dKZVQxuOc5DM1dXMcgbNxdGk vsyOJ3+HWVtI1bT0rch8p/pTPMpn10qnCk5DXq9y2taIsKIrwL0Jrr70EASxsoXmU+qPFseXpCW h0ehI2S4= X-Google-Smtp-Source: AGHT+IGxi6nV2n7varj0qhe6d2tnIqqhV16RoNl0Qc8fSY/LOPv+JoBGfDdaLR/jA9RX2SzmSWv2Dg== X-Received: by 2002:a05:600c:5849:b0:43c:f81d:f with SMTP id 5b1f17b1804b1-43d52a2068emr83255765e9.8.1742833810655; Mon, 24 Mar 2025 09:30:10 -0700 (PDT) Received: from playground.localdomain ([82.79.237.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdb0669sm124106765e9.34.2025.03.24.09.30.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 09:30:10 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/5] dt-bindings: bus: add documentation for the IMX AIPSTZ bridge Date: Mon, 24 Mar 2025 12:25:52 -0400 Message-Id: <20250324162556.30972-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> References: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250324_093012_770213_07F8B42B X-CRM114-Status: GOOD ( 15.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Add documentation for IMX AIPSTZ bridge. Co-developed-by: Daniel Baluta Signed-off-by: Daniel Baluta Signed-off-by: Laurentiu Mihalcea --- .../bindings/bus/fsl,imx8mp-aipstz.yaml | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml diff --git a/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml b/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml new file mode 100644 index 000000000000..c0427dfcdaca --- /dev/null +++ b/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml @@ -0,0 +1,107 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/fsl,imx8mp-aipstz.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Secure AHB to IP Slave bus (AIPSTZ) bridge + +description: + The secure AIPS bridge (AIPSTZ) acts as a bridge for AHB masters + issuing transactions to IP Slave peripherals. Additionally, this module + offers access control configurations meant to restrict which peripherals + a master can access. + +maintainers: + - Laurentiu Mihalcea + +properties: + compatible: + const: fsl,imx8mp-aipstz + + reg: + maxItems: 2 + + reg-names: + items: + - const: bus + - const: ac + + power-domains: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + "#access-controller-cells": + const: 0 + + ranges: true + +# borrowed from simple-bus.yaml, no additional requirements for children +patternProperties: + "@(0|[1-9a-f][0-9a-f]*)$": + type: object + additionalProperties: true + properties: + reg: + items: + minItems: 2 + maxItems: 4 + minItems: 1 + maxItems: 1024 + ranges: + oneOf: + - items: + minItems: 3 + maxItems: 7 + minItems: 1 + maxItems: 1024 + - $ref: /schemas/types.yaml#/definitions/flag + anyOf: + - required: + - reg + - required: + - ranges + +required: + - compatible + - reg + - reg-names + - power-domains + - "#address-cells" + - "#size-cells" + - "#access-controller-cells" + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + + bus@30c00000 { + compatible = "fsl,imx8mp-aipstz"; + reg = <0x30c00000 0x400000>, <0x30df0000 0x10000>; + reg-names = "bus", "ac"; + power-domains = <&pgc_audio>; + #address-cells = <1>; + #size-cells = <1>; + #access-controller-cells = <0>; + ranges; + + dma-controller@30e00000 { + compatible = "fsl,imx8mp-sdma", "fsl,imx8mq-sdma"; + reg = <0x30e00000 0x10000>; + #dma-cells = <3>; + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SDMA3_ROOT>, + <&clk IMX8MP_CLK_AUDIO_ROOT>; + clock-names = "ipg", "ahb"; + interrupts = ; + fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin"; + }; + }; From patchwork Mon Mar 24 16:25:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 14027534 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F25AEC36002 for ; Mon, 24 Mar 2025 16:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gu5G8CnhO94dSAWaShWe9FJyZsw97QYskm73IppyfbE=; b=f/gqPLuGGkxNSmLtWABlTUjuQd dF5FytllAqZznM36wKTfEhY8xmyaR5jWE0BTORsLT8BXmPA49MJR0nw7ajL7PDRp0hhI+OVoN0UED HY9MK5GnsiM1jUQjCDT89XjQpJUkCvrufuQ/Fu7W/5lT8rBTSXfbWDsmH8zTCZX7b0u6ikdcOvrYV o91xV6XU9CaqBb2znunT5rafV3UMAgO24nQiMWqedx7Q1EUPlJlo8x5YHe6N1Xzf0HxpVhDP4LAKO AWzZEWeUxOflV99mnVwL4zQWrxJpmQlFbVPdLwsMT+MvvhcXWrGxrqVOuMgnLeMJf6igXq2Piu61d SW58l/Nw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twkoA-00000003fvL-0oiP; Mon, 24 Mar 2025 16:37:50 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twkgo-00000003eSY-21ho for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 16:30:15 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43cf05f0c3eso29977195e9.0 for ; Mon, 24 Mar 2025 09:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742833813; x=1743438613; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gu5G8CnhO94dSAWaShWe9FJyZsw97QYskm73IppyfbE=; b=HaMQcClTrcJv9OvX4hV2iD0oMpW24Uyf8FfVPMXpCJDPZsPpJjMYi09R1daxryAxjj 3D0iPyatKmX8+EUkxlDM2s1/mqh7RUvm1rvMrWztQ0ibZN2cXt8zebZ+pPHtQGCqW3kh zyDk74EL+yEXNm0DHwZ37iSW+4agHgquUr9hnJ1i9vGKd+IOIkNVML33STZXLnHAWn2N JokoVECX4alrq0lydAdQSHqkvST5U2LeEwyn9q9efcjsNtlqH7BhAJz1dRPshBobnUgm n/ZgRcnNXl49EgS3moGcIUPTH+zMMumW8+vy4ippYyb6Cp3USgu2KoXuF706tTiHoOgo oZpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742833813; x=1743438613; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gu5G8CnhO94dSAWaShWe9FJyZsw97QYskm73IppyfbE=; b=hKVjYwIbJu7oXMGhuuuJ91Oil37QyCFxsgA5eR6Wtwh6xE64xIvKOCkS86QHqd804R CetRQxTl2+KQSYSlALxKG2bQJSYz4R8WipyiKDPnlAwS1sdYj2qXt8cB0s4yLWeNRuee JPdtFbLoxvLopXIylhCgYqnzr2Krj4oVJ/DemWJJZeJCXXe3f6iPweWpX298Gy/YWDJx dBa0ntpyil/C7K96M+cBSvFtBZW7sVy0t/Sqxq9KQCgqC+bAFU8v4aNiYh2KFRy6Oq1e 2l4qVEBhT3tMoFsHQN95gTO70ldqtJQW9XzWEwBUbWDu2L9nCop272v4EqNmTPZBIp0h bziQ== X-Forwarded-Encrypted: i=1; AJvYcCUFHjF5KO8n+8fdEgEcvfQJP1iQC92Wi1zaVujOKF7LLIk3RBy8R2tIxji2bPJQgSkCqTij1bryfzWOp3Tz6Xnw@lists.infradead.org X-Gm-Message-State: AOJu0YwTXiN/4WMD5zwsp/QwHGLA3dOKbisKfdl7K6bWrwzhrLLYZNjR Z8Zqr88QMxZ0u57Wp1STAsv5l5nvs35OCBxpgwanvl/VGcZkpbuE X-Gm-Gg: ASbGncsDVZ+WENNBllz8tnhqr+xlTBOxXg5xUGpAEPdNd3bC5lcgJfedqZ02+5rnHJn AjwKFGi+R5fPRyEPEDQ51W77+bZVb5mQK4knujVDMxpo9t/NqAqMBp+wg20J2DIl9waIzUyUeIe SHXFcdIHcO01jA5ajlSS5mH7YZM/mzTqxxrCoDsxZz8M7W/vOsbsr7wglOGayUm/7VOurp3z3Gx cGN+Om2fbwWRLWPVRn6cu5L9cuTG8fJkk4sG+eEA/Yz6FwYo53hjSTwjKIQOU4ZICxJ17D9eDXk lYzcqqPPHGQwZH2WVaL0ybWl3ytIrjbxFkYarhaVtLtvEa+9qM05HALRof151Zmo4IT5UMzqSHd WolqMin8= X-Google-Smtp-Source: AGHT+IGu6fTgDwofVoKRjp4DA1DLbpppRHEZaZIgwdT9HARin3pVTWNzJxo96bidLrG+Ulb5IFSLDw== X-Received: by 2002:a05:600c:3b9c:b0:439:86fb:7340 with SMTP id 5b1f17b1804b1-43d50a4ca6bmr119432205e9.30.1742833812679; Mon, 24 Mar 2025 09:30:12 -0700 (PDT) Received: from playground.localdomain ([82.79.237.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdb0669sm124106765e9.34.2025.03.24.09.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 09:30:12 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/5] dt-bindings: dsp: fsl,dsp: document 'access-controllers' property Date: Mon, 24 Mar 2025 12:25:53 -0400 Message-Id: <20250324162556.30972-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> References: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250324_093014_521070_F8705B40 X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea Some DSP instances may have their access to certain peripherals conditioned by a bus access controller such as the one from the AIPSTZ bridge. Add the optional 'access-controllers' property, which may be used in such cases. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/dsp/fsl,dsp.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index b8693e4b4b0d..e610b7636a08 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -91,6 +91,9 @@ properties: - const: runstall - const: softreset + access-controllers: + maxItems: 1 + required: - compatible - reg From patchwork Mon Mar 24 16:25:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 14027535 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 40D73C36002 for ; Mon, 24 Mar 2025 16:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+dkHLVtiZRGLb+v1unC8oKgvdUemVJjrLv1sSsCEAtg=; b=iSrl/x3UNMFDDIyV+a3wtBwn33 mbHTdyf222e1TW2/7UA24+L6hUgvab+pmBvGTdN+iZf1aftderKjcslNwegHbStdJfQoQbwML8Th8 IEDJo3QnPuJ8244QIX871NDSOgVo8sIaG2d3Bnj2L8U+8iYSG5sfmBqh0Kxsi4V/c53KG+TNlB0JS dAxwSJ+fw+h46O1N22UlWc3rYTcZlz0vAGmC7m2ujdOg65/1Jr1UMQ+n5cEKyIsJrqakp+P/EVMjI 6HBxj2RPvZ+IOCTTRov078qbi2x2p5gH29jFrp5jtdzntw4IGWo3Krq1DAU9zaJxrwSd92kCUPlQt gyOMFInw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twkpq-00000003gBc-3hFw; Mon, 24 Mar 2025 16:39:34 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twkgq-00000003eTQ-2WjA for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 16:30:17 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43cebe06e9eso34766815e9.3 for ; Mon, 24 Mar 2025 09:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742833815; x=1743438615; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+dkHLVtiZRGLb+v1unC8oKgvdUemVJjrLv1sSsCEAtg=; b=O9oUr6wbzkV6PKD3Lvl9PYWnp8Xqs8ZK2i/cgxT9nb+w/fx75r7Wg4IWJsRl4RT5PV vhXwahqKcDJZNPM+rNlbxn+nDn9QBo4k7lR04xOY9E8tJjqtn7psZNrMoQ1IJoWAtIPA UAK1BTQk2BUquVCwtCwK8JksuI6x0dYMkR0Lo5cFYxmG2RjkdGQAX1ANEaf0pT55bf4r tXLz2FDzi6TV740JdG+YUpiuTMwTyqP4WBrGYhIoOCO1Nmcm7pG3efLICqGukYqiy6du gS3vWARrVrMg4ENzdyiDe97CDgbIQDsIwuXrRS30xJtDuV1oF2dmxb03mHXDumttBJmS IBOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742833815; x=1743438615; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+dkHLVtiZRGLb+v1unC8oKgvdUemVJjrLv1sSsCEAtg=; b=A0vwG1/TkTzEE3LMZ0XbfpZtAGZ/DfsLWB8fwFZcb+3SOEk41qxFWy0EMrZyUyA+nO 2HbFsxpxOJ7bjUkkjmFRv14fWm+PkfzFRMvXrSkIFEyKdmJO1itTTB66h4V0qzaKabkM gaQQ41cFzxPpluKM1j4mUXDdlBjxu8nqqUxgK01GdSRn7vt64r1ZTL7J/Rk8RA281bj4 CRJ9vuVMahb736ylEuyJwqZ+C5rM8a5s0LRFdplSoBMObQ4Oic9U8SwJPMxSk057u8Q6 kuQ2zCsePGhEPOAtbBV79fgszJFRFeC6lyfEL+acgiwMKdIBn4TwMi13SBqR2ae5Jlgp M4Ww== X-Forwarded-Encrypted: i=1; AJvYcCWXfEOCchVdnXst/yFGpvtQrfKjW7C/hEnDt9BafmyCIQNIJ5rIwYAmgYow09iWkG8UUI4V5bOEuEcf0oUQonWT@lists.infradead.org X-Gm-Message-State: AOJu0YxUxV4lfrKpfCOgFmrINc0KZ18QroZgaIN3x6CEDaj/YnGbIzaT Kb1BV4C/Vh3r8yqRAt0PQR46R9zeTFB4mTLn0DidnwAFsWdSCLCD X-Gm-Gg: ASbGncuElRnfzMrVrEQOek82HGoVXPPXy5TAyS399VUcYPh5ujhfung3LP3naKKzReL Ze43r5uIeTWlBfVCPejY2Fnl247P8df/Dw2H2imHsNQW9DyYDbF66ICwwFTUe/kpA+T59nnlip7 vKbO4lYT65OlV98NeUMCvyQmamerGx3rf0RAwIi13Gdozyn0o2AUIWz44qW0ADIuMRlgp0IVdhg OTBOsciDCqBGoyWk7tERt5RqV/JXK1y0cA+ewNmH1BJOJOfdZoGAEBCyIQXgYytxr8XBsFEFvgr o7x1TyVwhqMAyBIPhM0Xz66eA8PFf8g3aAc5F/HSZjmlQ57ftjztSTTwH8kuXQL9bE3WtY4qgEl hbZoAYkw= X-Google-Smtp-Source: AGHT+IH2+OEelK919FNU/gpPRx8fo5vdl1AROa4aq4iE0A/wWtsH8FX2Q56/X5JEk5OPq1wa3npreg== X-Received: by 2002:a05:600c:1d15:b0:43d:677:3a8a with SMTP id 5b1f17b1804b1-43d509efa8cmr114128435e9.10.1742833814705; Mon, 24 Mar 2025 09:30:14 -0700 (PDT) Received: from playground.localdomain ([82.79.237.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdb0669sm124106765e9.34.2025.03.24.09.30.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 09:30:14 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/5] bus: add driver for IMX AIPSTZ bridge Date: Mon, 24 Mar 2025 12:25:54 -0400 Message-Id: <20250324162556.30972-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> References: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250324_093016_642424_A0662A07 X-CRM114-Status: GOOD ( 24.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea The secure AHB to IP Slave (AIPSTZ) bus bridge provides access control configurations meant to restrict access to certain peripherals. Some of the configurations include: 1) Marking masters as trusted for R/W. Based on this (and the configuration of the accessed peripheral), the bridge may choose to abort the R/W transactions issued by certain masters. 2) Allowing/disallowing write accesses to peripherals. Add driver for this IP. Since there's currently no framework for access controllers (and since there's currently no need for having flexibility w.r.t the configurations) all this driver does is it applies a relaxed, "default" configuration, in which all masters are trusted for R/W. Note that some instances of this IP (e.g: AIPSTZ5 on i.MX8MP) may be tied to a power domain and may lose their configuration when the domain is powered off. This is why the configuration has to be restored when the domain is powered on. Co-developed-by: Daniel Baluta Signed-off-by: Daniel Baluta Signed-off-by: Laurentiu Mihalcea --- drivers/bus/Kconfig | 6 +++ drivers/bus/Makefile | 1 + drivers/bus/imx-aipstz.c | 92 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 drivers/bus/imx-aipstz.c diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index ff669a8ccad9..fe7600283e70 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -87,6 +87,12 @@ config HISILICON_LPC Driver to enable I/O access to devices attached to the Low Pin Count bus on the HiSilicon Hip06/7 SoC. +config IMX_AIPSTZ + tristate "Support for IMX Secure AHB to IP Slave bus (AIPSTZ) bridge" + depends on ARCH_MXC + help + Enable support for IMX AIPSTZ bridge. + config IMX_WEIM bool "Freescale EIM DRIVER" depends on ARCH_MXC || COMPILE_TEST diff --git a/drivers/bus/Makefile b/drivers/bus/Makefile index cddd4984d6af..8e693fe8a03a 100644 --- a/drivers/bus/Makefile +++ b/drivers/bus/Makefile @@ -15,6 +15,7 @@ obj-$(CONFIG_FSL_MC_BUS) += fsl-mc/ obj-$(CONFIG_BT1_APB) += bt1-apb.o obj-$(CONFIG_BT1_AXI) += bt1-axi.o +obj-$(CONFIG_IMX_AIPSTZ) += imx-aipstz.o obj-$(CONFIG_IMX_WEIM) += imx-weim.o obj-$(CONFIG_INTEL_IXP4XX_EB) += intel-ixp4xx-eb.o obj-$(CONFIG_MIPS_CDMM) += mips_cdmm.o diff --git a/drivers/bus/imx-aipstz.c b/drivers/bus/imx-aipstz.c new file mode 100644 index 000000000000..538ad89dba30 --- /dev/null +++ b/drivers/bus/imx-aipstz.c @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2025 NXP + */ + +#include +#include +#include +#include +#include +#include + +#define IMX_AIPSTZ_MPR0 0x0 + +struct imx_aipstz_config { + u32 mpr0; +}; + +static void imx_aipstz_apply_default(void __iomem *base, + const struct imx_aipstz_config *default_cfg) +{ + writel(default_cfg->mpr0, base + IMX_AIPSTZ_MPR0); +} + +static int imx_aipstz_probe(struct platform_device *pdev) +{ + const struct imx_aipstz_config *default_cfg; + void __iomem *base; + + base = devm_platform_ioremap_resource_byname(pdev, "ac"); + if (IS_ERR(base)) + return dev_err_probe(&pdev->dev, -ENOMEM, + "failed to get/ioremap AC memory\n"); + + default_cfg = of_device_get_match_data(&pdev->dev); + + imx_aipstz_apply_default(base, default_cfg); + + dev_set_drvdata(&pdev->dev, base); + + pm_runtime_set_active(&pdev->dev); + devm_pm_runtime_enable(&pdev->dev); + + return devm_of_platform_populate(&pdev->dev); +} + +static int imx_aipstz_runtime_resume(struct device *dev) +{ + const struct imx_aipstz_config *default_cfg; + void __iomem *base; + + base = dev_get_drvdata(dev); + default_cfg = of_device_get_match_data(dev); + + /* restore potentially lost configuration during domain power-off */ + imx_aipstz_apply_default(base, default_cfg); + + return 0; +} + +static const struct dev_pm_ops imx_aipstz_pm_ops = { + RUNTIME_PM_OPS(NULL, imx_aipstz_runtime_resume, NULL) + SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) +}; + +/* + * following configuration is equivalent to: + * masters 0-7 => trusted for R/W + use AHB's HPROT[1] to det. privilege + */ +static const struct imx_aipstz_config imx8mp_aipstz_default_cfg = { + .mpr0 = 0x77777777, +}; + +static const struct of_device_id imx_aipstz_of_ids[] = { + { .compatible = "fsl,imx8mp-aipstz", .data = &imx8mp_aipstz_default_cfg }, + { } +}; +MODULE_DEVICE_TABLE(of, imx_aipstz_of_ids); + +static struct platform_driver imx_aipstz_of_driver = { + .probe = imx_aipstz_probe, + .driver = { + .name = "imx-aipstz", + .of_match_table = imx_aipstz_of_ids, + .pm = pm_ptr(&imx_aipstz_pm_ops), + }, +}; +module_platform_driver(imx_aipstz_of_driver); + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("IMX secure AHB to IP Slave bus (AIPSTZ) bridge driver"); +MODULE_AUTHOR("Laurentiu Mihalcea "); From patchwork Mon Mar 24 16:25:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 14027536 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 42BBCC36002 for ; Mon, 24 Mar 2025 16:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nXT10w3JwIzjDNmgL5a3o8h4+fjE6CRvvk0IUCmWmyY=; b=MDQzHdSuHw0NibPNf+9+UwpJkY uw05zYkYac0tnSJ45/wqSu1fiA/omX913fvTXbNRJ8noUgVGbrOxfdRaPV6TbDVrHgB/Zx8kWfR4n MYxVdCWJqSxQWKedK9TQYUAEfA4PwOmcE/0KhfTzdNCcG8nnH5BF+VV+Ien9R+zoexidXh3EFZ/qG GmxHiihLZ2PF+Gt95aKA0pNHQOSnQCYZLyCrHU1aeObK5fFy7uMhiW37bEc5PbqSXhaeh04YYGnEP 8Vqi0yzIyE9xJ//bltBL84z/xDCBUefceFCfxUNAuK/rRbfx8OA9u1gjHmNb6G585KVBjFajpDX1E vp0hPsig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twkrY-00000003gdn-38dt; Mon, 24 Mar 2025 16:41:20 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twkgs-00000003eTr-0uFH for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 16:30:20 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so28972405e9.0 for ; Mon, 24 Mar 2025 09:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742833817; x=1743438617; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nXT10w3JwIzjDNmgL5a3o8h4+fjE6CRvvk0IUCmWmyY=; b=Mp+cpqezSqMrCQq+hggJ6GO2/pDT+1/hGOYxbZYYO3ldUKoo69nmlf9E5Q3BvKvD4f TFMxGcWl/ayiVrmRzwgHhCyGFG9ivq4R1wIyZmbYeu5qOtyGRkbFVeXRxuCsv8XEwkKp VHAOm3iPNHli36CAOUQROW41bqQ2FwnDudwcpRss9vUzjGXy0TBixpA5/g26wp/3+4xa 6AX9OR6hA8KaNMUTD2N05CfuEL9gYkeo/Pil2vyrJbFqCGdGGPYRdNL4fIh1U1aJ5mbR F1P/aZ9/13QsaJMSeeBMT+N4Wjvhx6uYPJ1EBy4mTRjUbfQvo1+6+a8yFENs3/jVrRHC kyUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742833817; x=1743438617; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nXT10w3JwIzjDNmgL5a3o8h4+fjE6CRvvk0IUCmWmyY=; b=iNOe/vsKnQLMR3601KAstFud9l0xzoBa9RkWm7OwV593Ua1G/ZqqIRqVDNIwgqthWt 1LQpnHrdT1IO148vhq2w7neNhp3k/0pWpW7gxG23rnmV8ZhLl9nyCRePlzYTP7R0iVFq 33zd888Ui2LZS5zmzBTahJTN8NsfedUYVOZhDRKD8L++SIpgxZFPDSsaXmWKGCnfEgUH Una0nU8uBhM0VXidEjbhi5c3skqlbF14kdrgRojULxA+5fSOAnP2NTP+VwaUBIs/v81O QxX/FbQPa09oN0riDUS2a2yoTzSb1QEgQa4a5u4QGEw9aRNzph/1Jnyy+AdLseHvoSMk yCTA== X-Forwarded-Encrypted: i=1; AJvYcCWGwSQmOh7k0WKmtv5Ab07o44AquqwkDqKOcYT9knEA0UCfDon7ffoKlFFN++5K5YsWC3Crg0a1wkC1RbL2qqm8@lists.infradead.org X-Gm-Message-State: AOJu0YzgUvmXsvjrJ6xRF8OmqHo5mMX+0MD5ZpPB2BOiyr/KP+x8rXDS Hcgxa29LGlb2oQWQSW7KAVfRycXfk7NLgxcLPgrKB2vVny9x5f55 X-Gm-Gg: ASbGncvB7xSEqOmO1Mgvujgoy7oKp/jkh6/udIIN7oDi8sOe61PHwkfeLci6lInh7jz rwmqA/Hn35KsTaCINOyO9IUHQ2xi6NVN2JWdLTwFu5IQZs87O7RMWkl98V7PdKI1Qx0McNW7Yt9 WyBwoVCdVVpGJzm8h9xoiDLzm2lBMhuSxXXt/YeI9FQ9N/iefl1h6fNZw5tE/NPVyGu8XHDvB05 z5PdOMtaGGNjS7Kz6RZrvoVy5a/jmS5/ed+DbJKhWjRyi8BaD8zVT3fAEKlXtnZBFwDsgPmSsFB ZB9d8u0VzfKY5wTTZTTfSSndS5ZA8dJRGLUF9wlfvFza7xSSaLKQMDRa2XC4P/VuYGZYiVAfXb9 ayDV1Olo= X-Google-Smtp-Source: AGHT+IFx9LdNvoxcmfurF69vi4WC8lka5DNxoYeKcQFuNnicURHcUqXEChK3XzKRjFR0RH0cV+xM3Q== X-Received: by 2002:a05:600c:1546:b0:43c:ea40:ae4a with SMTP id 5b1f17b1804b1-43d50a524a8mr131049695e9.31.1742833816586; Mon, 24 Mar 2025 09:30:16 -0700 (PDT) Received: from playground.localdomain ([82.79.237.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdb0669sm124106765e9.34.2025.03.24.09.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 09:30:16 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 4/5] arm64: dts: imx8mp: convert 'aips5' to 'aipstz5' Date: Mon, 24 Mar 2025 12:25:55 -0400 Message-Id: <20250324162556.30972-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> References: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250324_093018_254662_D3A33830 X-CRM114-Status: GOOD ( 14.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea AIPS5 is actually AIPSTZ5 as it offers some security-related configurations. Since these configurations need to be applied before accessing any of the peripherals on the bus, it's better to make AIPSTZ5 be their parent instead of keeping AIPS5 and adding a child node for AIPSTZ5. Also, because of the security configurations, the address space of the bus has to be changed to that of the configuration registers. Finally, since AIPSTZ5 belongs to the AUDIOMIX power domain, add the missing 'power-domains' property. The domain needs to be powered on before attempting to configure the security-related registers. The DT node name is not changed to avoid potential issues with DTs in which this node is referenced. Co-developed-by: Daniel Baluta Signed-off-by: Daniel Baluta Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index ce6793b2d57e..ce9f6da1e257 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1400,10 +1400,13 @@ eqos: ethernet@30bf0000 { }; aips5: bus@30c00000 { - compatible = "fsl,aips-bus", "simple-bus"; - reg = <0x30c00000 0x400000>; + compatible = "fsl,imx8mp-aipstz"; + reg = <0x30c00000 0x400000>, <0x30df0000 0x10000>; + reg-names = "bus", "ac"; + power-domains = <&pgc_audio>; #address-cells = <1>; #size-cells = <1>; + #access-controller-cells = <0>; ranges; spba-bus@30c00000 { From patchwork Mon Mar 24 16:25:56 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 14027538 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B54D6C36002 for ; Mon, 24 Mar 2025 16:43:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=meQ0Mipo8UgEq53792yFhZe7Xcnc763+mjkb31Obgck=; b=h6BCB2BZ3c+vmYPu6uDICHntuF m6CfDg0Is/Co75TD989juiH5LwSX0lwEms/sWQ+rjTM1RUnUxk7hMIGmsS3D6JrxCtvJm6PTta8w/ eEUfnUqFZMRBuQ3wbRBMN2RcKufXLFv9FcoA+9kjdFS4Y4LFH8OAkIHzUuXaqYygb9ylg/uJ6m616 eysB3LCeiX5+xTVnjiKAruUHhQVyk8Y6xbuLC05nZHkbY2Rj0mr41RpKVIJR5vpI/55pgx1SW9Yqx /SFijzrsOjkur45NMcuJJrrIDZ2QwNk0Sbrm8wtXNjYRWVhjljiRoCGAKMiV2P97im6xJU537O4CK vH6VIoQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1twktG-00000003gw1-1lql; Mon, 24 Mar 2025 16:43:06 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1twkgu-00000003eUT-458R for linux-arm-kernel@lists.infradead.org; Mon, 24 Mar 2025 16:30:22 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3912baafc58so3657557f8f.1 for ; Mon, 24 Mar 2025 09:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742833819; x=1743438619; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=meQ0Mipo8UgEq53792yFhZe7Xcnc763+mjkb31Obgck=; b=V90Fjogagm9h68tffakirr8zcqO9aC0CXw14uSYg3JuapDq5HaFtCURngFtBAgQ0yM DLyAVNYWX7sunehaPMU5atS1Yq3T8SR5RPwQD/tGMxcKV0O99Qapn76ligbw3yRDWrwL MVGdguBmew1/Iw+q4iAtvDM67b6n5HBbnILl3fkmORxaarpSI1JgnTruOrZHxoJwZeL9 ee3D3uLqP0CRXUB5tgVr1H9NSOcylOgfGPowzx5j/NNQd869G1/mNWqDmcyDy1HnuvaF YgwhrHZCFSaFjBXEShmc+/aRaCmBy/lXkTx6Oql1NPMXWZHHY1baxOXqWQ37/z7lyTEB O+lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742833819; x=1743438619; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=meQ0Mipo8UgEq53792yFhZe7Xcnc763+mjkb31Obgck=; b=qRgDkK0hpxD7nEzpHQuaA7UxhFB2fYLKyB5kkzY9ULXGxg7l2PxPtq3oWqBRS4qCiK ZltDrmS9hk8YBLmBTLpmLYfNvSo0A/v9naYQmZEco2iG2BXfv7E5WXZRSfhtH67BzNAG QxQARFwqGccOEgtMH8jfFGN96dmW+TJLFBjLvltqoYYYlyy4mfvyBfAgR+QRtoa6KwbZ 7xV0u7EkyfJmFbW4zdRDgsUpWeG3Z6ZdEvy3821PM/w3EL+f2WUf28VtuolEZXMyJT6G uCtTZcaLC1be/rzQVZkqB+nOO/2o/1cEzITKCqHj1ponxeSB/aqkZxPLw6kyEV8BSwIT 6EMA== X-Forwarded-Encrypted: i=1; AJvYcCW9KBpqYPij/DmV0Z6wUQVBHlH2JRGRHqhCuay3zRqlcvh7oK/g71KGzETAa7mgYer1ysSJSwI6okrU0yebBHpQ@lists.infradead.org X-Gm-Message-State: AOJu0YxeNpFRCugnIXWwEXWKhBFpALv+HrLiCtvzoSuouNajwPGF4fmf lIqbpblnOBLLUbq7ESycqVuLlVvFYL5xigi7K/cDNDzP4cVYUVwp X-Gm-Gg: ASbGncvrP5AdsrljVLeNMfbWs470w8QSLnFpGkwVvzQR/n4ZeTPXbQbTFYH0T+RtpuX /qZUPsVi+K0JfV9fg2mibxaB9W2+7N011TkZ5wnxl/RDeVv0qdSjtXQ7rMsJMa0FB3F+rtxxUr9 po3sB65hgt/+vMKX+ezHqh+EG/sY2NVG/LR2ObQyJY2qv6YWJNInxYZw6j1JiUP82M4ek9kEVKD VVwo34xYMoTc31pjkdqtrF5WBkgccVwAFxaYy3p4a5Ibq9MF6NuBLOvecMgbbeaumxDAf0I/7v5 lFpEs/zEvkHH12pzejPOh/R+lWCmDwhVwdxY6WaJhc9Ab6c8yasyJmHdPSlTc8iWBtFloWWeh0f 2OyaA/lA= X-Google-Smtp-Source: AGHT+IE66Gqa84UGtwTooRZYvTVucmMfLSU4uitXios1JhaytT2gQ5+HpqGU4z5hPX3SCx18hnX4JQ== X-Received: by 2002:a5d:47c6:0:b0:399:6d54:25ce with SMTP id ffacd0b85a97d-3997f8f9cc4mr9475035f8f.7.1742833819118; Mon, 24 Mar 2025 09:30:19 -0700 (PDT) Received: from playground.localdomain ([82.79.237.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d4fdb0669sm124106765e9.34.2025.03.24.09.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 09:30:18 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li , Marco Felsch , Marc Kleine-Budde Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/5] arm64: dts: imx8mp: make 'dsp' node depend on 'aips5' Date: Mon, 24 Mar 2025 12:25:56 -0400 Message-Id: <20250324162556.30972-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> References: <20250324162556.30972-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250324_093021_013213_F5928677 X-CRM114-Status: GOOD ( 12.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Laurentiu Mihalcea The DSP needs to access peripherals on AIPSTZ5 (to communicate with the AP using AUDIOMIX MU, for instance). To do so, the security-related registers of the bridge have to be configured before the DSP is started. Enforce a dependency on AIPSTZ5 by adding the 'access-controllers' property to the 'dsp' node. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index ce9f6da1e257..db14e85023a0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -2425,6 +2425,7 @@ dsp: dsp@3b6e8000 { mboxes = <&mu2 2 0>, <&mu2 2 1>, <&mu2 3 0>, <&mu2 3 1>; memory-region = <&dsp_reserved>; + access-controllers = <&aips5>; status = "disabled"; }; };