From patchwork Wed Mar 29 09:52:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13192223 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 7F4E5C74A5B for ; Wed, 29 Mar 2023 09:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type: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=+sjNWrLufbVa/jzWsOvdujGFS805Gfxk1vTY2q5k8U0=; b=dwXjQWS1Y0NwwXhfQM7GYcfnPI 1hJhRfPtRuLMLUrylBwKx2vzebCo/r50dVpKTtwpFkxT6KTkBaBCABEbAYBmlVTWo8W0KnlEW1ym9 Pbte6LDtnvgQrYPey9BFdvCGP1NKMzMpWpNdWDQ2KzcL0o45TB3wCTSuqGyQS1oVQEeDVZSiNPg7E 0LvWMZcy8dIDFUiJeACr5Xad5+WymWcbUBloZk+qwAeNQS3Px4zzwpKCo3sE1LWQAxkzCnM615Kbk lZSJU+GFbsBdXv2E/N71z7ctOVkSZX84n7ZdDYkWdcUcs+/1vhMdB6n6qQ3QnkEA7nGDIoPiQvmsm bGdNG+Mg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phSUU-00HNJc-2e; Wed, 29 Mar 2023 09:53:14 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phSTv-00HN5e-0d for linux-mediatek@lists.infradead.org; Wed, 29 Mar 2023 09:52:41 +0000 Received: by mail-wr1-x42c.google.com with SMTP id l27so15023505wrb.2 for ; Wed, 29 Mar 2023 02:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680083557; 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=+sjNWrLufbVa/jzWsOvdujGFS805Gfxk1vTY2q5k8U0=; b=uy8np/PFQIWNadmZTPihVohkAv/7etLUp5p9bZKcixeLJwpsYaJtvXzQGoOLKvg9pb 33he5oIDniXzvTBL3qlUoMFxHXVXdZW8fsmPO0vjSgsWKKerpERFKmrmHSZsPep8aW1+ 0w+JPFO+5Cm1JyRRQZiFkMqO3lyxslzSAeakBcSW9cmYGNiJuYkuwiuLiy+IFek8se/E JUM8Mbv0FcApOMIJUsPbqwdtZb2/7RtNeJQOVnQ1spSvxffFV3lx9YarAAHukMs0TqWo M164vrQxlnGRxbGbykkQUYsJ02W18qrUTMCUlZyTV1F7hCtnVa7KDmk1gOunf8i8VZ6C WtvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680083557; 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=+sjNWrLufbVa/jzWsOvdujGFS805Gfxk1vTY2q5k8U0=; b=PcpMoi+ObhupvbK68sLs2F4SDSFg30Q52/D8onI+w797Sgg+fexKaJSpNCztNrj8KE BYETaeW7rhh+HL+azxt4apkeP8AqY7CX10AVavT6HMzNQMbmv7wvzOEoqe8TG+u42Qw1 xF8hhWMv3sy9BqrdcHHSaHrPkG9v0mpKAG5gUK3XcJFLl1y0+qzb6ZGdfX1XdKXCo7xH gnzqw++W+5rQNsDmbla31CiJlJ62EoVMRK4kLsJKlUuihzOW1stwDvR/5rCAGy5+uZ/2 XULYDxMGMXy2WMfOXdNt0qX7InaDm7RyLx3n6+SPmJbOzQorLwhrz7c3WBDeXzZ/u4Ct fJtA== X-Gm-Message-State: AAQBX9cKH4L7c6B2cLma1qwR5AUU8iZa2WkrCwtJlx0j/5qaNPsHZtTF kVv6gAdw5I0dDI8as9c9cW9r2A== X-Google-Smtp-Source: AKy350ZXpkkaSgHa3y8j2yEIr7Up50Td3FYauEQHsVMB8ri+XrguR+om1tVRr9dbM05ylJuieR7m0g== X-Received: by 2002:adf:da51:0:b0:2ce:a6f3:34ab with SMTP id r17-20020adfda51000000b002cea6f334abmr16519247wrl.6.1680083556763; Wed, 29 Mar 2023 02:52:36 -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 a18-20020a5d4d52000000b002d1e49cff35sm29667158wru.40.2023.03.29.02.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 02:52:36 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 29 Mar 2023 11:52:24 +0200 Subject: [PATCH RESEND 5/6] arm64: dts: mediatek: add larb support for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230207-iommu-support-v1-5-4a902f9aa412@baylibre.com> References: <20230207-iommu-support-v1-0-4a902f9aa412@baylibre.com> In-Reply-To: <20230207-iommu-support-v1-0-4a902f9aa412@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=2836; i=amergnat@baylibre.com; h=from:subject:message-id; bh=XjVkw1GDKMmeBhzbo3W1bEYNyW+ZnWm1iMDrvQExCYA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkJApf/0xy8f4tuG475vEqLpUT9xY0KkdHZQQ16mEE UQPiw+aJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZCQKXwAKCRArRkmdfjHURXdwD/ sF3luANvTX/Sa5VyhmA9Hasmqiwa6puy5j3JQ79X/9L/KmyFAFND/Bgphp6AMuEviGaRVPdgR+9hye 1jXJqcsaF6eIDmuBGRxGJOsNzUy8Pv5jMOEtrFFgD3dmS3UWsjGyEjU4RQqz9uDTa28p7GB0TPErz3 uaMUbhJfpvgYY0zNidXInfXirOkPNyBspyhlTGRJjRqFMIKwZM+4HKZe58AIOA4OeYNQP38ZrOncgD 01ML1FkhJrFPDV106REYQw5K2G03GxbKD4nOGXuDLJT3mAlSiV+rWB/S+L+loKmBZWI6NLwsLfouQI W5rAPb6vWFHY77ZxYsVfQnMFhXrBJrUTWu1r2If/J5BA90Jg3qtRXlj/nlaalx5gkQdxnre8A/inl9 D8wYmODOQ9O5v1UgCkYcopTm2Ao5B6f8adc7zD3FZ4OCfhQeN9SDcGPDLrMnpOM3mYmXZuwjubI7+g Yn2Ul0EelA6lw9TwpFMvI/+psr59bePCoyubIcTB+DrK5TshHrRoWcuv6nuZrROQTkVaUNaHE2E7MH pjUsbKXjQ7ndRHSPRaKOW26JAyVAu9O/U7jeMBcEWt4MYCQYLmxAbqh3CaDtsCmoorEiXqdcClX3XU Dg2AFjmeizRd2PIoIJVTqEoJbYD8Ku36OAiuUpE80pnALRXjkH5CmvHQ9W3Q== 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-20230329_025239_264540_AE137958 X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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. Signed-off-by: Alexandre Mergnat Reviewed-by: AngeloGioacchino Del Regno --- 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 61333800ff4a..db0b897f58bb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -725,12 +725,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>;