From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B048921A952; Tue, 15 Apr 2025 17:21:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737665; cv=none; b=om8doGHzf2R3Dt3bSO+8OENilluGTmJClfdGjiaA6DuPMlH/M2+k2TZFT/ECH4kIFxVGar+MPU5sIQYHaVqDX2zKOh60/gXP6O3HUhJzQ/jHb5/c/diuj3NR0NZcKjhDBuLSOi0lDpsel72SriMrY7X3Az5fe5/n2EsqhXSG0+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737665; c=relaxed/simple; bh=YogC5pr2hL+OWqcsJP5ip6Uo84tqBvA1fB7I5weMwGo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cldFmBwwHu3f29PS+O1kxqfPjIWi+r/iN7Dg713EAJJeaH2YN7kYWKgK9ayOHKSgrH1bcbMJAw8osEMqgcejuEPWe899WESwk34FZD7T0wHmQa3YLrZRpKbs0Q7iWqxAtkOcmGGR6OVyr9uweUPQ7OPjPN+Me6iN7OH7WsjHgOA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QNGDzujQ; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QNGDzujQ" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-43ed8d32a95so50000755e9.3; Tue, 15 Apr 2025 10:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737662; x=1745342462; darn=vger.kernel.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=xX68KJbJESDlbPv3DAVN3pAKIAf/xvWJN3LoAooAL8U=; b=QNGDzujQ0VJL79D7PQXRUiSjxEnK79zSdnTpFl3RDJqeplhdd6rD2sZYeOYuDKZtzP 0lxIh860pDRDuqn4Hc39ySK5quqtvWfEPmayunUm+NmTsdb2zWbiD4c84IQ+wxEl/GWn wdVD4Hl+haNhBZZm1zCEOoC01dXmwP2vLqjlFgv61LcDez0llet3iyYiEAxaGHLC+P/p NLGR84qgBYQU4ly8ZsjNjmIDO6v6pNIOmv3mjg72dP6xHH2ct8XgCfuVDSspDoZk+S9L a9uwMMLTRlvLfsR08+KCh4eJgj9jp8x+tb4CqM+WWlrY8lPXmw6d0zLdi0yRpDNvSYZn pD7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737662; x=1745342462; 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=xX68KJbJESDlbPv3DAVN3pAKIAf/xvWJN3LoAooAL8U=; b=I8jeI7gSNNkxVfIPyosWWFG6hOMPnOf7Krhor+lOqj+CtYrYWOiJKLZgTj/ztTkrgm e9NhOZJ8UCp4HcxpIe6Q9dmnZ5PvXLk8fZ/vt4jpuPxYdpcHk0rBYvrQMhPwNKIT7OA2 Yvn17CIfeUMutEuNH9Z3z1AeAPqiB2kavId5/qOBbuMx7ugUdvcvG2LOa+GRcN8Zba0G ylB604Y43JnkEq/g6FHHNVCypHmU6z+EW3eiP0KhaMbUD9wq9vIQqemti+Vbkv9ecyDg rNwOKht7Fa79reFiqDSeknrjr+Gyv0R2ikwxiBNu55/n9VEca2t37qBWfoy+jjctzRjM 8VMA== X-Forwarded-Encrypted: i=1; AJvYcCWRtKffAKcEDctpIMWL/ny7G+qQCnIApYFKaIbDQL6hxzp7yHIyo4JUwI1ObAz7f3FwDKyuDfi/MqxY@vger.kernel.org, AJvYcCWu8x0aHrG/uSEgz9uOmtffq8yE3O+F+VVVf3/gC4KyzioyDjgQM4DJMUGGDDzXDMXdIzRgEGx0WaL3xXWI@vger.kernel.org X-Gm-Message-State: AOJu0YwJdHbPx8TdRR+NFOlu6aUnfa7NkkRXSoFz4TxwRQSXtj9Uw0rd YfFV9MurgBimi3nNiH79AgdKVojGEpBxAItyr0Mt6Z6RS5NC3Vj3 X-Gm-Gg: ASbGncuyax2NLrTMVPQKbuOIstzqK93bK+Cw6i1ehVg/LgeLES6m7ogxiVVb3LADSfG MSXXgZhDRUvEYSwtW95tLwDTf8wSsdG9Gfi93HnWgvRKjoUHhcKb2DveA+QdKZj2yXI8L5BJxu1 72dcLO9Kmb/GFgQzEmSScfLXlbiA/p9FHFr2mi26A60tQZ8NNslF+XMAnyaj0O8o1ZheLvJMXbP PdtcK3n1GDUuKRrSZjka78rflVPwKGVzruuOq2KMnwB90cFotPMfEH/I4nfSMEDf3opMW5pD88y PunP8RKAl6WyaJA/ualxHYzLls3gLbNnaEF8lBEIKfonFR7n7wxKQqZ1aEqVd5SQtzhLXjO9aad rvd0= X-Google-Smtp-Source: AGHT+IGexATWs9xYEDx7R0R1qXjf6CfWHffvaeNqe3O3HPpjBxVxTLS162TjpjaZJdg9rRYGMFbrsA== X-Received: by 2002:a05:6000:18ac:b0:397:8ef9:9963 with SMTP id ffacd0b85a97d-39ee2769360mr251985f8f.55.1744737661880; Tue, 15 Apr 2025 10:21:01 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21:01 -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 , Alexander Stein 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 v6 1/6] dt-bindings: bus: document the IMX AIPSTZ bridge Date: Tue, 15 Apr 2025 13:19:14 -0400 Message-Id: <20250415171919.5623-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Laurentiu Mihalcea Add documentation for IMX AIPSTZ bridge. Co-developed-by: Daniel Baluta Signed-off-by: Daniel Baluta Signed-off-by: Laurentiu Mihalcea Reviewed-by: Rob Herring (Arm) --- .../bindings/bus/fsl,imx8mp-aipstz.yaml | 104 ++++++++++++++++++ 1 file changed, 104 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..993293ebc4d3 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml @@ -0,0 +1,104 @@ +# 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 a= ccess + control configurations meant to restrict which peripherals a master can + access. + +maintainers: + - Laurentiu Mihalcea + +properties: + compatible: + const: fsl,imx8mp-aipstz + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + "#access-controller-cells": + const: 3 + description: + First cell - consumer ID + Second cell - consumer type (master or peripheral) + Third cell - configuration value + + 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 + - power-domains + - "#address-cells" + - "#size-cells" + - "#access-controller-cells" + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + + bus@30df0000 { + compatible =3D "fsl,imx8mp-aipstz"; + reg =3D <0x30df0000 0x10000>; + ranges =3D <0x30c00000 0x30c00000 0x400000>; + power-domains =3D <&pgc_audio>; + #address-cells =3D <1>; + #size-cells =3D <1>; + #access-controller-cells =3D <3>; + + dma-controller@30e00000 { + compatible =3D "fsl,imx8mp-sdma", "fsl,imx8mq-sdma"; + reg =3D <0x30e00000 0x10000>; + #dma-cells =3D <3>; + clocks =3D <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SDMA3_ROOT>, + <&clk IMX8MP_CLK_AUDIO_ROOT>; + clock-names =3D "ipg", "ahb"; + interrupts =3D ; + fsl,sdma-ram-script-name =3D "imx/sdma/sdma-imx7d.bin"; + }; + }; --=20 2.34.1 From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A71D21D5BD; Tue, 15 Apr 2025 17:21:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737667; cv=none; b=U8rpokwe8ezs5NXJrYmeg0P8e1NqAZwwJUsfRsCc319QYYz592p60N+eYqpcwnWA5Dl4khgCfkMV/JkR8DvnueCyFLb38t9s9HBWrwCT+lrZEEDJt9YVCg1+/Li7o02GfI4M0SIfxeXsvjr5aJiSlB97Cuk/cq12XMFT+jMRk9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737667; c=relaxed/simple; bh=jtozxlDlFArb33Vwn4r3NVMWeWlV1gMBeUBT/QzmsQA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Zn9/6oskOY08wKccW+XYdvmX7GoIr3dGQfLOrYFNNoQ7jpZb9ky+QWLSAMqbIbkWznfEQNK4cD8idPJOlHfdrfD1rrXmvuunOTPNLue8mTfY7d7TyVnGh5pvrm36933voeP03njPYS0Hw7dtdXF8KEZwXHMAYuJd2AjL5uZeW8Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=j3gLA6b6; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="j3gLA6b6" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-43690d4605dso46513745e9.0; Tue, 15 Apr 2025 10:21:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737664; x=1745342464; darn=vger.kernel.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=j3gLA6b6vqQhTkOvXcAxD4NaGrDIpMMsRseNkSeTWx8AYLgWGFJ+7/f8QRLgnV0Dxi LMtphC+qs+gwRPxWW13WrJTKA/YshJBWU0iXEAlQ+Y1C9MAZ3XZemxd7Mfj7JI4fac5l /i/jp22//sthyNlm9qLQaQhL/Gz6lJUY7klw0fcayNiD7wprwHDLxTuf9V3L+I9cP9n4 v23Ka9l5pcEVZCZ2GNkYIHR5Chjvt7T+qAe0ZCRfvU444HeISp/1BhIbMLsp3fgnF9AH 7Cwcjo6e8/sOXK0osFwWt03FDqQ7Xlq9EDmJHfGSONRZ1PBugfkIhnuCkIToMH7+zsov VOvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737664; x=1745342464; 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=d2rAa53S0FGZEWwHduoP+5UWK3zpEFO0c+EEt8uNNrPeL8wzVgGcGqyhWbfzgXnpAJ P3Xrqsqkt+nU+gCrNd5AvIr4NfuEtlkPCRDdNHdS7XCD5pXCvIWl8ztKrdpB0Tl5lAXp GuMMviFWSLd0oC1tK69ZMQ121la4aknmhownp1AoHqkDEV9oEXYKkZ3LtRLNrZy0j2vh lHc1s1icu0Zr151up99vVZyCKXGXDksPvF7ZLoRY4495Q6VvVIhY5n4wuNZG6p07AnqK lvvIXsQhTck7lw2O98WidHTXo8JSCjv1Cpch0XPlDtUhaJH/JdEzp3819Bx5z4Ti8DD+ sSrw== X-Forwarded-Encrypted: i=1; AJvYcCVYIy86TRjAttazeRhaY9BFET6O+Zmb4cpV3LbPrKUpO4gZU9UC7VBv4mkp1WfKbC+PYN0qltPnpPj7@vger.kernel.org, AJvYcCVloEmld0CSzjfjz6o/NkbPoZowuh9MkjvlelW+edUIZxHbWcG8mn/7mi52djSy5YPAFKbsdgNgYMTx6Mxf@vger.kernel.org X-Gm-Message-State: AOJu0YyonNRfZ9xTzObYrMuxut2BK7TR6Z1dud/JHQ712L6bHfmFdy4W FluFPY8bY+0xvuZlzDTqlISvCa2+lqNMzC+FNofXNHEIdgV9REZE X-Gm-Gg: ASbGncvTTyZhRn5dYtb9TNwzaClxUijNpaIRhysc++qzVKoQPDBCGDAc7JVq3ixAkxq 4MkjccRTWaO+7BLwlJEumy1UR51jKuYzxFAb4pUBAF/sY20GStF8qQZ/Sh8FyLH2udtOEpCRF4s i6nBk9b16lTnrBsdkdQW+NvoIPWNk8Z0vJ58tXQp7KusA3c/njJLrPfV5fx2RvlN6C2mmrNiaPb X2TSimMurAisF8/6LJjh+7QCujxMcVG3YR8v150IJFZdxbu0sXHamJK18ftxl/e8etawP7+kwif DiE7dm9709umQ7k40yt6gWK/iI9wyW/WjIHslus6AuftJhipQvqqRe2V8FPpPnZUfRn0Hr3Ia+J F8Uk= X-Google-Smtp-Source: AGHT+IFhl0ZD6Te4jksLApB9uC8vj5bATARcjgVkhtCEkuWPZe/GZXC+cxHuIeY6ryYtb9ba8vUOMw== X-Received: by 2002:a05:6000:1ac5:b0:391:2f15:c1f4 with SMTP id ffacd0b85a97d-39ee276eba9mr240487f8f.55.1744737663780; Tue, 15 Apr 2025 10:21:03 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21:03 -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 , Alexander Stein 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 v6 2/6] dt-bindings: dsp: fsl,dsp: document 'access-controllers' property Date: Tue, 15 Apr 2025 13:19:15 -0400 Message-Id: <20250415171919.5623-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Documenta= tion/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 =20 + access-controllers: + maxItems: 1 + required: - compatible - reg --=20 2.34.1 From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A5662206BB; Tue, 15 Apr 2025 17:21:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737669; cv=none; b=D/meHhBegtn91Ot4QBEd8HiqPUwy5GC58GM7UIWSh2yw7IOe+Rr1u7M4vNQVabrL6YklopwfJAcLT72ZsLrsu2Yd5T9U8Aq6OKMG/4ZKdySfzJhC+VBRYOEFqfQCYSgibGWvsRamrBGBAk6vXXO2k8fgXri8WYkXZut3w73l3Yw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737669; c=relaxed/simple; bh=F8NZNfXY+db76aNNrBJbSG7T5RVx6dAyulLZqrqB6lM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mT+6mJrL/a74TOgIVdjKVeLYqGiHBPOpJTxffvHIOiL4Wp3pHZafzIXdsEwgMeJkk6ktwNu9W2sVq5YRFGUZAMXpSXxbyMmosxd3TttKVn9uz/3usYbKu7PPCSLQLWatutDVIOdQo+jVZ+se699hDz2fUn9aHU8K3McF6R2avxc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GndZGKpY; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GndZGKpY" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3965c995151so2655334f8f.1; Tue, 15 Apr 2025 10:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737666; x=1745342466; darn=vger.kernel.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=3+/ol304EYZFzmHf5qWZCvTKblJaCdBMbBu4cFrdM28=; b=GndZGKpYWsvIvhJhwQkQvbq/mzAkcF9HhA32l/7yKXpkGXLOVVKGDMmg2L8YzaksrA apdib6e2G8vI6z90EkF0OZuHtSrvtlLArI8sVeLu1vrC6gWQdPzR41g5BcXbkR95LQXL I7KLIamaNWWCvH+UnKz3R8hdy60flA68Eq39qVU6I5Rp4JeEIZ8q1KH8J0iST698qqn7 OCrMvKYpnKKOVB9miVF93iqYfgpJM6Oo38vkYZWZlkocNXhzM+JVnvaEAGwotG9OkTui QJN07IATN279NruvMO38WaNBQ0gDZsPbo72dD4q1CZ3ej9zjcwIq9lt4RDAf7HI2OE8M uYrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737666; x=1745342466; 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=3+/ol304EYZFzmHf5qWZCvTKblJaCdBMbBu4cFrdM28=; b=NsmuyDkqHOuqdvLM+zog04Fq+m49Ab/qAlSG1VYKS+J8fy5QP++1PHDafaX8feYJtM FT5fjVM2OsdkY/Hp+SnDsocqlEP+9yxeIfytpuyJ1LYE2/0E5Yn59IWSY67V6NewPczv XQfqI/2hbNxZv6DZ+ZMxUiexuDBTxkAZrt9tTSbfj+JKScgIjody2WpZWIDDrAwKZQrY QRaWNuzzP5Ka4JetQIq12sB0mL4OcR65KCfJbEDbVyOZJhBOH6iNz/21VE31Ei1BzIm5 odmxpkkl8M1M657gYPhFdQKkFFuRbhDjHlAO097d3ToLW2h4g0xGbie5ASBT9m0TuC3G b2XQ== X-Forwarded-Encrypted: i=1; AJvYcCW5eJDSY5lT4dXN/DBw6oPZwdZ6KuDD2DEJX4v7O+cS4T/n6WcMjd4t0HO7H0pgTzmnUvwb6CDQOJI8@vger.kernel.org, AJvYcCXzfAjUy/j60VLpnlsXQ+rXIqhrGS4z3JuGy2ZDYmge6TI1vDAvdu1vLf4KPztIBAzCYgVIWKoo39K2AJST@vger.kernel.org X-Gm-Message-State: AOJu0Yz85SgeBJQFygwg+aEFvBR9cMH5W9SILv8FxxBbhQTLSYAJcS4Z NPmd5dur/apCNjP4LWiZwTBE0+xxes6sj+l1GeB4G7oNtCkqtPcv X-Gm-Gg: ASbGncvd2ove7gwLbGzR+BAxCwtg9IDSwnJX6sctMIM14nztpz43TpXlfW0Dfzv8t6b uxajDhS7bW5st7k1wqaFqDyFltuAfXJ4OYFDeMxCHs7Qg5XuxmN57SkkCnLvhbv8WuAY/uiJbgR bnrYhbD66sAXLBryukqrgPpcvdV5vBJ2x9F6w3721zdCOPm9zIZb0BM7yHFAxNVUoG3OMozVhpC 6zVp2RgXpzGYt2qZpA9fM3FGipwNSOM/4FVmWOuq2ioLNhBEBVCJpBJ+52679bEhUuXRYpbhrNp oEa9e0kwyRSt5qe7I9ynjkkiHbdXdJQAh3XuaJoioRD48ZqkeHXG+FDKaK7/dlkY4NpgUod9wZI Arh+zUPtGjwyRHQ== X-Google-Smtp-Source: AGHT+IGluMtsFmqw+QbXEPUMGrf4Yg+XMsClLT/fyWCDWpKwYSIgHYsl2lHPQCscdBps9+U6EsmWUA== X-Received: by 2002:a5d:64a7:0:b0:39e:cbf3:79db with SMTP id ffacd0b85a97d-39ee2737516mr306093f8f.10.1744737665614; Tue, 15 Apr 2025 10:21:05 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21:05 -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 , Alexander Stein 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 v6 3/6] bus: add driver for IMX AIPSTZ bridge Date: Tue, 15 Apr 2025 13:19:16 -0400 Message-Id: <20250415171919.5623-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. =20 +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) +=3D fsl-mc/ =20 obj-$(CONFIG_BT1_APB) +=3D bt1-apb.o obj-$(CONFIG_BT1_AXI) +=3D bt1-axi.o +obj-$(CONFIG_IMX_AIPSTZ) +=3D imx-aipstz.o obj-$(CONFIG_IMX_WEIM) +=3D imx-weim.o obj-$(CONFIG_INTEL_IXP4XX_EB) +=3D intel-ixp4xx-eb.o obj-$(CONFIG_MIPS_CDMM) +=3D mips_cdmm.o diff --git a/drivers/bus/imx-aipstz.c b/drivers/bus/imx-aipstz.c new file mode 100644 index 000000000000..44db40dae71b --- /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 =3D devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + if (IS_ERR(base)) + return dev_err_probe(&pdev->dev, -ENOMEM, + "failed to get/ioremap AC memory\n"); + + default_cfg =3D 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 =3D dev_get_drvdata(dev); + default_cfg =3D 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 =3D { + 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 =3D> trusted for R/W + use AHB's HPROT[1] to det. privilege + */ +static const struct imx_aipstz_config imx8mp_aipstz_default_cfg =3D { + .mpr0 =3D 0x77777777, +}; + +static const struct of_device_id imx_aipstz_of_ids[] =3D { + { .compatible =3D "fsl,imx8mp-aipstz", .data =3D &imx8mp_aipstz_default_c= fg }, + { } +}; +MODULE_DEVICE_TABLE(of, imx_aipstz_of_ids); + +static struct platform_driver imx_aipstz_of_driver =3D { + .probe =3D imx_aipstz_probe, + .driver =3D { + .name =3D "imx-aipstz", + .of_match_table =3D imx_aipstz_of_ids, + .pm =3D 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 "); --=20 2.34.1 From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A8D522155F; Tue, 15 Apr 2025 17:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737670; cv=none; b=k1uuWn/PqjLZJE7RiDkKsJTMQBOc/T+bdUheccMCD4CfCwPYyooOO6lkMxLRnJ51LYBFXy9/my5UZH6Kr5cq80BF+6rN/u8GfNXBacBmYloWCqRaQguORUJ3YAS36l66v+oL9xkgqG0fRbc75cQ4xSWw41ryw7knplfWr36gB/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737670; c=relaxed/simple; bh=i/623J9RhzwazO09b9AuVaXf4VhtohpFAm02gcyGGEk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uqNv4VrLmQyWECQrAzPaBhA47GbN3J/nvWzTWWMe/+cST2s8eMM04tZfVy9YQO7LyntBgnht/+rBVbpq3gkr2FYbtrDwDaaa//AgQ3WzQX9uK3/LS0C+Nft5omE14l5KpH/Z5fvqxGdlFRb6wYZ8cdthbUjTwZ/ZefXD22CE/vA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CcA8+a6w; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CcA8+a6w" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43cf628cb14so48615155e9.1; Tue, 15 Apr 2025 10:21:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737667; x=1745342467; darn=vger.kernel.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=wDMY9SZRBf4/sxBsgjkGyJScAm+G1kZtC9xjm4IFOEk=; b=CcA8+a6wPVwWkGngHJguQ/ciXEcwMj8IfzQCr75AGtU7Mes+dqQYy3Pv2SrRb0iauE D0MDTANI0WnXyuj6iWvn7tKKnz84zsHmxkrrofRH7gTJOMMEeDVTxacc4NYxy8LNpce5 ML30evTKJKga8tVsajz5xt2R+7p5Ft9wbjnmTavr3ZKZcrgq/gJaVEBDsN6dR6N6zqRJ Vu1m6y0z7tjAHJfkvrs8NDcBnMNliZJH51/06Inf0+kFQXzyq0M526pxBYePTKjd40ec yGSfu6nZVtC1Y3wFEU+CUY38hoH2f0wlPkL+4TM25bjFs8sHsVn6uzUnTMZHlAOV3Vn6 MnHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737667; x=1745342467; 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=wDMY9SZRBf4/sxBsgjkGyJScAm+G1kZtC9xjm4IFOEk=; b=v/vPAYl24cxX9D8Wwq1Nlt9/dnDPX2IAhLoSBHMpe0u5LydFuj/fvACo39yN3CdDza UYzn4yaYGhyE/J7F+gflhfKLT2WMMqEmx9CZBBxrY54rusX8mPH53n4ctLjcQRA9xJ67 e4CwyI3O2H1leGY4plkB8uiikEOn+/aCBnm4mHWwLfMnIGK6x2/7LNcBKbXi87s6cQJs nFh+WC/fwcEwYI8KTO6YPHEeyzzVJFyDtP5Z/wFZGVq+TDqNtwn9UZZyU1/EKphWUq1/ EB0xkZyVEs9wi+29aYnAvEAxfOjlsh0uzQxOy7ReXPsGuVQcjD+06aQm3QrQZNkGsxLN mC1w== X-Forwarded-Encrypted: i=1; AJvYcCU+hp2SbelNXl33nbPPd9R+DxDBVk8yISDTlBpATTa8yQUx0aBpbQO5DKlh94uX+y0gBbrviONiRJt4c/aj@vger.kernel.org, AJvYcCVgYBZNYMXlelEWmUp0Bs79MEzb7XkPeY838u8wG7GzwifaqymCi/1A02whX76/R0rAVr9y6vlsLccG@vger.kernel.org X-Gm-Message-State: AOJu0YzQRbSYflyDYdqSX5j5AdviaaM9iZ2G1KmZbXe6bD2enNUE2YeD nonlwZPVi3L/B1Alb6frkJlhUBzjZUKBDCZqYbqulTImHwvrkV5KEziypFPe X-Gm-Gg: ASbGnctDNhOOnuk8ZBJRh2mL+r+/+KYGroymoYVdAhVspS/nqjAf6wmYyq1ezZj6gNE E5+qN3r5a9apniw3jShL210CWuwEIKlmk5NFAOI6ZdzGi083b9i/BorkEjyOChxQ1HMLAmhVp4I kqwqNo6SubEBQknjE9wt7fbTsGzlksv4QmpvWdhpaqU4KAQ6nP4T17XAfDiLlWQaKVDYNZXlyFn 1/oQtVsDKHuufm0fElMctoIX4UjORM4Sw8t3mMQ8NritwgP9eRIHIk653d26IAf0dhsUuI6AKe0 ++kF70DGMgoOQd4LyBjjqxJCajvigvFGIVdRN/7DmCPtzz825Lh0NNfO5j/n9nPXa5cB5fKQ0QY rsQw= X-Google-Smtp-Source: AGHT+IHH3wzGSWrXRiwit47ROGdwVoqHne1P5CZMV6a2MyKyXpYB1Eq3JNyDUMsp35H0L5HNUwnmmA== X-Received: by 2002:a05:6000:178d:b0:39e:cbca:74cf with SMTP id ffacd0b85a97d-39ee2735d3amr321139f8f.6.1744737667435; Tue, 15 Apr 2025 10:21:07 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21:07 -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 , Alexander Stein 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 v6 4/6] arm64: dts: imx8mp: convert 'aips5' to 'aipstz5' Date: Tue, 15 Apr 2025 13:19:17 -0400 Message-Id: <20250415171919.5623-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mp.dtsi index ce6793b2d57e..aa7940c65f2d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1399,12 +1399,14 @@ eqos: ethernet@30bf0000 { }; }; =20 - aips5: bus@30c00000 { - compatible =3D "fsl,aips-bus", "simple-bus"; - reg =3D <0x30c00000 0x400000>; + aips5: bus@30df0000 { + compatible =3D "fsl,imx8mp-aipstz"; + reg =3D <0x30df0000 0x10000>; + power-domains =3D <&pgc_audio>; #address-cells =3D <1>; #size-cells =3D <1>; - ranges; + #access-controller-cells =3D <3>; + ranges =3D <0x30c00000 0x30c00000 0x400000>; =20 spba-bus@30c00000 { compatible =3D "fsl,spba-bus", "simple-bus"; --=20 2.34.1 From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02655221D8E; Tue, 15 Apr 2025 17:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737672; cv=none; b=nkVOWBZUlBEtmtTEPRKlC4+GCg3JkS/bmkLirf9zoN+6zSx+jh+NUy66jZgIcyDmnRYqOPErBCSodOeh9cWivjXmhoc0EtMVp0xqykg2Ux/157IpNIXcDJacGRG32X/kjKo5OtKIuCBDFVju0uQEYeSk5cGV49VwudgQc2pOBhs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737672; c=relaxed/simple; bh=jhENJ0w4vz6KVeQI9RNy8HNZdBwnE5EMBVJIr+vh5qg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TqT4y5XrpN7NhntCY7yxaZRlx8fXtyxvjxsA498uZNLv0um2pnW+/1XpX+d1ykuex5rHU/wIfBosy/mVzZ8XKFScgFVAEAg3HkPBX8+K92CFjO3+5gXZNwJXrlczWv6o5kJxyYf31deoHodoTKUF+sCHdTWVfBzab0E2dCZEBp8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=efM02cla; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="efM02cla" Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-39c1efc457bso3954783f8f.2; Tue, 15 Apr 2025 10:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737669; x=1745342469; darn=vger.kernel.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=8KQvEsaeONHy/l4Xju7O10zDYvEBhHW4gcNN9+1RZRM=; b=efM02claBvOSpZq7dtmriGxBlE2rb++CwmN+SJqSeOYofUG+6zVCK7UYciCCn+00+k 2m7Kyq9EMj7h4JXa3ONk9w0SE0RzVCZAwrV0P/14dffSOSLm0rGCE64lpr5yZiT1OZJu mWqg4oo5nHOndT9EDZAWPPitlHhfWC8YzmiX24mewFxAObg+w2gpw/+9oy12uhiKKBrQ +M64pNCu6fmn5dG+PmGZQVg656QkVmNO+RNGsHMTWhE7bPVjH0+vEL4Sc1BK69Vkin5k vhQtQRaGD3S1SurFetnbTc92wDtf1GTBhFb/6LZUWq+EIsKSQYOO6djMBEfnicMpHTtp P41w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737669; x=1745342469; 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=8KQvEsaeONHy/l4Xju7O10zDYvEBhHW4gcNN9+1RZRM=; b=bGCN7Ft/RUSCEM93mRcNQd0P3+F1ktjh9yqb+fNG6iEmeg3O4cgsTQCB79Zk6v4zQG RYZWsUMWsA0LRyYCR5GkeNBH946VdFBicj0C3MEImyBg79Y7KeOPMcIJ+Y2as3M5KLDe +3zg7XexhCIZdBvDZ0Gmy75+0x/igguyy/YyYdt8reZep2u1XW9LfZ9pSuIiwPGyR02J +0Rz/24702fnWO8var53XibbFt/YKzLYq/bmFCYYKsOrj79wJy4qVPVF5z+ZiU0dl3t+ M9TP6nxtZOboNEwFtoiVEk3GtV+CMm3biVyCHUMVv5+WsbSzxDFEizDKZ3Y2WY+jXywF e+4Q== X-Forwarded-Encrypted: i=1; AJvYcCUrlvNli9KKDsQ9rDoKOSx+oycpa+YNcOhrs7XRAmO/Y7gY1waPAQv/jS3Nhk7jSzGs7OQHjONCp9yc@vger.kernel.org, AJvYcCWp7y2W2JwsUWt+JgRA16Lvnrq9EqFs8F7qoAkvhVSqh0kcQels+qNOii7c+fghVnJOVh4hriR9vev9cDRd@vger.kernel.org X-Gm-Message-State: AOJu0YwHigvY9xXTCDgy/iLheY+QQRz4hrgfl53+4UPWQ0t4fzs8u3l+ lxntjFK2zWBeW9DafVsRZQpEPTe4oxngu7sTqxxEdMxgGWQTKa9B X-Gm-Gg: ASbGnctg9tB6yeNngg4t+zLo3W8klYjIujN6YA5oEeY2ljhqAIt3Q+hyX+qrNbkssvt Q8SzPvdTuTl5pt/G4VgC2FuBk8eQR/5l3FR9I+xDSe2nFzYDyJOBr9QjHHjInhc9WCDYgvWnS9H gGj+1/2F2on5A7IMioJjbgDFyLOYSPi553L7qOfbkaAbHT7+Nu5mrfCez3Ja2ntC87y84qAq705 leLG0H28ex+g20y/aJT0kzOfQMnDcD++OfxG3V9oh3DNW2F2b/LNqMt5cvXnUVhHcih+NraJRJ9 FxKbvUly4xhnVY+dge3r+4Io8wrDJTSXJ8pifXvd4OVCsCkeidxaEJCFeqmgnO1YAWIrL8D+zLd PH3c= X-Google-Smtp-Source: AGHT+IE5LwUFFqRN1DRApHuDZUZuydgO0U6kSCqbQ6tZKxGSHxRY3Qiff50MLBjjeVgYq+0MQAeeSA== X-Received: by 2002:a05:6000:1a8f:b0:390:e158:a1b8 with SMTP id ffacd0b85a97d-39ee2760646mr250766f8f.43.1744737669297; Tue, 15 Apr 2025 10:21:09 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21:08 -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 , Alexander Stein 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 v6 5/6] arm64: dts: imx8mp: add aipstz-related definitions Date: Tue, 15 Apr 2025 13:19:18 -0400 Message-Id: <20250415171919.5623-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Laurentiu Mihalcea Add header file with AIPSTZ-related definitions: consumer types, master/peripheral configuration bits, and master ID definitions. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8mp-aipstz.h | 33 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + 2 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-aipstz.h diff --git a/arch/arm64/boot/dts/freescale/imx8mp-aipstz.h b/arch/arm64/boo= t/dts/freescale/imx8mp-aipstz.h new file mode 100644 index 000000000000..b5bfcbcf38b8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-aipstz.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright 2025 NXP + */ + +#ifndef __IMX8MP_AIPSTZ_H +#define __IMX8MP_AIPSTZ_H + +/* consumer type - master or peripheral */ +#define IMX8MP_AIPSTZ_MASTER 0x0 +#define IMX8MP_AIPSTZ_PERIPH 0x1 + +/* master configuration options */ +#define IMX8MP_AIPSTZ_MPL (1 << 0) +#define IMX8MP_AIPSTZ_MTW (1 << 1) +#define IMX8MP_AIPSTZ_MTR (1 << 2) +#define IMX8MP_AIPSTZ_MBW (1 << 3) + +/* peripheral configuration options */ +#define IMX8MP_AIPSTZ_TP (1 << 0) +#define IMX8MP_AIPSTZ_WP (1 << 1) +#define IMX8MP_AIPSTZ_SP (1 << 2) +#define IMX8MP_AIPSTZ_BW (1 << 3) + +/* master ID definitions */ +#define IMX8MP_AIPSTZ_EDMA 0 /* AUDIOMIX EDMA */ +#define IMX8MP_AIPSTZ_CA53 1 /* Cortex-A53 cluster */ +#define IMX8MP_AIPSTZ_SDMA2 3 /* AUDIOMIX SDMA2 */ +#define IMX8MP_AIPSTZ_SDMA3 3 /* AUDIOMIX SDMA3 */ +#define IMX8MP_AIPSTZ_HIFI4 5 /* HIFI4 DSP */ +#define IMX8MP_AIPSTZ_CM7 6 /* Cortex-M7 */ + +#endif /* __IMX8MP_AIPSTZ_H */ diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mp.dtsi index aa7940c65f2d..ebbc99f9ceba 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -12,6 +12,7 @@ #include #include =20 +#include "imx8mp-aipstz.h" #include "imx8mp-pinfunc.h" =20 / { --=20 2.34.1 From nobody Thu Dec 18 19:31:08 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C90D3221FDC; Tue, 15 Apr 2025 17:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737674; cv=none; b=g52dLqIAzw9tNIR0zmy7vpgAekdq0xRlP0S8lB3OmvyZWdJ+ByMIjq8uvy67lxF9ECg/U7r6AF3lFvDl7EgcEvpPQ8orsM+AEkUfq+Hu3OHaVluto6ansDtSwk3UQQK5+ZVCsh2ozR6BGNHVKJ33DNdOh72L0lJP17xlvY/ie9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744737674; c=relaxed/simple; bh=NfgaXQBvNUUvr0jFlV9J8eVtkLOh24tR5qYNGiYdAo8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fzpnmsHT3MiVxvjvwcJBl2yjGODBEGRubWlUSyOe0IaRPJdt6UFLPvy0qCt5bvuo6j+y5kubBk4DdFDUY8yTgIu0iKbDqpaTU1mrIP+y9MQJWjTZ4O1O+/oE+QFnCtUiUAD3re/ugfGwtfZzxASgW7doJxItkVrR0dme9QfsQzg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SfsYktNR; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SfsYktNR" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4394a823036so58390905e9.0; Tue, 15 Apr 2025 10:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744737671; x=1745342471; darn=vger.kernel.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=HBQF3LhiaELkhAhvThHHQLxtoJjXQ7QMmkLPCh9kTRw=; b=SfsYktNR7zqS1hNBIG5CpkneWeMix26k+Au8F8SPeBj9jvHWqohvOedqPa0LR6RXh/ bkpe3rlWgRiRHsCtFb/kwdUfXZX64yhd3FwxKQp4SEiDhOgz6e/xOxsH8bSnFjBaTUpc 0C7GGlQ0HlWO+//RW5CuBfiWFmSZl7OGVtvYRHhvFN81igd8geEx2r2/R/No/iKBNxe6 HUSCkUDaVyUu8sywLPp51ZNpo73bVdYDsnrKpjXR++QxncKSF7H1Uv6EiuOmORY/9iwO GX5Pa7oS6l2umf4QDy/l8Pva/pHips9eppj/qE7cexETg0kKDSiLDgb/cAw76c3T2PhD e26Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744737671; x=1745342471; 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=HBQF3LhiaELkhAhvThHHQLxtoJjXQ7QMmkLPCh9kTRw=; b=f2IEoiI38zAizX200TNlhXAdjS54z6Ol10DL+KRRQk/9LNqEATPAnm0FzHa3atzM0F LyrBfNQfJjLxdXFSJh/fbNmtBafXaCjxD5kYC6M/+qtzxoxUzCP7Dh8Y3l0wAD0g5hRs vK961Y3hFUVtC3sdTNWnEajFjfbMzvtaEhAfy3nqyX8gbSKxAiDvwXJO7TSb44FsE5SU ju36tVay+ZM8t0xxapMeHgBTJU5j2gl3thLCeBkQIxGIc5IGxutkQUhg+mUndpsCXNa0 vaueFISPyJyxO/WUWNRlMzw6TXgjp8e4hsOw2QcQkdI22V9GurUXcYFYMMcgj4hZREIQ ZLvQ== X-Forwarded-Encrypted: i=1; AJvYcCUgbfhvD0ixXK0xKSCNmAzdUKmlojrU8En1/RgwiMvbLpMD8B4oQu24NBwurmna22rKC1pd9G/8GNsP@vger.kernel.org, AJvYcCVGr35sC4Kfydq0+ue00ojVJMYszRtTyCCFnVeiFitN+JVDK1XpUZMzjm9/ScFgduCoDMRKpilJI99e4MfY@vger.kernel.org X-Gm-Message-State: AOJu0YyTH0UFyvmlz4qZ+Cjx+IWqMD0mn+8QpbBPNUR/fXI2MWkujM2H RYnHYKeWu7YsM3oXE0pwlMxxMrBxSZ3JxTtcPnAnWhFcFE3rkYiv X-Gm-Gg: ASbGncuFMiyQtFgOZs0ySDkX7mkRxcdsZm8w4P+m//5Ev6TGssSgqi+nvWELp+DUcQV u1KXxInRaWGZv2jd53i/+Gip5eyjHZtzXtCxlrt/yWlVNFIMDN+Lmvig+PltVh24xc28v5KRTqN f20KR4HNexlcb6lgcHmtQPW4W48To0EO0qdeBDlp01LUpRZ+f14Ah3WQIhHSQJyLPzRx3zGKiBE 1pcC8Shm4V2RSTSuTYgkC+NZ+ojejGWtdlcLZafiPURPcowLlOndCk3+GlZhzbwE68rXsCjbC4W gu9wrZHeQW3XLU5kuDPGiTELDCRi1Eg+v9Q4LExzL8lAffJysttIAAMTRVLeuZW3MFxRQh1Fz5n 6xgI= X-Google-Smtp-Source: AGHT+IHmlSKDjijdhVP4MsrrIOmDn69e4RJTHJc1yap6d2BaTmoYqDqW9yK+cYJfmW31Obrp3rSSKA== X-Received: by 2002:a05:6000:4310:b0:39c:268b:8b66 with SMTP id ffacd0b85a97d-39ee27632c2mr255465f8f.43.1744737671070; Tue, 15 Apr 2025 10:21:11 -0700 (PDT) Received: from playground.localdomain ([82.79.237.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39eae963f4asm14987714f8f.16.2025.04.15.10.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 10:21: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 , Alexander Stein 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 v6 6/6] arm64: dts: imx8mp: make 'dsp' node depend on 'aips5' Date: Tue, 15 Apr 2025 13:19:19 -0400 Message-Id: <20250415171919.5623-7-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> References: <20250415171919.5623-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dt= s/freescale/imx8mp.dtsi index ebbc99f9ceba..d0d24fe92c3e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -2425,6 +2425,11 @@ dsp: dsp@3b6e8000 { mboxes =3D <&mu2 2 0>, <&mu2 2 1>, <&mu2 3 0>, <&mu2 3 1>; memory-region =3D <&dsp_reserved>; + access-controllers =3D <&aips5 + IMX8MP_AIPSTZ_HIFI4 + IMX8MP_AIPSTZ_MASTER + (IMX8MP_AIPSTZ_MPL | IMX8MP_AIPSTZ_MTW | IMX8MP_AIPSTZ_MTR) + >; status =3D "disabled"; }; }; --=20 2.34.1