From patchwork Tue Nov 15 10:11:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 20286 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2626736wru; Tue, 15 Nov 2022 02:13:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf71kLtOvTLc4aqlWrXp5HvohYzXBWTUj+R8NHIy0amb7/0OxJ2QnV1fZMOPezd8aELDO5zM X-Received: by 2002:aa7:d3c6:0:b0:463:c64e:bc75 with SMTP id o6-20020aa7d3c6000000b00463c64ebc75mr14493091edr.205.1668507180945; Tue, 15 Nov 2022 02:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668507180; cv=none; d=google.com; s=arc-20160816; b=1I8I1eumu1vjUspq7VhJptO6FvT+rz6JcYnl+buc69TBlmLmq19++26i3XG9jC2CzB yMGea4BHmETarwb/IHA6a5n46NNCzRJboooVHb5R8tLc4o9fRpuLtqv6lUQJbHRh0FbN nue0kBXaQwsuTVPkTtYqyr7nH/IFBaquo1LVuOuuQbTMJlLus5ziLnREzTTlL6v13Hnk 1yFjRUid0KOxv6OxZ4yNjOSEXoH6pckRVArmfy7+n4n/LB9Nq2+MHXn6igttBR6wiwVB c+9EfX+L/7SeNqfCceGSOZpXsPGOdXTLK10wFg24J5WJZ9QXnu7ij+GRfntowjumNPHm O2zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=B62K/Z6/R6gzNC1LreddV++368xlN2QmOO5zbb8a9ig=; b=RppxljGzJs8kxLg6EMufh4gFhPSzHDnWeOjGJ+kJjw7dUHrJEuxZb3U8mZbSPuIB3W M6eLMtrlcsNtjz4MCQB3874WIgZATW0Mh4AmnnCQ/wQXIst61yE8Fyw3qmQcUnYEzfDr 7eUtJWngBh+Ta7tO1omzrTKsjoirRyfnpvpcCvJc3Dvnk6vsxYUgpgdvyE9qRgYtDUWF /v4vY+40fnFqE3F+/lclkrb0sRl1/RAznbIxD3YlaELpo2VNdiO4rxbBADE1OzS7xKNa k36B//QvHqwK2d9GZxqxrkzOm3vj92sh6ztxdHftyA/Uh6fXWtwG2W00tLyeec6ufAbw xILw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R9f0SOhb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne39-20020a1709077ba700b007ade8dd3517si12499503ejc.936.2022.11.15.02.12.35; Tue, 15 Nov 2022 02:13:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=R9f0SOhb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238340AbiKOKLv (ORCPT + 99 others); Tue, 15 Nov 2022 05:11:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238292AbiKOKLl (ORCPT ); Tue, 15 Nov 2022 05:11:41 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC49EE1F; Tue, 15 Nov 2022 02:11:40 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 459CA6602A42; Tue, 15 Nov 2022 10:11:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668507099; bh=kUmZntOaNS58hkdHxPrKPiFeJBwDFkyN8sXE3Rzt6Xw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R9f0SOhbFqDIhwFe9Bs0a+DQ7S6lr8+SQj/vjvIjhlQZs+tpDyXZH6Lr7sDiqWj7L yeq0DiUsiNpw6TigMh5ubF0Y0hCmZW23CP+YSVwM0qyi3e7vhiHTODhCMfr/zZIXQR kj9/+sn1yAz+ZrIgT3G8tAPIaozxme0LbdqdQIENM/LdqnzUxDh42ysOMJFGVO/yii 9HVZ/ceu02M7bugjqmTmzddvRKv+/sGCvUJAh+RcviMwGvr4LXAEPjB1a6Ar609fvB AAXBZBJh2YOFEcvqbcM0fEFPm33PB+MddZMgNih7b+AJ1o+/ySyls8O42VH985hO8+ QHCH/Wp1hUsow== From: AngeloGioacchino Del Regno To: agross@kernel.org Cc: andersson@kernel.org, konrad.dybcio@linaro.org, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robdclark@gmail.com, linux-arm-msm@vger.kernel.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, marijn.suijten@somainline.org, kernel@collabora.com, luca@z3ntu.xyz, a39.skl@gmail.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno Subject: [PATCH v3 5/6] dt-bindings: iommu: qcom,iommu: Document QSMMUv2 and MSM8976 compatibles Date: Tue, 15 Nov 2022 11:11:21 +0100 Message-Id: <20221115101122.155440-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221115101122.155440-1-angelogioacchino.delregno@collabora.com> References: <20221115101122.155440-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749556585740716330?= X-GMAIL-MSGID: =?utf-8?q?1749556585740716330?= Add compatible strings for "qcom,msm-iommu-v2" for the inner node, Add compatible string "qcom,msm-iommu-v2" for the inner node, along with "qcom,msm8976-iommu" as a first user of it and "qcom,msm-iommu-v2-ns" and "qcom,msm-iommu-v2-sec" for the context bank nodes to support Qualcomm's secure fw "SMMU v2" implementation. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/iommu/qcom,iommu.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/qcom,iommu.txt b/Documentation/devicetree/bindings/iommu/qcom,iommu.txt index 7d4e0a18b08e..a8b42fa45e2d 100644 --- a/Documentation/devicetree/bindings/iommu/qcom,iommu.txt +++ b/Documentation/devicetree/bindings/iommu/qcom,iommu.txt @@ -13,6 +13,12 @@ to non-secure vs secure interrupt line. Followed by "qcom,msm-iommu-v1". + Or it should be one of: + + "qcom,msm8976-iommu" + + Followed by "qcom,msm-iommu-v2". + - clock-names : Should be a pair of "iface" (required for IOMMUs register group access) and "bus" (required for the IOMMUs underlying bus access). @@ -36,6 +42,8 @@ to non-secure vs secure interrupt line. - compatible : Should be one of: - "qcom,msm-iommu-v1-ns" : non-secure context bank - "qcom,msm-iommu-v1-sec" : secure context bank + - "qcom,msm-iommu-v2-ns" : non-secure QSMMUv2/QSMMU500 context bank + - "qcom,msm-iommu-v2-sec" : secure QSMMUv2/QSMMU500 context bank - reg : Base address and size of context bank within the iommu - interrupts : The context fault irq.