From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,UPPERCASE_50_75,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFD9EC43387 for ; Tue, 18 Dec 2018 04:52:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 804E2217D9 for ; Tue, 18 Dec 2018 04:52:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JMLQk0uM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="LxDoOiNO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 804E2217D9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kRWZHqp9HbKTyEuD7GT30tCm3c6W13/LnrCaEVzqwog=; b=JMLQk0uMMJ7x5P LNn+DA6H9nhchKu/TtU434x8byXV8ZVJ/0NyoImVtXIpOuA1upTCUco4KhnxqhgmxrkSKZr+Ic813 MopeGLg93BX15WvDeyYmueGGdgIldPJt3fJcHwQgHwAPpbLd+SaOg1aAuUZLfyIDsTaef7Xsg0GE3 f8fdd7jHPorY218Z5aEeA6mXilVC7t1EueywgDQDFTbRZkljWU06wdnHpPJOt4BETl1xyt7lIVALX VDvuHx/ZRqEaRHswqioJ/Kuka9VtWRdNU+9MLl4gT/cZ54GFOpOWCaZ4++hX3X2CZm7TILYQ9ZaoW u/iH6RynlrHb5zfciqBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZ7Mf-0001zI-7K; Tue, 18 Dec 2018 04:52:17 +0000 Received: from mail-eopbgr30052.outbound.protection.outlook.com ([40.107.3.52] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZ7Mb-0001ir-Fd for linux-arm-kernel@lists.infradead.org; Tue, 18 Dec 2018 04:52:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=giB2Kh9mrzRb5jwNPWlKfbQHhBQWMKzbhLd8AlIDMJo=; b=LxDoOiNO2FZQqhQWDzik/Eggu5gTn4bYOZHq+EiU7Ji6ALZOs2tG9t30ETNMI8+zIpA0fCGw9X5A8dG8KLwVESsUT6vBEiVuB60R+QthKiaQfNj/ywDIeLKYj8QFYQkk72YmPLa5NNmO+hL22FH/Z2AboqWLJuIZ83gI31E9Av4= Received: from VI1PR04MB4480.eurprd04.prod.outlook.com (20.177.53.224) by VI1PR04MB4112.eurprd04.prod.outlook.com (52.133.14.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Tue, 18 Dec 2018 04:51:58 +0000 Received: from VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::9564:6e18:8e79:eff0]) by VI1PR04MB4480.eurprd04.prod.outlook.com ([fe80::9564:6e18:8e79:eff0%5]) with mapi id 15.20.1425.023; Tue, 18 Dec 2018 04:51:58 +0000 From: Nipun Gupta To: "shawnguo@kernel.org" , Leo Li , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" , "will.deacon@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 1/2] arm64: dts: ls1088: add smmu device node Thread-Topic: [PATCH 1/2] arm64: dts: ls1088: add smmu device node Thread-Index: AQHUlo1oSPDChwILUE2cs2d7WwpBEQ== Date: Tue, 18 Dec 2018 04:51:58 +0000 Message-ID: <1545109016-1779-1-git-send-email-nipun.gupta@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0025.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::11) To VI1PR04MB4480.eurprd04.prod.outlook.com (2603:10a6:803:67::32) authentication-results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB4112; 6:zUv7eHKqVOuX0DEar0Xdr1aeBUnWJ7V/J7xinN+DhZF8hIbiQ3GawFwLx1l47/fFDeQEQ4/XBnSjSlDlKTgxq1kf+ecAfy3s6rL6oEDQTsujJ0lCOaiWur1rWYyzPrp+qneWND8d6zWqdsc0pbZeiTCavNusQR23pysQvnTu98Ou9MmrAlvQTCghhu3Ns5DiglCtwxr3MZYvVEp9Za5BZ1iT2+4Qpgoz97OExVgUiM35PYOeSC3dttofkP/NdWlmBKwGmnU0Oj6C+lXcjjsa10yW8I7kh5XB7+7amlaiBly7LC6wH6kIi3JIZp7I+vyYR9NiDly9IPwoVddPJ7H68PJnRrOYDhQ3rKUx8UxFbeELzjgZk7tY1QKH63baFiDyPHuoarC6YsUXw/RA6iX+ikMcSkNexDdcvXYgLpB3x6wacfCPT8cWuKeyGvZZ21KOXJyZ8Vc7Ynu1US5zjd+HxQ==; 5:liPWHueKz+G8CGOnQV7MnSs0hEh/BI+0sRjCBC7eR5vhtAt0vrDZBG35QWulD5ij+62McQblB5anCWzfEMvNN/vfgBKPvpVV2N/KqOA/gzpZIJ7dZdZ1d6gcD3PXzDK0632jTZ2xxnbmjsxbir62+ppa6zeV8kIsee+IX5ZlNp4=; 7:15vErUKzfwlLpBfA1kqXDn9ZPcFG1qfb1XXWilWPJO/4hrgCqb98eIjHyu00KzLR1d9RYTQ6gTi4KBc5CKqz47tF7kRJSR0Ucsjo3Zd3/6ntKVxpyy+ixlhF/xtx+pPZW+y9rh/4g4IFdY4NkaRPSg== x-ms-office365-filtering-correlation-id: bd926537-3ddc-4091-55e3-08d664a48a86 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4112; x-ms-traffictypediagnostic: VI1PR04MB4112: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(999002)(5005020)(6040522)(2401047)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231475)(944501520)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB4112; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4112; x-forefront-prvs: 08902E536D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(366004)(199004)(189003)(14444005)(6512007)(256004)(6306002)(6486002)(14454004)(6116002)(3846002)(26005)(78486014)(2906002)(186003)(2201001)(71200400001)(966005)(71190400001)(6436002)(66066001)(575784001)(97736004)(86362001)(8936002)(81166006)(8676002)(81156014)(478600001)(36756003)(5660300001)(102836004)(99286004)(55236004)(6506007)(68736007)(4326008)(2501003)(52116002)(386003)(305945005)(44832011)(486006)(476003)(53936002)(2616005)(7736002)(25786009)(105586002)(110136005)(316002)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4112; H:VI1PR04MB4480.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NwYt3b56ACKugmrVoePQ9fxP+DL+Vntm213Z/G9UVf/tG2Ch/Rc0XrZC/GN3He3P64ixjcQhJHh5hWyxCKt/uzqi3j/49z/Wsr/V5CMPZSE/N3b+QFX92A890qq9lMEUYGKy9W6MZyI3O2Y6jouGPZ4nBdX8gzwe7y2E+ah8ChhRUs/5m0QV5aMK5QsjtSb5EMZDX7wHT55lcq7p4NnuQ4sZquAaoOzENG1nBeeZ/WLr6gJ1z8YxVxw7zDIz2RtoGTJ4xNC1yRQr2Se+Zr3RF9Bwbt1yZpcHQqHjuhsSioYOO5lBQYES/NSc1V0G+BAP spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bd926537-3ddc-4091-55e3-08d664a48a86 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2018 04:51:58.5310 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4112 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181217_205213_581958_C63EE4CF X-CRM114-Status: GOOD ( 13.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nipun Gupta Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch also adds the iommu-map property in fsl-mc node, so that fsl-mc can use iommu. Signed-off-by: Nipun Gupta --- These patches are based over: git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git, as there are couple of changes related to fsl-mc bus in this tree: https://lore.kernel.org/patchwork/patch/1021020/ arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 92 +++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index de93b42..dec0c2d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -576,6 +576,7 @@ reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ msi-parent = <&its>; + iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */ #address-cells = <3>; #size-cells = <1>; @@ -641,6 +642,96 @@ }; }; }; + + smmu: iommu@5000000 { + compatible = "arm,mmu-500"; + reg = <0 0x5000000 0 0x800000>; + #iommu-cells = <1>; + stream-match-mask = <0x7C00>; + #global-interrupts = <12>; + // global secure fault + interrupts = , + // combined secure + , + // global non-secure fault + , + // combined non-secure + , + // performance counter interrupts 0-7 + , + , + , + , + , + , + , + , + // per context interrupt, 64 interrupts + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; }; firmware { @@ -649,5 +740,4 @@ method = "smc"; }; }; - }; -- 1.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel