From patchwork Tue Feb 27 03:45:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573238 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 5082BC5478C for ; Tue, 27 Feb 2024 03:46:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED0F910F2B3; Tue, 27 Feb 2024 03:46:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dbFvYQ/r"; dkim-atps=neutral Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C0E010F2B1 for ; Tue, 27 Feb 2024 03:46:00 +0000 (UTC) Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-7bf7e37dc60so218721439f.3 for ; Mon, 26 Feb 2024 19:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005558; x=1709610358; darn=lists.freedesktop.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=ucD/+p4K6+j2ZE6i/N6HFdJPDZilTnGBi4Fcog1oUsI=; b=dbFvYQ/r1zuZv7sOrkn5Fe4o0e7CdlcmMqMQ8/9pRPy1buyuD78BOM6tZN86XX8/dA Ic50o870z1GcFNy0yRGd7qMdpItpr5wgP9lm9zUgabxVpA2Xsjual2OzDj5FrtALVMEU qWktCehcuQd9y9jTLJupDaTt30bzLFq90Sih675SnJJ7iSVrwSqeg3GGur6uQn/r2hxP u3VdQpFYoFHTVQevchU7it7g6YEYfszdXIKGsRzhUH/suOTL1xNDIfdhm63kBdB9SfP7 tWkeH97EYxubkdt0hifQ1ngez6US5LqWWls4QvVN2Cul1pxMcI2FsKgWpReEGl8RFxUV YM5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005558; x=1709610358; 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=ucD/+p4K6+j2ZE6i/N6HFdJPDZilTnGBi4Fcog1oUsI=; b=kgAN3GwkxNYwsI+fPOQ5B9rvezrV5z/3X2SZ97+wZmlQJv3pLg8tkwYP99FAU3ddMq gsF+b8Haaat/TXZ5xloIi/RGlDWd8258HeFVtz8meLRklM1AiwGc+l+ZlBcI3Ia02M9C CkZ/rw5wwnVrkeB33K3z4Pjsl01k7KWewXGh32zEgakPAQsu7rvinK9IHHBCPuSYCks8 k1leAc0e7NFMTvrByOEEJEhdJz7rPk1yrONWQPoDUhhjPRRh8G64K6/DB7/l4qJ8dHl3 Mi9rRGycgkTlxjZLU1fxvE07gxuPtV6mu0Pn/mdo1nHkUsVj3IsRb4xx9tGTQam4pBrR PbLA== X-Gm-Message-State: AOJu0YxznccLxZHbhYTZfu8dx+PL12Z7Bp5zV1T8bjpbhqmEaeu0+L2N cL8t9bTCCohsp9E1M8DvFNyz9uSMPtCnulNSCRuTa3/ywNCDJHORQkJf6S2TYCWySICp X-Google-Smtp-Source: AGHT+IEEX+eGY8wwb+gRh5Rwva/dPaMluotD4yi0XNwRuMV8qyLsDXz+GtY5HhmQ4McOBOW+ph9nRg== X-Received: by 2002:a92:c8c4:0:b0:365:16cd:66 with SMTP id c4-20020a92c8c4000000b0036516cd0066mr9677139ilq.31.1709005558600; Mon, 26 Feb 2024 19:45:58 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:45:58 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: gpu: powervr-rogue: Add PowerVR support for some Renesas GPUs Date: Mon, 26 Feb 2024 21:45:31 -0600 Message-ID: <20240227034539.193573-2-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Update the binding to add support for various Renesas SoC's with PowerVR Rogue GX6250 and GX6650 GPUs. These devices only need one clock, so update the table to indicate such like what was done for the ti,am62-gpu. Signed-off-by: Adam Ford diff --git a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml index 256e252f8087..7c75104df09f 100644 --- a/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml +++ b/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml @@ -14,6 +14,11 @@ properties: compatible: items: - enum: + - renesas,r8a774a1-gpu + - renesas,r8a774e1-gpu + - renesas,r8a77951-gpu + - renesas,r8a77960-gpu + - renesas,r8a77961-gpu - ti,am62-gpu - const: img,img-axe # IMG AXE GPU model/revision is fully discoverable @@ -51,7 +56,13 @@ allOf: properties: compatible: contains: - const: ti,am62-gpu + enum: + - ti,am62-gpu + - renesas,r8a774a1-gpu + - renesas,r8a774e1-gpu + - renesas,r8a77951-gpu + - renesas,r8a77960-gpu + - renesas,r8a77961-gpu then: properties: clocks: From patchwork Tue Feb 27 03:45:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573237 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 005ACC5478C for ; Tue, 27 Feb 2024 03:46:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CDB2410F2B1; Tue, 27 Feb 2024 03:46:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Z066j77N"; dkim-atps=neutral Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD3F810F2B1 for ; Tue, 27 Feb 2024 03:46:01 +0000 (UTC) Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-3657d1d4516so13604865ab.2 for ; Mon, 26 Feb 2024 19:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005560; x=1709610360; darn=lists.freedesktop.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=TFyPT0505OQhdGJk2meFYZ2auxbPN2hQffBG52zYkHM=; b=Z066j77Nb0cVbx87R1/ZYXuJincKE+nyH65NxsJzvXo+Mr8+qPLJWA3kRmEWHsZeWJ 5LD2hRznCYAJ8SWuK8mO7peMhjU0L4TzzY1ytB14yhjVNFxiK7xQDmi/Jj2t64tG1ghA MYQH8b93rn+DCUtpV/S0gVGrDvQXg5WSTPT2/sRWvweu/EszAKovKiC1THPaK5ApEKbx 7IhmlLRiWWOGPfrvlV+6nT3Zza/JXquGQpPlDafNLCnyeuJajC5e2nHnCb85QSABqHaG ip7SrgwT9HUf5qJpOxt3w/ekG1QiSZZ0q/5UK2Fn++G2xZt8iWaU9uoH1v7zDd/o8RBi oc7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005560; x=1709610360; 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=TFyPT0505OQhdGJk2meFYZ2auxbPN2hQffBG52zYkHM=; b=eNhQMhx7MUu48KzuDkZkvlqZQbtuXqaSMd+UtgugtUvpkGfgCpLqgGXz61bEd+clD1 PUwmrsGaUFti1eE/dglSJr04681Xb0tNddzl/hxgxqIpniqAB8M5JjXFm6fTDRrF5VwF mtIopfmkVyA2Q4zzIzgMaR7R+D35mzt5J1h2tpNb/cN79JQd+RD1riUqX7fdha0AaNQu 8NZ/cXAp5U8s2WPrqWh0OYG1dVLGUhs0ZexmtyZMUwOQBU65rsdGasgpVBr2+3nwqmed mzVkzajOsGvtBRgcMsFuY7RbTnTDejN4+joA4/UlQjP8d7650WFPTqy5aJKdSKcR17J9 dT3Q== X-Gm-Message-State: AOJu0Yyl1B5WoK0HvVvVdY7y/AZj2mD8ZhWDCowweKbIRavkBeMWh4I0 QPawSTpPtBHik+Dfh7GnDG5Qxbzh9hnCfo1RDBfqIYSRI9olTtQXEEdFC8eXpywrd/np X-Google-Smtp-Source: AGHT+IF/j0iIPL7V2P2BUiJXLUpppCmaVzcpbY0QBgp5dSUNNZbLSyTfL1NORWHj1+f4qH0v24U45g== X-Received: by 2002:a92:dc86:0:b0:365:13af:84ba with SMTP id c6-20020a92dc86000000b0036513af84bamr9402827iln.5.1709005560378; Mon, 26 Feb 2024 19:46:00 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:46:00 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64: dts: renesas: r8a774a1: Enable GPU Date: Mon, 26 Feb 2024 21:45:32 -0600 Message-ID: <20240227034539.193573-3-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The GPU on the RZ/G2M is a Rogue GX6250 which uses firmware rogue_4.45.2.58_v1.fw available from Imagination. When enumerated, it appears as: powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.45.2.58_v1.fw powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi index a8a44fe5e83b..8923d9624b39 100644 --- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi @@ -2352,6 +2352,16 @@ gic: interrupt-controller@f1010000 { resets = <&cpg 408>; }; + gpu: gpu@fd000000 { + compatible = "renesas,r8a774a1-gpu", "img,img-axe"; + reg = <0 0xfd000000 0 0x20000>; + clocks = <&cpg CPG_MOD 112>; + clock-names = "core"; + interrupts = ; + power-domains = <&sysc R8A774A1_PD_3DG_B>; + resets = <&cpg 112>; + }; + pciec0: pcie@fe000000 { compatible = "renesas,pcie-r8a774a1", "renesas,pcie-rcar-gen3"; From patchwork Tue Feb 27 03:45:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573239 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 55E88C54798 for ; Tue, 27 Feb 2024 03:46:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E0D4F10F2B2; Tue, 27 Feb 2024 03:46:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Uhf8xn76"; dkim-atps=neutral Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by gabe.freedesktop.org (Postfix) with ESMTPS id 443EE10F2B1 for ; Tue, 27 Feb 2024 03:46:03 +0000 (UTC) Received: by mail-il1-f170.google.com with SMTP id e9e14a558f8ab-3650df44657so10652735ab.0 for ; Mon, 26 Feb 2024 19:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005562; x=1709610362; darn=lists.freedesktop.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=tA/OqBDxHzMzuOM7arRYERa2rELcIZBY7XfgMgE4ynA=; b=Uhf8xn76r/sPSH0D4hoj9P+d8hw9XX1cyte+Lfdt5RrWqceHHXZDI7FdN8bHNMg+6/ Vzd/PMLGQpEqMapbTeuOlErQUrJ2WF2jJyFvlpvzrjpIbEAqslsuJNWatqRCvPjNpKK2 3AZM9QSfnSxUQOXKSGumhC9o/cS2QD5UCtFjW9cLkT3Yj/v3GLvBGRXSchqmR1/yUaYr MyF/fNvOATCTaCqPhll/fwQblek8sOjKITfKz24+C0TRpY2f6wgQh3PgY6SErkX2lhSj jwoi8LXt7qCfytV99U/ESHAYRRaBf5mhiuNhc2AlmuKF67eCsaAX7XwZFCls62bIemJr N3wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005562; x=1709610362; 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=tA/OqBDxHzMzuOM7arRYERa2rELcIZBY7XfgMgE4ynA=; b=cf6HkrkrhbaZ32MwEB5YPiCJPH+XF0xVi6O3JJT+heRUeKUc8WivKDVIOl4fVOAHOz R6qk+Z9t9oHl94Z0GqPEEWKVrAv3zx6bz1RiqEAOC2kTaFtq5gKD8hROwOcpPFKQqMrw lVRnp/wlcVgRmMFpJvHO2x+CM0hVCnMNdUbko72A2MbDnF4NPg8sq8DPfwksHb3Yjj3W kQ3kEVw+rKDejebaM5Fv+HeW7rhECo4f3hqgeAFiPjkjDaj1HFodvo+NSkZKA8njRMWJ vK7VRrSzYjvWiJc6GuFYMXAEZVAS4eh7wkpnmZDxda1mG97Rh6HVdM5Vo5lHYqtDb3hn GgjQ== X-Gm-Message-State: AOJu0Yy30YsYvbPjPEb7K+0gYKu8e1XatJkgmOO6RpmqeMH/RtI/+ApC 4qhMDnPUFLM4L+p+H24pBOu7+d0s+T9saT4Kh6KOR6pYxrDbFUuewg69J4jlvvE39/R3 X-Google-Smtp-Source: AGHT+IGQczT/wDuY+Cr9M1yRRAPJftGBz/LLp0J3qOzY2+JJTzEk6HQsjw4c+SqdK+MXfA2bjYuM9A== X-Received: by 2002:a05:6e02:11aa:b0:365:85c:58f8 with SMTP id 10-20020a056e0211aa00b00365085c58f8mr8612657ilj.13.1709005562006; Mon, 26 Feb 2024 19:46:02 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:46:01 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: renesas: r8a774e1: Enable GPU Date: Mon, 26 Feb 2024 21:45:33 -0600 Message-ID: <20240227034539.193573-4-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The GPU on the RZ/G2H is a Rogue GX6650 which uses firmware rogue_4.46.6.62_v1.fw available from Imagination. When enumerated, it appears as: powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.46.6.62_v1.fw powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi index be55ae83944c..398c9df1577b 100644 --- a/arch/arm64/boot/dts/renesas/r8a774e1.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a774e1.dtsi @@ -2464,6 +2464,16 @@ gic: interrupt-controller@f1010000 { resets = <&cpg 408>; }; + gpu: gpu@fd000000 { + compatible = "renesas,r8a774e1-gpu", "img,img-axe"; + reg = <0 0xfd000000 0 0x20000>; + clocks = <&cpg CPG_MOD 112>; + clock-names = "core"; + interrupts = ; + power-domains = <&sysc R8A774E1_PD_3DG_E>; + resets = <&cpg 112>; + }; + pciec0: pcie@fe000000 { compatible = "renesas,pcie-r8a774e1", "renesas,pcie-rcar-gen3"; From patchwork Tue Feb 27 03:45:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573242 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 03626C5478C for ; Tue, 27 Feb 2024 03:46:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A88C10F2B7; Tue, 27 Feb 2024 03:46:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jiSkHnBB"; dkim-atps=neutral Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1142510F2B6 for ; Tue, 27 Feb 2024 03:46:05 +0000 (UTC) Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7c7c984699fso76816539f.1 for ; Mon, 26 Feb 2024 19:46:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005564; x=1709610364; darn=lists.freedesktop.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=6JQWVgvsVSAXBFHOY8s9spMi4UJ0tFbH9CvikIMLXfY=; b=jiSkHnBBtKZhoRohcL0d1AbtlFvl1iwaP3qabCHMRm0seytp/cpuX2qo0W3T4z9/1p dZhT6gOdhre2FvPZGKDIlWOAHdXGpxc/S3/Zk6KT6a6SMwCswVnK3ekFiyzESXq8GWCD HVfe8PdxiebwN9M2luo3IW2fUFGXD1C8CCupg99A5zIAB1oGKABtp8PkKc/jDnZtB9rx oxO2LMMlD6lW421FduQOKIiBfACLrYBbY5zLnK3xrnu1nIsWGiPl2Z5i6kBt1/w0NH4J 0fqylyH+FgLVOYEYo9uQ5hPNHT8BPzMdJqmM4ASAj5TZy2wjzei7oRVDamwTHqlNm5C0 fAEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005564; x=1709610364; 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=6JQWVgvsVSAXBFHOY8s9spMi4UJ0tFbH9CvikIMLXfY=; b=OcglTpzICJwCBpcBmgJ16EcuuwaznYyYpeSHu3CyGE5L50zP3hMY5Iw82gjzAInD+S zJi8K4aDxWOZ7qR2kuzKJgHzHJYluw9Gte6tBUb5M5354jo/oxk9RmoMqTzu6WOPoJd+ iQ+lgzBOSilcdNXD/dEaK/icKSUUQICed5LXqHfYFG87h7Qv/dRPzU9EdK+1niq/9KVf 9ALYZad71sndlVjJ+iMonkUKJAAd3cATXO2Mtwf4BhgmJnkf48YKa28jRwvJPBYP8wSF NoCyaN162PXCf6NJfUAJbSn4J6X/hBdOrEGo64ngGBYyOGpwnPIAq1/IJ84oU880p3VO 9Few== X-Gm-Message-State: AOJu0Yzi/vdymTpt08NM5NQgkIUloTW+tcTlkNGAcKJBN8/YGk1gfRZN O0i76TyZWXaruztlVLEi7TBkgZO98UNu4NL07Gq7dJhDuNRniX20HxquwSd69vfoK5KP X-Google-Smtp-Source: AGHT+IEvUosRcO3cAs604DIvzG8GjuAYhfLZpRke5iMYbs0MEdBufngZycVwxslAbjglBaiBIvbwKA== X-Received: by 2002:a92:d448:0:b0:363:b8fb:fcb7 with SMTP id r8-20020a92d448000000b00363b8fbfcb7mr9849922ilm.16.1709005563780; Mon, 26 Feb 2024 19:46:03 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:46:03 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: renesas: r8a77951: Enable GPU Date: Mon, 26 Feb 2024 21:45:34 -0600 Message-ID: <20240227034539.193573-5-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The GPU on the R-Car H3 is a Rogue GX6650 which uses firmware rogue_4.46.6.61_v1.fw available from Imagination. When enumerated, it appears as: powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.46.6.62_v1.fw powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) Signed-off-by: Adam Ford Tested-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/r8a77951.dtsi b/arch/arm64/boot/dts/renesas/r8a77951.dtsi index bea4edd17d53..3e9defaeb00f 100644 --- a/arch/arm64/boot/dts/renesas/r8a77951.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77951.dtsi @@ -2771,6 +2771,16 @@ gic: interrupt-controller@f1010000 { resets = <&cpg 408>; }; + gpu: gpu@fd000000 { + compatible = "renesas,r8a77951-gpu", "img,img-axe"; + reg = <0 0xfd000000 0 0x20000>; + clocks = <&cpg CPG_MOD 112>; + clock-names = "core"; + interrupts = ; + power-domains = <&sysc R8A7795_PD_3DG_E>; + resets = <&cpg 112>; + }; + pciec0: pcie@fe000000 { compatible = "renesas,pcie-r8a7795", "renesas,pcie-rcar-gen3"; From patchwork Tue Feb 27 03:45:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573241 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 2425FC54798 for ; Tue, 27 Feb 2024 03:46:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 087D010F2B6; Tue, 27 Feb 2024 03:46:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="D6mrImgn"; dkim-atps=neutral Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id D49D010F2B5 for ; Tue, 27 Feb 2024 03:46:06 +0000 (UTC) Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7c794deb6cdso176570739f.0 for ; Mon, 26 Feb 2024 19:46:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005565; x=1709610365; darn=lists.freedesktop.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=3StZ/L4nuFpFQDzbrXKyCvxa0NGv/xoSnCZP+Jf5BgY=; b=D6mrImgnkeOebRE6KWnQEeY+O3GyLrHJZdM3Jhqu5RybDHJxSxPqGZM0qEmUhKHZcR pAdUEhC5ExK9wrius3iRNtmkrUPIOEwom1xCmbUIGw1c8zsgETksJdBb1oiaU5BnrelF QO7X+5ORCajdtreFrPONA7aeSJO5Jfo+yg5pl6uEbgYBmsfhY1aQOiFfK8ePRD8233a3 4XwLktODZ9yowcyMWtFmocMqxakmnKYIHoBfNOC9TeR78H2ahABZLBQDjn3CqSKKnYAE JyJ3eoSvmsjXFI15QAXXFKbfuIDK//IciYPesdqPCPi+3SO2SCItEA8raocFRSPJibcd 4NMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005565; x=1709610365; 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=3StZ/L4nuFpFQDzbrXKyCvxa0NGv/xoSnCZP+Jf5BgY=; b=VjJ3gro8OrXcY1fQTs4lLh+jhUA7kEoGzfLp1US5lB4AbqObCbjmoGL5CJKSv5GDDt pVeSOSpB7qWLEq0rVqPb7dhz4XHyg1lQjRxsSO47qlskAWxbUB7dz8luylCtCQiGCLZi gTxHhhDUkZ/2lxRCSn2ZErJ/r2peBpeOMz0hJj+I4ZkSLX2i8bYOuUb+1go6skgnTwrV e7H2sk189e6vICeXPIauUpfnZduDxEVfv9n79hNnaCg5mp6IdE3DORGfRyytJnkRWATB mwSXfq05hhGQLFxOhyzoLjWiNRSpYP7KUP3AJKi4lh172ELCtamrB0b5brqI/8d8SGoE 6hsw== X-Gm-Message-State: AOJu0YzswEpZI4OB2S1Iv7fhx8BURRRmRvVuenhgSd6bYXTJVIRr6q0t ohjk+ntADDJ+Wm6hQl/PmlehUwGaTv0BN1RjniVpuKfKgex29ytlK3ShRmoN6ayAiunS X-Google-Smtp-Source: AGHT+IGknTA/wjq0GgL2gXiP0e5BIWFd6q9cFl4c3fjpz3qCOZ+8Z0cNOWFM54PRsvcU7URA2vl92A== X-Received: by 2002:a92:4a03:0:b0:363:b95a:b55a with SMTP id m3-20020a924a03000000b00363b95ab55amr10583339ilf.16.1709005565596; Mon, 26 Feb 2024 19:46:05 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:46:05 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: renesas: r8a77960: Enable GPU Date: Mon, 26 Feb 2024 21:45:35 -0600 Message-ID: <20240227034539.193573-6-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The GPU on the R-Car M3-W is a Rogue GX6250 which uses firmware rogue_4.45.2.58_v1.fw available from Imagination. When enumerated, it appears as: powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.45.2.58_v1.fw powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/r8a77960.dtsi b/arch/arm64/boot/dts/renesas/r8a77960.dtsi index 7846fea8e40d..0f17bc3f2d9a 100644 --- a/arch/arm64/boot/dts/renesas/r8a77960.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77960.dtsi @@ -2558,6 +2558,16 @@ gic: interrupt-controller@f1010000 { resets = <&cpg 408>; }; + gpu: gpu@fd000000 { + compatible = "renesas,r8a77960-gpu", "img,img-axe"; + reg = <0 0xfd000000 0 0x20000>; + clocks = <&cpg CPG_MOD 112>; + clock-names = "core"; + interrupts = ; + power-domains = <&sysc R8A7796_PD_3DG_B>; + resets = <&cpg 112>; + }; + pciec0: pcie@fe000000 { compatible = "renesas,pcie-r8a7796", "renesas,pcie-rcar-gen3"; From patchwork Tue Feb 27 03:45:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13573240 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 84DFAC5478C for ; Tue, 27 Feb 2024 03:46:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF81710F2B5; Tue, 27 Feb 2024 03:46:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gDTeQwZV"; dkim-atps=neutral Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6544710F2B5 for ; Tue, 27 Feb 2024 03:46:08 +0000 (UTC) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-365138d9635so13268855ab.3 for ; Mon, 26 Feb 2024 19:46:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005567; x=1709610367; darn=lists.freedesktop.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=AJfm+NHY1Z+Lw1sZYXXZ3jyQox+hLwhKq3O8TxYABL8=; b=gDTeQwZVi6PBjBC+KbGKm5NCN5ZnJJGb1sqn9dnNH4kbRITQ2IAcj/+u+5B5eWiZK+ CxrB7ufb/BHeK3qQ6a8wCFVr8FoJWSALU18VGOoWIa46mXMAQHlr2uoSRjUNHQ3XI3Kf Pn6TrevQJUh88tnVnmONET39balPAM/KLn4/LEBJRD+xmGTZ+Pa3awD5KItn7jNrJTXu 4qI/i1NhztxJbCDZIussUwQht+YTpO0oXsmV0qkYDMKXeA5Qsir+/x+a0iscybB4X8Au n2oK9wDzufP6jAJpZr4bPi9VII7uZNPyszPiSQNOjaqNwaLvC5WfoHgQfO1qkVxptG26 QASw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709005567; x=1709610367; 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=AJfm+NHY1Z+Lw1sZYXXZ3jyQox+hLwhKq3O8TxYABL8=; b=CgAajryPA2HgO8QhDqgC3hJ6xKKVarcklKD2lEGz0istymoWfFVek31+xFy6xIXs2z Uf59fZ067P6bjKepeDWsrak5jhN3ULBPbFdSYt6HNRR49ZVBL0HWcVBKQBCEkH3p77NF uEaynI0+PZifsE5rG5Dnc9FO2M9uGzpZYdBt3dnYsKYc0GPqXzJtpqeuTQeb9C+MPdAF Tqve0v6LRJpDFUczGq2N5Hl1MpwdRNuZ8urY4fDJQgwnpu36Lwh8wSdkthby7QeqKLgE mMYlZscr8Uzfy0kRlgCawnXJu1jRPIvKmQYno0LO0VhBdGpFVuF0v4ii8VlUeXG/Ntvm Z+qg== X-Gm-Message-State: AOJu0YyvhU3uzIolnRz35A//kfBwcVlAYWiqfA1OZQ81W5erHuujelE1 Hhm6V43g6ernQi1Nhyvwy63273iyDaR3x9kpMIJMPPJM3IONhgGioaibtbygczSNMo84 X-Google-Smtp-Source: AGHT+IHL1bo8nIvPJXhU/N96DuypsbyD1/7pheO1VuJUDwHDG0U2xYsyb1SRuUQCwpJMqpKqxuW6vA== X-Received: by 2002:a05:6e02:1bce:b0:365:24d9:9477 with SMTP id x14-20020a056e021bce00b0036524d99477mr12614317ilv.15.1709005567198; Mon, 26 Feb 2024 19:46:07 -0800 (PST) Received: from aford-System-Version.lan ([2601:447:d002:5be:1712:c48b:aaa0:cd8b]) by smtp.gmail.com with ESMTPSA id w4-20020a92ad04000000b00362b4d251a5sm1891566ilh.25.2024.02.26.19.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 19:46:06 -0800 (PST) From: Adam Ford To: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Cc: aford@beaconembedded.com, Adam Ford , Frank Binns , Matt Coster , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: renesas: r8a77961: Enable GPU Date: Mon, 26 Feb 2024 21:45:36 -0600 Message-ID: <20240227034539.193573-7-aford173@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240227034539.193573-1-aford173@gmail.com> References: <20240227034539.193573-1-aford173@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The GPU on the R-Car M3-W+ is a Rogue GX6250 which uses firmware rogue_4.45.2.58_v1.fw available from Imagination. When enumerated, it appears as: powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.45.2.58_v1.fw powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/r8a77961.dtsi b/arch/arm64/boot/dts/renesas/r8a77961.dtsi index 58f9286a5ab5..cc17e624c069 100644 --- a/arch/arm64/boot/dts/renesas/r8a77961.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77961.dtsi @@ -2438,6 +2438,16 @@ gic: interrupt-controller@f1010000 { resets = <&cpg 408>; }; + gpu: gpu@fd000000 { + compatible = "renesas,r8a77961-gpu", "img,img-axe"; + reg = <0 0xfd000000 0 0x20000>; + clocks = <&cpg CPG_MOD 112>; + clock-names = "core"; + interrupts = ; + power-domains = <&sysc R8A77961_PD_3DG_B>; + resets = <&cpg 112>; + }; + pciec0: pcie@fe000000 { compatible = "renesas,pcie-r8a77961", "renesas,pcie-rcar-gen3";