From patchwork Thu Sep 21 14:32:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 143174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5323687vqi; Thu, 21 Sep 2023 21:50:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyMEzmvzP6ZDkpZoy8wKQPM3uOKcQJb4Qfvzbzt4nUv9GSXoMbbnzIayjgn6yez7SiUgWm X-Received: by 2002:a17:906:3158:b0:99d:e617:abeb with SMTP id e24-20020a170906315800b0099de617abebmr6773252eje.23.1695358237877; Thu, 21 Sep 2023 21:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695358237; cv=none; d=google.com; s=arc-20160816; b=R9TjwnqGx1dqZGO4GNwimzgtl86EROMhcsyIIVosP4Mb28WSxc4HzZ7+JGqLcfsyek rbfl5Sysrfl03ectrtH/9GAulB3vb4HOILiLROv5afbMIkSAqQUjwtlSo30LWyDcafwI FCQXLlL1bK11cuBP1lhpuYbArqCexhzXnmtvtNlJifCKdm/xkVd8mKWAGC24LHKlLKcX fsBWkLTzUGHqqku+qbyWtm3Fz8vmOefBPNcZnqT6jnT1gPZ/Jz9w50MlaH0S4zpn5GQ8 CvLorut6D7zfcARmrsmuGhhmXPnNRwEmEjmFOi7S3BXUhxnqg4eP4gAkBkd6livYU6+U dhNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ABe5lag05JGrRRfK6Q7TQU2Nmk4xnwbIxqigvQsoK2A=; fh=TAVsYibxZFcqukZZrQ7p/tnhLQVVSFFtA+lW/l2KbRE=; b=UnBEUjQMopsa3H2RuCtXixzay/sZ40XGt6Cx2I9Ci85cfHHiLmLl2sFKtQ/JRNNLLT cL+wYyrDe9pVWz7Gu396xeSIQ+njkNPlxWpFRSMiAZufekPmo81JMGjMh83dKE/X0qrI VPdUlR5Dp6WxIexJUlRNxtl69SlHp7pgvyF4m9ovU30++p2vH+LST79v6PJ3KCDDptS+ JA010zp3ZZw+1TYKrYGyeqdautY4l4Q/sx10bN/KcO5K/NPXojF/Vf98o9BWh7J3aohw PVnJlhH5AWSdQUfzkGwyWcAH/1MxVbb7wxCXGAgFfhqoB2kncbVgCovhewZUQrr6lzHf la3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=JwnjnrHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id q9-20020a170906144900b0099c7fa5ae98si2748586ejc.843.2023.09.21.21.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 21:50:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=JwnjnrHS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BA412808682B; Thu, 21 Sep 2023 14:00:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232066AbjIUVAB (ORCPT + 29 others); Thu, 21 Sep 2023 17:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232398AbjIUU7l (ORCPT ); Thu, 21 Sep 2023 16:59:41 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7654D83F62 for ; Thu, 21 Sep 2023 10:37:18 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5333fb34be3so1160127a12.1 for ; Thu, 21 Sep 2023 10:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695317837; x=1695922637; darn=vger.kernel.org; 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=ABe5lag05JGrRRfK6Q7TQU2Nmk4xnwbIxqigvQsoK2A=; b=JwnjnrHShjI6zRawKAxhSBYdz0O8VDXWCPifpp0aJh6MB5rBHny5X7xZ6Fwt+Vqs54 WCqs7RvvHfI4Zbnn2Ku/ujq6x1HWvXgsgBWOe5EXga6gm7+4mo2TXPMxkBjMxDO1MZUc F5rRDNz2EgN4J3DZbLv2wh52gvJGdPkhH8M/ZP0qYVkUT3MGYs3WVPJ08IjpV5f/KVxP VznYp+xMVWezX97qBFKlSKBuWlfDRz9uGDXFDzsPbZp3ODRCOt8bJt3Dwvac8+c8WGnX FiJYIB0ZZRWc23ugs+gUVak+WjN52RT/hS4yW6EoxwORyQccZ1JSV/lSrFj8tRSdef3z SboQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695317837; x=1695922637; 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=ABe5lag05JGrRRfK6Q7TQU2Nmk4xnwbIxqigvQsoK2A=; b=Q201OU4CdWct1J2hAlCuopthuipnbI92x8+kf8GeT6jMZhPJ7gmR2/LXDYmygHVKz8 +wMdIUU2I4X1i/otzKeGcmruAjH/e9j5skNn/9nujkugGgQuTslMa9RgK50C5gIkTRvK UCzYF+2i0Ue2tSKHiivN500N5BZ2geYx6TcwUTNicjPlQhNzsObY04CCbaUKbpgIPCe3 pr6CVxMyTwzLm6ZHSHDKBojV0he/93P9HjsKhGlcZN4472hitJca01KDRCplL+2lt4qz OFxp8Hei2o6C8mL8wm86VmVTzhA3YPU5rbq+5PJWdt0OIFeFMv1eE1uYV6wx7j8UOJ95 4tXw== X-Gm-Message-State: AOJu0YzmVAi8K4wGvqpy+ll85rdftRov74pe08P78S7dpxINWwGbVY4x ZgbJgeKwV0+D09o8A++HFqgiMqKRsCdzTTXTR+c= X-Received: by 2002:a17:906:20dd:b0:9ad:cb02:275f with SMTP id c29-20020a17090620dd00b009adcb02275fmr5307075ejc.34.1695306773342; Thu, 21 Sep 2023 07:32:53 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id lt12-20020a170906fa8c00b009a219ecbaf1sm1153327ejb.85.2023.09.21.07.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:52 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:42 +0200 Subject: [PATCH v5 3/7] arm64: dts: mediatek: add apu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-3-fa6f03680832@baylibre.com> References: <20230207-iommu-support-v5-0-fa6f03680832@baylibre.com> In-Reply-To: <20230207-iommu-support-v5-0-fa6f03680832@baylibre.com> To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Matthias Brugger , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Conor Dooley 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=1174; i=amergnat@baylibre.com; h=from:subject:message-id; bh=LNi5XTwnw6k3l6Q87CyTgWzrlVLjaNEqurZKDlk2veo=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQP6GqJjbLUqKqxj6xy8Bno/ClUvJYLrn3Hmj6Z WRq+RVyJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURbzXEA CtoPjBUH3xYFYAKUMiNcdHOWrnTKIIVSJ1nCZqaEtp4uzw7YjrnDFm97+Xjuu2+We3fpcQh5rfUhYw sPyIKuzpBGukYrCyg1cntaJFnWj7zkuv5tm01rIhDSb9cvfIesD6Wgybc4c9xkvuufeAPSaCeamCUz 6XKAk8oIdSwhXp2ZJEqjCfb8Jq1tq7XbtAU5EsNDm+YQdBRVmTESdE0p0z4fG12A1RSBoHDQkJ8ijo P2fbCbDjkeu6h0xg5dMIFwNbJH2JwCr4DraiG6jZ93u22kqyaC/ROO9iQKJgRR/0YB/pCHHP6cV7/V OZkxUkgLQaYd4dbZuxcw+30vhbMp3emKzdz79kYDtRtLJmDOhwD1R9BKAcO02Dbk4iw8XoePlfM4Hp qfMoX8zqKIVMWXXawqQUW74VBHelwGLmlFN4xEKBpB7G3q3fOr4zYGaVbddNoBC89lqFldbBxyAzwU qOQVRnIGbxtDEk3QP3Sl3fUZQR+naiUGD+2aUFpRP4K0yAOTqKgJQY2qtQPEs69zlj+RUH05ssfKC9 Pza9sw4vljuxaR3KeKHzgsCsf/jmjP7vyPNPyEzOLyosR3g8gUvKKeiFzPQO6jPCpQrjt4ViZkv2II L23fuNQtT5JgfO60FwIvZvGiCWxWkrCQ5kc61MjwKwJmFbVD4HU4D8E6uLEQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:00:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777711959589802357 X-GMAIL-MSGID: 1777711959589802357 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. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- 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 f9cddce5bd9d..c3ad7cbc89ab 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -615,6 +615,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 {