From patchwork Fri Apr 7 09:34:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13204627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BA47EC6FD1D for ; Fri, 7 Apr 2023 09:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qY8YwT7FaxqnNSrkhzWSovqtYflzv17eSX6k3NXL5Lc=; b=a2qhE4biFvOEW8 kiT/E9TpH2R9AZ0yYZBG7W22SXiDYtOflVXut1vLNp0i4bQlCykVo2hTqIAwxq8KhDrYxGAXLYVLw q1h2gBNFeMds5tprDVcYu/kHmPOPNv0Ytt8Q6Z7pGhN+th5FlhsAEuK2QOHYStC8vpyeGVYKKoad6 Ns27fmWZvEj/21XeOs771tWzQw7k9+dxGs4JXtf7ZQeuyDx363d+CeK+DDWR5U1NVRyRpKOw3+i1r 5dyzhvfZSy4l/9R+/37ZPCUrrLZjmhaThwaAy4aqUnmD76O+98oBo8WRBHdusQgGz4jgzMtaVIlME f/0bZtINop2eQSOMP86w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkiUT-009g5x-0W; Fri, 07 Apr 2023 09:34:41 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkiUL-009g0I-0E for linux-arm-kernel@lists.infradead.org; Fri, 07 Apr 2023 09:34:34 +0000 Received: by mail-wr1-x436.google.com with SMTP id h17so41833847wrt.8 for ; Fri, 07 Apr 2023 02:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680860069; x=1683452069; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=QONjcM29kV4dmGB3rYEiONRK5cMaa6iuyKF2F42L3XXJJguLusSxoZpsDfEYzNHrJQ PCve/XJithRyJlBCCehKo5C6uADcrcFyBiWsUjesvvs4csM2RJExdrtZYgQfAlS/TcwH WquiPJgyLMhp05XnzHIPk2z2kmkrURr0wmt+FjT5EDEFe33tw1gD12kt1YM2kZiQahuz bH9IW8UsgdOR3nDyEOrUTw6pHBetJKgliKfuDtgtbZp8tYaefzJniFSkwJay4GbQoMYi f3guY3mNKfR7mBcXVNDqoK3oE9uz2POBhXN7jkoXhB1BE0gmhzupPCK7QE7nhD9t2ugg VzUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680860069; x=1683452069; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=70JWiI3ir/yodHMirtpCr960hDJucp8ZmgOAZyHHfjo=; b=ojN7pechTzrA4zQYrMLRuBKq80it8SB8qHuPjn6zopZoK3E4qab+bQKw4Pw9nkyUTD uyttgsD4hpQ/A4FTCbCtro6QNN0n/0nJe6rQxgJF9UzW7bkN4Vpb9rpTmal4YErjfHcv aP9zxrEb0B1Lg6ixVz75U/40zc0pya7expDRA6H/gS3kJnWE3GEb63qN/VZo9E2WZ9EC 85XMJ6PiVQrceNteQwbtUzBuklwcZg8GmFMTYWzRLRa6S6fJX4lF5uevpUlUeAUQQH4P R3NQQ3X86R1N5PDLy2txDQAMQPOtVdSk3xa9iaEyiqZdInJg597NqrI3CVxSe0yqhvvB AS8Q== X-Gm-Message-State: AAQBX9fm5o+Py5qlFqy6hcDla/yDCV9EbmWnzOuEGbCVydAB1XGn+5Vf 8OqoVELO6NXciqw6uC17UKtK1g== X-Google-Smtp-Source: AKy350YypaAVLJKTn67bZFSJ5w+Bznsf6177h4pS/ayorAldv93lbe3E88jagS9SiBVOi3W60rfOng== X-Received: by 2002:a5d:51d1:0:b0:2ce:a30d:f764 with SMTP id n17-20020a5d51d1000000b002cea30df764mr942043wrv.21.1680860069489; Fri, 07 Apr 2023 02:34:29 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id s13-20020a5d510d000000b002d64fcb362dsm4020432wrt.111.2023.04.07.02.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 02:34:29 -0700 (PDT) From: Alexandre Mergnat Date: Fri, 07 Apr 2023 11:34:14 +0200 Subject: [PATCH v3 3/7] arm64: dts: mediatek: add apu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v3-3-97e19ad4e85d@baylibre.com> References: <20230207-iommu-support-v3-0-97e19ad4e85d@baylibre.com> In-Reply-To: <20230207-iommu-support-v3-0-97e19ad4e85d@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski Cc: linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Mergnat X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1091; i=amergnat@baylibre.com; h=from:subject:message-id; bh=xWFAj8fuPjSh5BRKLkeGKOoKQ305/M/G1EGxpvjOkWE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkL+Ohlg4spt+Ph+OrbPJZKpEpJNrFe4L6RjUFlhcD 044pvFCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZC/joQAKCRArRkmdfjHURZK/D/ wIztu59Z6cma4MWtA5B7NQozRNiJHyTE/Kl8Z5vijoZ0nE/K4GDnlyrtym6yebHm/EehfkJMuhrphg Zz/cf/vxh+FX92tn4pfkqQlub9u2mz2eULkvrtNnCzTUaI/XdQXpGKfzxUF0mCHf75z919RvnzWNab RyHSvxl806VvR1jKbt62bbdDzwuFOENhrp0O1kJ8dQdNOU9DnXtZFRopBkQxYSXC/gLoD22MprXA9O z+5NDatU/AD6FiV+w7K4Di3a+mj/uCc9EWM0f65ekcXGhbyVb5bDeAW2tXrVoqtdAvy4caoDEbW5wD ELHrZ3k08yu0/pb8b1FUT253Tl9/wioZ0vMy+CXcdBpsG4cBb/+Ko53Nbvd1Ba7tNn9Blkh3NA5E8b ViVV0vL4qIBvhddGJX2urR3FA25LZbpxGGC8/2msWAuzwm09IoyrA6rCUo9k28nL3Y0QZe4dOygoHh 7gkUD/rtJ8/0C8XvT9aQbP4Ex5KqI3E9qvVlsDmUUnq163orhqdlXe2dwnhX3p2WrlFhMPBA2HhKVG xfhjzTKz44L+AyJ+KaJkEQLYKyLf9Tw14jO58hnx4Zi9VsUUxSgepunXgeocs5rHE47ygwGnj9lA7g xHgG6kPUFdRkYhaM6suBRYQTzpMmyU61mTNkUAxFMuNVY8PHgzFCmEwRS9Iw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230407_023433_134743_F4FDA92C X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org AI Processor Unit System (APUSYS) is a highly efficient computing unit system which is most suitable for AI/CV algorithms. It includes one programmable AI processor (Cadence VP6) for both AI and CV algorithms, and an eDMA engine for data movement between external DRAM and VP6 internal memory. For more detail, ask Mediatek for the MT8365 AIoT application processor functional specification. Signed-off-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 73cb10d296fa..386ab8902b55 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -604,6 +604,12 @@ camsys: syscon@15000000 { reg = <0 0x15000000 0 0x1000>; #clock-cells = <1>; }; + + apu: syscon@19020000 { + compatible = "mediatek,mt8365-apu", "syscon"; + reg = <0 0x19020000 0 0x1000>; + #clock-cells = <1>; + }; }; timer {