Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1778490imm; Thu, 14 Jun 2018 03:51:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPMxWXItVsYru9Q9YvX8UaxfNJvoggq9GKeiFfwPTT7QUTnx105H9ZPFOeTX1oLUixHvoP X-Received: by 2002:a17:902:1025:: with SMTP id b34-v6mr2472652pla.207.1528973476845; Thu, 14 Jun 2018 03:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528973476; cv=none; d=google.com; s=arc-20160816; b=F1O1a8zsnhS6Mk68uNJkbw+m26HZPqx+ifJSzgwv4rqCEyM99PIkoj/Fi+0wnmVy0Y uQhn8P9f6qPeAZoHoH/ADnxSoHq9AOu5iG7h+rg2bnJKx3UlQLO0giR4AmInhOndeQAe aEfuG6pA5C3cq8/PvFKQ71Me5NpuQzR6aOvFLwh1CocKROLNt11aeWkZYhzp0tmGk3Ia v8D1KRSRGpyvdKrQ2+sNQ3xlG5tlAp9XiOSsS7vAfx3zUQDKHGW6bcGnCJMllg06Rai9 fr8ISN4zoETRlm5DHVOSQNAJH6950JFOl0JWsD06ubGw2O2qfViN2ZWns+rnSZPlZmWb hnnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GLVSs8UVenrKRuxYq7VfzqW5xCCaRMcnbRacVjWYEJ0=; b=K07Tr+0rmzQCrszoRT8wWAHbW1s3YoB+khTmwET4XNSxmKmFjHLeAyt1dcr7Ttz963 xO8aDbIFZIqSA7v2WWgcKfjTzl8J+Mf6of/zmkzec64YI+JXoPKbOmUFXqMcnOFR/6Wt tziThMCBz6EqfUk+v8t50G3ih1Ps2+Ovh/OhNeJ9lAAnDA1h5GykcGQX0U/2ClONeoXV 5z6L7HvrkwIBY+NJMp2evw+VXF/fvxsG52aCDFDXxenX4yEx+Bgcv6fuB9koTDHsi/OE OKRtHsDcvV0onMDU6HDmOgKLlgHhd4GHF1zxaPbkZDVq8fOgsLvWWsg340amnB2UubhC 8EjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3-v6si4080563pgw.292.2018.06.14.03.51.02; Thu, 14 Jun 2018 03:51:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755134AbeFNKsp (ORCPT + 99 others); Thu, 14 Jun 2018 06:48:45 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:46749 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964804AbeFNKsm (ORCPT ); Thu, 14 Jun 2018 06:48:42 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 599D72000C; Thu, 14 Jun 2018 10:48:46 +0000 (UTC) From: Jacopo Mondi To: geert@linux-m68k.org, horms@verge.net.au, magnus.damm@gmail.com, yoshihiro.shimoda.uh@renesas.com, joro@8bytes.org Cc: linux-renesas-soc@vger.kernel.org, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jacopo Mondi Subject: [RESEND 3/6] iommu/ipmmu-vmsa: Hook up r8a779(70|95) DT matching code Date: Thu, 14 Jun 2018 12:48:23 +0200 Message-Id: <1528973306-7962-4-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528973306-7962-1-git-send-email-jacopo+renesas@jmondi.org> References: <1528973306-7962-1-git-send-email-jacopo+renesas@jmondi.org> X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Simon Horman Support the r8a77970 (R-Car V3M) and r8a77995 (R-Car D3) IPMMUs by sharing feature flags with r8a7795 (R-Car H3) and r8a7796 (R-Car M3-W). Also update IOMMU_OF_DECLARE to hook up the compat strings. Based on work for the r8a7796 by Magnus Damm [rebased on v4.17] Signed-off-by: Jacopo Mondi Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 04c8015..933a3da 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -763,6 +763,8 @@ static bool ipmmu_slave_whitelist(struct device *dev) static const struct soc_device_attribute soc_rcar_gen3[] = { { .soc_id = "r8a7795", }, { .soc_id = "r8a7796", }, + { .soc_id = "r8a77970", }, + { .soc_id = "r8a77995", }, { /* sentinel */ } }; @@ -943,6 +945,12 @@ static const struct of_device_id ipmmu_of_ids[] = { .compatible = "renesas,ipmmu-r8a7796", .data = &ipmmu_features_rcar_gen3, }, { + .compatible = "renesas,ipmmu-r8a77970", + .data = &ipmmu_features_rcar_gen3, + }, { + .compatible = "renesas,ipmmu-r8a77995", + .data = &ipmmu_features_rcar_gen3, + }, { /* Terminator */ }, }; @@ -1119,6 +1127,8 @@ module_exit(ipmmu_exit); IOMMU_OF_DECLARE(ipmmu_vmsa_iommu_of, "renesas,ipmmu-vmsa"); IOMMU_OF_DECLARE(ipmmu_r8a7795_iommu_of, "renesas,ipmmu-r8a7795"); IOMMU_OF_DECLARE(ipmmu_r8a7796_iommu_of, "renesas,ipmmu-r8a7796"); +IOMMU_OF_DECLARE(ipmmu_r8a77970_iommu_of, "renesas,ipmmu-r8a77970"); +IOMMU_OF_DECLARE(ipmmu_r8a77995_iommu_of, "renesas,ipmmu-r8a77995"); MODULE_DESCRIPTION("IOMMU API for Renesas VMSA-compatible IPMMU"); MODULE_AUTHOR("Laurent Pinchart "); -- 2.7.4