From nobody Fri Dec 19 02:50:47 2025 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.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 CA6842641D5; Mon, 24 Mar 2025 16:30:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833814; cv=none; b=B91zTJipPvklh2Op5kZMtfF3+2i3sE9U2j/GPDtKBNuS4idPv+1TbETuYZ3f4GQPFDscIigkR3aTtdSubxJ1tXA8oIG3UaGoSfkSV8M0Kcl2tAoRpx+eMPByFub5a4feQm5cdWXXV4sAHA+NgXeI8/En5Nez0qBKDv7heMeuWlY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833814; c=relaxed/simple; bh=nLJKxHm70qEycVny3nLFOeSNXCPfDqcDcghcDIodiCo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=acR5pZDBn2ImVXaMbvBMtaRgNiyllcNvDI4gTu5r/jMuR73/x2E1sdLGhRZKfwzJSoefunHEzCLp/ACnkW9aMFRqoKofEllQbjswq+Qx4ddUPv+79udzwuNCWXofoeKtUF5LVZA4lKv36x560CHrNzMSZEYLBEu0cRbsJN1HFR8= 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=ZS7R0/r3; arc=none smtp.client-ip=209.85.128.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="ZS7R0/r3" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-43cf0d787eeso49795925e9.3; 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=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=MydIHs3qFCXYHM7b0s9l0s9CjimN0OE0vCb1xP0k2Sk=; b=ZS7R0/r3xVOaFz5wB96jLjN1tXal+Y6cA1VEj6RkvqlcmcGM2zLsrhpzf/cIbhhCHe tXhoh05O3Jit2NW1RQnmUD0kasf3mKgFxcx9I5Xn82Gc9uaPWAOZqfZ+KxFsU0MgpN8h OhLquueSadzLQEOPZ7FL2UvDJtwMxvGa2WqEiohk5CQKbWB4nyhlANnxGhd4rTFkSz6y X9bNmWeE4qm1ze+6ipm0usFSaVEyl8T2XOmYm0xGDrITxkXeYQ5YutBu7lEQBy/euVGE 6cZ+3jax1sr9DxZC2+JmCutmmpWr/B9W4lMCQBLq+y5icOLdi6nb+BfFSEx/K2CNF+I4 sCsg== 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=spK1t3ZU+FfJEsxHxMPPwpBR0DnTIoO6cjW+axUNDdRtABUk2PHKCWDbT5iJl8F2/4 C8JlzoNv8/6vCWH408Mb2mw3uD96lzeVpN9D5V/Bk3JyOWZb4sFo9F2Wnt7FhjRXOz3F eARKQln4CZAn+qSxVjp+6UpfcvGrEcH6Vat46En+yYk+b8mtefrhm5PbhXN7fTVwdnrh RaCLAbbwGjbD3+cuORf4JzBkk8QOyqIbCSPgm9T79uU4nHMnsOg+btV/W6fPAqPE8/RH 4/ti8pRgdsghW+nG/9vVF4EwP2w1StvxjUjVhlXlmsykAFaA9qe/NdUS81OjgqSONcoY lGaw== X-Forwarded-Encrypted: i=1; AJvYcCWuadL+3LoRJNiMbVfdWMPuYE+xIO0EKXpu567NjZEEWEYKoCWZ3wKnk+nC9czwQvwOfAj5TfnEjoNYKm7l@vger.kernel.org, AJvYcCWwZZohmCzGq56krNQMX/EGJAfoHtHGfYGlvknygvT9Wum/5FtGVA/DZVn9hIq4nccp8R2juBsikygE@vger.kernel.org X-Gm-Message-State: AOJu0YxVswZ7p8sK+qPw0OWpuROb0Iu0Yy2nh4Sxc2SlnM0CXuaQO1Wa syik21S00fo4nC0naDFJkuNeEBeReA1loXaO2aYt94nL/KBVrlUY X-Gm-Gg: ASbGncvKcNj9E8SJuX+hlidT6Gdepe9BiqLe7Y/kN9BMD/xrl2W04JfYhwyYNWhS+TM /o10UthX6fz907uZvc3OFS0wLWC6/NqKDKkO7riEv6Gp6J7ZWfh309XrZeGpcW0E2igAk1EAv1a IohtPaoBUZbD7rMG+5L20Gj3lXO4W3D/yZVvvQpu5BVRel3PE009K/W1EZTAJAGf/4YezFTh2RW B6MMhKy7bP51sAI5q0bKHDlfZgZF7mscl2gze2pseZsh1rG80byBjCDKZGqq9L3rk69SHDV8AYb C/7UdG5cU67dpQmc9Kqpo7D1uM4IUk2u6Hp6ulQv2b7lZQ5/oke23yrXA9lkBdr1vHHYyF+6Xwc 2mDMNj2E= 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> 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 --- .../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 =3D "fsl,imx8mp-aipstz"; + reg =3D <0x30c00000 0x400000>, <0x30df0000 0x10000>; + reg-names =3D "bus", "ac"; + power-domains =3D <&pgc_audio>; + #address-cells =3D <1>; + #size-cells =3D <1>; + #access-controller-cells =3D <0>; + ranges; + + 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 Fri Dec 19 02:50:47 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 71B10263F52; Mon, 24 Mar 2025 16:30:14 +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=1742833816; cv=none; b=CPbawiXMIIrdA0foim6dZNL7Opa3qLZQr+u7lk2c2m2VEFTUvz24wA6GRZWwexO83qtteQlNSn8pahbZV1hO/FziWSo+jGIsKEyjYs9/YSaWMakQm9rMSsbmH7DS1WfXosMdKr+KWLbxMUBLhQjYkZWAq71/Iw0V9pZRqdRaEAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833816; c=relaxed/simple; bh=jtozxlDlFArb33Vwn4r3NVMWeWlV1gMBeUBT/QzmsQA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GVzdfN5MKnr4s6CboK7sUrd5OoYD/jVc7cQX9P8vAptUmFyR4TmMMwrcRkFYFik8O9YqtVGA05QOtNDjvoSgrNg10BxhkOCHSwtvoEbofm6DFfckB3hK5xSKfilMn54aUilJjlyeN5XAO/ROZ7Trng4625jrY4sLc314/IbTkUk= 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=SuUnffST; 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="SuUnffST" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-43cf05f0c3eso29977185e9.0; 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=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=SuUnffSTFWZrAckz/+zJYzCQyRpO5LILoXCvUkrKVAcMLwIOJ6/FoyHwz7fT/XTEMW GCWIyEBHFLqaCxFPJ8Oa5q2usXVTnq5H0DPHqD462ieLH4H3EzIuFAGFWL9k9edkKaCf wRsIBRWM67DJXYYT4QnAWuSkpJifCmKAEMbmh9vjxZ5NGzxWr6O1seQzs+uGX+vUMy+v oZdo8DWKuTe77TxCwap85/RpLQjf8e8s4wfbyJ2keX5xrKguBSGtb1+YQfxYnXeMS7P0 cRgNfEJb1K3Yl5e29aVZQOem/xtTdHMKg52RUeFe2NwHymWnAJpI990MRtrgZWfz7VSs yTkw== 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=tdTY+t7+vSo6SA28+wVZGyr8WYaCt4GeiECkdFWmXORnGkgoOD4CKOa3+k68E4liPS XRmtJOBWrUP1XeHekq6CJl6r1DVTu7qPwj4RoVjPhMWZLCWhvqLJjGdYUzGbuZKPOvZW gxFUsG7IDGgb6qwVh75NoJgCdbVj6Y+cd46HBm8yNxqoHUojgFC+DgfCc9GU6btJ8eRE OTT0GL1+9116rbSSdn8CpnevSX8d8PnllEXiJyOc89odetA/EhRAR11eTeTs9i1unlgr O7Qj8WsG2wkPCEnfHO+EVnGteJ4obETjVPq4VgUMphwAqDh7hTY+Nlk44UFP5def4ue5 ZTlA== X-Forwarded-Encrypted: i=1; AJvYcCVsZIQuanXiTg1MCjWD7cI/RVhkE7Z7tuUEqHBtjzwIE4kmikZHnuhgMh+YHlbidcFJlckTUc4KqvEC@vger.kernel.org, AJvYcCXXgSklRCvULqZAA++41nTRjLnUibgzcgVkR2f3NwzAd6SEBFFdcy3Y5wYQuB/6ylEAVbdW5CENuxnpJ3Bd@vger.kernel.org X-Gm-Message-State: AOJu0Yzo54G/oqQPmijNcnETbIAUwoIvp+mp/63hVe6IFS/OrNS2mwLm vZzVkMUfgeXOyyrhREwLQXOKja1eggBkkotu3jiu2k8cUTPX0bPwd7zWDVlG X-Gm-Gg: ASbGncs0vhRnGaJldWHYXRG4LfcfxAX4CIn+mn6YsIiy9034DGx88DbR3mL63uESKHc NF33chv3as6+Id5t+Rc8qlLepueyo/SH5+SxAnODTve6YUS7qCa/P+Ju+Y5sIZC2qoGJpJWcqSP nKuSr+qVelx9lUmJVpefFoEYL6lM8J73Ws2sgz3FuxbSQoj7cDe2BwioCq4vOsLvJjko/9Fslyk 7rMempwHzhLa5XSNvjVpyktKl4S9mq4+rRNS2e4V3wOZZXDHzXHBsUl1OtEYNNfLeYeDqb3QRIK r44YWt59K4wDqTCEYVL+p+7FqeUFZhUJqJdSCaaxGcDoSXaGnfPI/KYdcxtuvpq0rmYHqNA8I6t UZ+vvpSA= 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> 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 Fri Dec 19 02:50:47 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 C41CA2641E3; Mon, 24 Mar 2025 16:30:16 +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=1742833819; cv=none; b=HlTINqOdKtGbFxaWgM3OsuN7W7LaAorDGuU0sRlVRA7mePWthNsUVbtDGdnfEcGYLqUFYkQNBJsodKY6ROZlF45lsJyzpKNNa0d9EtOv6PmzZ3fMh1kc7cAY7jvvDjPBqS2iqRo8Kp98hqYQ7P93VPjSieSoEKbBICh2kIyMs28= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833819; c=relaxed/simple; bh=UoPzxqR7fMDh+wHIEf0arGh7Tsb9SBUP44rlOtZo9wI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=q/pr7CnG1l1ZAvA+OzYss+sYRyhQh/ZbhDTeTgKpdB87tnr5fR452bVrCIjQOov2UKn36z21AHUyFAooRKDNKqYC8hVNraONU5nhC3bTaIbpvCO20rVu8kyKKuyFqJ33isBDg+kp4NTvB+vhY6ErtPlB0n0lvTgYyxJYEvbc1cQ= 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=WfMVJMU8; 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="WfMVJMU8" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43d07ca6a80so22623595e9.1; 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=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=+dkHLVtiZRGLb+v1unC8oKgvdUemVJjrLv1sSsCEAtg=; b=WfMVJMU8h7XA831XBgd8rtpaLfjcPcX+oaZGQjZ71RDFu6PngUZ11Q0jeVqQd1nZiz tl6Ul2Q70X/1tmSRwI5Is14nmT13Gmgd3eCK181p+Vp77qjqEHdVQNAPIHVtuC6ooS3q T6FXLvwmoU49MDGtRsKsP4MkC5E6vd2Y+CEaEHHzBoHqoaeAEefMKo5mqXKqgw8W2YsG i79l6Ir66Ea9qhyf+M0z2bBxP39m8Lb1zSIjip0BzTnXHRH/ydNphY00nAvCGipQ+qQK eSpbe1nv2ejcQd7Qguq+12leAKHnU0qhaj1AH0eIm7zSg4yTwy0quJAuvlZ9qshWnux9 +wQg== 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=XnrlYP2xpM+JTCFMUqad2istyUImHP3SDSTRrjvSxH2oMgxmPlUcSMKhag9M3KxXL1 C6/SP0DP8U/TN3Q1VSZoX2fkBO7rSvRFRuMX9WCgaZNvZLKCweYRX0uKGer4aw0bLIz4 OjEMaJVTCt8ytsoeiFk92u/zgEAVQVkCv57dTDB4O8q4m2hQt5zLpWzv+3LXIEEDKfyi fio7hV6Qyx6OQXJ9Xfa+XTLAPCcf0PugAWjx4U8MspFblhH7zmx2NbuHW4103z4qokCY EoIF3sJkUPhqYwg6bKJeULOnG09ubuw14XfrtfBtn2q6RSEi19EvJ13WLbnPzbmH7XCv YtSQ== X-Forwarded-Encrypted: i=1; AJvYcCV/DxkrInnFO1g73eM1vbtQF8Tw2DWIJqnXkSA9Rvqo2/3l+HFZldkm+OdpliRR0YCAAD/foTtUezjlQjkq@vger.kernel.org, AJvYcCWX1MoNaziOZTXJijegP+UGVgLTrd6SdY9dV9fGTR7f4zw94q4XuUZpSaEA+pd5P5oUnopg57l/9s/O@vger.kernel.org X-Gm-Message-State: AOJu0YxUZGk9GnSBEEIhmpcqWSg7nUNi58008ZsMWAPE2gWuMMsovuKm Igf5tXqS71R+NSp+Ds1Fs05vuyaQ92nHDYpUvUSAlJ2+AptuYCdR X-Gm-Gg: ASbGnctvZ1EZSybkPUa59wJ3tRBWAfQjO9FNJEqmlixGt1BObX9k/SXBO/JIl3pKrsq wpZaaA22bmH/9f6g3ofRzt86d1SSemAiML2icxtVEKaaFBfWpL+J8YuXSUVjTGTOTj+fHn9dIvg jhWJ67MmKOPin2Wncwd2wrokCL+kHhcIwELafQig0o7mxLVS0Vupn2PX2/NSy2RwRbqNzLVJ1Hk kRVUcnGBc8mOyd4KDv8aOst6O4wsN/jglX6vEkarQk/dHP+ybNAO30wJ9iUY9eILrAl+HCo5CZP 2N3MmdX/yhrhGJcuzPz3U7Pa900CvDtu/Rzr84JBgRPYy5VJQFRD0yU22C2zNQXUPdwgZ/gJwkD hz/AVTws= 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> 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..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 =3D 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 =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 Fri Dec 19 02:50:47 2025 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 6A50126460A; Mon, 24 Mar 2025 16:30:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833820; cv=none; b=XOxr5dO51XYZtAKqVAs55tmNPuxWTAYY3sC9+cb3AXBaAevmBl69fnG6eYvx6upKloAdYa0y2R5YS8gBjCZNZ5RCcCYR7nu+D6olfpdHjR70qDX1FWLsAuabQwKTH8NZKKK2sWvpTmADZgBplPgh5DiMlBWmthMRyzlpXy2lfcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833820; c=relaxed/simple; bh=ERndhZd7uvmOxp7VBKjvNKNvE9RMcex1A2puj1YAGhk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UOJvTxf+PDGESfnbHmM0ygGWdsPjedbx+luvltGP+q3GdAhlJXcv/WnCP3q4MBCC5wc/AOC6ThrFc+dp7YqhgDjRXlUe/aMb5WpgWbUmgLuJwRDFF5RomqG2Fj0VPrU4nsycXZ4VU7UctepoSENaB5nvn9++TMlUR2pyehP7+Zs= 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=NQQ28Lc0; arc=none smtp.client-ip=209.85.128.48 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="NQQ28Lc0" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43cfdc2c8c9so28100475e9.2; 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=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=nXT10w3JwIzjDNmgL5a3o8h4+fjE6CRvvk0IUCmWmyY=; b=NQQ28Lc00w31qt1qX2V3yfXy70qfxQOpPybHCVRYqy6ZnEJpP/AkDNZH8J0FN11FV8 pJh1/14hm+gtkXopAZDXqzLDyIHLY4d/wvKIqfR0Y+VaATk5wBwAipmPKDI914Y6V2fT YLgH0o8pxWZ+uAEuuApeHpIX0EJAIgch5CQdQTwaAQQTmUHJvX+FoijKqUGSSsbSAQZx bFisndxZSHUIqjXdEfwGLz03gcYiFHYZvPu8Ahdt+ycb74iMOvwCQI7WGvQzHzGQlgem r26SyzOZ9LV+AeKLS60Q53PQ2NfyM8ktiDXypmtkmQZHP8Q/EjB+bSo9FwXF7lnmG7Pf +lvQ== 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=Hmh1ykpUtwQlLbtoniGyL1Cu71XmxzznZ6oIKzaLmRRk0YF8BsuuSGIEiDOT8mA4Cp eqFMb74BiSDv2CAXl8df8vQs8kNGM1UKnfBd3XCeQCEOaTb+N1uHiA6bxEsbo4hLuVjk hGKiR/wKToHEZRyOOWJRno6jOau0qmJDqTeBISFTpufVKaeThpkJOPv6j+VwWoa3X5cn buCVZyeeMLZIaenJjpXtRJ1N36A7xdZzDjZcFd3rc+pHt+yxhoQ8lkZz6wppZIWrqTE+ QqyK3XHq6TKX6mHzA58hQimw80jHjbguEKrjbkJQoL00iBReRPmsHKVDwUXVm1sQQK7V jr2A== X-Forwarded-Encrypted: i=1; AJvYcCU5aJSBlUtm6A5NRhQZfvpQBF5gSsUtIj59SAm/SzbXLZNuj3pcbX6xyxh0EIa5eLbRYASLY9TEHgHW@vger.kernel.org, AJvYcCW8ZIWBmFeqZklfz8HVEN0gMyXHQL514kTUEYTwmj8bDkxfdKBvMqB68NCM0UPqYpZr+WudsiWaY0I0b4qX@vger.kernel.org X-Gm-Message-State: AOJu0YzIcVtI03tYpjuPZnRWnNlb1wbOfV9fNGO/NIIazKmwiinl3seP cD5dNIHI55lYB4wtrRCQji95blJNy7XxWWUF57T06FoSVO+XglGSKlQKLAB9 X-Gm-Gg: ASbGncsp9fUGew/acjvIXtBvau3p3dA2FOA+ePE6jIlzcI3AB5DKZRsAK19UwD3oGXe OoD3Ait/v+bmW1DLXUz8dYDmNJI/fJKoDQ7DGerBizSN439O37ef1z85oVC7CZYHA2rt1+a5+Ei WDMpbdfbBtcWsssK42k4RTjxmfKFGU3vQ/bxXemfZ0aALoIwu9I1896eVoLE4cnaOl7hnWodCHN 8J4zKmaS1pz2bVr0CNa9fqKXZl2Eeh1Ru8TeF2okaJi7ove2WPmaf6PSPdHuyFzzyJfsPav13GR gUVW5xKXmbi6LBbmYU/bkCeS8d441i98x3/GVWbRqTpmOsp3CQxSJGofn9OV9x/2FfGidyQ1I6o PhgtZCqs= 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> 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 --- 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/dt= s/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 { }; =20 aips5: bus@30c00000 { - compatible =3D "fsl,aips-bus", "simple-bus"; - reg =3D <0x30c00000 0x400000>; + compatible =3D "fsl,imx8mp-aipstz"; + reg =3D <0x30c00000 0x400000>, <0x30df0000 0x10000>; + reg-names =3D "bus", "ac"; + power-domains =3D <&pgc_audio>; #address-cells =3D <1>; #size-cells =3D <1>; + #access-controller-cells =3D <0>; ranges; =20 spba-bus@30c00000 { --=20 2.34.1 From nobody Fri Dec 19 02:50:47 2025 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 14241264624; Mon, 24 Mar 2025 16:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833822; cv=none; b=XKta+r8jCGlNlXFjbmMmDXoAHJ3x4hHoIY5qhDrQ39Bx73iEMh+8DAfb2IvEFkTwUm0dCbewgPDF3djgGQld5BBAOA/nfdq8Oplrid/q9ejbHOeAz9nlYPaxs2o2GC2AxsiCAqmeB49Ur5B99PPOtmFxX/OexABUT2hsZEzWXJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742833822; c=relaxed/simple; bh=8TTMenqqnPPI38gwxk24+UYMgJl+buQli4nIdMttr4A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YW0bQ78j7g5dLSPjADzo0JMWK2fcYymJI0K//jTTHHo6w3j2EVw/3VB2sKsm1BCC7OvYb5R8YZWGUk58veg4iFnZRjY+kINrzpvehkfHl6/ojJ8hcA/N4/zPBEh1+DTafGdUeziA4osyo+yPcbvYSLYbaw34g05IyoryAA1XiBs= 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=MQXijb/6; arc=none smtp.client-ip=209.85.221.42 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="MQXijb/6" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3912d2c89ecso4389060f8f.2; 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=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=meQ0Mipo8UgEq53792yFhZe7Xcnc763+mjkb31Obgck=; b=MQXijb/6a48AFsDFXAv+brQI3tb9fma70K9Z1FoDE3z0Gs9L1gw3dGw+uJr5McirSY Q9lafOaQaCsl1X7Sakx3iv4JCCUoEEX654HORI9PHc+ONfrzpLUe5JdmjCvzuZDNzEqs W5rcbOQCTJSj2Mlt0K7cF964JneAVI1fdQ/XNrrFrtrkc/mJi2igr7scj/rNCCwrhht4 BTq4jK3BIxAe5G/xw1scV4wFyBaRSCoKQgfzFw43SWHTKYEVNlHxXC17lQgWmIsjDXVc KZiyDWbN3RfEeWbrSlwUk/Rphuzc4gd39FwYS3z9eo87pV4Medc9ockoquGcqGFz+i4l lEfg== 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=MTkPXzFNGOTe3BcBI7bRcTgSPoGgvEo9hg2y2HpS1Z5DducVjfZjmH5xWh10QvnuJW eohttBuzgJfGIUW/5Oid8nM0Kn1kJrpUD2r3HiDZeRz7JfuRkNEfou88e3POZs+tSZz7 BbH5etIM7N7vaQFRPgOWBtRB1vm+81t5Q20+m1JkkyWKofAohjl6XjJ5DzT8AOr/2Get KsnMsDeCDmfKXLwNkoYjaYSNmcxEtNXMu0JOnJl19B6Zx1nEesZhE1KK7ZYPEkJ+29CA kVpUpWOxg+pLY07XqD3crjzPy8PkXU/UUF8nAT/eRpURFNI7DDsmlSIw+4woEeD0mAuL vFjA== X-Forwarded-Encrypted: i=1; AJvYcCX5yW3LaSiMCPJaM4ifmyZ7+4uXXK/NQ+S/n7/WE3JilF0T/BJDiKD6YFq09mWxafGW4/awvcvSBlN1hUQF@vger.kernel.org, AJvYcCXTC1Xxxi49uJbDTB3jJRB1kEdLU0Bk40zA2vmkFdFhLz7LHluy4yASw3tvlXN+KcqIN57HRpGwzo9g@vger.kernel.org X-Gm-Message-State: AOJu0YzJXs7fzwxYiYUFLZBX+xPLtFEymMOUEkO/Hk42+4qQtxfnIuAu H3Xr9AmJKiabdbswiye+0WhSmM8ODO2NOiQGi1vUM3n/bIHHFvo+HPBiCYRj X-Gm-Gg: ASbGncsQfYp3jOV3KR5fiX2QMzJfzE+0zdDoQaYUmZUkD8QPDB0d5GpD3CoFPRImlnq tZV4CFzToFNFPwZxtv9wFPKbbjw41LJ5aoD//uVllw/MaqwCdZn3eVQRwTKxeEAwTH5nbagBzem xXvAV4vPnhQK5qRg3UEKhikLgj+fnKVDLBl6hKBQiF7rsykvKu3e378WceSoEoxyvT0IiitLsHE jV+5uzr1VU+PAJm9ihs7q6rcgqGTIot1a8M/Q+F+HHoT/3UMJB73NZBJIU7XvIro7EfBUB1wrC0 bj1vI3shjdmyYrjMAVpPUmrvtcFvT6xDZonTIYvsvcARV1mjkhbhEARFiag0iRkUVlz4U5t5Pxu 1Yz8NF3U= 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> 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 --- 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/dt= s/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 =3D <&mu2 2 0>, <&mu2 2 1>, <&mu2 3 0>, <&mu2 3 1>; memory-region =3D <&dsp_reserved>; + access-controllers =3D <&aips5>; status =3D "disabled"; }; }; --=20 2.34.1