From patchwork Wed Jun 1 11:02:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 12866730 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 2105FC433EF for ; Wed, 1 Jun 2022 11:05:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=79fzGbu4OtOwyZYRoWK8F50cZUFxk6jDuzXlpcRN5mM=; b=WvOxn2WpUR6za1 1k403y0YF3/AOIzajPICTVItZFIyj3OONcXMUBvH1LdI0O0num69dT34mYgxIQFjpU13wySnJfDyB 26fKEwUgo1UAIOdHnZ1FY5rLiQ8bNnZq49LfoiBduVfgKrsggpfdkB2COFJ18EBGyHix4mDk0cGqL CmXFzP0ZsysC0YeDKrJMY3Spg0AbH3j6T6CMi0cyClLDtv3ahPj9i4eObOOh/MTx0Bgz1h9YQsLZq zQACtSZXPixaBPP6PwwimMH6nK6NWMTtf3acMLUbVBfwGrpDEjOUE2vhVr05Kq7uRnzHkikwEZL6V wxstmfZFniKtlbtpgWWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwM9J-00FUHE-9P; Wed, 01 Jun 2022 11:04:25 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwM8D-00FTq8-OI; Wed, 01 Jun 2022 11:03:19 +0000 Received: by mail-wr1-x42b.google.com with SMTP id x17so1834889wrg.6; Wed, 01 Jun 2022 04:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q6tthIMoT4ruD6JHwzSQMleekGF9Zk9WpAchytaiYTM=; b=BVlIGd7DGxhP3kteQYVstjWADi5+sAeQTjsydIO0PG6YOts2TQa26BbXpRjb2JHqxV TaFgM5zKcMlO1QaUscfhF9C/IRbqGI3kGajtRGKvEBzLHXYBuMKORcxviEV9GAKFtMQM eNrf6HYo6jHiuXlHzeNbIc13VM9JneZ/DWSfU1PjZ6KmlcgfVMmX4juFE4k2GL01Go/Q j2TJoJNvvz/XUB2hADLuwSzac4/HC6uy8cLqjhBJ/YzQp4pAvs/RMJW2WCnBhQPhHIq/ fVvydLYJP1CwGb8lBIEZJwQ1JWjSJLPibrhMjV4MAjbD2gLLzGy78M3+fexCvOe6Bxnc 4WMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q6tthIMoT4ruD6JHwzSQMleekGF9Zk9WpAchytaiYTM=; b=q+DN+hflttSZ/KZ+hzz6KP2gR7HDCwcO/dC/CIjBJ663m9wYTVAN7L4+6SvPF7KYmp x5fkPyHlNPZfjetLz+vOAhpY3wwuG9fyVtkNhHAJrtPKtHwG9DQbPhpPpN1kbJwGUQ6Q 3rLaOUnwvPNqKQ4D2d9iXJNI04o6I1yNQboowHM8JH2W5ZA0RJuGaQ4Pol83AFjRKkMr TlIBYs3h9639HeMqsOROu+rUh5AiHHj8Y2+nSOQhJSKmKBGsQxPnMsCl+NAPpfyxfg11 lohy2r7X7D87XInLtogiqvXxRgrmQbqcLJXqvPlvV9rZiGgqhxPAZdnzx4jfptvzBxIy gjNg== X-Gm-Message-State: AOAM532hZgRIMgDbEhIRdZvnsGmG1eNMldHv5UZUEDZBVbrueJphLWbh HuD2VZJGQEvU2u3JQXoC7e4= X-Google-Smtp-Source: ABdhPJzLmmoS2dYg0CT3V1aVAnpDEFMEScwN3Ds9lW57/lngszZOr8vkmalkfzvnB1GkITDhJ2zlLQ== X-Received: by 2002:a5d:5888:0:b0:20d:270f:6b61 with SMTP id n8-20020a5d5888000000b0020d270f6b61mr52883493wrf.211.1654081393257; Wed, 01 Jun 2022 04:03:13 -0700 (PDT) Received: from morpheus.home.roving-it.com (82-132-215-116.dab.02.net. [82.132.215.116]) by smtp.googlemail.com with ESMTPSA id j14-20020a05600c190e00b00397381a7ae8sm6074559wmq.30.2022.06.01.04.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 04:03:12 -0700 (PDT) From: Peter Robinson To: Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, Daniel Vetter , David Airlie , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Emma Anholt , Florian Fainelli , javierm@redhat.com, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, maxime@cerno.tech, Nicolas Saenz Julienne , Rob Herring , Stefan Wahren , Catalin Marinas , Will Deacon Cc: Peter Robinson , Nicolas Saenz Julienne Subject: [PATCH v5 4/6] ARM: dts: bcm2711: Enable V3D Date: Wed, 1 Jun 2022 12:02:47 +0100 Message-Id: <20220601110249.569540-5-pbrobinson@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220601110249.569540-1-pbrobinson@gmail.com> References: <20220601110249.569540-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_040317_862064_3392E299 X-CRM114-Status: GOOD ( 11.36 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the entry for V3D for bcm2711 (used in the Raspberry Pi 4) and the associated firmware clock entry. Signed-off-by: Nicolas Saenz Julienne Signed-off-by: Peter Robinson Reviewed-by: Javier Martinez Canillas --- Changes since v5: - Move the firmware clock to bcm2711-rpi.dtsi arch/arm/boot/dts/bcm2711-rpi.dtsi | 4 ++++ arch/arm/boot/dts/bcm2711.dtsi | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi.dtsi b/arch/arm/boot/dts/bcm2711-rpi.dtsi index ca266c5d9f9b..98817a6675b9 100644 --- a/arch/arm/boot/dts/bcm2711-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2711-rpi.dtsi @@ -69,6 +69,10 @@ blconfig: nvram@0 { }; }; +&v3d { + clocks = <&firmware_clocks 5>; +}; + &vchiq { interrupts = ; }; diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 89af57482bc8..177662257b16 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -601,6 +601,17 @@ genet_mdio: mdio@e14 { #size-cells = <0x0>; }; }; + + v3d: gpu@7ec00000 { + compatible = "brcm,bcm2711-v3d"; + reg = <0x0 0x7ec00000 0x4000>, + <0x0 0x7ec04000 0x4000>; + reg-names = "hub", "core0"; + + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; + resets = <&pm BCM2835_RESET_V3D>; + interrupts = ; + }; }; };