Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2117929pxa; Mon, 17 Aug 2020 00:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG+IrKcEX6ae8xi3a0xJBztY4/qeA/V5P76SheGAlbRDCjDPoM0Prhrw2OODjeItuZ11io X-Received: by 2002:a05:6402:896:: with SMTP id e22mr14235396edy.210.1597650752578; Mon, 17 Aug 2020 00:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597650752; cv=none; d=google.com; s=arc-20160816; b=xhJl4SyAS08ANMhNrsGcAZJ6ZqduCq+fkIKpU5RJjXNH/AkNL3u1+J/axf02d4SXbm 52kTeof/xMBBBt1ezL3qBmsxMW4raJqBSrfhrXsf3WJUcvlfiWzMaYDfOWCtAJgaVlTD Ai/YrhNq3wtDJhouGG7jVpQuyeHZ4TRLgtP7GmVNI7pRGe0FVqln+NvHCS88Vdl9Obvq p2mBhk6tSla5I7dMT6xToh1JgiTZqOG/LUw/GjF/6KQOs+Q7nFyofntRr+kr9wNQU1ZF tr+ejJXUyGI4YxHNEqDZrZFqrVOt9TiucRhwBCSagUUDfI5Z93bjAaDA8wQkDFozQwz8 T7UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/T2aWVWGHEj8VRJb+eriqkCQgj1OIrC2jQbV1W5kHg8=; b=ei2+XF++m75eS1lm7TB3FHMCf+OUp3CiBrBDa5oKygo4if7dTjg2Z9zSkPAL+/CJj9 aBFDWVKSoOa8zDSJMsw74Lo+T+vn8Unr1eA3ZufG6IRRwFpJYaS/ugMdKIKe3ifxxZKQ cSi2qFn3VxPdjyjqjsxOE4fIegRcYsNJxoqyf5B6adV6XkZZMS4x/FVFMa+JzZ89MK3E nOkdIWnwjHyEgg2xtBbb/1zUGQyec5s2zoNvQsLCc0THTZ+9Iggm2qLcHRIiDrfiO7E0 ee5u7XdmLigeqzpG3P4kub5TlwMXJgNRKzJ0iN5oeKEWL+Me8NWv99AnmRDzNUnFSd/z Pndg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WhMMGunm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z61si10875593ede.593.2020.08.17.00.52.10; Mon, 17 Aug 2020 00:52:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WhMMGunm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726961AbgHQHul (ORCPT + 99 others); Mon, 17 Aug 2020 03:50:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:45490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgHQHu0 (ORCPT ); Mon, 17 Aug 2020 03:50:26 -0400 Received: from mail.kernel.org (ip5f5ad5a3.dynamic.kabel-deutschland.de [95.90.213.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C71A22CAD; Mon, 17 Aug 2020 07:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597650620; bh=FiVFRusfj9DjxEECqrLRwnPwn3v/1jVkijJ8N2ump8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WhMMGunmpgK8vFWnOdTQ2I8t9MbghOejJRSb+BTP9jycrNykrJQP3kz4Br4sXCn0s 4wwBV/Lx6SIIapFKypuni/Kbn41IlmBg7YFmeu7+n7UCekd4w/Oh6G6JMLRekvyPwg LRgUpuTisRQGkhsAJDrp8QBMM9mEU6AgEfstMrh4= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1k7ZuM-00BfcU-FM; Mon, 17 Aug 2020 09:50:18 +0200 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , John Stultz , Manivannan Sadhasivam , Joerg Roedel , Rob Herring , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/16] dt: add an spec for the Kirin36x0 SMMU Date: Mon, 17 Aug 2020 09:50:13 +0200 Message-Id: <0fa3a11f63e68fdef3a8aa8d45f1df4d0832dcac.1597650455.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe the properties expected by the IOMMU driver used on Hikey960 and Hikey970 boards. Signed-off-by: Mauro Carvalho Chehab --- .../iommu/hisilicon,kirin36x0-smmu.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml diff --git a/Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml b/Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml new file mode 100644 index 000000000000..ec4c98faf3a5 --- /dev/null +++ b/Documentation/devicetree/bindings/iommu/hisilicon,kirin36x0-smmu.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iommu/hisilicon,kirin36x0-smmu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon support for HI3660/HI3670 SMMU + +maintainers: + - Mauro Carvalho Chehab + +description: |+ + Huawei's Hisilicon Kirin 3660/3670 contains a System MMU that enables + scattered physical memory chunks visible as a contiguous region to + DMA-capable peripheral devices like GPU and ISP. + + The IOMMU domains are described via iommu_info settings. + +properties: + compatible: + const: hisilicon,hisi-smmu-lpae + + iommu_info: + type: object + + properties: + start-addr: + maxItems: 1 + description: Memory start address (32 bits) + + size: + maxItems: 1 + description: size of the I/O MMU block (32 bits) + + iova-align: + minItems: 2 + maxItems: 2 + description: DMA address alignment of the mapped memory (64 bits) + +required: + - compatible + +additionalProperties: false + +examples: + - | + smmu_lpae { + compatible = "hisilicon,smmu-lpae"; + + iommu_info { + start-addr = <0x40000>; + size = <0xbffc0000>; + iova-align = <0x0 0x8000>; + }; + }; -- 2.26.2