Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp60335rwl; Thu, 6 Apr 2023 13:11:22 -0700 (PDT) X-Google-Smtp-Source: AKy350Zf54lVnYXVlxoQC8JPNePx4SrCwckILjpP3/Wz5rZuQHVmVG09+7CLY9B6K85LuRU8R9gE X-Received: by 2002:a17:902:e88c:b0:19f:35df:5d60 with SMTP id w12-20020a170902e88c00b0019f35df5d60mr383744plg.22.1680811882092; Thu, 06 Apr 2023 13:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680811882; cv=none; d=google.com; s=arc-20160816; b=pIK3kL6jCXg9JzkN+3fGtc+vC7MOBfqKnLkFKt/D0A6w22M9H051k99tNiCg3i3Ccc qyWvue2u7mXL3OHTwh8YbOBc+/LKfBdD6eInvtrxyO8M9VoAh1WxzvHNWf+EVHLUnC3P SFRTFQZsfwGN82W6c2htOIfuh3KlPzCnOkg8gEvxpmAlzduDLUgHawyyKj0voniQPEc7 jNRNZ2R53QxOjDm0QGAE+sCH9jOCYX3TjW68quh4WdcK0BOGgnjnt60Sh5fNlqdOhyGH VNAn+CegWjougo7Z1AT8/sIz50+si9Vpm2nFYGXY/xm8KVRRFAIilrhCukRNKlfI+w1A ZZow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=X/qILjo31dKZRnx2BX/LkX4PumS7avDA/rk4boexQqw=; b=MI0ylKulgfEu1mhyKx1fcmWAIycNQn/fWcayFWgqtjnd2Dz3144JRLJrA38NU2/+9x psnnf4iOxmzZwuzSbLYCiEB1aH+BFI4OYkZNO+EdWCYBZ7Xo1J0+zh0rDFvtfPlRxV0L YT0stArC69XkhcYGVJk/EHy0NOKxK0ILbKHlYRQYYm44VrUpq3cDKuUzsOJ/0DbWDbPd RgLx4Ibyf6N17SQryrpmZk3rE4BMDOabU6RiFuTZvv0aTQDnix5PHkS+XhIjC3+ocwws t5s7ZKeRjyv4emiIYV8gOXNIVsNqOMvUlYenSH1qjvlOsGXHRX0ieNsSYXtewqwaDlwA JBvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=mWXFvaBT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a170902b20c00b001a1abc91980si2289104plr.211.2023.04.06.13.11.10; Thu, 06 Apr 2023 13:11:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=mWXFvaBT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238814AbjDFUIa (ORCPT + 99 others); Thu, 6 Apr 2023 16:08:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238897AbjDFUIG (ORCPT ); Thu, 6 Apr 2023 16:08:06 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43903A5D3 for ; Thu, 6 Apr 2023 13:07:58 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id v1so40654371wrv.1 for ; Thu, 06 Apr 2023 13:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680811676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X/qILjo31dKZRnx2BX/LkX4PumS7avDA/rk4boexQqw=; b=mWXFvaBTMes2+5FGcHrA86JEiUqUUTA8C1NMuHGOQ/4j5VwacWsbgogLhiFPWMNS1U qZHmMk6g1RmkM1MUB073AuluNGMHZSoA9v+FLJ2ZIIU100uQ8XWCHn6quje58KDTIvjk EDfkqbwnZ634sNQEunfyQNJUNH8otZS1hJEgdjQlxlAZv6f5Q9qdk9cZv1yLhjWoTj5C BxzHiqa6Wc1eOb11bJUqHP1HkZ0/7fIFWvhdjILp5xuZ0M5ihwPWcdcQ96+NSx4nU+MH oPZ0W/VhZJSPkp/0L/H36Acg3v2JNzMCFyXbjeLvDjooL3LUZ7lvmfX4g7/3diXHxv+x 3Njg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680811676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X/qILjo31dKZRnx2BX/LkX4PumS7avDA/rk4boexQqw=; b=3Bk32yS89axVqm9SxJyd2N8GvtHWezODFp9/UACw9fBeXOeLL2zAjvMlbbjvHeJsmN I6n3YeHy3WxgQWVvT5eVnZKyCZc1zTZmhvkYRcUUNAcsJvp6bMcMPrZKc532zxCiCvDn daM0X/dk6JYB/06ljHmzghw8PeinpdGkyyfziVRTC2KpAKJFxu+Th1s/JGPvc4+cLNmZ qKXllH6HFckedC87oHz8/ZyAaXc42HwBU8ZFMkZZg1+oXa9N4xvqw909GMMKYo1gLVUf Fb9wXBTsOFocVClm8kSSECo0pQwt9BYtrdQqL9l8PEMeyUn8w7YeAt7InIV6GPVOTvLu BMEQ== X-Gm-Message-State: AAQBX9e36ob8rktw+EjMNnbV2WoL3egRDS4PMmppySpCIZJCTXQdkM5g KdyrSTPkTGJpsmg+QTIINPdEsw== X-Received: by 2002:adf:e74d:0:b0:2ce:a85d:5319 with SMTP id c13-20020adfe74d000000b002cea85d5319mr7927093wrn.39.1680811676506; Thu, 06 Apr 2023 13:07:56 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4793:cb9a:340b:2f72]) by smtp.gmail.com with ESMTPSA id c11-20020adfe74b000000b002d89e113691sm2560506wrn.52.2023.04.06.13.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 13:07:56 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Will Deacon , Robin Murphy , Joerg Roedel , Catalin Marinas , Arnd Bergmann Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Bartosz Golaszewski Subject: [PATCH v2 7/7] arm64: dts: qcom: sa8775p: add the GPU IOMMU node Date: Thu, 6 Apr 2023 22:07:23 +0200 Message-Id: <20230406200723.552644-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406200723.552644-1-brgl@bgdev.pl> References: <20230406200723.552644-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add the GPU IOMMU for sa8775p-based platforms. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index f799cb5abb87..f46c1a73abdb 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -605,6 +606,41 @@ gpucc: clock-controller@3d90000 { #power-domain-cells = <1>; }; + kgsl_smmu: iommu@3da0000 { + compatible = "qcom,sa8775p-smmu-500", "qcom,smmu-500", "arm,mmu-500"; + reg = <0x0 0x03da0000 0x0 0x20000>; + #iommu-cells = <2>; + #global-interrupts = <2>; + dma-coherent; + power-domains = <&gpucc GPU_CC_CX_GDSC>; + clocks = <&gcc GCC_GPU_MEMNOC_GFX_CLK>, + <&gcc GCC_GPU_SNOC_DVM_GFX_CLK>, + <&gpucc GPU_CC_AHB_CLK>, + <&gpucc GPU_CC_HLOS1_VOTE_GPU_SMMU_CLK>, + <&gpucc GPU_CC_CX_GMU_CLK>, + <&gpucc GPU_CC_HUB_CX_INT_CLK>, + <&gpucc GPU_CC_HUB_AON_CLK>; + clock-names = "gcc_gpu_memnoc_gfx_clk", + "gcc_gpu_snoc_dvm_gfx_clk", + "gpu_cc_ahb_clk", + "gpu_cc_hlos1_vote_gpu_smmu_clk", + "gpu_cc_cx_gmu_clk", + "gpu_cc_hub_cx_int_clk", + "gpu_cc_hub_aon_clk"; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + }; + pdc: interrupt-controller@b220000 { compatible = "qcom,sa8775p-pdc", "qcom,pdc"; reg = <0x0 0x0b220000 0x0 0x30000>, -- 2.37.2