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: 13573230 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) (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 7A553339BF; Tue, 27 Feb 2024 03:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005560; cv=none; b=g/uWWZ065ggOxE0dcNsiy/xaZwDmvtP8icO7ayLqt8akc45INnxNCk0DphGZUBDUHgmHTQgxh7cZ6yJdQu5mcjaSpNpnjKHg9U0skPLXjgHxga5JZ/pzg61lDxFbJvHyur+WdVHSsqGHFI3dNlCAPzpf0kWcPcwaLWmuPMRUOdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005560; c=relaxed/simple; bh=PKqroATuQmkXfdeKNmcaZSx60NSv+Ro2hJXFdpkmcSs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IKEgvneKe6zlNZlZzKxHj9C3FT/RzFcAzIOUEAioKM8h/mXpuyYKU/u42qGxG8/grV+A2gZJeB+WkaQXzjnQVcRCW00s3wd1H1djDKKm7eRXDQ2aNQyYysXvH1upiJMybIq2fBl2C4/uurXahI+AMRfTplQxuTA3tAeMNMqSmOs= 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=nibPEp29; arc=none smtp.client-ip=209.85.166.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nibPEp29" Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-36517375cc6so9649725ab.1; Mon, 26 Feb 2024 19:45:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005558; x=1709610358; 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=ucD/+p4K6+j2ZE6i/N6HFdJPDZilTnGBi4Fcog1oUsI=; b=nibPEp29q5L6NSZn1CxCs+UB13moAr9MOVYZtaC60PJyveelBh65Di3RskCeWz5Fl4 d7yMKhY0cEXRmv85XOBDiQ/b3zS6E1YXZZU426u7rf57q3kWYFWzosHIcrmoKtUx8Qt+ RKI6Li/w6VlskxrCyDyvDLrY81ZH133pLudUwgJtSPRaBRVi/XEZTmwh3LmA6P9nqrKW 2FGmQ8c/edxCc+FJqBfaW1SuiGfpzAAmCWAa5cFUWAB0zojhDtMyJ7A/qdSEbItstsGT dQlBGayScuop5gMlyfLTEAL/vipklMi5LzJRJZ8YqFL7u3XwdBxXdH+KPz5AClcNCtj0 TJzg== 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=oTQDhJsI3U2opDPsUpw4gwDTgEvu/1gguS0c9vcWotSMVeUs2M+0CUNz60Q16sMOjF 4Uf5AT+pbaYQYJA+WWgXn08siQZ/zkNnSbgabZcp+ph53GxzaHKRNXPo6x6Mg9xHzn2m vpKy0SFVt/puiCKob0A2akcIP5QNQvPLcH5AJc2vjEWXIQV55Qc5sCsx4SwMoPHyZMjy C5o5yg1rrB0VUaCDsPdeQnkjiA45aIYBF3fBM1LaT7wZ7YjVtc1vDIqv5Pt2NO4+1WGa mJyp6FhpeeGjJKbOg98wf4g1zu2w9f9Nt8ZvohRCyGYOnIM1NkzQfpac3Ljpno6nEmc0 1uUQ== X-Forwarded-Encrypted: i=1; AJvYcCWLnijTruHKv8uW+2eaxDmj8pCvwyhDcIS9Pu0g9V2hRj3onnqbuG+nj8/AXUSe9VPITp6GB/T4lwqhyc8hqjLZn31oIFD87wY1W68bi+8FA+Tv7IFTBG5dAtJVRVv7PZO+zwjwkyMmgbrfFU1cO7zz3jYfriMv/1B7FaTyqNkIJrqLvyRvut8jgZJr X-Gm-Message-State: AOJu0Yy/mLfSq+JgzerEtCS+Tipl7wzrVLEYoQUKb9WwK/b46ehtby7/ RUZBJ1xPaWBPtx0wqZpMR5ThXuraj0f93AWRzuMzxpFSapgMEj/c 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573231 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (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 3F8B04D11F; Tue, 27 Feb 2024 03:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005562; cv=none; b=L2JX3Ju0pN8k45/yAIj6mXnH60qsa3I5u5p4lHEtpIE+k3OHUej9M50AP/TKX6OorXFqNBx1QSbpUMSu3fnszl15wjPXi81eKSXGYqm34AYo+BBG2zEBiKyXRpqJIQdSIDUryH7v3L5uqp9+m4lTAHbaRQm1CiSvvgjxXm14hog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005562; c=relaxed/simple; bh=X5b3IjGl60IeajeIm28amEMfCeRIG7fmScXSfjrAU4o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NdxVhCjVBI+O+7i//MqrhDhrVo1OtK0jRyu+7kbxyFAhG886ogIjQNM9eYzp/BElb1ujx+UP+nHSBbfvHLl8ioaBExZNzJnihs2cRJgp2q3YEz4KcT9Y200hWB3dCJLC+e/faqjM5zkHCckAqRyW2vVZlJvXGdNdmW+mqCsA6r4= 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=m3qjROJL; arc=none smtp.client-ip=209.85.166.176 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m3qjROJL" Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-3657d1d4516so13604835ab.2; 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=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=TFyPT0505OQhdGJk2meFYZ2auxbPN2hQffBG52zYkHM=; b=m3qjROJL1UeVnRzCK4GcEBi1aS5HZtoSFxC+RQs4hXGPKz8uZkNBfW0HLno8nHNv+q v8a+oek01gYo2enZpWA9FV0gFymynse/WEabTVupS9tCPx1s5PY3I2o73sUjs3Y96LKW zTOx8/Pidnbr+bhypO8eHDzbxvq8VU3Gdjw2YEv3h2HeFWm1wEEMFVWetXBy50pVMGW9 AlVR7pFmT3TMnjk8S0H7Jr0W2B1mAjzFn+zWu7Q8gwXL1NONVQ//PCRoukRjniHsX597 ANRxmr+Joo9LWBmV1FXO6L5oEfwXAcKVFk1l2bLLRiLu71zTQ3FbVKMndmSUQc4m5hIT kWaA== 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=vgHYpuck+Mldyld0P3cYGDHCCp9b+nJifkMhhwdGFqVQBP6VNkocacYp0UZesdWsAK 5pcULsb4Afsx2/wu0Z73v/Egd//yZF51cUfZnNqiYYNjIe9sLcnmmlLx/2R/XPE2c+an 5d9YhSNKkigk1JuwGeiZngju+UuU8LSN7KIrnwqDLFYKJFq/5GQImOWolKIgGrd2RdUP YRY5CrGSG94ta5Nt/AIzqrP78yVdYiCtKpIAOWxRCxqMp9ErSjfHTvOP8xjlJTauJotZ RIYYIbC4jrnOcYen49aSv9TQyoLHGmI4y7XqSdUn0qM6DE/X9Vy3TjgmVr40C4nVirnU /New== X-Forwarded-Encrypted: i=1; AJvYcCUPycAypPwjldodCuk70E7wkCXtx3FN7Qv0B6b1jp9vGIT47kiPL2iah1j8aQ3a0U03YTVmHpyIwwxXtjwi7n9C3+HRy+6IMXJhH9zHmm9rVNWIOiQNY6nrYO1cBNZATqc3u0WTDJP+9t6YX5PYoZMos7jbxaItzVsVbI/xHJaMeowy7lsY9q/9Yfin X-Gm-Message-State: AOJu0YxIS+24JA2T0TJREAQoCsGE/sRpVovsDDSy5/9tUmc/iJ6OG9Eb CHNZZRmD4xYDglmYOobSO6Oe42veQHUL2b7iGvlLHXY+6fLsjBO1 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573232 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-il1-f178.google.com (mail-il1-f178.google.com [209.85.166.178]) (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 E66114DA11; Tue, 27 Feb 2024 03:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005564; cv=none; b=PF0KpbJEVbyQvXqALNPBjkrCgpL7BdoP8znqayd2koihY6Y3WA1obl54Y7s3EIQsTz1ehIyT3HLCvbNlkBqOdNF/yG5vVXqHz8ATsORSQdu6ZKLgLDM2iZ4MTQcOa5+2TSOKv0EiCd8a5niS2KV/RNa9yWw1P/Poe2mBbRA3u0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005564; c=relaxed/simple; bh=978k3peN9JdSkAeLAZxAgp9ZWfU7hMfXepKf85SgcpI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=clARK6ElZ2Q/kfMhaceVPq2JmItWWTrW117kgQ5Lq6bW+lUFw5TI2ddt9drppxud8q7Sv+q1WN7j7fPK0DrQNJmXpFgMfPl9Y3X57/VWBXAh5/7bZX5ctueyKjfY7RAsi2vCjvSsN/TRPxZFYnP/3HPNDpiXHV5jt7B0+AEupWk= 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=IMYLb8mP; arc=none smtp.client-ip=209.85.166.178 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IMYLb8mP" Received: by mail-il1-f178.google.com with SMTP id e9e14a558f8ab-363bdac74c6so10192225ab.2; Mon, 26 Feb 2024 19:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005562; x=1709610362; 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=tA/OqBDxHzMzuOM7arRYERa2rELcIZBY7XfgMgE4ynA=; b=IMYLb8mPmufPGqokXKhh7cOCU2m0Ct0MuBNaiR+rqdudTL9NC/yxXo6HcU7eOnSCiu 89F+jLsxP9wEDhwqWMULLj7QNnAcEVNZ5kToyGpHn0h1p133i+n6T5qM4rLYO3bzITv9 kgnBQvzDafubiBP8Dti2tkVBkSJriiz6zIWWpcZNIF348WxJWCKYURiU8/lJus1BEZA+ 09p1nGXy1McAOP7AHfLGwTkhv7bXesQsXMocu1GmH0lC+3DLWijJrGO4hxEh+7U+C9J7 Yn1Qa4RQoRKgUZ5aMJeqz/ZyE5CZwEujTVZuK3yg2D/eaOoJCuzitN71Jsvn1d1ow6wk uO2Q== 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=VmovYyKUoo9A5fu8nqGe+ai2X280DWw0U7wMscy/ftV+SzVDzaLn1RjvnNKAwMyCVL I1fWVnZmgTjhCjQW4Ii0U+QWqg5w03/5M1T/nKYA/CnTTowtrIH2pQThizK9dKro4mOu tzci4VOkj5u34nftM/BULVZO8kHQWANQCcyIbTkWywGpIbsPr3+1CKFVDUsUO1CJNUfR fy4wPs2aSgQfxGHqAN2T3eplEXF1jS3ucOcR9uuonPStMB7WHasm5HQHmQ7WQUYRwHhU tShOZ2c695HnVnTcoW5F+bWi9heNw0Tv1RPWh+yjWJK6xxKPQTCxAYhGEAo6D5ddbdkH edmQ== X-Forwarded-Encrypted: i=1; AJvYcCUDMACr7wIN8JDLkuoun9Wj+28dRXXLiUtOmN0UQNMHlv+9qbVMvwYFcDVMiCPJ6XwyFspJIOUgS9eUBJRmsBVbS+cTruTV+J7LAqe2//Q7YEshFGnTSShof3UoeE6YhGUrySoNPyNkUdm9fNnj9M8G6PBjwk3Dm55PUEj8y5X8/PN9qlZTTvUolRd/ X-Gm-Message-State: AOJu0YzKxBeFMIThlOXkzcssZe/wPnD+0N8TiJUnSu7tWo5DKg8fuuzD 0iR08wOnCPFQ7bZUFLbLRFbJN3Bbhk+u2+LNwtoYy8RBZTpOSLM1 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573233 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (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 B15CB4EB32; Tue, 27 Feb 2024 03:46:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005566; cv=none; b=eaCiqm1iIJvKaYgbOGYS+PgglqGzixxqUgusUGL9JwJlXkdQES/oestRbujA0LwLfqedf3zQ4FrH2rybnsM5kg+B8pdf1IFXM+AoAFbEDdEeENfIPyp9PyyZ/tu84IjUXZ2McbWmGHIH6zfS2WBxpgKDf1jj/t8jbxJ4WmZALVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005566; c=relaxed/simple; bh=mmlLq1nOScDbgyJjv8cbQMfU0vZVtoIx8JKAAQBTMCg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OIKxIandB5W5SN6vHOr2QXcPjlnOtGMiagRQ9/wb+c1O73WvPxYwXiw7yrt9bTz6INeGuS1IpWVG+O+3KsrSyu1jSVuUltURE3L6tFxD7eV3F7amLHpCzPveGFk4ViJfITRrdyMi0BllyfPxxo3vX6s/DlUyIZzmuO8TxdV4u88= 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=kjelYzTz; arc=none smtp.client-ip=209.85.166.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kjelYzTz" Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7bc332d3a8cso265672039f.2; Mon, 26 Feb 2024 19:46:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005564; x=1709610364; 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=6JQWVgvsVSAXBFHOY8s9spMi4UJ0tFbH9CvikIMLXfY=; b=kjelYzTz8ahzH7vXvkp4meFSfW8Q23gqgVhxWskL8BsQUQxjb1Hdfdo8dYeKA0arEz 91KmfLel/xb0nvCOlghenodwY762MBs9mhtmOZUtSkl6i2j9Zgpa5ixWOQavxpIicvio cirtpXso/DrWPisIZBMnuDjQxgWKvC3d6WC2BCSgynIHXGjayaPYaOozqg1uPQjaii3y 5CNc29gtCPR0aA9HHcRW1Tbakes2M1oEdc7eugjt3sFrkU375+U8Op/iGI2ExQWdX4YA 720mSgDcrj3xaKx4AVZQnULjqMP8R6F/rGOoaqI+6hZ9Aeu9NfuZ8VKW1zfoqSrqc5P2 P2Fg== 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=PYRTCa6fXHZXZaegxNQhPw2cflnq5wmXwkVMcpAmwPlCIugZ4Y3LkTJDUIKRwtu7hK ycwm91uKX7/28EOIARSlknCC4hLz3J9YUWcoEoyc58DvQocq8V5yr65YwRJhnvIYAMql /f5bsHtJ5u4mDiRRdknPgv/7csxbBYVaASysMqQPqM2J009XeoX6pZnR05XWJzLAz5zA 7C6y7MIYbkcj+o3vmaiaDf179XwIxUppu+sDZOK/WN5Uaqf4DWloAAbYM+zsfnmkrRGs JBD3ngfS5cEmar200FRiO3bBqjGqjVu3lvzcoul5uzQrCWYZ00scxbBI0l6Wr7Omghen tkeA== X-Forwarded-Encrypted: i=1; AJvYcCUc8h8nYQoafoH8ORrZwnQf6YvlcFEzbQJD65TWa4yQk7kQz0b2c5Lj6bIBXCNXlRpbaglijWaBlsIvrUh+nyAjUJ7tl+Q4FJHKg7GpExuK6qATdJVMmCG0SUBMnhk7LVEJHke1DIg8X3x2UTPNFjEfMhxZWAVURqwZMHWiPrzilp7PIkTdgp1suvSE X-Gm-Message-State: AOJu0Yw+mtrreRwtClYn5B6L9STnFD5iwOz4e4w7HNU4WiLB7qQ7uVV5 HhNQ889yz/NO09rVCllIQxBc1b3qFCcHQ865xg97ptXkX3NxTKSN 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573234 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 963C64EB5C; Tue, 27 Feb 2024 03:46:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005568; cv=none; b=h9OQuv88c1UkrHbW7pO4qf82vdkoghV7OmKZqkbpdBvbhqLAmQZ00ojTNuUU3+WiuO1s4lzSexwe/FOc35qx9KzWP2T6Y5QNy4P4idq0dE04BEOJkDkVNgRlW96vJ2m1WUy5ZbmzzMGrXBW9ao66ICU2uQt5kyVnAZAn3VZDK6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005568; c=relaxed/simple; bh=4M7fRzFAX7nsSVTFE3AoHpe9tjXohZEDZe/P1TQ0vy4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OzVCG31gwuDkxwHJ+Sl2HjzSDVXh3tUTf2M/IsX6hA8+/okdeldla3e4hBVOQeu3+cRjsMiBhhn9g/PdGk1cagYyabfuu+Ij4mhAD41OYeJt7jD7ECJQr+YVvBtmDhX6kaQnSdCASUthXA2jKHH12rUN0bteiqFcRTSxpHzDCrY= 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=PjdHLj94; arc=none smtp.client-ip=209.85.166.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PjdHLj94" Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7c794deb6cdso176570539f.0; 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=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=3StZ/L4nuFpFQDzbrXKyCvxa0NGv/xoSnCZP+Jf5BgY=; b=PjdHLj94bBv71SFx7xihotRWoHh/3G8tQ89oXfVmNt5r/+nFYozZVcjXFfHj20ep3T nZ1om7r3YiujMly1cHXCzALM1UZmgD764sOrDwjQiAkNTqm3XLAxsRVzSN4iA+9FHy4u Y8pM25V5rJy5vyp7oEwGcZuWjMlKHGtYZXWjczrChtFfCQm60OS2aPMKMD/xtwMW0RDn 6zkdiK1aLAVWwUyzkoX3xPujc8Zbrz9fxJlBPRfqpGZdJBKVw/BXWXWywpJiPfkEN1m+ 4noo+729mRhjquWUl27BIUn+ARCFd0pgZMbn5yappyE06oUIYzAacpcqb13wyqOPlqN2 lpAA== 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=TMxxSHzURdacmVCbFk9oq9eCmIYAwe/gcGOagKIX343hqZgS4KndlDxhxmRBK8NBVc CrclnUhKATcd++h3rAOy0sgpgocRGBjVNt5woFtAtn5bFfT2eIvQl1KcKuk2LxV1DETS cgQFMKhIzuUekDTkMqaQrfsJxc1SzzIAzzRp10TUne9X80siT2GIz1O9swVZjrV011xy 5j63S6rwxFSWZMqrZk+9Ho7dHYMtB9rYqjxyci/ARKFQdj6EKDoJxVdivMM53bfM5kXU hSaKvwRAneaU1CwJtEdjMOej7gukSS0gtQSdu65ZUhmDAyPl3nVtD7bMsz2fl3rZ9FVZ DwRw== X-Forwarded-Encrypted: i=1; AJvYcCWGOPtbE4ukDA0n1x9LoZAuZLSVi0qcqdn4oxGgIwdXkSCjcuA81blQAXMmWBGW1Nei08KeF15cmH81jCs6GyBO/BqX/3N5ocLo9itTG+hENxDu641ZbcgcgwFY9PbVn5NRNWh9wkveolod4YOWW2asnosjK6aRWojf/sbejwrfGWbFP+HYcptKmCl+ X-Gm-Message-State: AOJu0YwyMrmrb45Smh2oFAYZ2KXFHKAQHLEv89NQ6DlFl9kRjve5tU/Z OyISWZnUfjKJb/iSvTBef6vhIJ0qOWhEwcdS6k0ehhUcPboKac/0 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13573235 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (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 1E3D44F21D; Tue, 27 Feb 2024 03:46:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005569; cv=none; b=I5Fo1x+ISCrXBmF5EuMybN3QjGtWhflxMujxXH/4k1e9Z+YbXhksN0fWew4neKli1XX3wx27Q24IW3it5kJyrSSwK49q+wCX1r3a8vB6TM497A+hGireqz9XMFKJZg8xaftBH4oRR6P2Z45xr1d2g8MBa3AQ4JVF8yOaNCCsO90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709005569; c=relaxed/simple; bh=U0lXaNVTMjzgpymz11YyhWetT7KDSKee0kupvHaq/ak=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KukfAMS+hoQiECSpyDis5u3P9InL4whmDT7+MflfbU61bJVxMRvh73WH0GNbGadjDxtt1d0P8p/gqgYDBrBDVhY1UVfL3Q6yBnYaG1VAa383YEh32GeX/EEC+EG1U7rmdfqzWjBUPuQOH/bOSMqF8pshSAZMF/2iYXUweXgxWQs= 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=BRVO44j3; arc=none smtp.client-ip=209.85.166.169 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BRVO44j3" Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-3652731b2b7so13811365ab.2; Mon, 26 Feb 2024 19:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709005567; x=1709610367; 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=AJfm+NHY1Z+Lw1sZYXXZ3jyQox+hLwhKq3O8TxYABL8=; b=BRVO44j3vwnh2X3MvZNJFoFSab6byM2h/uJ8j7WIdjhYLTxQ21LimqM8LHoS6JbakF osgm/miu8sYAqwPzMaJgriqxCLo7K4nz3RDzn4UqXDqXbkM7sF+OMIUyYkJgW45adFE7 e8Wab0TR5rkwWTJeWuAL19slw2Kkq9nM+Q/XxRSQarXbVB6vk0cAd/DV/4L+m/es8Npp wpNHs1CmUqZ55Q/mxEWQnXU1lCTWxswlIcLzIjN5flZ+m9zB2K1K3NjdoQ8vqRu599pL d+yzvwuebNfT9QDk6Qnsygwvt0xoCv39ol4zEDK6xqgPlfoYPm91inBCZ7CrOT+rqtzi wWTA== 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=c9Uxm32ahSJSHsF8eNsXLDUqvRMESgfahncBrFmi0Oz4YzD/2c+G6riKStf5tEwcVB hogImQwd/alivmmZhozSqaWVau53foHkMWMf6EuKsWWAbdJqoLdWKdQYXAs68DeM9Y9+ D9xmqY1pxWsD8xY0RU7eQSabF0VGtt5bADvHbWiyA7xMq6kdlQsJCwHGKcFzHbgUkPkU jJbgB1GY1dOIo1MVz9+KVQeH2FJX1q+dJQjL3cQ9N+fc7S8wzGaNKLHoESQZZH3OdQJ7 OOwpNlRC5wwRIgEvPzqJQxwtoUioWwqQ1YcMMrKzDO7LIB7/S9MgPZhZe6sBOwPtdcjM TTJQ== X-Forwarded-Encrypted: i=1; AJvYcCUHfDAeUQsyEF9XZEySu+2hWDYAs4NOdxgx/SaW3lGvMXbecoeKqK4oNegl8dz9HOTKQoSStUebJGnWTYgSy4hlzm9FW7QeLGT8EVvGcF/JE0mCbkUXLkSjZs/3UC7HUrSWlHG2pbC7hraBvRYQDrhE3A3CvxpCWhKf0siSX+VsR00LWZc74z1HfnsZ X-Gm-Message-State: AOJu0Yw137cpty4vGIWaiv31Gu9NrTzJ/zR9e2qAdXGjrZ2lYZ9amHhl AK76WAQo3eUSn/NpSPWgkaDJuSLSUNl/ir3tqdN+MwiSiiyOQihn 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> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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";