From patchwork Fri Feb 21 19:19:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13986207 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 1B4A4C021B3 for ; Fri, 21 Feb 2025 19:22:59 +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=R4b85i48aqXbvqxKxPLY68Yu1QiHGt3S7QqZhpoTlOs=; b=jXYxpUp0c8c/dq+yQ7wOwXTj8s PXiI20fZv4CMCwAF+qGYiWJd/eZHSNq1g6ulUQzzWgvw0fppFTMvZ8zTTtbfJsCIowXzYfPS71zAA jscKm/Ont6f5xclijQ1qMkEF15JG/UIDH9bygBu+Fj+4ier6HjzQItX7u7DF3xkzBbG5mir8qjG2B XGSb/TjhcJ41dH/IW/PXcMx2shwLruZ4U6YNU0NuFG1JwRzzlo5uwUq7kTzh5q95xCObBjfQySQbW 8uHYP34GT07Pc4ikWuoq+jKtlKMU9rt9JV5k8uBMhsY3liNJFIymu7MVXYqqaBwyI2gXXjhyLwfuT tQ1yO2Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlYbq-00000006dhL-3XN8; Fri, 21 Feb 2025 19:22:50 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlYYx-00000006d8J-1bNm for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 19:19:52 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-abb79af88afso459814366b.1 for ; Fri, 21 Feb 2025 11:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740165590; x=1740770390; 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=R4b85i48aqXbvqxKxPLY68Yu1QiHGt3S7QqZhpoTlOs=; b=jLEuoXsILow4oReXx4l9rqeJizvhArKGLZGEuSR/JRoFbUnVevQnLr2h1k6TqZ0bBt H5XweQ1Snan8WT0Pj2vrHmDx5t2I1Cz6n0Hhv+Zb1Ux6yQuDx8+unkhgAw7IDhipaWKS vAchFQjj9l8nQNMgLHi4TpCtWjBuy/yw/uw6SNbaUGMSP0hy+0w5SAKJ7ohKDv6TqitX rBDyMnUYJOhGeDro2Vk2PZtpqo5Xn9Rq1bR/SDOkDhIUcucHudaY4GCsGbfklymFSxj4 Njdt12E/H4ULLOk1KG3y0EUvJAQKMyO5bXtCF5hJPB4zIqHjdCIewdi6ucCUn/UEhSho tArQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740165590; x=1740770390; 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=R4b85i48aqXbvqxKxPLY68Yu1QiHGt3S7QqZhpoTlOs=; b=F0uy7lZjAoAybV6HNvo7mYZ9SVXKz/UYCxqRb1QWmx/XXa+QDTHYCIETzDfSMQkop8 WKrkaZtMzQxfVDkSdv9OoEix7mRj/A/0yM9jxcvuCb/YgUFS3L1t6fleELLV4swCKC2D 4ayJc/AO6toNhHapzRfwXpVVIc6LRXMrim3HU6ZDyJskRz0AGpI7q4Q8CHwz7ImN487Z Rhlutf9hkxklMHd09PxiiAImjaMO72K7JfTfn2kGV2R55C1rdOH/vHO5s9w5jDII7B2H BcLemfC8QJHsiJNm68pESP+iAXbAotkeeLzZ35u8a/p+enlqIDciBvw4ANzd8RQnfa+q eBVg== X-Forwarded-Encrypted: i=1; AJvYcCWzj7BNsriNBTrNAXQZz0t7HSi6UhTdwf0n/mLJ8pkeX95JK3FuIRHihS4PmfyomruEw62BuQezuJKWPbGC6jzb@lists.infradead.org X-Gm-Message-State: AOJu0Ywtr/L018dLvotV3+nC8Oshnm76nnWtb8lvScnIDCCIfcJTChZQ 4tV/kX/vsSX/jxRDx+TGKUvNeiW60NR7Z0M63EyPMoKd0hF7WfSO X-Gm-Gg: ASbGncv9opBHxfp65TIe2t4A+29ddnadZEYWwfCu56indMrxDE5ozOhAhGvwLxyhbP3 MUzF9teh1aWbHC2koDFQM6f20k9CzvPXd46M0gJvlpKpliyTJn3ndCb30LZQua5MoGg6/HG5aAR XuIojdGIFc4Ri+FMyrYvxfM6Ru7UumO+6yDLhSEprrwuO7ixGGzKPMOzf8tvVvSWL4PYxxa/ENi HCXcNQeYUGfTrr4Fh0/Y5zM141Nxo20VnVPYEn7XDyY/HYim8Uejf+dOmnNNFbleh1zQF3LQ8NC YQL2Rv2vXR14wB15CSxarb9ebPzrc2U1B/sdG64Yn+ZGKMsuzWWV1nExndA= X-Google-Smtp-Source: AGHT+IG6R3La5hbh10fjcxDEk/iLRZQGIPtHw2SJ1aLWwKOtPA+wUEWP+H+spREkJWuxHbG0Va+SVQ== X-Received: by 2002:a17:907:96a0:b0:ab7:f0fb:3110 with SMTP id a640c23a62f3a-abc099b380emr486410266b.5.1740165589933; Fri, 21 Feb 2025 11:19:49 -0800 (PST) Received: from playground.nxp.com ([82.79.237.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb9cee79fasm995276266b.129.2025.02.21.11.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 11:19:49 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang 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 1/5] dt-bindings: bus: add documentation for the IMX AIPSTZ bridge Date: Fri, 21 Feb 2025 14:19:05 -0500 Message-Id: <20250221191909.31874-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> References: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250221_111951_422430_5C3A4238 X-CRM114-Status: GOOD ( 14.80 ) 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 Reviewed-by: Frank Li --- .../bindings/bus/fsl,imx8mp-aipstz.yaml | 62 +++++++++++++++++++ 1 file changed, 62 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..b0d6eaf70a84 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml @@ -0,0 +1,62 @@ +# 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 + +select: + properties: + compatible: + contains: + const: fsl,imx8mp-aipstz + required: + - compatible + +properties: + compatible: + items: + - const: fsl,imx8mp-aipstz + - const: simple-bus + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + "#access-controller-cells": + const: 0 + +required: + - compatible + - reg + - power-domains + - "#access-controller-cells" + +allOf: + - $ref: /schemas/simple-bus.yaml# + +unevaluatedProperties: false + +examples: + - | + bus@30df0000 { + compatible = "fsl,imx8mp-aipstz", "simple-bus"; + reg = <0x30df0000 0x10000>; + power-domains = <&pgc_audio>; + #address-cells = <1>; + #size-cells = <1>; + #access-controller-cells = <0>; + ranges; + }; From patchwork Fri Feb 21 19:19:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13986208 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 76D63C021B3 for ; Fri, 21 Feb 2025 19:24:30 +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=0ZM3oG7u9MlBe7jgQYod3pM9eHw7F5bbi3sRetSKux0=; b=MGSElFko2QgYNMj+ibPlInyGgY v9hDnCz7lYZWUcb1GJdUNQfsiP8+YlDlCzG7wVXQcg3fnGdgyEc1M4BE8zU7m6b/c7xPh11IlLy2x LBLmJNQRLNII1PCAkgi1TngFgp5Gskoaczrs6d+R3SZtpyHyhjSPKepqycl6bo8GhHwczNjayvJA5 Z0ZBuwKoR0gZECL03NknAhm/HjHnrj3YWkm87Z6FR0cN4CgfOigmzSqdjLiiXV+eMvGdOTmd6W3PV LftdetOe97DUoR1jlJjsxZ3INbmYX+MzHc7atRnYw0dkIl23mi11FLmBPjFc2Nk1CaSymN2q1gxgd lI9I77aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlYdI-00000006dvN-27CD; Fri, 21 Feb 2025 19:24:20 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlYYz-00000006d9E-3YKn for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 19:19:54 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-abb90f68f8cso468028066b.3 for ; Fri, 21 Feb 2025 11:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740165592; x=1740770392; 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=0ZM3oG7u9MlBe7jgQYod3pM9eHw7F5bbi3sRetSKux0=; b=fu31q3A4n0WpPVknP0txeJJMwYyu0MAeNzrC5rH4U/uq/Q9L6Xtm3ni44dZo9/QanV 05rulS4beFGCma/S0aA5MG+U5gT4PMR6izGckGBxpvBBZe9BH+l01Yy8HlEeBmSMwFBy uJgtSe2kND0twiLS7Pq7iTaQW6v/MM4TdjKbpoz9eLNRgTx0dHP5BLap92kw4wxzEEvj jS3EgrfJl5EiGbaDfVBVzcz/ZcJbugP1bNGDGhywfYn/ZjGK0DKZuHIOJQvFvlsghlok iuQSvlEcSg5nfgnMNJLKX6mKtqgBdgmwUNKivJXju6C7jP163pgtxO43ClQnYvJkiQ2k r0BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740165592; x=1740770392; 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=0ZM3oG7u9MlBe7jgQYod3pM9eHw7F5bbi3sRetSKux0=; b=cWhkGkpXhFquCb8qLteYxvoH0Z6gQA6eho0SjDelXshB6ow1+O7+r/xT/W+FzBmpGp a7waSCxzmqZUXXXpqMkPEKJip/iVv+jvHjgKhQ5JH6lhK6oh3V03qC2swX0inz1KyhFK MtzVRlM2POuDZANZGs804P9tTITokoAnNJvRnvinu+e0NP2u0gk2xBEWczVuiGNajIl3 E76eydgDSBvzBedAcUHjMm8Jul10Ty4Hbyu9jOafwt0AsP3Vir21rkJMUHCs6bGiNqkN 12vklrPEPW2PATVlCnhTT/T668UkgFaa6+an18xGHKIq1VDxVWtaEzmA1LwmJdcEEk72 NnUw== X-Forwarded-Encrypted: i=1; AJvYcCXwoZAoqgBuV/1FG6tWAmuoZyRGLTh86QvX+akPNS5R+9YmXfR6jieyt09sh1wtBz6iDq/CPgwzmlV5HeHKcNQJ@lists.infradead.org X-Gm-Message-State: AOJu0YziQxzMvZZ/ebxYq3ApDf3OMaWMSYp1hfvB/p0ETamA5byc70XD W8t3clrPf7zhDWe0xbzIANbE9a1g5vKbLNu7XPc5fVhD3F+/ELBk X-Gm-Gg: ASbGncvgwrqAHMGyoKeR5bUpL3sbQFIbeWrG2zhTh8riucUCyGyTaS6H9H3mNSSHJnD O1IOh768llEJiK+RTp6g9p4iUizQzWzkwTCJYmevy7B1stlLjQYx7qlmxuZ5XnUX8PCaJdL6Znm Fo1BU12ur7SCi2DrX+lbFEwNUQT0lfakniEotWmrktJoy6oiPm4BNROdHYTD6RR3P2pdNxVEhfg 0x2PLtFQTnaDutIqZpV2qkk7PiqzqNJN+3kJGOHcWRWs7AsfLleqNYh0760pi8/LaZM3o0XKXL7 nMfmQF7mnXmbP8dV1DRoUDl1cAns5MJkrm3k8/MgxFZIbxI2bw+yicffEng= X-Google-Smtp-Source: AGHT+IFhYP8y5xpswatsEAcBPviWPk6yhTISADU0DuizXwbXYM7HIbRp4R+leRv7ntYUsYVDT1hb0w== X-Received: by 2002:a17:907:9446:b0:ab7:ed56:a780 with SMTP id a640c23a62f3a-abc09a97abbmr474131866b.27.1740165591932; Fri, 21 Feb 2025 11:19:51 -0800 (PST) Received: from playground.nxp.com ([82.79.237.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb9cee79fasm995276266b.129.2025.02.21.11.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 11:19:51 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang 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 2/5] dt-bindings: dsp: fsl,dsp: document 'access-controllers' property Date: Fri, 21 Feb 2025 14:19:06 -0500 Message-Id: <20250221191909.31874-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> References: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250221_111953_885396_F0C080DA X-CRM114-Status: GOOD ( 10.29 ) 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 --- 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 ab93ffd3d2e5..869df7fcece0 100644 --- a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml +++ b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml @@ -82,6 +82,9 @@ properties: description: Phandle to syscon block which provide access for processor enablement + access-controllers: + maxItems: 1 + required: - compatible - reg From patchwork Fri Feb 21 19:19:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13986209 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 0237DC021B3 for ; Fri, 21 Feb 2025 19:25:57 +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=UQ9m9HGe9/qjs9gf28iHfA2/6NxUxjMKKdh6HhKymZg=; b=g0yZZbEljBjGb10dNhv88LIE6/ p5rHt4aZpwaC2O6jMFEoDG70qCARL/rQUAlIzuBSMBBPyducNyS+xlZfHOZ0T1mjBMl/3juKWdVJj YTIGMICu4G0ifct4osyEIWua9cMiGEDBp3hvWg/arzqMvD8GY3fZ4fxekgz1mXmp3SqkZi+xFbV84 5hb0gj2obTPT8TzWbNYer1hptPAIpwo65hQ4KuIG2MDuUEphEpkUsoMzkbHQRHeNgQwbPfIOALoOF aG+LWNSUhxGjzDkMntkZPpLFkBRgQo1O9qpgeQsSiBfCeYS9G8HX0X03vPCQj2N2OSLOt2CN0stPj Bqqbbh1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlYek-00000006e7V-0dri; Fri, 21 Feb 2025 19:25:50 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlYZ1-00000006d9t-313U for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 19:19:57 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-abb7a6ee2deso383502066b.0 for ; Fri, 21 Feb 2025 11:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740165594; x=1740770394; 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=UQ9m9HGe9/qjs9gf28iHfA2/6NxUxjMKKdh6HhKymZg=; b=dpUifGCZH6F9iXNicbEKc8irdCV/JPaudxUoA4yraTUrOhkfDrCtt7z0HSByLRzqPc Sscf++KwA5WswjWV2QHEwhNuyU3Tax462j0eLhIOXZbUWQ5o0BiewycaLE40mL+kHuTp VtwG67eSU3CUzI3NqkqOeJU/XyJmLIHb4CJrONTYVfoWy/FMVPJu1xzg/iVm05vOgnYN M/4C+l89yVTupjSGE4YNlqDr5RDrE/fIVnJnw0OQKhOPb7vulaPC9h5yIZ4syKuACr8p w3iQ2nguLWmcu6MhsN+MbcudJtvSK61w/FRTWMNEj3rXe1SI89pwVyZaO05yybuR4Gz9 OuTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740165594; x=1740770394; 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=UQ9m9HGe9/qjs9gf28iHfA2/6NxUxjMKKdh6HhKymZg=; b=eFO15Wx3AjVa7VL2UcWwAgMyrm2AEkVpIQ8ZWJ08+2aThK5gNOdgBg7A+vjaeaa+b8 cgmbg+qR4IeJSI8bE7zhGdBd5e6CF1y15SNNaJpXgNQnfQvSewm0Uie1LRIdzPz8FdTD UIm+PFm5MxbC/K5lJfhCNe0Esgvii3uKhIA+KuZvo0ISKAPyHYnpRLcWvl/JfDayxpqR q64XYbp7UUEQ18ZLqeMHlstPhlWHV+paEbPhaW/V5JDQFykBoQc/3z7DFubp3I6BWWeX CDw18zPwfEvXteMRP97QsvWPf3cw2UE1mcklKdgO9TczYKZiliJDAdkmbBbNxtPMKCIm T08A== X-Forwarded-Encrypted: i=1; AJvYcCWg3T63RkKF1S0mMWbCTT6L9U74D0sGQiMIQ7Z9BNYduArUYjRr/1rjEqKsnYuMnJFiSYC479q9tA/Yz9X6X1nk@lists.infradead.org X-Gm-Message-State: AOJu0YxQwu56y0ASLwV3fSR6Cl727KempMso6y2ZR3WP7VqDQZvE1GIU ggn3FmQnUggv14neM38whihp0wy2i/5/CBv0BNv9up8uH7YCAi2k X-Gm-Gg: ASbGncvGN/9H6W2M2y3ODZdxx1vOgty8dqRKFO42SA9ADK/NDPgCgB9rbaJNa02WCTy HvIM82AnU9bjgCRUDTKq/7o+FHY/4KIBGQ95fBB55cEme9tnATqGG8ITKSzb7n7lADkz9iygonh VTPLBOCwuKx4tl/doeB7qJxtHz12HwLd2dpAvg7D3Lx/Yo8DduGOoL3XAJwb9QlhF1xbhpayLhF GbOcnaIJyv0f9WoZ/K7ii5OJKxblCCi0DC+h4A1/JYfey4GIomig3IFxntcN03MKauMc/he+fJz RZenBmLpPyXcPxux16xieG7Y+LWAajjf7w2Np6C0wKrrAHUCYAq24EliY8A= X-Google-Smtp-Source: AGHT+IE3CwqgwPcD60DkN7R6068FIpprPZitsT+PIQCgtbOY0Zrq/F8xkAzZ5w5gvOhKLrjtzpX6hg== X-Received: by 2002:a17:906:794e:b0:abb:d9c6:ecb2 with SMTP id a640c23a62f3a-abc09aa9b80mr441416066b.21.1740165593802; Fri, 21 Feb 2025 11:19:53 -0800 (PST) Received: from playground.nxp.com ([82.79.237.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb9cee79fasm995276266b.129.2025.02.21.11.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 11:19:53 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang 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 3/5] bus: add driver for IMX AIPSTZ bridge Date: Fri, 21 Feb 2025 14:19:07 -0500 Message-Id: <20250221191909.31874-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> References: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250221_111955_760700_C8DFA8EE X-CRM114-Status: GOOD ( 23.78 ) 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 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..75696eac8ba2 --- /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) +{ + void __iomem *base; + const struct imx_aipstz_config *default_cfg; + + base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); + if (IS_ERR(base)) + return dev_err_probe(&pdev->dev, -ENOMEM, + "failed to get/ioremap 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) +{ + void __iomem *base; + const struct imx_aipstz_config *default_cfg; + + 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 Fri Feb 21 19:19:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13986210 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 617C2C021B3 for ; Fri, 21 Feb 2025 19:27:30 +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=4TKxWTtkSqxwzx6dDc4iUz9ohfHIlpkY7Ca7ccTsz/A=; b=vSc0PaWTfWPhFZq8xtQY0TiZrM 9mPktmnK7Guc6DP0NfmJ/Wvz3xUtBtWabKanMGwydi2SkhWqbbuSH3UAmnOO7xKg3lXzmTuua2KNU 9GwxI0Lhm/Z+JGyp7y/IR5OvGXNKKhro/aiWgaLWAOBYtvkEG+AgqIWgDcOCr+TXZ9mijjK7F9nqf 6tDkbaVYj8kGOeDwyxObRU1VVH6XwZhzGL2jr4nld/vJ3s/yHlunoer1fObrpluSEcugz7kH4tDvT yfSR/L5Ery29ZjBxHr0ofzV1DdZMySlD1BOGnsu3HL6nflMCnR13mNY+K+DG8yQscehghSFdsXGCD Es5dawOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlYgB-00000006eHy-3PVw; Fri, 21 Feb 2025 19:27:19 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlYZ3-00000006dB2-1L8b for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 19:19:58 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-ab78e6edb99so348574966b.2 for ; Fri, 21 Feb 2025 11:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740165596; x=1740770396; 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=4TKxWTtkSqxwzx6dDc4iUz9ohfHIlpkY7Ca7ccTsz/A=; b=IaLp1VD9TsOnrgnVMxAhtvNnAxLXTyaVeKko5naQXKsGZ+Jpp187Nh+AI9YWl8t5+v /1GilZ1WZCmF+8RK3QMTea2S0g4GDVAc/IoZIFgaUz4/aQG5qqxFQuDlb4NZMmVUez8o PUcZFfH9xSDBXo3t6fSmewqJcVyqTT9ktzPCFe9Y2Mejfi4CvdVau0B+CbiUuhYRMWUK 9Wvg3BGuEudoSlE4+hQo31kDJ9mWsqENkW6Hy6Tji0yeIasJJdV65UsE8kWqFCjCmy3t 2zysxejQg3HkRT43JIiHAh2EKzi0vn2SXvIbeyA+TxFFcGSMoYvZRrmRTsPC9ls3ChWs uSIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740165596; x=1740770396; 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=4TKxWTtkSqxwzx6dDc4iUz9ohfHIlpkY7Ca7ccTsz/A=; b=VWajZ4RGDuC1EF0QkO5lLBoYoJ8u8bZGC5fjWKLAlFsale9a+v06LsBwuM4tQx06h4 peHqdINSwaZuyf2zAk1u7YKIUKB/MdGb5jY/73klqi1uALnTWHRT/EqzpJFLXvc1YZeK 5Uu1nlVChFTkdd9F/UIHZtOjTL/YsaDn0dNPaAIc1huQUnaEv4W2MXuIzI1CLlv1t0FO zt7Jc+CcSMmm99nnKyxBdMWz2VNnGa+Ryt2M5UyNb+BE2hJ/qxJ0chFve53sCeCLNG8R IZAuYTkFePAsGG6XcIP4vCINr06U3NSpsVD41b6cM0CLktp5D3iiyRFTj2m52RD9DeV+ wwIg== X-Forwarded-Encrypted: i=1; AJvYcCVLBx6G7cnb6stHnn4uSIKtWBwHEMdaG3UmIB7NyvFmVxDHOjc0J9BTpM8PDcmZx5L0Z2Vr+HtFkNHFnyBFzwyl@lists.infradead.org X-Gm-Message-State: AOJu0YzY1Nks1oGk8Scs33GdVEJV4ogW9yAX4vB38dyMl4x2HlWhIKGt UBjz/UUPyapaX6Qy0CiCVevwHfVBu+3cZMAXRhKFhznyh3iU/m1m X-Gm-Gg: ASbGnctuGU5hx6Ym3Jo36fSJwIw5pd+7USDRKiItu9dHYtZTzkBEcamvdEJh0LEdzTI BvVzceikhTfRc1vnhjrWpEICgTvva26pIAwK2K2xaWoRpDI3mxJK6Ug9w740xZ0YeeYxV5fUWFL 1M3z2ikLHG3OjvMzTl3JlfOIoV4nQiZo8f+eT/M2XD5aD3OC6m65rdLPTaXYDk3bSNmxtf1Txj6 mbd0jvHg3+8dL1lqKYo3g9SMmdxdUE4e9SWJv146Gsb5F4K20bwkg3S6JtOS2A15yrJac9fjtm3 5ibPJQ1vDvuGY2DMw04B6NGE+nXasbcB4XMAJ7KMkizVmfiot2cnKyy6At4= X-Google-Smtp-Source: AGHT+IFDfbIPVZIMARA0RdhZrJ6UuY0dVTRO1/KxreNJ+xkg/EYBzXyrYM3lqR01Fe4RA0v/JrznqQ== X-Received: by 2002:a17:907:2d08:b0:ab7:def3:ca1d with SMTP id a640c23a62f3a-abc09e44f67mr482288866b.49.1740165595692; Fri, 21 Feb 2025 11:19:55 -0800 (PST) Received: from playground.nxp.com ([82.79.237.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb9cee79fasm995276266b.129.2025.02.21.11.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 11:19:55 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang 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 4/5] arm64: dts: imx8mp: convert 'aips5' to 'aipstz5' Date: Fri, 21 Feb 2025 14:19:08 -0500 Message-Id: <20250221191909.31874-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> References: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250221_111957_361970_1901354D X-CRM114-Status: GOOD ( 14.53 ) 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index e0d3b8cba221..a1d9b834d2da 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1399,11 +1399,13 @@ eqos: ethernet@30bf0000 { }; }; - aips5: bus@30c00000 { - compatible = "fsl,aips-bus", "simple-bus"; - reg = <0x30c00000 0x400000>; + aips5: bus@30df0000 { + compatible = "fsl,imx8mp-aipstz", "simple-bus"; + reg = <0x30df0000 0x10000>; + power-domains = <&pgc_audio>; #address-cells = <1>; #size-cells = <1>; + #access-controller-cells = <0>; ranges; spba-bus@30c00000 { From patchwork Fri Feb 21 19:19:09 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13986211 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 0C205C021B5 for ; Fri, 21 Feb 2025 19:28:59 +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=0PW85pz5cGLvJh0OtF1LDKynxXRX33ioDpLb0ZUqgao=; b=mhnorDqfxUSKCYU3gQJ7t6jj5M FhLfK4su+zv/ZbeCMWtHlAyXRCDJcU3mReph7Npp9n+MGxBaZtzvxV/QwUUAH92BylDgKbPuE3GGZ BtNophJV9vaFB8ukRjiUbMtjvuaM8QlI3Coun2Esj1KSxCpYgp7CWGBziSaCSvjfobB7jVP5OTshe 1nW3IQ4rirqdyLM1ZEcD9DCEm1ZcJglJf0J/twbYxywJF3qFpSZVN4aTZ4d1FAaN5jmB5kgWDIhwL LR1avWih3n3gAk/EB+G8wZC74vw7ELBkB8xUfJIwTLzauArsVWZ9LCsShBJSlMj20QqMq708k3pd3 GEFDYnQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tlYhc-00000006eRA-2EzY; Fri, 21 Feb 2025 19:28:48 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tlYZ5-00000006dBs-0im3 for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2025 19:20:00 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-5ded69e6134so4121012a12.0 for ; Fri, 21 Feb 2025 11:19:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740165598; x=1740770398; 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=0PW85pz5cGLvJh0OtF1LDKynxXRX33ioDpLb0ZUqgao=; b=mtS1Q8JrqbXTTVk+wrL9pEcHqeUGBI7vycqfdCz6rqd1zKJ/YKkasFWI2KH7Sf9Aj9 RjxIaMaQjgxda4M5j186PYBeLR3Xuff3/dlOnMq4oujSOYqmeVgmg2/DKIjCrxW8e7KN sq5qXl+1JRncRJaEpxhLXayRBZfVzcx6y5rPUJW4RAxUxkByyO6aRgo1bt0IlKBe0L4M N8QLysIZq4CmozvXOTXG4jA0qIteNAE0rRjzszjSznTfmMuskpmTH8wZPMyexyLSjLMu i6Faj0k2fMYRnnbYvx5JBiZWjTp/GsXkbsK2bWODzUj9YZ31QpeNQvJLjIOeS4W+GmGY mnRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740165598; x=1740770398; 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=0PW85pz5cGLvJh0OtF1LDKynxXRX33ioDpLb0ZUqgao=; b=Ws2JISJiUPP8HxYZ5d+dgMwXRyQh8nyUZ04K7AKudXxVSIgJtTjc+LjZyRvJxpLmLq qy/1uhVF2vqZ3kHg2m2boY4dNOzjhoVpYlKcUHgtQcOVtRuN7DjvMhcJrPCY+x0RGaBw jrvQ63LvaCb8Ow4XUW3zYXY3o8W7nUICzL3cCcsR0pjrElm+FSYPKbRbsOmJttt9x4Tg esdjpD5epVhUA0HSi84JqaTfi174uBE4+W0/QHNTj5jUXr2KBwHkzs/As4nCvPunV2yA g1k1DOTrWVkjaMI2po2w8OBhwH9IzAVK+sa3tkLAmKpjQ361ojrxE2AidCJfHyURM6XB VcVQ== X-Forwarded-Encrypted: i=1; AJvYcCWHK5ObAHzkz5ngvq7w6l7eG9PfhH5fyjr40nRkok4E4AYvhPQYx3AZHBrcsovQHg11a/o5GC/6cf7qDXYUqv1n@lists.infradead.org X-Gm-Message-State: AOJu0YxXqginWjwT7uFfgQi4azGJgp6BapDMpVvIBv+8CCzWTy6OViNT VpSr9PV5WNSigLJiqcQdRnLbv4R3JL4VOuHgUs70vhoEQ+sa8jg/SQl/i6LeW+o= X-Gm-Gg: ASbGncv84Gf5z9XYVkbmE7yaowfjxoDZdKAQmSt4BR0/mqiDLjH6A+KcrS/LXTSvMet mEXskFFgWhPjCHY/rhA4A7xuVhLd81R7gtcmb9jExDbSnIljwTGXq0b3/7c5XMz2WczezfGV00x znywJF+dSrPxW0IrZwQUJf0S9nYARfABd5iL/5v6o8ZiTB004sGKjGnnmgIrUSvi6SgjAXSSdwC 0qR4Wbq+0FEwD0eYsVcCyGzftWP4VN8/yVSx3JNnSBBWd8Xhm+IiMQuzzkYf8nT4Udnch3sCrg9 nzDVcAMDhreApcN/utArt+8akU2+2JJbuYXKmfCfdRizP7BzJYnfXMwKtLU= X-Google-Smtp-Source: AGHT+IHGNlBjv0prPEJON601/v7KmS0YwqUhGMf4lS65c24qSw6LwRCeA8Y99uRFtQLi0vwiyNDqXQ== X-Received: by 2002:a17:907:6e8a:b0:abb:e95e:f2c3 with SMTP id a640c23a62f3a-abc09d356f1mr472726066b.41.1740165597467; Fri, 21 Feb 2025 11:19:57 -0800 (PST) Received: from playground.nxp.com ([82.79.237.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abb9cee79fasm995276266b.129.2025.02.21.11.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 11:19:57 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang 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 5/5] arm64: dts: imx8mp: make 'dsp' node depend on 'aips5' Date: Fri, 21 Feb 2025 14:19:09 -0500 Message-Id: <20250221191909.31874-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> References: <20250221191909.31874-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250221_111959_208021_5C6CC7F8 X-CRM114-Status: GOOD ( 11.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 The DSP may want to access peripherals on AIPSTZ5. 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 a1d9b834d2da..9ec51e7e6678 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -2423,6 +2423,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"; }; };