From patchwork Wed Feb 26 16:53:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13992808 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 F0024222587 for ; Wed, 26 Feb 2025 16:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588866; cv=none; b=hvqlKIzTeVJRL8JU/piMJCfVf1f/TDifq0NZBUkHKvwY93V0HQ2dKQMfDi/dxPNZEk3KpFtiW4bXNJ2egLIPNOmpSr+m07oLfP/czFpyn3Usy0d3LTvylBidjwrUTQ/Pma59IE0Y4fTD6pYXX2O0So55tLvcWTTG9PWMe54dlew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588866; c=relaxed/simple; bh=C2Mob+k4J3IoAbjsCJdN2Pf4fKN/wfPJXERox26zYvs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JzVcIkdW3jkUyAZH1/ODAlR18si7+kvhGLsTVi8NbefpSSx98VsEJmmB81DRQVnb3U6iPUMmy+0So7VgBx4kQ59aSUVNVQIZY0tjTSdZnrGHoIwwWYNzDG6jt+upAUrVb3qNNR3wwVCgu3pBBKAFr/CPQuwFvZk12HzZZLEic/E= 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=mHxyPhx8; arc=none smtp.client-ip=209.85.128.47 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="mHxyPhx8" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-43995b907cfso179765e9.3 for ; Wed, 26 Feb 2025 08:54:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740588863; x=1741193663; darn=lists.linux.dev; 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=XuMNXFiz3GQQsxpeqmzCHgRVoLvWr6tPdor7ZIiVrdE=; b=mHxyPhx8GiXoQGhdG/T5IhZr2sHInIIGzsGUWPUhHF16ry2AJA3xEVL8pwsvpnp3sH Ic8gggidjlxBMHaO2lBycv40Ns+8ATu5O0/1wHOp78bIw7GJoAHTiay61Y+ZuU66o3FB JZO9MORF/V3+K9rAwBBDkYvRVxscuk0wVQPJSpBtIFfW5Y1CUmy82wPVhkM+Cpd2o3Ql 0FcFnE/F8pib5T575TvG1Ftzxpdo8qO1Hz4yciS4LqF0IBY3hpmA6aShgO4vcHgp/SOc QcERQT1Wk4lAwzdNJbQcn1D94izgRMMQwRH2hfhc+mzqz1e3eTfE7LMRbricDIS7JXRs 9axw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740588863; x=1741193663; 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=XuMNXFiz3GQQsxpeqmzCHgRVoLvWr6tPdor7ZIiVrdE=; b=fiLxuvM7tP+ZaUXlFj4pJ/O3EvdnqqaNkBgZMmuPIP8/+m19iatM56fnAkzZyLxyeE cFffqfFwKTUW3Va7U5EA6zqropWCvMg3GkCTEOIHPbpsjs0HBQWY+ECehdysqh5l/CS7 2oN3yEvo6sl69iqonhYYq9BFSAoWlbLEvxeTjdZFYzHaovrkRij8NE9Qzw8zrdcI8GYt 4BW6JxedFPxzKDWd/6q9vJxS+KvC6rafHih1tK5einYqLYgD4OoHPDuBM4JZHTo3WfUV S2EO/gvazK1KOBGsUIaOutFrm3dpLTLTTJCufs4n/rLaBSkY3HkeFJQH0QkEowyp42y0 ewgw== X-Forwarded-Encrypted: i=1; AJvYcCXFrEkqOGR8AaXB1RR+ARVkp1KsFm68omFFwI8VztobF/M4FdtZSvgKwT3yXw4NCXbxFwA=@lists.linux.dev X-Gm-Message-State: AOJu0YzZ234GSVEB5yscU6j1K95eo1cPT3G/mOfAQ8rdd0LhZzhpsRRB B74Uf3cicWTpxD2gwVMYkEI8sd+WkIUL/TbTcsSVnjRRSQlXUwDi X-Gm-Gg: ASbGnctfI1J/srabIXUssS4OXmb3QfNGwnIbZ15XYFGrC0+cmL9IVh+9KPUuSHLL14c UXr80o0jAy0scrWqh41Hg8xEPrP43iMCHWREXY4O+6kWjGNAslMqSSLgmkkDEoXUP7+l5w8uP8T aFmMrS98Uo7yruGPeHeeZWlQng277T1FBRKmUZVpYWuf8bNiRpD5OUm5Ppb9LKKg62GKE8+qnNl zoFuwz7LXm8NRQuUGHhps16JOb2SmrDYK4YngfIIl7HsH9nbvfMzSd/tEpxvOJgM5JfDNavGAO+ OpKoMkkp+k14j6rNykSblbKqnURjG1QUTuywP5yFbqPHrMi7wKrPp2z4GAi8D1Fz X-Google-Smtp-Source: AGHT+IGzw1JxAgCRr2hkHehSx21ZaK94xm+T4qbqC1Q9fKPlmg9xMtjNJBFuBwKL4xp8lj7A86l4rQ== X-Received: by 2002:a05:600c:1ca7:b0:439:9898:f18c with SMTP id 5b1f17b1804b1-43ab0f72a40mr64043405e9.26.1740588862923; Wed, 26 Feb 2025 08:54:22 -0800 (PST) Received: from playground.localdomain ([188.25.208.27]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba587163sm27672515e9.36.2025.02.26.08.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 08:54:22 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li Cc: Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: bus: add documentation for the IMX AIPSTZ bridge Date: Wed, 26 Feb 2025 11:53:10 -0500 Message-Id: <20250226165314.34205-2-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> References: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 | 86 +++++++++++++++++++ 1 file changed, 86 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..dfcfe4a8ae74 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/fsl,imx8mp-aipstz.yaml @@ -0,0 +1,86 @@ +# 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: 1 + + power-domains: + maxItems: 1 + + "#address-cells": + enum: [1, 2] + + "#size-cells": + enum: [1, 2] + + "#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 + - power-domains + - "#address-cells" + - "#size-cells" + - "#access-controller-cells" + - ranges + +additionalProperties: false + +examples: + - | + bus@30df0000 { + compatible = "fsl,imx8mp-aipstz"; + reg = <0x30df0000 0x10000>; + power-domains = <&pgc_audio>; + #address-cells = <1>; + #size-cells = <1>; + #access-controller-cells = <0>; + ranges; + }; From patchwork Wed Feb 26 16:53:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13992809 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 772F92236E0 for ; Wed, 26 Feb 2025 16:54:26 +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=1740588868; cv=none; b=VKENe+IFxEJdYj8VMt7gv7hIo0zSdcCu9vB7mIhV5wov6f1vQq9xE3lYchAD7HDiZ2o4LE7bZPjfRRgIhY/M51vx1tFbnsdiaFubwZGjE4oIYrZ0djkbGNkTHQcUOzCOqHm2uwHdwGv3S8NErUuiPheQoDUltV5c0MFr9rH3ilo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588868; c=relaxed/simple; bh=pvVFF8LcYlrlCMpxO/aHUSZAY8oWsFTdA7hLOwF7t3k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AIh/R8wFlil+AMN/nPwHIoQvHAyTUxq7cNiL8QOYIqjATkePurzuVHIIGkRXkFcNj7ChS1Ui5wBC+SXkbcnVgxfDSDHYBUt43YAs7vxPzdC1b0kgwVuiFsvXBah9f/IVQqjmwgG9zFLPfN0p9vuy/jpEBWWX2rALEMbs3F+Yr4M= 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=m7zbJEtr; 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="m7zbJEtr" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-438a3216fc2so426245e9.1 for ; Wed, 26 Feb 2025 08:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740588865; x=1741193665; darn=lists.linux.dev; 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=YtGcm5ZWKNh3uJM/zqclGCkk9N3iqiYtET6+2Cl2Q+U=; b=m7zbJEtrbeB4qoejATG1CQ88EN2HlsorUK7bjWTjp66e3ZConYI0K69koo62IL0emq LrHvt4O69gfSC7sh15gJ4GCp4tsm+AT0CMSjjDhKYEk+/JgebrcZhagjb67hF3Ze8HDW KZwtlILbvkLa48ehSD7aUbnOnpYqjEbU/Z0GSMFD2lslG0pYTenqfR/taX2el8C2BZmJ CLPaMnED5OAc01yeWuGgctPSGXR2zrOEFD8RGVrPYMLmr0Fl2BSeXZJ4CF/tNhRUlrSl PGQ6RtQXajb1PmfohJN7gqVfy6J4lb/mt8UZUxtEoKEVlztt6Mix7ZxzG5XXbgZdQp6s PhiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740588865; x=1741193665; 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=YtGcm5ZWKNh3uJM/zqclGCkk9N3iqiYtET6+2Cl2Q+U=; b=TNcK4FL/s+yySWwvSZFZlrlWAnj8i3N31Fo2EKkllwxzghpMrF1PUTYhDNRJoem0e+ P/E+ZXlEgAT2VwovKoAWjqXgGFvNf91343sQRPldamJhGt99DcubQvKi2fqFGHA915Yk axGuJIjCBw5pNIY5DGHOkuKBl5zm/CkNlLvDI9ZFTbyb6JTb5cKDZ0JG7bKeEKTD/CWC 52eEieH0m+SxDmeOuozoEWCBcfpPcFeY+Ti+2VhlVCE+XS0wprpE4HUbDNSwD8hAhJvT A1WrXrfYV4uhWVrNEYHjyg2vGzLzpHDo0SkCF6GcRu8kbktTpo0ZtrCmudP1MmwrMxnK BDbw== X-Forwarded-Encrypted: i=1; AJvYcCVnM6qaDAJV2zlZE8lu0x8nnQ3kXy04204JLFRfJV20k57J6eVx9cKRHyml2uU4uU6Il88=@lists.linux.dev X-Gm-Message-State: AOJu0YyFDOxSJcOqEy8rNzSAmrUdGfKAhzf9MHMpRx8glNFD9hA8wGlc dFe8FLzZGhTsx0muSAirUgnAZVOfgQp/hB+Y1lC3d/Q/Y4vxVt/w X-Gm-Gg: ASbGncsV4ANbw+OIrBm5274V5/mdRpVN1dThX8iUiMxrmnJ084aeP7TskUt+NYRQQGU 2uCv8NZW1OEsYzXWNth3QdjIIj7uy/Ziyi7maa0dSFecA6pc0CZgKYvgJNGDracmw8qxUp0MmRZ eFQ6czo4DRrebWg7BGCM+EmMPzZKeab4V7SAfUIoXA3PdeExcEO+bKfCJhMQz5+KQ63NT+9OH5k zwwjZkRClkrCvtFOvk13jI3GcQZHmhaLbJO5e8m2Mzk2mQSYDstuOk1AAM8O3GL6lvgQkgqB7a4 sWL21kmCbDTVyyIM84EdZCJeZUt/cNXdTbhYbasQSxP8XOdyB3NNHV1lYIlKywR9 X-Google-Smtp-Source: AGHT+IEr7k3hpbUucx2jKL4FfCjfgt288+HwWr+usBZ9kHZQ7fGw05QKWSeEYQ0zCCodSQZ6AYFIxA== X-Received: by 2002:a05:600c:458d:b0:439:99e6:2ab with SMTP id 5b1f17b1804b1-439aebcfd58mr175600195e9.28.1740588864704; Wed, 26 Feb 2025 08:54:24 -0800 (PST) Received: from playground.localdomain ([188.25.208.27]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba587163sm27672515e9.36.2025.02.26.08.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 08:54:24 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li Cc: Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/5] dt-bindings: dsp: fsl,dsp: document 'access-controllers' property Date: Wed, 26 Feb 2025 11:53:11 -0500 Message-Id: <20250226165314.34205-3-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> References: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Laurentiu Mihalcea Some DSP instances may have their access to certain peripherals conditioned by a bus access controller such as the one from the AIPSTZ bridge. Add the optional 'access-controllers' property, which may be used in such cases. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/dsp/fsl,dsp.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml b/Documentation/devicetree/bindings/dsp/fsl,dsp.yaml index 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 Wed Feb 26 16:53:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13992810 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 3B87F224895 for ; Wed, 26 Feb 2025 16:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588870; cv=none; b=JdbD78o6d+ombfj1rtrjEOOHdEO09Ns4GQDW1UmyOYHxkbe8ukhKt/Tj+4orJMqhNQwBWjGIG2MYyz0I7PKrKT18eP9L1mtRMXI/OWleAKnCFxF9xqOWrV/3EGbgZrMAAE5PDYlGhJuKTZWW43OZsEy7FnAQER6Vdcc7fDbGEdk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588870; c=relaxed/simple; bh=1gZ0EI8sd7+vHVi6GHanqIKfaQMapA6GDDBTPlN15OE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X5hy1OJ4q1BNDHQ/k2104knSa7gOi9u/iNWRJFUfwmXfaKhXo65SOE30wNcXZirHKUluW9hpkIAe4KTHT1nAQDIJ76n6qlSc+CQ3VefInBVQ7W8BchWIhDYStwAWYCMP2FaPzcMQSCBSxKwP/ZJn7jb6O3zk/YArUBygkMb8rvo= 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=X6FcoxAP; arc=none smtp.client-ip=209.85.128.47 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="X6FcoxAP" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4394345e4d5so385015e9.0 for ; Wed, 26 Feb 2025 08:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740588866; x=1741193666; darn=lists.linux.dev; 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=aozAnWpbhCam5E6+6zNz06mhlqboVoG1Yv6qg/1M0vU=; b=X6FcoxAPlYZ4cfzDIHZJN568s5ufkV/d94CGdC5Wd6Znie1jpvCMrKTvhlxdYd2bIh 3C4eTxvKLKsJ1d3o6yPhxs6Eg2mVniG6j5UQtHu2NixL4G+Z0fdJOSwQuyEQN+3vLdzB D+kKt09LBKvEsYDyJnzd9KdLWYUmnddlqmLmtD8q3r/weLcYNTzRncHmGb0Fl0hu684s +Xwexl0Y0VxLopc2ds3UmTcuJNzQKD4Kxb+Hui8+FRZW5YW2xX7xueWYc113DYOK4jmI xQr5ES3bW9jXOpehjB5O1Ar3V1JATV/+n5YfKGjnPMyLiYVTiFcPBj3Q4gLlds0m/ZU5 lGlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740588866; x=1741193666; 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=aozAnWpbhCam5E6+6zNz06mhlqboVoG1Yv6qg/1M0vU=; b=Rnr16nIikfWwOJzheiOMBC/31yQLITIXw47V7hLBCvSKdOXqNLm+LfGkGg3YwaclRN Z4KSXHpQuQaaEGmtXzuaMMJXbS5Qu5Yz+2pQJxsgCQstvXIiAyi+OlIP74uevhBisUEq n4XD17EHDJrnMwYz7XkXVYbVGvm96Wpb1wCK7J19eRjfeFxQKUvVjIEZ2eZTlmk2bqkb CTY2gJOgk3rN/we+ym7B9NtFFR7s4HO41ljWrQU7g9WZcA3TLQe5PBOUsjpK6M2AJiE+ 8ztSzEjsfOvcWk55Wd4c+NC4W1Vp2SNMR0iROY5/285lWpmX6bkns3WBpIJnA/th20nM YtfQ== X-Forwarded-Encrypted: i=1; AJvYcCWx8KVlDu8OcDUJBfbLg35KZM649w8mfrY57Xd0g2ingUETh5UHd3eb2UfVqV8eu59tMp0=@lists.linux.dev X-Gm-Message-State: AOJu0YwcGm9TBcgg8OYdCozfVoAFDJkzodSJiMFHCrEK5piwNVDjVVCI ikbK8MH8ZHwu7y49u7qgXnAZJYdo0j6bVtHkn1sjdqdoHLlFP6yc X-Gm-Gg: ASbGncuY0H3kwpg82NLgMjgXV2FdXraHstTyoJOfaInjAc8V66NdExrKo70i40HnAL8 Gr0QM3pSSbis/Gz0xrP02gY57PYTv7OGA2QSmzajV5AFoedAC1UAAeOlQmHoFxbLu5D5IPViLT0 ITEJ6H0h33eCgc4rEAA0rSS2ubmsKaJCvkEUB/losmYWLbHuEGtTKC6zVkpIetk64GhXRqxNM+p OSB9BObI7js8TYHwudKvgFrfdGk7j/v4zUwV6MuGJFk/1K56WFNp9KCcmUNex4hAOPp+ZW2vy3U 6U0zmlGfpjGk9Pl211QTsIB2m33/h+DImr+zRi89Uu451J7l1LtieqUACeFnrohS X-Google-Smtp-Source: AGHT+IFACgAUKq5wmfKVcHjK35/otoDg213tSOtDa+s2dpYjWDl8G1TUQEQB59e49vjyaP8FtEj8dQ== X-Received: by 2002:a05:600c:3548:b0:439:a138:1d with SMTP id 5b1f17b1804b1-439aebc2408mr158492005e9.22.1740588866434; Wed, 26 Feb 2025 08:54:26 -0800 (PST) Received: from playground.localdomain ([188.25.208.27]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba587163sm27672515e9.36.2025.02.26.08.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 08:54:26 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li Cc: Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/5] bus: add driver for IMX AIPSTZ bridge Date: Wed, 26 Feb 2025 11:53:12 -0500 Message-Id: <20250226165314.34205-4-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> References: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Laurentiu Mihalcea The secure AHB to IP Slave (AIPSTZ) bus bridge provides access control configurations meant to restrict access to certain peripherals. Some of the configurations include: 1) Marking masters as trusted for R/W. Based on this (and the configuration of the accessed peripheral), the bridge may choose to abort the R/W transactions issued by certain masters. 2) Allowing/disallowing write accesses to peripherals. Add driver for this IP. Since there's currently no framework for access controllers (and since there's currently no need for having flexibility w.r.t the configurations) all this driver does is it applies a relaxed, "default" configuration, in which all masters are trusted for R/W. Note that some instances of this IP (e.g: AIPSTZ5 on i.MX8MP) may be tied to a power domain and may lose their configuration when the domain is powered off. This is why the configuration has to be restored when the domain is powered on. Co-developed-by: Daniel Baluta Signed-off-by: Daniel Baluta Signed-off-by: Laurentiu Mihalcea --- drivers/bus/Kconfig | 6 +++ drivers/bus/Makefile | 1 + drivers/bus/imx-aipstz.c | 92 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 drivers/bus/imx-aipstz.c diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index ff669a8ccad9..fe7600283e70 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -87,6 +87,12 @@ config HISILICON_LPC Driver to enable I/O access to devices attached to the Low Pin Count bus on the HiSilicon Hip06/7 SoC. +config IMX_AIPSTZ + tristate "Support for IMX Secure AHB to IP Slave bus (AIPSTZ) bridge" + depends on ARCH_MXC + help + Enable support for IMX AIPSTZ bridge. + config IMX_WEIM bool "Freescale EIM DRIVER" depends on ARCH_MXC || COMPILE_TEST diff --git a/drivers/bus/Makefile b/drivers/bus/Makefile index cddd4984d6af..8e693fe8a03a 100644 --- a/drivers/bus/Makefile +++ b/drivers/bus/Makefile @@ -15,6 +15,7 @@ obj-$(CONFIG_FSL_MC_BUS) += fsl-mc/ obj-$(CONFIG_BT1_APB) += bt1-apb.o obj-$(CONFIG_BT1_AXI) += bt1-axi.o +obj-$(CONFIG_IMX_AIPSTZ) += imx-aipstz.o obj-$(CONFIG_IMX_WEIM) += imx-weim.o obj-$(CONFIG_INTEL_IXP4XX_EB) += intel-ixp4xx-eb.o obj-$(CONFIG_MIPS_CDMM) += mips_cdmm.o diff --git a/drivers/bus/imx-aipstz.c b/drivers/bus/imx-aipstz.c new file mode 100644 index 000000000000..c90580da17a1 --- /dev/null +++ b/drivers/bus/imx-aipstz.c @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2025 NXP + */ + +#include +#include +#include +#include +#include +#include + +#define IMX_AIPSTZ_MPR0 0x0 + +struct imx_aipstz_config { + u32 mpr0; +}; + +static void imx_aipstz_apply_default(void __iomem *base, + const struct imx_aipstz_config *default_cfg) +{ + writel(default_cfg->mpr0, base + IMX_AIPSTZ_MPR0); +} + +static int imx_aipstz_probe(struct platform_device *pdev) +{ + const struct imx_aipstz_config *default_cfg; + void __iomem *base; + + base = devm_platform_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) +{ + const struct imx_aipstz_config *default_cfg; + void __iomem *base; + + base = dev_get_drvdata(dev); + default_cfg = of_device_get_match_data(dev); + + /* restore potentially lost configuration during domain power-off */ + imx_aipstz_apply_default(base, default_cfg); + + return 0; +} + +static const struct dev_pm_ops imx_aipstz_pm_ops = { + RUNTIME_PM_OPS(NULL, imx_aipstz_runtime_resume, NULL) + SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) +}; + +/* + * following configuration is equivalent to: + * masters 0-7 => trusted for R/W + use AHB's HPROT[1] to det. privilege + */ +static const struct imx_aipstz_config imx8mp_aipstz_default_cfg = { + .mpr0 = 0x77777777, +}; + +static const struct of_device_id imx_aipstz_of_ids[] = { + { .compatible = "fsl,imx8mp-aipstz", .data = &imx8mp_aipstz_default_cfg }, + { } +}; +MODULE_DEVICE_TABLE(of, imx_aipstz_of_ids); + +static struct platform_driver imx_aipstz_of_driver = { + .probe = imx_aipstz_probe, + .driver = { + .name = "imx-aipstz", + .of_match_table = imx_aipstz_of_ids, + .pm = pm_ptr(&imx_aipstz_pm_ops), + }, +}; +module_platform_driver(imx_aipstz_of_driver); + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("IMX secure AHB to IP Slave bus (AIPSTZ) bridge driver"); +MODULE_AUTHOR("Laurentiu Mihalcea "); From patchwork Wed Feb 26 16:53:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13992811 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 E9532224AF9 for ; Wed, 26 Feb 2025 16:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588871; cv=none; b=cB2KVI3R7K/rc3cmGUYYgrLk1zVghRVHzaQNft4toPxzHEGsIGQS1x5T9KBGPP2wuquhbpDr78OwobolEE3Cm/Dj2KAaq2qXQd0pQW3Ke2k1NYUtALm66tsB6sZOnokt9HLNTMZZ1oVqe+auUYHI21ZO2omnBkKPc7OQ5SpPcWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588871; c=relaxed/simple; bh=y6WLP7rMdro7X3S5FxjI3YJe3AluXm0ue73PBtIJwZE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aaf7lvBu+GSkllsiBrdb4XxaBzHawc0Wo92NHcGdU6PBVbzRobgV9FErJAVGll28TIIHPjfOb1hPuslg1TDc2n6/91CuqBSn4P4Af8tuTFRp94jtqCK6ho+VaGxjfe9irdZSh/hc4AYM7d61Sdy7DTQKt765/WKAY6YQ2euJGPo= 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=ilJJcxks; arc=none smtp.client-ip=209.85.128.41 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="ilJJcxks" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4399deda38cso322785e9.1 for ; Wed, 26 Feb 2025 08:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740588868; x=1741193668; darn=lists.linux.dev; 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=6sq6QQJrbjxptSVsPKB15/DnBsw03jMlmrEEi8aA8tQ=; b=ilJJcxksNdBrue+g3a8FTjSI2mvpwtH/cmWzLxWDZdTVLs+hq0M0CnTOssyYACcM+T JsZqbVvmB2pKqOv8xx1PuRLiNFqGYNoWtoELNw76nmy119HyLxA8Lq+52SWG7iQmZkS/ KrkMCGrP3zW2MFedHazc83ERrM+jBmw6cmVR3iMFaFV+uEH4fHkzTrAIR/Ad7BHGLq3P NS2ZrqPZWSfn8zzm1+8F6HU5zn/wl/q0G+VgoQflak/2nRG7CFJbAPL/TQ9jbeAjyhxZ kF6KLogzMu/Hs9kV5vY2hP94JiDqERU4Iu+/LUwqbpd/CkJbdv65ioTOIgf1NLXA+xR+ YUrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740588868; x=1741193668; 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=6sq6QQJrbjxptSVsPKB15/DnBsw03jMlmrEEi8aA8tQ=; b=p1drtfvIumpnMw3/gWMV5HaXR/tf1X0N4kLoP2XOwD3fmNxOS2+BF/5TEUYs+OdThz TEgOQ0UXgLD8sWql4QzBbCyyLjurwhmqgL3jO+Ke7FZHcpt0BB8GcXcxNr75qeD3HgHi uBr7tvrjjZ3LOwI2xMgvXc+alJnTOtqSVDCktlSFUmHwcVO72Xs7GVYcjBfdIktT63OY fUbVX3a7cCnCXgVlGKF42EpHtjIn89rHOOH3OZP10lPQn5pGuRO/rRZfIL3ontTqJDwM 9YvMNC/m5+RBsogp/ma1hBCTCoasgqvoD1o/redzWMnpenPb7kL/Kwad9F6RAR7vDr8I qvwg== X-Forwarded-Encrypted: i=1; AJvYcCX8JanbHaxseY17VDS2DB+GRBoFtLZ/UBolP9FVSqbzM7i1cdkpvFV0Qfdas776XxNMYcY=@lists.linux.dev X-Gm-Message-State: AOJu0YxorQV+gK188tA8OnbJEtHVIyptWuPeCRyF6SNvbuTKMq0I5ecK TUGmyfRNj6UyV5+FW9iUmYh0OlYz2SCOpMLgLp+uI6sqrBuilct0 X-Gm-Gg: ASbGncuoZl11W56jtzxBBBM9zYz/QDZLP09TSqzsLZShKvbbNb3tbDqnr06AR6+D3+y bHB6RZRN2LMKSPqz6KAUTQBYiU8rfTFy849p/CPODzOHvySSH87AVe+cXptuo/qATOiHe5zbse+ pH8ULiM0sUpk1cgH8/WwsY0gCMB6FTLxelzNwDf9nN4lC6PUcEZ0taT4IEswfIDRyOxM+zVkjh3 /GHlZ0cZpCvqLzQcbUyjLIxM4WmplyNlDmjbyni6+301c7wO2Ws/BlcU6KqVNh52ivDpyYYb52m l9T/5bQTjI3rFGn1984VOUQKeU2Ho7t0bS+dushkSsdIQgS2LJZ5SIJgizM7/oY4 X-Google-Smtp-Source: AGHT+IEXXamHHiDSidMVxG5Ktdrqqy0wdXIkMLj75ieYD7dfdn0/9TUpigpU8mKWwmnghiqB5cWMCA== X-Received: by 2002:a05:600c:3b8e:b0:439:99ab:6178 with SMTP id 5b1f17b1804b1-43ab0f2883dmr71707325e9.6.1740588868020; Wed, 26 Feb 2025 08:54:28 -0800 (PST) Received: from playground.localdomain ([188.25.208.27]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba587163sm27672515e9.36.2025.02.26.08.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 08:54:27 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li Cc: Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] arm64: dts: imx8mp: convert 'aips5' to 'aipstz5' Date: Wed, 26 Feb 2025 11:53:13 -0500 Message-Id: <20250226165314.34205-5-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> References: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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..3097acb4bd21 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"; + reg = <0x30df0000 0x10000>; + power-domains = <&pgc_audio>; #address-cells = <1>; #size-cells = <1>; + #access-controller-cells = <0>; ranges; spba-bus@30c00000 { From patchwork Wed Feb 26 16:53:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13992812 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 879742253A7 for ; Wed, 26 Feb 2025 16:54:32 +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=1740588875; cv=none; b=iqV8fKTopKiFagtJpUZPCC10V0auUIxzP7subtPgWrQD6BV2VzbGrNB5IWKYed/ZpdUpDNuDMGusK2lPiHA7PUjEs1uUgr/QyJPEiLPJmgKpavdvsQbbPG7SIq0o+iw5BWAc8xc32DNhp4Bov6C6nq18ARmCVTQ66NLZ/vTcw/s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740588875; c=relaxed/simple; bh=sFeqh9nKZoEYQ+a6IXzXR8geyg5sacchQjdojt4E2As=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YTuDK5D22MTSbgqVrCbpHz9Zf2eMlSVNJD1I3c/IlA/Fkhf6geFMQYuHi5T1vdzfb33hppLM4TVod0yj9I2Ob6nZWFROfG6wGY47X1rjD9WwNmWceUY0zNsom9/Ug9AasPpavBB3H9LAmOytZt3SW1SSw2Y0mrqJLiFn4nZoq40= 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=G5fjTOEk; 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="G5fjTOEk" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4394036c0efso205375e9.2 for ; Wed, 26 Feb 2025 08:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740588871; x=1741193671; darn=lists.linux.dev; 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=oZpy5GPgAtfFVvCtInpJGMk0J6F8LViPBE4i9el70qY=; b=G5fjTOEk8+Fx/IBaDOCaCk9qNSWm2EwnInlZSKvR0bwL5MbaKHMSrajt3221NKPZTh k3NJE5ESFdGPt5QXsHTHECrCJpIZyteS50fh/MmkzqEFhezK1cXtQ8S9jqG7dZ8pJnMQ ltabf4KguaoLzHi4skD1mpgBltRyr9Vxyo5ufuPLd6G53kAtBNGY/xisEFvOQqiAOeHr WOsP72QEsw1RqWrk6Uy8oFh/ZlvyBM4ZgL23W0lTLW6Byr3psDwg8d7r0RPq9cn2PwIr u64MsjxuRs2OduSX2qfPRJ7yU2+JAf70dYgWIr1KecEFRC4WMqxeQomEIocmQWE4oiNn CN4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740588871; x=1741193671; 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=oZpy5GPgAtfFVvCtInpJGMk0J6F8LViPBE4i9el70qY=; b=fzh/Xm2M5o3O17bY6EizUCZgpoJHwOGHap5+d1eCHn4ELV6bEyyCN7Ejyrq9LxQNXX ULnLISDx+lTJdD9WBZU3O0fnBzN0q5glQL73A7OqBnQFiTU3JK0WyUpAoU0XL/Qv6B+Q N+u/O2SuCj4inn23MXzsav/5ETij35i4bEXC3Leq7PhdJHDnYbHD6IyarLoK1UO39Dij HdicAa4M8ouIH2JeTd2ThQ3teEzm7LMz4kUfwl9Wno7sOzhx2FLIYeqh3+9sDVdO3xi8 QDt0Hi5LPyLdlZxmlDPCbsr80Egkk1mcydtC92Og5AR3cSHSH8U+ax6nAgFRYbNXO0vc Xy8g== X-Forwarded-Encrypted: i=1; AJvYcCU3jEESNk25BvEENw/ZnTmE3ou6nKbZg4zLTnGsDSOWn58qlf9Vt1c+RRUCUn3lB/hINi8=@lists.linux.dev X-Gm-Message-State: AOJu0YwhCbAZA9ciz67DWoZlkN/or0pInAsWfyPbiqPEJCOaBhje0dpt NnmiOk1M/CM+2yt4QLdxHaUnpUGhk6a6wPY3/WEf1VPmpyWBKsqa X-Gm-Gg: ASbGnctPComMzBqq73ndifCk7zDCBbT2RHmGt9jdzGDLCbNUIR6+UIsF2eOoAnvk6l7 S4Cmg7BrXJhPYBvx5nPv1gLiu6XJNZWCjGXkVc2YtWBoJREu64qCqqw9OVFh4gXhtNIl0l0OroG XBZlUGokKyZKMz4ECCB/FlGEMtmVr9KC55Gob1vsz0mueLQO9KxsyjXaHqCD985tLwqeQTQhrCO kcT9FMBPWoLt3gyUvqncPe04beEPVhuaPzRinDu7sGqawQouDE9njpiyPZP8E3vyt515E2fPYpi 1YvjKWg+Ug5t2p5FzqbsWISePYtA8v1l0nLGP6wy794FEdOP3vcVMz1GREZDWYLg X-Google-Smtp-Source: AGHT+IHImZk8rItKoGgyrvgUbtToZbbr8RHyX95hu/4NZrjTjx7+3Bt9rfSiRS3zYUPBD5ly6hBYtg== X-Received: by 2002:a05:600c:5123:b0:434:fa55:eb56 with SMTP id 5b1f17b1804b1-43ab8fd8ee4mr38322665e9.7.1740588870582; Wed, 26 Feb 2025 08:54:30 -0800 (PST) Received: from playground.localdomain ([188.25.208.27]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43aba587163sm27672515e9.36.2025.02.26.08.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2025 08:54:30 -0800 (PST) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Daniel Baluta , Shengjiu Wang , Frank Li Cc: Pengutronix Kernel Team , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] arm64: dts: imx8mp: make 'dsp' node depend on 'aips5' Date: Wed, 26 Feb 2025 11:53:14 -0500 Message-Id: <20250226165314.34205-6-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> References: <20250226165314.34205-1-laurentiumihalcea111@gmail.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Laurentiu Mihalcea The DSP needs to access peripherals on AIPSTZ5 (to communicate with the AP using AUDIOMIX MU, for instance). To do so, the security-related registers of the bridge have to be configured before the DSP is started. Enforce a dependency on AIPSTZ5 by adding the 'access-controllers' property to the 'dsp' node. Signed-off-by: Laurentiu Mihalcea --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 3097acb4bd21..3550e44d00b5 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"; }; };