Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp622224lqo; Wed, 8 May 2024 09:38:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuvoOGUrZsHBsf7MWcWO9/tiSxu3ZpAwvdyRVKHU/NJAFkDURPYaevct/qqw6bGYcEHk1YphK712r3XdpHBl7ZlWdI3012PcwigOucGQ== X-Google-Smtp-Source: AGHT+IFqtVZ8ScvUd0KsoyXoCWjRffLR5XCJ3LvrQ4I5HR+D0FZFt9P7pzRAhagxxFZIsXuosSW6 X-Received: by 2002:ac2:42c8:0:b0:513:e63c:cfe7 with SMTP id 2adb3069b0e04-5217cd4b2cfmr1830438e87.66.1715186311074; Wed, 08 May 2024 09:38:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715186311; cv=pass; d=google.com; s=arc-20160816; b=OCKuhKqjWQ3fNmeTxqAewa0196Cyh0FJxgBCWZ5r1isuulO3pnyRRKlw3k9NVA7j4t rP29RXxHXWU4LKh9/Bje1V+3v9ZfaUbBaLS/9V+b4W/8FEQ9zWIRzRuacd64IJsH0JcU QSGFFjFgsPIoHOR31Kvpzp9TRLUkSTl90vX39o9dG7CCSmAlGZ5zWTJPA/i9XdyQhhIN vQ16NdcHjSABHy6q1jg7eCJWWUmmKepP6GpATrclw6UFasEs0aAa3ujtD4AFm7ejTev2 ZrPTsUhiC/8PVgGRvc8W/RqsrCLQf/LMP1HFv5/4U5OghYe5Jf+uHFfF67/qEVmF79ap BIEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=RmZygw2TRlqAhmQ39OrC9cxHMK6KlC1+WpOuGC2rL+A=; fh=TmxH/0f11CAr8x0kAI3VKKA0y3XzdTuDse7ab804wss=; b=v4HLoWpgMFaYxQ7VideUx4FHTBq9pqu+bDMfAH+xD+PnPz6I6JcqUC2i3H9V/xYDrl cPVDaDDlAWLag7j8JDRRTK+n0pcPnv9WKSjFZ5rR+rxf9ZsQEAhH3ZppKAdq31AeKf/7 4OdATWZu4mIC51Za2sSY1GSgZnpWtM4Lcc2rgwqqvVvM48J1FO+KxF27YbsVQWx6INoJ 5liyEhYVD3mq4X6plmwG27oQGu+ga9nX9LC/8LQ+hEo7HqbqH7iBJe+j3GE/f2FKSUZ2 yEutzSt44hU7D2HmWSLzRZB81ZvtrF7Ky/OfW0GGkW/cQfWQ9ozoIOmKQFciLzgT2zdx xG6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="JQadb/+x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b23-20020a170906491700b00a59a2b1c203si5475603ejq.937.2024.05.08.09.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:38:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="JQadb/+x"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-173558-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 009701F26B45 for ; Wed, 8 May 2024 16:37:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B5621304AD; Wed, 8 May 2024 16:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JQadb/+x" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1ACB612F386; Wed, 8 May 2024 16:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186121; cv=none; b=sst3Cy8ourKQFpanBRWSV5p61EEJiRON3T3Qjm9wFXFsaplCd20Y+pPhz2NQFNRWkPG6DxOGmpNbD13j+7hYtrRKFCjF2JTEDY99gjX8Aht6L3Rr9ZGDn+OO5dSxNdfBqgR7QD0pUkPZe4ToZk6O8fsoh2TfNAPt4zk2YoVNf5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715186121; c=relaxed/simple; bh=UgSJ0hu7n5ThTA0vRJasA6soU9jLlTRb0a1C5EgH3fM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XPop6bOb0RWRVXYRe3dLW9YAapS6jty99wqPVVxcCLlpwBbdMadVnxoPe9HXXtvySl+hgfDzfy1nrX4gn4/L5F10pTgSuzWxZOOibBTNswMM/1PZ3hH8lL5H8ncOOzTBD+xfo6/9VV7ANVQu0q9ewPSh6v+27e6Wjd+2Mvc9Pvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JQadb/+x; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a59cdf7cd78so955769666b.0; Wed, 08 May 2024 09:35:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715186118; x=1715790918; darn=vger.kernel.org; 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=RmZygw2TRlqAhmQ39OrC9cxHMK6KlC1+WpOuGC2rL+A=; b=JQadb/+xKyJ/DyDkHfsjmHMz8c+pP58dkE9XCCXWMYi0lvBcP+15fIDwBBcDLnw8BU 8oquq2qufmTnoH+bkdrZ71JBbmU6We8SCNRWdSKd+WuZQqMLVlObVs1q3yx8oxyjjx6Q rto2GLtCBrM9755OJobGj+gfbd3FqPPMFdFmBwmYra7qN1vIBvzb679llIINqsOKsNar 5PezqWgbwF2Ppub/85A37OrWEgczgr+w6s3YKeoPl33ESUYMFFrEL9DRswmpiYwssjbE yi/1js+bYIjZ2JrHem5gSNBL/AI0VxoFitahXCh61ndWTNZ4oL7wCGiaSRAAN9A6ApB2 wr2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715186118; x=1715790918; 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=RmZygw2TRlqAhmQ39OrC9cxHMK6KlC1+WpOuGC2rL+A=; b=JhTy4SKh4oclt1XOvkxgzjn1pqCDAMqS5nfKAmnuoxkwMIH8AWaSDQCS0iPb3klvF7 hjQffSJ4QhoLVqIp4a/2w7WWMbk54ThagWDh2W5QRIMAnkvlbvwMWYTGjd9/aszcVBc/ O+r9CUgZdqa/2wyKHY5DmhETQrnP+kvPDUT4VEyZmV6PFqhDN6jmaTDiFBrZofbbC0aP /pBuR47wLO9K1koa2f0r+vhWyPtbx2pyBAZhhQ1AQA5h7UQtHhGgFisIqbgelnxBHw0w YsicP9bii6AHzg2yWWCwJSpP+6PDAWj1N7eJdMyEOgyowX4WIYR0NjuhqioD0Ixyb8AR 3kzg== X-Forwarded-Encrypted: i=1; AJvYcCXGjgW/gddCQPlzZmn1kWyZ5yQugp55guhlpsmV2E0aXUsWLOCc8/qP/GQzjn53Z9sUlgfrPYCPxJobAx4Ps1rpdrKzOrJJW/xo4jbiTO5O2AoA/5p47Tb1cD6Q6pvigPvDQnYTWslEGsq4HEsOCEkyRZTMSdWlSeGE44MJjQEeQSK05StN7Z0= X-Gm-Message-State: AOJu0Yxl1zD2LRn8dmnG6qbcz6s7YjVBJqRT48A/EPW0G1KgW4zNuvDk ArXq23Sqeu8E+W0gEb9d5/IwhCMbxcLJ4jKE55ezFu2yt8l16MmKR4FQ1ikg X-Received: by 2002:a17:906:6994:b0:a59:9b75:b90 with SMTP id a640c23a62f3a-a59fb948fb3mr187372566b.2.1715186117979; Wed, 08 May 2024 09:35:17 -0700 (PDT) Received: from localhost.localdomain (bzb212.neoplus.adsl.tpnet.pl. [83.30.47.212]) by smtp.gmail.com with ESMTPSA id kt1-20020a170906aac100b00a52295e014bsm7820894ejb.92.2024.05.08.09.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 09:35:17 -0700 (PDT) From: Adam Skladowski To: Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] arm64: dts: qcom: msm8976: Add Adreno GPU Date: Wed, 8 May 2024 18:34:36 +0200 Message-Id: <20240508163455.8757-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240508163455.8757-1-a39.skl@gmail.com> References: <20240508163455.8757-1-a39.skl@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add Adreno GPU node. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index b26c35796928..22a6a09a904d 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -1080,6 +1080,77 @@ mdss_dsi1_phy: phy@1a96a00 { }; }; + adreno_gpu: gpu@1c00000 { + compatible = "qcom,adreno-510.0", "qcom,adreno"; + + reg = <0x01c00000 0x40000>; + reg-names = "kgsl_3d0_reg_memory"; + + interrupts = ; + interrupt-names = "kgsl_3d0_irq"; + + clocks = <&gcc GCC_GFX3D_OXILI_CLK>, + <&gcc GCC_GFX3D_OXILI_AHB_CLK>, + <&gcc GCC_GFX3D_OXILI_GMEM_CLK>, + <&gcc GCC_GFX3D_BIMC_CLK>, + <&gcc GCC_GFX3D_OXILI_TIMER_CLK>, + <&gcc GCC_GFX3D_OXILI_AON_CLK>; + clock-names = "core", + "iface", + "mem", + "mem_iface", + "rbbmtimer", + "alwayson"; + + power-domains = <&gcc OXILI_GX_GDSC>; + + iommus = <&gpu_iommu 0>; + + operating-points-v2 = <&gpu_opp_table>; + + status = "disabled"; + + gpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + required-opps = <&rpmpd_opp_low_svs>; + opp-supported-hw = <0xff>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&rpmpd_opp_svs>; + opp-supported-hw = <0xff>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + required-opps = <&rpmpd_opp_nom>; + opp-supported-hw = <0xff>; + }; + + opp-480000000 { + opp-hz = /bits/ 64 <480000000>; + required-opps = <&rpmpd_opp_nom_plus>; + opp-supported-hw = <0xff>; + }; + + opp-540000000 { + opp-hz = /bits/ 64 <540000000>; + required-opps = <&rpmpd_opp_turbo>; + opp-supported-hw = <0xff>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + required-opps = <&rpmpd_opp_turbo>; + opp-supported-hw = <0xff>; + }; + }; + }; + apps_iommu: iommu@1ee0000 { compatible = "qcom,msm8976-iommu", "qcom,msm-iommu-v2"; reg = <0x01ee0000 0x3000>; -- 2.44.0