From patchwork Thu Sep 21 14:32:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13394000 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 6758CE71090 for ; Thu, 21 Sep 2023 15:46:13 +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=PkTRw+mE/Dga5+gJAZpcFlJ9bQltJZlN4bPG08kda7U=; b=1BR3TN2+fBfPBo 6J8VItzTbodbP1jeWz6Kftuz5yHd7eoF32iNGUrcPwjte5U3p0rNdN4xV+L/8xu4GAx91vKWx+Sj/ CPYdpMqcWPXuyyS9MD/9aGS+2LXXJAGePdbhNTSNlycJRKXx4pYF/8e6N65ogUixx+3jIkrpWqzjL /DdkZpRo4L5tQh0yV83Y91yA0Obm75wNGO38M14fvB0yBT+5KRzSjrbsfv2skQMR8p5XFv+bZGrkJ bk4clxZdoopaJVYBtOuDgc3Rks1bKFMRAP7vyAhRSYNMLD9WzFD4LHTQLZ7v5+qxUxFWMwND29Fge G814nz6GJ76XE0jfIfUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjLsV-006RL3-16; Thu, 21 Sep 2023 15:46:07 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjb-006Hr0-38 for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:32:54 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9aa0495f9cfso476711466b.1 for ; Thu, 21 Sep 2023 07:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306770; x=1695911570; darn=lists.infradead.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=wErjPQt6qENv87TZs9KiIyjig4b2yslS27coAwsNZVw=; b=kRHcaWAsVfqh6PuqmSRhW2O8/pTe2MH7vS/sFdW+I5DccrheiD6ff5crSeizEcR1Gu 124oJzWguVr6+L5bziTvxNIqv7pNtHgLp21bzURGC68keHGk14l7DlQK1cffD6p+lsrX uf4kY9dDkBOktfljZnZqDmzhIwNNZwU8TT3anOtLG1Vdm3fALiKylpi6I9nFl2un4G7r G6aqqWxiVIYHJzwX4i70N2lJM0K1Bpd5Em6TyugR9wgI7VmoFWOewHBXFZJK4zEGWkBF RuTvRbKSIntoBzrwTJY0mrV/B46OHnai5lcbBWGWaMxwuyzMq0Vph+0yV8q6lc1DgpKA jslQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306770; x=1695911570; 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=wErjPQt6qENv87TZs9KiIyjig4b2yslS27coAwsNZVw=; b=NOfCTE8mGNQhnlmEG+1027LQXB+emA3JeRKZUo+7VAqnyV0RzCZIL/xl52vUVFhzaM efjJApXGQXV8+Yw17BVEE/2vHZ0fBmZlbxVzSiUvFao2rYXBX1NptNaBvkXKLyrINwc3 vCbJu3a7drOJPHWQI1ZL4h8FEnYw45QC5A7Pp3ECi9pMlkzkXXm23AhuNGXMMtz2E1Fn x+OBV8iQ0u5GMYLzXtx20R+H0wNhPdUfNJE5mIEL8XV6yUAU6aRsPjBpSX8wBqGDmbRH BgQIc0IzPIsw8BOOu5W+XLwQQcYLjSJ5Yf2Kyxs73T/BLl2yORnschLXujmzMuUsawSp DQBw== X-Gm-Message-State: AOJu0YzKz62jItHZ7vbea6osbhktNdmLmENkrlWilTQ0ET6xNfUL4wyH ZHujDxVpwWwJzT/4oZCO9Zbf3g== X-Google-Smtp-Source: AGHT+IFOB3eMDwI2t0a2q9Bc3NUa0OvjwJSrkAn5FCb5ugaSbmUWlrXrinmvhlY5/5p++bwV6SZ9yA== X-Received: by 2002:a17:906:847c:b0:9ae:6196:5094 with SMTP id hx28-20020a170906847c00b009ae61965094mr2756229ejc.30.1695306770505; Thu, 21 Sep 2023 07:32:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:49 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:40 +0200 Subject: [PATCH v5 1/7] arm64: dts: mediatek: add mmsys support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-1-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=1264; i=amergnat@baylibre.com; h=from:subject:message-id; bh=5Tm918SwyWroVCRT9x2Od4dOEXsJxNFB5Eps83AeIaY=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQPu6ZqiZkD/quO4t8h+hA6Isg4BN08h2+76mls Gl5YOuqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURVtUD/ 4/BNRJAHNO6Wlh1V/NiAriWpP17skcQQDHSsFYzz3Y/aaeyXPE91Bu4TdQVJLuNj+3Z5o86DvWG1SV U8KUyuQ1MmO1q61clIxSfn214ayuu6300dUg8HSU76C6jEdzWjQeYdaL06+g1XEKvnzNISOcsvsZ8B DlZZGHYUsfeAEFzNlL1o/2q3ZlPCqgkRLvu5rNFSB7ULIhzpjfrr7kh5SplD0SgfOCN8ydJp57fLCk xMUoKhP1brq3zfUonx4Kho4m719ZYPPbgODu1QGkztz5TRqheJWRWJG6DS9LCcsQ+Y3dTyurJLDNFc gOv9o7jCikev4QfhT07WIFFoNgEylBji9qVZf5ATyLaqJSSoK1rMwm7YitpXz6S38TLnWQVcFeb5TT sUeIYfOxMoGVK87fh3CJv/C61f4tCSEUYUSlWVBab/fqm4vcpyQX0TFJXz0dNBMc7z3Qqp6aFWPU8m cLA2NmyoAU9wiD7g26quS/1VsD6HoUpGbMssqlD1BAwP2Sn/ZNO/lr2pLHhGifeSbY72D2SHAZzgXD pkV5+nsdMHHd3lWLHVSR14J+DZdnuedWdiZRC75p6ftLrXyabvyesfi37UTn/dwOrFyqewKxN10x5l LvjEw3zQsCAan4BaA7VfIfbsVJoKuzd9KhBgOu7RI/ZLD+JNv3xa06Qehdug== 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-20230921_073252_231259_E9CC9671 X-CRM114-Status: GOOD ( 10.30 ) 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 Multimedia subsystem (MMsys) contains multimedia controller, Multimedia Data Path v2.0 (MDP 2.0) and Display (DISP). The multimedia controller includes bus fabric control, Smart Memory Interface (SMI) control, memory access second-level arbiter, and multimedia configuration. It plays the key role in handling different handshakings between infra subsystem, video subsystem, image subsystem and G3D subsystem. 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 413496c92069..bcabc2b89a94 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -603,6 +603,12 @@ u2port1: usb-phy@1000 { #phy-cells = <1>; }; }; + + mmsys: syscon@14000000 { + compatible = "mediatek,mt8365-mmsys", "syscon"; + reg = <0 0x14000000 0 0x1000>; + #clock-cells = <1>; + }; }; timer { From patchwork Thu Sep 21 14:32:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13393969 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 1C0ABE7107F for ; Thu, 21 Sep 2023 14:33:30 +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=hrI7qmerBzknNmzGFn7WtqQWjSeSEamN3jb+ywXph2E=; b=pppSKyGRwJM3zX 5adV1IbbhDyAsczvxHmxl3k4Z+ehENjyCKFXJLSa+L0F6Mb0K4uNqs49Bb0WbpSK9CdEWtTPKjz8Z +57CBDaezB7KYfN0BS0OmFVbPs+2BF5cK/CqQfsx+ZO9sXbZS0EQXBYvH1xH9ESwxl1k43sXkhF80 t7ZfS2Cb4kuzIHHzTKkMCEPdzonU0juoW/QkjMnwyNwVWCa8BZvjVUAZOH2EGXKt44uLap3RTHJ5o Y9uDosu+uQbf0MCj98LqY4TKejo+ViNWv23r2QimQ4HC5XbcA8JzclQ8t4GlyvIoHR1N1Kvs8t6Y1 8Mzt7l5w0ShM6+ISDMpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjm-006HwZ-1y; Thu, 21 Sep 2023 14:33:02 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKje-006Hrm-1w for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:32:55 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9ad8a33fd0dso121644566b.3 for ; Thu, 21 Sep 2023 07:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306772; x=1695911572; darn=lists.infradead.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=RatweBkvtrU6P41JPdWUfgV+9gxtDS8Z15ua81Y0Obw=; b=hXrWSNOKD+jh4wKCIzWZPJroT3Zo7wi6SrHlSI14BLBEIIyY+6kNRfnfRxfbZjiN9q qmREBffaJl/eVj6dD8Qt1CW38xXVopMD9cojbV5Enj7B8uNz5hGnnvm4Gmm9YvEWCR7Y PazP3AGo3idq28o64A3LVfIXeODmslSwhCVYuNEWVb/mAWX+3KPheBG6GiluFwPSRyWH /sD742VrzDIWXppIPTJXd9Z8bqKdsPdbJaSQDGB1kAKxQhG85ScWAA/KzTQylNbJi3Jc bxxD9nZWqfCiPaY8V1XNCcjEdqW9cxqbMqzrqMS3eGZEuZ5UvEZ3ZCKGBFjnI3V/lxyl 1ogQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306772; x=1695911572; 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=RatweBkvtrU6P41JPdWUfgV+9gxtDS8Z15ua81Y0Obw=; b=ApeQc/PIuX0/7GXd/xc3jNBCMu2DYGKnJCRy3WGxCyQmlg0DwIa6Cyve3RKdNapo8Q EAFR+h9Vy1e030R2YRYkjFlGkS2TufTtlfuFhNyheo3W3dCnZ+JMfWLTMU505tXuKbrR 4l4hGRkShC2ZUUoAfyuehiEl5DPrqe5NwXC+QqDqZsB+fmPe+YLhmsc8N5cyCXIxHLJl 4rmdpR48kmuuQ6yToO5R6Z3Q+ifpfwPtOe+31ub2fPZqLtKd9mY9+19RCJGawySNojNx iRhcmfRjDqd5zWY+EbnLAzAf7YlwlGIDpUv/nYOnpwrXcTOogcXxToiA5Gcf4T7kWSuM 6yLQ== X-Gm-Message-State: AOJu0YwxTiCjt+TYiwwp5Ay49FM19rn2wJXnOsmEUzjt/grlCFvW3WF3 1FryHSGzQO0P8Lppxv5YlMVs3w== X-Google-Smtp-Source: AGHT+IGSkyWUtvar9ZLWBQZDLiST02yDQZgS7/saoVxYhwoVJNzn3LoyxXtwhZyKoMkQv/KBTVhA0g== X-Received: by 2002:a17:906:194:b0:9ae:5848:3f8e with SMTP id 20-20020a170906019400b009ae58483f8emr2323416ejb.49.1695306771871; Thu, 21 Sep 2023 07:32:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:51 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:41 +0200 Subject: [PATCH v5 2/7] arm64: dts: mediatek: add camsys support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-2-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=1127; i=amergnat@baylibre.com; h=from:subject:message-id; bh=gpd1qVgLFNytHp6mp3Oxt2b2oXUpJ1x+ZZ2jt7uMt0E=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQP0sH6dzPgSy2dVGfVl1WaQu1Hm5yWCM/Ma55H YHT71FOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURbmBEA CNUoSrRob1rh1wg1N/+dAXP8ugPQkCTciCkJAoV+tvqQOyC/NYqw3bav8ExTwrfk7xCQ8gpE4vrKI3 DorQIlZWdHiFAyqZSdMC7c8HiDZ3thBPXcLkEfX4FNlbbdCKd9Z310gFzjcTQKew+2QvBrNZomCmM8 RMBvpn7RJIv/V2DxcTYPSN9pYYtYPoc9buoibKE0BGR86kJPjiWb3zk+MghfR1DfKMTF9xG0Mfvz8g fnMxDPAz1JpMWFXelGY2dIE5MBr5lmKt0j/ifEoIIQgCjGmfi4VYvN6E+b2PrmWDx9y9w3YApWrFJY 4Z6iQgjC/mrZUGcwpbxquRQt7l9bZg+Ry657e9N8jxOhoj5Ng5jZhsPavKxqkpCp6TgJjdl6sg/VbO iJdR/OeolrPkH2Ws6s3AAWtTGXae0oyuJHOERcAyroMPRFXqKcBFccDDepqq6kpO9RNdMtdyjB8+c0 b/BdeXZeORCt9GhWNKB+u6NcVLZ5dn5ZXuYo1r1OkezOtDAyiTPJ36+9h/kD3vsMfnEwa83f1eNACz d3r/F9dPCJfFxEzJv6fDNwgJU+ZZWVlalUZCxqFnqwxrgPBqbxyohTTupaRaSSo/UzNR/AvFS7wNDg T0MfzOqxQaDhh0E1SpQR5zH4pH+oDYof7B10ofS00iV4qd9G2rWLz06W/kTA== 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-20230921_073254_643191_7878B587 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 Camera System (CamSys) incorporates an enhanced feature based image signal processor to connect a variety of image sensor components. This processor consists of timing generated unit (TG), lens/sensor compensation unit and image process unit. 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 bcabc2b89a94..f9cddce5bd9d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -609,6 +609,12 @@ mmsys: syscon@14000000 { reg = <0 0x14000000 0 0x1000>; #clock-cells = <1>; }; + + camsys: syscon@15000000 { + compatible = "mediatek,mt8365-imgsys", "syscon"; + reg = <0 0x15000000 0 0x1000>; + #clock-cells = <1>; + }; }; timer { 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: 13393972 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 BEA8EE7107E for ; Thu, 21 Sep 2023 14:33:46 +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=U97CiqROqeji7Fl7npD1z4Cn3rc5h15/HusD90ANK1c=; b=j/1KwPBNybZ9ji OsE54rLuS9vMsOhZYVbx3nl3RmNMBfDf90yebpkv7de3Ao/FZpI2Z+mDgftl4e8r5uIFdPyM9FOyj mv1iA/TeI1QRkdQ3j9FFa9NJockUvxys18NmwqEgp41Gl7gknzKiKmWWwU8I6oTBHvX6ac7KjdZek ch5/vPthw+pf76IeyRuDcwwc+0vCy6782v7LJTO3iN9GYatj2MO5QM3c6PJNDiuEHqhD2nqq0XzJ6 1pv51HLPoAMnjyLTOEDSsTXayoQP2G5qGeuvOWJ/EGYKKLmYgPzlJNt0L9kCHDbNEnkpCKfA7ORdQ W5pZp06nEMi4wIWYPyBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjy-006I2q-1F; Thu, 21 Sep 2023 14:33:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKji-006HuG-1R for linux-arm-kernel@bombadil.infradead.org; Thu, 21 Sep 2023 14:32:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=ABe5lag05JGrRRfK6Q7TQU2Nmk4xnwbIxqigvQsoK2A=; b=T8we0orv7/amfoIF13Cg2NxMrF ZSgvZx18iEIZuyBARHLSD1IkwYbP2/5nCPb3yJ78hiKo1d9Q9mKcgWZ3ZtHeN37ACBPoge5+Fa5w2 TMvmSRqM+e32LJzespeCC+b95dbzYcdfxd/LP+saUkUFooVdYFbR2BtkxgKP07lXTXmUp2nvwnev1 SedkRH2janbo2lm5rWfkzBxtoZPa+xhmMe82KKMcobP5om7o967sEamZ5fI9YJbM8zlxWPWnMBFBa 3DVhjF/MVi+WAUVKo8glcSrWdEgtHGcBMXYIs4YkfWP4IZT0xTceQP7q1q4N2wh9QWfhd5k5ETshC zg5cPcFw==; Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjd-00FRo2-22 for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:32:57 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-532e6f8125cso1184428a12.3 for ; Thu, 21 Sep 2023 07:32:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306773; x=1695911573; darn=lists.infradead.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=vdy2JnQX8EivC2yRCCRWLsWGFNqUSA6xbY1cNAU2f/GY9NP2bOiogz4qZjlZJ95IwC QI2Djb7E5TU08x2BLPBdZnby9fxT/LK06KZM4oS3DIvLGgwbDbWWmXhS8Uc5vIVKw2bL 2OvMZRxpA5SBdJTasA51cZuXAAYVZQ/xbKbakkFQz0DN4puf5NmYgOuxnDrhuuwv+ZFV 4nZWT74tFtQh1mmpiGNH/RDSOJ6489G4EtQGjoga1XVRQ3974qgZjhLe/RTD0pZ0XGfY JfxXa3PsQkps266Bea+EThKIkMFrt7Be/aptzvvwjG2O6eDkJIeNNDn/u4h8Pe+G4Cd8 pohA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306773; x=1695911573; 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=S9NZQhQNNdR6fbsUePnhLzmR4ws5xuPH1bDF0U1K47bfQrqvVD/sx21vfH/bi+sXGj tQh18czwd25qB/9urg+oMKLxEbbB/fC3EjIkeA13X7qHAYdlPrfX+TuJXD7fumrMGVaS Ee3BOvni/qHYduXumsJfkA214dZk7GU08EczJXEWJK5YNyhbMwlccyw9jYL95lmo+ND0 bIj9/JPmbUC/mwYvR/JE7SvH9Gu/qDk3fJYGSO5CIBgxRYttIyCMp5M/79YSgkSO5f4z qQOvV9F/zA5+/sbhO9l8FQCpSVaBy7BsbVcpR48u/zvRvrgejbfRXDHJ4Dt1l7Haj/mg A/Yg== X-Gm-Message-State: AOJu0YzbLicb8fU3UyNzx5pTn9Ef4aAC+aD4kpV2Qnc18dHchjIgMyJd UBlnmJy2ZTmKvU8XG6HN/vKffQ== X-Google-Smtp-Source: AGHT+IGjoyNrvxCOmiRU6T/l2zYW9m8AVBU3LbyVShNlB4GekcqlT9pPNTweRl3dmSDWyO+BQzflag== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230921_153255_316637_B6C411EB X-CRM114-Status: GOOD ( 11.04 ) 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. 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 { From patchwork Thu Sep 21 14:32:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13393971 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 E579EE7107E for ; Thu, 21 Sep 2023 14:33:43 +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=nkev4veerA1j8ZS3PAfOOxVywUGcbLBE5l4cdjQT3gA=; b=vAucQLeNqPdO9T MnvsRNroUT+uOQYIIlfF5liqWegnZT7R69UVEVz/nauDyu98kIR82x4EXT0FQf3NG0nyvFRBUROlg na4GqH0CK15IuyBGD6HCz3BBTPwIYGwxHZ9vB2Pwy94xCwU/L7zjRATjuAmCqRTm8UFIhD4uO8BjI x3dc7qpLZ/0I/AwnURepN0xnMfg748xkMdmbOGyZkq9uILpYli0V6Ix41KHgQNHej6xDXuiebDj/r kxbZcxIbL3bHcToZAA97xMYr7MPIAhuDhP9GSUPYSv5+xuhq2uyinmmcW6JsnPVTTHdnMJ4VT1+Xp 5bn1EmW0vaJ/4GdaWPkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjy-006I3E-37; Thu, 21 Sep 2023 14:33:14 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjh-006Hsq-0b for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:32:58 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31f7400cb74so992896f8f.2 for ; Thu, 21 Sep 2023 07:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306774; x=1695911574; darn=lists.infradead.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=clF9IqfWOEF59ajJbesUMGqxvJHi1IjyVraJZokbP8Y=; b=o8P6GzUtXCHZbKwkrwjezWvv4ljwq82qQgO6rS8kFbzuYcxwsqw9Epcix+8xxIBlwH VbP6EFaqeg1nsrNB59NMD+Q3d//iAw49pJ6fXNoSwwrTk7+QlFB5TzqzEFg1EQZpmclR wz1csuU1zd5rqx/+H3zcKkHqqoNPj7afgsgWjZddkFqiix47HhzfRaVkV6gJcxgDYG8A t4rAsv5Tl9CD+pFfW1grXVM8iTtG0k3aVF5TUycSzAHwVakChHIgsfHNbawAJ0+gKv9Q LVhYPibsdc6RU8OyofCbdxkCfNUqIvzHCXy2N7uK0HC9eqaGgI/zO+krIv1YAofhbvtD rwww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306774; x=1695911574; 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=clF9IqfWOEF59ajJbesUMGqxvJHi1IjyVraJZokbP8Y=; b=EkcOk19V9MfTg2BF/L1Y97VXFf5ltIV3xBtUy4ItDctj6vTsCuA+xj1HsxdISDiBKU N7K4VZcXJaakveymlPYa0WMDInc733zB306MHDas26lE97aPAecZXN57slcOgda7Ul8V a7ErWcaXwGJeupM4LgTkRep46TnqFFBM0wkJD8bVaGSQS7byQK3faxSQfpiO1nYrJ78p +IJeVlWedPEq/sqKcSE2n70MVnsvypPBfYSaFsmVldl/Yb4GwpOBR53hrvlimqmAz/OK KY4u5Df2AvBFUyer87WSRr691bbey+a0g4fBYoJ5mtQFX31CXX49PTCZo5yC7BiuYNeE WRCA== X-Gm-Message-State: AOJu0YwHQrDVDHbB6G1obsA5go5xpafPFNjHgAP/3jH5vIwXiyb13IsA gKn0Utc8+sTmHwV0AZqT+3mKhQ== X-Google-Smtp-Source: AGHT+IGL6wW3Rr3w7swzuaKhiPgr5LXLt/JSurYW2bGA+fNjoRuyyz3oGNC765SMK7LS/TQpTDlyyg== X-Received: by 2002:adf:e18f:0:b0:321:8181:601e with SMTP id az15-20020adfe18f000000b003218181601emr2755407wrb.8.1695306774656; Thu, 21 Sep 2023 07:32:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:54 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:43 +0200 Subject: [PATCH v5 4/7] arm64: dts: mediatek: add power domain support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-4-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=4724; i=amergnat@baylibre.com; h=from:subject:message-id; bh=gs34qYbpVZeuz1fNLXc7xbInSDTbehayNY8q/g3uDQE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQPaUQqGai3yH9GDhiKpdCa0NV6X3mBNft+IK0B FGe/ky2JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURTsaD/ 963hW5XvHhEhM+Lk7WW13Ll1D0xFvoL9s3ixFhZf3TLG5k5S8VjBvoLUpy2/rYh8K+dgaffMknD/o7 6N7WDsyCjN8LE89S/7DyXP1mxT/685L6TTNjwO3hBpdWIG4lpfgqtjeVZbMGELceLG6T5WRymm0Eh9 WIUHQBrXQdkyZOeIXcqLUw4jRdFB50olpwRA5CCJqI21sTzDfe9DgPQdtZrq+R08OhKJ5tehnLlGL8 51ahNbgFsT8ZlS740Up6Nijebsa0JOZUeI6nDh6DSnMA1eGF0ExD9tEmIaDNfsiOOGaWlEdqqIZ6pl yIS8xK4UWq9ut/shJpSTyHj5x7VGBu7mUyQZo1u9hw7v2IA3lKe8FkPWKzvYkPblA7xGEczvLJK/1v pwCE5leSLQCFrW4VE5Gyx6oyK3QQF6+Ewb6dTaLKD0OXzYxz19zZW1MvPALuSTsCxfz6oJxLBecI5S Y0nbYq81Brve4rzoSe7vh+AS7SpN8tbtmY2rLPEDHD9UF+03ohSJvS11RsJ27ehts6KYzc32YTeZyQ 3MsDC43KwUXhQLCRIg4rXYE4jAt9qNI4RM7ifDY9BEyDoWWayQzWELxCiqFHtkTUxn5t30HedixOR9 xPXcTpwhPD/x3yms/HXehgUXNIseyzEExN2XmFR0Y9rHJ5Ro8M25sH2N2R3A== 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-20230921_073257_228507_A5663A55 X-CRM114-Status: GOOD ( 13.56 ) 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 The following power domain are added to the SoC dts: - MM (MultiMedia) - CONN (Connectivity) - MFG (MFlexGraphics) - Audio - Cam (Camera) - DSP (Digital Signal Processor) - Vdec (Video decoder) - Venc (Video encoder) - APU (AI Processor Unit) Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 110 +++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index c3ad7cbc89ab..c2f88d153dee 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "mediatek,mt8365"; @@ -298,6 +299,115 @@ syscfg_pctl: syscfg-pctl@10005000 { reg = <0 0x10005000 0 0x1000>; }; + scpsys: syscon@10006000 { + compatible = "mediatek,mt8365-syscfg", "syscon", "simple-mfd"; + reg = <0 0x10006000 0 0x1000>; + #power-domain-cells = <1>; + + /* System Power Manager */ + spm: power-controller { + compatible = "mediatek,mt8365-power-controller"; + #address-cells = <1>; + #size-cells = <0>; + #power-domain-cells = <1>; + + /* power domains of the SoC */ + power-domain@MT8365_POWER_DOMAIN_MM { + reg = ; + clocks = <&topckgen CLK_TOP_MM_SEL>, + <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMM0>, + <&mmsys CLK_MM_MM_SMI_COMM1>, + <&mmsys CLK_MM_MM_SMI_LARB0>; + clock-names = "mm", "mm-0", "mm-1", + "mm-2", "mm-3"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + mediatek,infracfg-nao = <&infracfg_nao>; + #address-cells = <1>; + #size-cells = <0>; + + power-domain@MT8365_POWER_DOMAIN_CAM { + reg = ; + clocks = <&camsys CLK_CAM_LARB2>, + <&camsys CLK_CAM_SENIF>, + <&camsys CLK_CAMSV0>, + <&camsys CLK_CAMSV1>, + <&camsys CLK_CAM_FDVT>, + <&camsys CLK_CAM_WPE>; + clock-names = "cam-0", "cam-1", + "cam-2", "cam-3", + "cam-4", "cam-5"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_VDEC { + reg = ; + #power-domain-cells = <0>; + }; + + power-domain@MT8365_POWER_DOMAIN_VENC { + reg = ; + #power-domain-cells = <0>; + }; + + power-domain@MT8365_POWER_DOMAIN_APU { + reg = ; + clocks = <&infracfg CLK_IFR_APU_AXI>, + <&apu CLK_APU_IPU_CK>, + <&apu CLK_APU_AXI>, + <&apu CLK_APU_JTAG>, + <&apu CLK_APU_IF_CK>, + <&apu CLK_APU_EDMA>, + <&apu CLK_APU_AHB>; + clock-names = "apu", "apu-0", + "apu-1", "apu-2", + "apu-3", "apu-4", + "apu-5"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + + power-domain@MT8365_POWER_DOMAIN_CONN { + reg = ; + clocks = <&topckgen CLK_TOP_CONN_32K>, + <&topckgen CLK_TOP_CONN_26M>; + clock-names = "conn", "conn1"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_MFG { + reg = ; + clocks = <&topckgen CLK_TOP_MFG_SEL>; + clock-names = "mfg"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_AUDIO { + reg = ; + clocks = <&topckgen CLK_TOP_AUD_INTBUS_SEL>, + <&infracfg CLK_IFR_AUDIO>, + <&infracfg CLK_IFR_AUD_26M_BK>; + clock-names = "audio", "audio1", "audio2"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + + power-domain@MT8365_POWER_DOMAIN_DSP { + reg = ; + clocks = <&topckgen CLK_TOP_DSP_SEL>, + <&topckgen CLK_TOP_DSP_26M>; + clock-names = "dsp", "dsp1"; + #power-domain-cells = <0>; + mediatek,infracfg = <&infracfg>; + }; + }; + }; + watchdog: watchdog@10007000 { compatible = "mediatek,mt8365-wdt", "mediatek,mt6589-wdt"; reg = <0 0x10007000 0 0x100>; From patchwork Thu Sep 21 14:32:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13393973 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 38DD5E7107E for ; Thu, 21 Sep 2023 14:33:57 +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=jy2EIFjl/H7hNdl9kLZleUD0tLkYH6jGwDIN43239Dg=; b=CdQvW2IBgF3Pjo 6SIO/8DO5+TtNycnaVnweyWCZ8ChQbh6LyGaFwR6PmRiMUpGWNcFsUnPyghk6naR4FFg5KwJBIGz9 6+k5GW8iDKgqhdt0YKJbIJt+5kYb3KzSGcRkXDFe3Ryigd56tHFuaQ7rGVVZetPhcu4vlzV3ZNe+h U01/ymzCSK8StQPiZgPeT7rO/03h/2R0VLRcBWe9oLmRIekoQXM5paDstTMZYiPUoOqtMK+gpt7AH SGkI0S2SK2b6fdidtAtjCDR4k9j6ioGKu4QToKXbPXPo+8x0lfh1EBxUDV4CfP9UHNvUKbnxww1kA vD/wj0r2HsJ7WbGiZMhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKkD-006I9P-0G; Thu, 21 Sep 2023 14:33:29 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjj-006HtY-1J for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:33:00 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99bf3f59905so126651866b.3 for ; Thu, 21 Sep 2023 07:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306776; x=1695911576; darn=lists.infradead.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=Qqq71BmglqPdWoPEtToCLWEFpVEun8ESIoG7WuZgwYc=; b=tHAnIy1ek2MP9h9TqyGFsrvtVNCNz/PIxYgoF+xL3Gp0ssBPA38uRnR5Ru9EDZU4R6 KloaPkY1Tr9CprB63FiACEfD2kA9RpjLuK7cAMXfqp7VktbyGPkrm6JuZYoN2PuE8L2A HLxKQ784gLb8kElusGe/0y9zEKbkkDx/0sTmmZIfN5wlKMeq1QLN7qyzxAoHnbik4BMk oGVp44kmX1hMGfU0ZgEcew9v8cqn1DO/pTRDwcLt13HsCJ1hjjsdjvgGBzEz6rqsf12G zZeY3pxJL3az6b3FGSB6zeTcQY0xAuPmPSXW+MVXhZh47yIGznrvwa4X09gzuRqLsZxj Y08g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306776; x=1695911576; 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=Qqq71BmglqPdWoPEtToCLWEFpVEun8ESIoG7WuZgwYc=; b=QtV6L6/Ls4NTOHoKaFqZznP/75ZvpJ/nExkDz7rfp9aotHXGu6pQU15wz14FSduMqv lcOErKT5b0deobf3kJNOGKH9QBWQZ+9RP1JlXNPJrAzSdhEKIzi76mzoKZOAVO61tYYk hraPuZqvt9mt7CiX77T4bD0GnUw4PETELkwihfuhj4EOne2iB2ZlTqvcxTo+kMaRPASh D8KvmTyQOiJjd4k0Olx8cKXRdcFtwzourUzXmpOx1hG13h0ytMQkNUUZiEq53BW+Q/7c b34euDz9RnnGlCzn6aXm5LwEbY9K2yEfKBESy8aTmhZ/+5my0zKdkKUXAWDnBhyP20tG 00aw== X-Gm-Message-State: AOJu0YwCyh2cEIEIWxeuO9joCcUX9KEoVyrAujbwvKj+Vsi3t5+OnRNM 7DhitCAevrIHXYeZPS+jVijzkQ== X-Google-Smtp-Source: AGHT+IFR1kbbxTRWEH9mw/Vp5hxxeIOn40wseoaICuj9UqBtVI3f3zQkL5poxy1AfUdKYxKM6xtXUg== X-Received: by 2002:a17:906:314b:b0:994:555a:e49f with SMTP id e11-20020a170906314b00b00994555ae49fmr5565998eje.31.1695306776297; Thu, 21 Sep 2023 07:32:56 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:55 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:44 +0200 Subject: [PATCH v5 5/7] arm64: dts: mediatek: add smi support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-5-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=2121; i=amergnat@baylibre.com; h=from:subject:message-id; bh=lJi09wmfuA1CnXJrdr2+qCC0CVBcfrZwevdWJeNOAo0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQPeEVAosQevQAqB7DoM0uAAPVMlpfJ/ukAvN/9 bwraReqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURaBED/ 9eQyPJqcaKtboU6kfg6hZoH67UPapjGCGlzPX+xN+cp/AidAM2WYleo1XPoIXxOcKmAeuXc3t+Riqk Jf9KAYa+FVlFWxo6o4et8YVILM2za8IBVlX/YvMFxDQqd3n13pdxaNf2Y+m8misSokZV6QZaNso/J+ j8JVdwu/MpisGqVHHTyNa0xcUkm4cXj7Q0vxwX5KnONMvD976B3zZ3nNjCWxsMMpeCG6qMsXILJr53 BXbZjkP3LvdzxVDTdmeAelVFG9vzFCDR2PIYKqUcZoyUyiAJ55CA79a1QcECE9voFPZQhT1yTMb4xg AxvT/C1KQH0JLIlN1+N/5RuNQYyeSCGulEdhdMsCGvk0UJlCtb7GUF1rO/LVujU8X493BHp95rqAS1 bJXtF0AeSfp1sldVPNb+8BTNMNYhX9xXtqUehSBBHHULhV9dIvJR+Kv3SaF7cPpqVf0+8T+8NjfSd1 Nb7pBdlZxMenbZlec/2EzaPvyGzHeeg5S4XIh0KIccn70OnaSK4hLrkW9jG5rATgyH6eo7LT8gdYOz Oe5kmSkiIBKyG0REtL1u3wZID1KitQFJeStZLw8Dy0H/+gN94gM2/qi1c2gCh5Mw+/hOo5HqC5M4TG Gp9/t+mnQ+hzYN/7IM2nTEKP1mea5sjxYsga5c8EeNn0nHddqwE33d/vL7fQ== 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-20230921_073259_447139_312F1F8C X-CRM114-Status: GOOD ( 11.32 ) 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 Smart Multimedia Interface (SMI) local arbiter does the arbitration for memory requests from multi-media engines. Add SMI in the MT8365 DTS will allow to add local ARBiter (LARB), use by IOMMU. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index c2f88d153dee..a03b8c0da68b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -340,16 +340,19 @@ power-domain@MT8365_POWER_DOMAIN_CAM { "cam-4", "cam-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VDEC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_VENC { reg = ; #power-domain-cells = <0>; + mediatek,smi = <&smi_common>; }; power-domain@MT8365_POWER_DOMAIN_APU { @@ -367,6 +370,7 @@ power-domain@MT8365_POWER_DOMAIN_APU { "apu-5"; #power-domain-cells = <0>; mediatek,infracfg = <&infracfg>; + mediatek,smi = <&smi_common>; }; }; @@ -720,6 +724,17 @@ mmsys: syscon@14000000 { #clock-cells = <1>; }; + smi_common: smi@14002000 { + compatible = "mediatek,mt8365-smi-common"; + reg = <0 0x14002000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMMON>, + <&mmsys CLK_MM_MM_SMI_COMM0>, + <&mmsys CLK_MM_MM_SMI_COMM1>; + clock-names = "apb", "smi", "gals0", "gals1"; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; From patchwork Thu Sep 21 14:32:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13393974 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 532CDE7107F for ; Thu, 21 Sep 2023 14:34:04 +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=GZvh98FySHQU8oJq77d9OhY65KDVCivpQCHVH4Ju1XQ=; b=3ew2FDYNbgTDwk DofBPnbDAeaOQz+8M3jhP5nEKbvQfNtdsTl4ttF2X/sWFdiU1vFQP9hnbjUZOtiScOhtJwPvZTgsb 5rBVIF4jj8UQvAmH/G8GHCc/6RP0rcun0zREQLhwPcuvfFmxJ87EMIarjfUSvwZbDwrPbYUWXuUs8 5bBqqoqAGQd/nlRpvWdxdoufNnkCWxTCNWp7ocs5KeigB7FW/kGVBRItFsvexajaK7p8G6iogmaxq cOrcFDuQ+J1AWPypSVlk/aLdpzKujxAmb5T41Ig7tW+m5cK+G6VSrmpDooUyDJKzYJNGwNlXUP2VK w6MBDEsLSsQu6S900f4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKkJ-006ICh-0S; Thu, 21 Sep 2023 14:33:35 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjm-006HwC-1Y for linux-arm-kernel@bombadil.infradead.org; Thu, 21 Sep 2023 14:33:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=fxkPmAViZ4bBY9DKE4WBvD6KeHCq77X51+2zFhsJvjI=; b=Z9agYvLQOaAB39131glQhCEZnw L2gdM6xndjbA1cBcDpN6GIQvMJ3Ge1/FaCVges1ZcZRLIXL/fE88yDVAUFItmEQgS0Cn7njLz+E/n Rg82pWcoaBDhyeffj8SEK9Qa9k9/6xsjlB9RFvaZBs1FaAX1cD0vhVqIjteX/wz2OjcWBPxo/wTP1 fLfv6NwZkOf6tr3g4/Vtxqg2U+KzBmWqdT/MVbeTN3fXKVr0YqNnBpjCD/Gl23lF3XX7tDwM8eVJa K4Rcp04qT8pyOWz4T+WmsScgyQDZMnCoUN8YkmW/33pt6YmzU2fQIjzvIbxZMHT9oVZgKyOSmjPWi SgjeKbbQ==; Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjh-00FRoo-2L for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:33:01 +0000 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32167a4adaaso1017403f8f.1 for ; Thu, 21 Sep 2023 07:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306777; x=1695911577; darn=lists.infradead.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=fxkPmAViZ4bBY9DKE4WBvD6KeHCq77X51+2zFhsJvjI=; b=SRhBE3QLX4aAlzFiD2/9I6yR1/tN+/ScqC6E13SpzChpGnss3gqIJP7avi24HXlW5X IA7s0+0O3zD5aJg/fyRxX2WvfRtvy1QQiRDqHUakRPdDWdf5H5gvYh18Dp3iTbKsrK7e gQ76I4epJ6UBD8Sw17fG+QwBMrCgR2HCxBDaof4d/+bV/f+ZDTcMQ+ZIG7P8e2kW/2S6 EYpAGMmANKOtvmm3F1tOAzzr9TCKgs2lcYODodVkezHFAinqvxBybQlPdWVvbKEJhkab EyZb/+KfkHXTmiRODi3IyFAWnJ3RhSmFGA5pZb/NdkxJ+jRL8/LgQPv0yJME2S/Pp05j sa/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306777; x=1695911577; 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=fxkPmAViZ4bBY9DKE4WBvD6KeHCq77X51+2zFhsJvjI=; b=Y7pxDTd9yYVpDm1J+Ds2NSkMYE6ewKe4WFRjVOtYmPV8UNNQlVxXQg1wWreNE+6VFk 3QWiTpkYiYLVA39/oxGiZfoqVMT5H0TZgn3/zG7P7FVsdhVAXHn4zL9Bg4tYAqdO0tMf THf4Kp1+5MzuJIv6fP7/NiIa5ZDcDBxYMOkpbIYb3HCn+ER/aUOozZPKUs+TyTU68+hS GgAA8hqK77lZWcGxMRqz0Y9gy2/4G2xamMklveF2mNG63SnE+8+5z6KqhsiZnPxsN0Nb fq7qax0nSDyh+ySFmMCxY4w5nPmcX4jtn2WP95qhIb1+wK91GGX55dP9J2fNIRuGxdV4 xiEg== X-Gm-Message-State: AOJu0YxH47ceRjcgEry/fQHXSm80vXQ8Lyvv3TCuX4w9LWuJx1JDj63Z WywfdOWfukHEsNE4dzJa1PK5fg== X-Google-Smtp-Source: AGHT+IE24TGT99DikzPg5zG+6oyXRaRUuY6+u/KuMZcpuCCWeHerHnJXlIqtmoOq6kDnMQwaM6y3ZQ== X-Received: by 2002:a5d:6282:0:b0:321:4ca9:ee86 with SMTP id k2-20020a5d6282000000b003214ca9ee86mr5788827wru.53.1695306777512; Thu, 21 Sep 2023 07:32:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:56 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:45 +0200 Subject: [PATCH v5 6/7] arm64: dts: mediatek: add larb support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-6-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=2919; i=amergnat@baylibre.com; h=from:subject:message-id; bh=YQ4gFuFLZ3ZXhHJoLIMLvf6JGXdHrmuwZeJIyfaEitM=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQPhJHEHhv6HpHOR8vnZbdJqOs94UdeCDIGq9yk oP0A2XCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURRxSD/ 95BCCUm6vXCQ3heLFsNf0wN6jPPVGGVQvyaRoSVnPA+qE1wmUMIJSJ3/Os+3vPTAaQKqRSSi5S4bps 3H/NTU8PqwL2g2f0cN1qjKrnvBdsVR5DJ40Nf10BqZZu1TZHYNIcM7vg3HmLTXFb+s+cbg8bQwjQJa j01l+vxGCArOiBpxCAyGyzACfTCTlFFGdaIxUc4H4wqUKD04624XV5ntBjTNthw2P+qzkDxXcx9nur iG2zXXUBFyIhzl38RYQIxvCsP5pw2KELEZGIkzxSayQ5L44xtSBjPOiTWbdY5XvprQFxU9wnnmWepl 7vwQSRnSrLz+OCv9MOzKCGroNm1IzNTrSdi0Za6+CD5+Q0yBwQkA0vUqoCf94y3R9wlDb3ZNoGGJIb bk2+P7zJHMCrEc/yDl6N2T/jG7cF5sLKBD+PympY8cfQHWeNXRWWShRXn09PQqB/gX5Nm79/Mzm57t omaDyWe3lrnXx1H2frtvyzr2Wf6nWbh0GD4zyKrl413WQgeXt5tcTPATFSY34QSXVPlNOU0SkRNz1p 58/Dlrb9QqA2LODi+/nhKZUzjT5EluaUYCBS2GpeeuytKTL9EAxx9tgvGOWrSlIqHcImowYIaY4Hs4 e3q3arOf4R4E/epzs7VxtO791cfKKfqRKw12rvXRk9Y2RIFwQPMqE73rPQ3Q== 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-20230921_153259_445069_21B6AE2A X-CRM114-Status: GOOD ( 11.36 ) 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 Local arbiter (LARB) is a component of Smart Multimedia Interface (SMI), used to help the memory management (IOMMU). This patch add 4 LARBs and 2 clocks for the larb1 and larb3 support. Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 59 ++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index a03b8c0da68b..afcfa1dd242e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -735,12 +735,71 @@ smi_common: smi@14002000 { power-domains = <&spm MT8365_POWER_DOMAIN_MM>; }; + larb0: larb@14003000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x14003000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&mmsys CLK_MM_MM_SMI_LARB0>, + <&mmsys CLK_MM_MM_SMI_LARB0>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + mediatek,larb-id = <0>; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; #clock-cells = <1>; }; + larb2: larb@15001000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x15001000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&mmsys CLK_MM_MM_SMI_IMG>, + <&camsys CLK_CAM_LARB2>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_CAM>; + mediatek,larb-id = <2>; + }; + + vdecsys: syscon@16000000 { + compatible = "mediatek,mt8365-vdecsys", "syscon"; + reg = <0 0x16000000 0 0x1000>; + #clock-cells = <1>; + }; + + larb3: larb@16010000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x16010000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&vdecsys CLK_VDEC_LARB1>, + <&vdecsys CLK_VDEC_LARB1>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_VDEC>; + mediatek,larb-id = <3>; + }; + + vencsys: syscon@17000000 { + compatible = "mediatek,mt8365-vencsys", "syscon"; + reg = <0 0x17000000 0 0x1000>; + #clock-cells = <1>; + }; + + larb1: larb@17010000 { + compatible = "mediatek,mt8365-smi-larb", + "mediatek,mt8186-smi-larb"; + reg = <0 0x17010000 0 0x1000>; + mediatek,smi = <&smi_common>; + clocks = <&vencsys CLK_VENC>, <&vencsys CLK_VENC>; + clock-names = "apb", "smi"; + power-domains = <&spm MT8365_POWER_DOMAIN_VENC>; + mediatek,larb-id = <1>; + }; + apu: syscon@19020000 { compatible = "mediatek,mt8365-apu", "syscon"; reg = <0 0x19020000 0 0x1000>; From patchwork Thu Sep 21 14:32:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13393975 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 04DBEE7107F for ; Thu, 21 Sep 2023 14:34:12 +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=VNbvIjFyS+I6asvIGgb7BnFPv/o6wbT/AYql4nIMJFI=; b=gVD+raZM/c3kKi yLFhOpw8RwWMlL5S8mZPA8MZuhHl9C+h8jvww8iLvtTzYDzaPFSQztkAA8CNcEBpNg0ZppT98UwD6 9Kk5A70zf+s4t+27rimBGyjsymkFBT6f0y5ZJ+9xHWosKrwU+Oum8bTMXvjWi7jsaEHXG8QXu0Qv3 KEBIP1K8XEOMSGxTaGB39rCdNIagwQAmddJDq/iRnU39CybVGm6eBfTtqJ4KSio4aBHxO99PCa7Za QU9BZMB2VKe4JcC6+8p1J1ZzDJslHJJt/nPZbGrKMPZP/twlTnmDxJQdC55LjlRB2HC+viKVd3vC8 cIZnX5BxlGCtgSRmUPFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjKkR-006II0-02; Thu, 21 Sep 2023 14:33:43 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjKjm-006Hv0-1l for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 14:33:03 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9ad8a822508so126861966b.0 for ; Thu, 21 Sep 2023 07:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695306779; x=1695911579; darn=lists.infradead.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=NaqmMPfKXAOtSVjFcLvPHbWm7slgkGY5/ld8VMlAl3Q=; b=IDMwv5LkkCylMuqkSkggoLzuAj5cgl/G8ZO2I98NayFtZ34oDsyyOnGpu7qKNx3mVk 7YeIYnMS+BAqxrhaWW2CZkAhr8EVxZuzMJMV14TinR8a+E7kE0jkaSAYdvW2rtOpVUK6 PdVm00CasJPNstf22a7m6rekUiV/yeXnGCBusXI4O3Dj2iSApdPkrjeOisDkdYaeG5cF UtnsXPO1UWoRo1x2baQD7kdv3LLqsTmcOh3MjIult7Cp2cLyAcqQQeQLeM+LOcMF9/g7 gCoZ0s/GT+82dhO7ezpILy/GCRwYi8uqyjjBDkmHJsNeRLVWcrbW9h3ZEyFK1bNKbvyh eXkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695306779; x=1695911579; 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=NaqmMPfKXAOtSVjFcLvPHbWm7slgkGY5/ld8VMlAl3Q=; b=tVp+tJSYCMrdSoXoxtuxpIj82mSWbZr45VVKc/f0oKqxjrnfx7Dy3Am1lW+LWFGbMX K4pOGVgWNAsORdDpFm0XsxpNlt/uRexkDa1/wkZ11IkRE/gavJEVlegzk035v7ihXUwj EAVNRA+frTijjNGQkzUSbz+cAbOA2+TGEWrta36I5TqL25/Ki4vq2M5ydSRYf62zYimA uvTSLKK/fLF/AtygB8o6SKkldZ2dXYD8x5eGMTtl16PCnVUVqLsO/R+anq8yDuvQJfjJ kdninDLhQeYxsz37RN8ObC8JqfE9awu24rqFo6jX9+DQ4UrqvRUGkAZ2QzMnw1Ejyfwi 8Hrg== X-Gm-Message-State: AOJu0YzATlzE0dkSkFFy6eYQK7Nk0dplBVoziOb2rc0KEI0DmfFQyc/d +SLbuNdbXke3QJJY6UYRiQv1ww== X-Google-Smtp-Source: AGHT+IFaAYDa6Vr0lrCvqGhnr3YcAh06ruBWoq695g+RZk8mUCM1VfhyAsQXvwPJdaNC8FQdqzlkZw== X-Received: by 2002:a17:906:28d0:b0:9a9:ec12:4832 with SMTP id p16-20020a17090628d000b009a9ec124832mr5144140ejd.41.1695306778831; Thu, 21 Sep 2023 07:32:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 07:32:58 -0700 (PDT) From: Alexandre Mergnat Date: Thu, 21 Sep 2023 16:32:46 +0200 Subject: [PATCH v5 7/7] arm64: dts: mediatek: add iommu support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v5-7-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=1094; i=amergnat@baylibre.com; h=from:subject:message-id; bh=9vmrSAYQ/OJGejgymOj9rq18l0jyb8olHnhsKnJiPYw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlDFQPl1+LIdPl1L229+UVcYfLca3OCYNM/P0YnuXB v4QWDSCJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZQxUDwAKCRArRkmdfjHURQJCEA DHuD1i2t/r+Gg3749MClPYGF6EvLT0nqGc30sqhS8plPDlblum+YJR+x5f9yqpboZgb+3sCnX7Zi6E d4A/JTQDZ1rL3QYD28iI3zVNVFl765+7QIM/KeVEJ9HThaF0sfXQe2i6Pvsy/IetfSueods9QemGkq JT9DTpz6wFf7Ciq57MLgYGvCxDq0zY0AsZ2sJV1mxmQNkfxVfakpoRgiiNmPbNrbzfFEzlLTf3Udp1 j8iZCsdmO4kQT8oLRzMzepRpIIQNlFo+aWfjq3L/c7Gl5YoE2tgtsRcVt7b8czjJJH4xoMCD+mEHfe Pp1LRdwNJGKcOmDuH7Bs2MZTyFOYLWtmQ8Me+Ht9Nkj0P3r0iZTSvBRn7HVSzx9GL/eE3pTDJm/Iac s0Kqc/ySTwwbvhJn+a6NqUZaW5pI9szuP6KThc56aZnU8xKbo2b6ROzifjl2eEIqgSsm8tIyrMIMqn 3mLLqsDL0vBKQdyhw+FjU0V482ifiB0swMjtuzEgQHjc+linbCEBFDWe4LfTnFV+6w0dSWCSaufIXt xPedYGgozlvbrJK8TJLdcfHzQYz6qZ+dl3iDu/yWu+MbXuRmXJ7pYgP99wIL+8bEORcE2Mj2J8VzFH wJnE5PfTyKrI/9/85Dch7lBPFSwIyjoAa+RochVFwz9nsl36hPVAF/8K5ktg== 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-20230921_073302_586566_C19E8693 X-CRM114-Status: GOOD ( 11.42 ) 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 Add iommu support in the SoC DTS using the 4 local arbiters (LARBs) Reviewed-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index afcfa1dd242e..24581f7410aa 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -471,6 +471,14 @@ sysirq: interrupt-controller@10200a80 { reg = <0 0x10200a80 0 0x20>; }; + iommu: iommu@10205000 { + compatible = "mediatek,mt8365-m4u"; + reg = <0 0x10205000 0 0x1000>; + interrupts = ; + mediatek,larbs = <&larb0>, <&larb1>, <&larb2>, <&larb3>; + #iommu-cells = <1>; + }; + infracfg_nao: infracfg@1020e000 { compatible = "mediatek,mt8365-infracfg", "syscon"; reg = <0 0x1020e000 0 0x1000>;