From patchwork Wed Aug 28 18:01:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13781672 Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A69C11A707C for ; Wed, 28 Aug 2024 18:01:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.136.65.225 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724868089; cv=none; b=KkTRYqqscvDEBHrlY2iQ77UT7lRiZJNzv99MK0JqYAUZR8g8daxxIdjAz3JRVEpUSh4q4hDCNROug9OU9mWfl5k9D1jkHuspJTOs/74lNqA5dAfrIJxSHit5S93bcbCzPAPeZRIYenhO9Gc/YSOckKqRe+NpyEhAkHphCwdbPJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724868089; c=relaxed/simple; bh=TMvHQXMuHR+Dm38Xan8FX/o/wdiiupL2lSsmmQyc2qU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PFx12vyG7zXse9hXXJKqoaaXUO6hS1f8quMLHpimXIKFAXI5duPS7AkIWlJJOsG0SRFxjQtq+D+uF3sGv8CIoewTV1ZSn+6zbJhbfjxoXl7OP3DDo66JHjcbhIfZvAES59XXJ2uD8jqhvefoR5keUSRv4N3DhqoFYYye8HbT9qw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com; dkim=pass (2048-bit key) header.d=siemens.com header.i=jan.kiszka@siemens.com header.b=LkzBHY2W; arc=none smtp.client-ip=185.136.65.225 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=siemens.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rts-flowmailer.siemens.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=siemens.com header.i=jan.kiszka@siemens.com header.b="LkzBHY2W" Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20240828180122db5fe8411db9591aba for ; Wed, 28 Aug 2024 20:01:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=1DQ6+e1yNgx7fPFXiME9GGedSD4AIhzkiP5atR2A8jg=; b=LkzBHY2WZptHIBguBm28xT56FIz0X2QId2s+vE+EL1hr1OWWTyNA8TNkCK1kM9aWLMbEDN UvjLCw9ZdMjYZyFD6grtHcFNlA+A1TpvX27lW09OoMzZDKVBsjdmPlcf1tpTNggBo3vMWc7r zDhefWT4Vr6kFxlYlPJ0x5XUkjvcVDrnjJVxi/osimU5fgmTVLlBksQPALBvFC8PSt5OYh7C api2OsIJxPDq7bMf4dmWvasUhBg5IzoUCU6tfZFna3GazBWHW+l5yj/rDPyc0BDuefrVy9/t QPckoy6bPrK/GCxf0cAhFvt0At6yisU4lzVVo/HJhbyNSkRM3Qrvifsg==; From: Jan Kiszka To: Nishanth Menon , Santosh Shilimkar , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, Siddharth Vadapalli , Bao Cheng Su , Hua Qian Li , Diogo Ivo Subject: [PATCH v3 1/7] dt-bindings: soc: ti: Add AM65 peripheral virtualization unit Date: Wed, 28 Aug 2024 20:01:14 +0200 Message-ID: In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer From: Jan Kiszka The PVU allows to define a limited set of mappings for incoming DMA requests to the system memory. It is not a real IOMMU, thus hooked up under the TI SoC bindings. Signed-off-by: Jan Kiszka Reviewed-by: Krzysztof Kozlowski --- .../bindings/soc/ti/ti,am654-pvu.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/ti/ti,am654-pvu.yaml diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am654-pvu.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am654-pvu.yaml new file mode 100644 index 000000000000..e4a5fc47d674 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/ti/ti,am654-pvu.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) Siemens AG, 2024 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/ti/ti,am654-pvu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI AM654 Peripheral Virtualization Unit + +maintainers: + - Jan Kiszka + +properties: + compatible: + enum: + - ti,am654-pvu + + reg: + maxItems: 2 + + reg-names: + items: + - const: cfg + - const: tlbif + + interrupts: + items: + - description: fault interrupt + + interrupt-names: + items: + - const: pvu + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + iommu@30f80000 { + compatible = "ti,am654-pvu"; + reg = <0x30f80000 0x1000>, + <0x36000000 0x100000>; + reg-names = "cfg", "tlbif"; + interrupts-extended = <&intr_main_navss 390>; + interrupt-names = "pvu"; + };