From patchwork Wed Jul 25 18:24:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thor Thayer X-Patchwork-Id: 10544565 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53D58112E for ; Wed, 25 Jul 2018 18:23:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40AC92A1BD for ; Wed, 25 Jul 2018 18:23:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3156B2AA11; Wed, 25 Jul 2018 18:23:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7CB62A1BD for ; Wed, 25 Jul 2018 18:23:08 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=r7/LjhKAC8/KiEfGBqAYdiN7C4+Qy8mNIPlH3QiLJHs=; b=YOetks/kxyhl3Ce5liXSdm5IwU XoAlQqiO96kiArKs6XYNAe5refknnC+91McWyG8sClXZ/7pFHwJNim7xf9R761IxRFnvrnnbaaUbE o/gK9SVsJ32X+LAwuopE83yb8ABvLE10ZG65q1bIZy02JtPNZXEsY86WqhHFwNiqcqHVu4kkcnxpX sS/r9X9lhZdUyVsFQq+P4/Qi0y8cDfPXWkcHFcl25cGiG1G6XtwH16G2Wu2v+onWLjfVP7hzc8dZW NHw894AKTw279aIk/sRRu9Qv+UJvLd65ZhKs0T9A87/c3fSGDeWw9nNcyNCu8hDDcILVg5jdlduuy mflfakrQ==; 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 1fiORE-0006yc-DG; Wed, 25 Jul 2018 18:23:04 +0000 Received: from mga09.intel.com ([134.134.136.24]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiOQb-0006Lm-6c for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2018 18:22:26 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2018 11:22:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,401,1526367600"; d="scan'208";a="57133547" Received: from tthayer-hp-z620-workstation.an.intel.com ([10.122.105.144]) by fmsmga007.fm.intel.com with ESMTP; 25 Jul 2018 11:22:13 -0700 From: thor.thayer@linux.intel.com To: joro@8bytes.org, robh+dt@kernel.org, mark.rutland@arm.com, dinguyen@kernel.org, will.deacon@arm.com, robin.murphy@arm.com Subject: [PATCH 2/2] iommu/arm-smmu: Add support for Stratix10 smmu-v2 variant Date: Wed, 25 Jul 2018 13:24:37 -0500 Message-Id: <1532543077-8933-3-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532543077-8933-1-git-send-email-thor.thayer@linux.intel.com> References: <1532543077-8933-1-git-send-email-thor.thayer@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180725_112225_307057_DCAE5FED X-CRM114-Status: GOOD ( 12.85 ) 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: devicetree@vger.kernel.org, iommu@lists.linux-foundation.org, Thor Thayer , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer Add the clocks required for the Stratix10 SMMU. Define the clock names in the SMMU name array and add DT compatible matching element. Signed-off-by: Thor Thayer --- This patch is dependent on the patch series "iommu/arm-smmu: Add runtime pm/sleep support" (https://patchwork.ozlabs.org/cover/946160/) --- drivers/iommu/arm-smmu.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 7c69736a30f8..d46216b34a77 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1983,6 +1983,17 @@ static const struct arm_smmu_match_data qcom_smmuv2 = { .num_clks = ARRAY_SIZE(qcom_smmuv2_clks), }; +static const char * const altr_smmuv2_clks[] = { + "masters" +}; + +static const struct arm_smmu_match_data altr_smmuv2 = { + .version = ARM_SMMU_V2, + .model = ARM_MMU500, + .clks = altr_smmuv2_clks, + .num_clks = ARRAY_SIZE(altr_smmuv2_clks), +}; + static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,smmu-v1", .data = &smmu_generic_v1 }, { .compatible = "arm,smmu-v2", .data = &smmu_generic_v2 }, @@ -1991,6 +2002,7 @@ static const struct of_device_id arm_smmu_of_match[] = { { .compatible = "arm,mmu-500", .data = &arm_mmu500 }, { .compatible = "cavium,smmu-v2", .data = &cavium_smmuv2 }, { .compatible = "qcom,smmu-v2", .data = &qcom_smmuv2 }, + { .compatible = "altr,smmu-v2", .data = &altr_smmuv2 }, { }, }; MODULE_DEVICE_TABLE(of, arm_smmu_of_match);