From patchwork Fri Jun 3 09:26:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 12868859 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 18B9EC433EF for ; Fri, 3 Jun 2022 09:29:30 +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=Wex8xlPuDcoN9SM3Q2JNmJfHJWSyEG3yxiTwSWZr1hc=; b=JvZdK8fhEWJndO eIy4JVH8pKth0NJx09vO4YscHku/GBMC4EmpbMI8h27NlihUwS8iOquqsagaVWIy1xBh7eCKQQaUI tIPCz9iJdvMk8qk0QgUMvPWbRScMET2bvky2JSkw5ESTXKaY1cdJWJKq8/7L/24fjWWc6FcQwrMCc 109GMSms8NZxlnLENtAiFZBhz/ysaHJM2sDKaDUHDfCQvlpmqe9xEIXQHLZrpuofiV6csrEV7ZCtq IBrm8RXkfAoTRh2RDFJ+IYxMTzObMC8lRUrNQ9C0735miNepecOgu0DsCGo2mdw554ydeqcnr6pBh swob9cnnT2Q7pNG7tLig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx3aw-006od0-MM; Fri, 03 Jun 2022 09:27:52 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx3ZY-006nwJ-87; Fri, 03 Jun 2022 09:26:25 +0000 Received: by mail-ej1-x62a.google.com with SMTP id v1so4097216ejg.13; Fri, 03 Jun 2022 02:26:20 -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=ul5kl3xkOBddCK6BZmBUL37TSKlFrzs4FlZ0lPWju6E=; b=Ois8e1psuQKU/vL+ZZ2WfE2Yt78mnui0q5PLO8u67c9bYrB1rcazPSj9flPXInIXii nBZlzOcBLDpYGo4rgvLTRuaFGgWIj47malQftngol/m/MWpBoorH9x5vd91bv+KO8FJJ qdHvvLj3a6CVqzlNOaI1HKmIDYpUCgr0JT3hLOet0Ewvkv5UDbCjhN0cZiMZQYD6aD8p 37WQc2Mm8aPK8EnhFhlHKqC+1CbEj3SjdcadoU1Qx59b1qH0NhS2R6c89WCMsAe0duOi l04FubgcTsL/M108tDRa2mSkuQ24+v9Qfd5LZaeLvgjLaGiqN3e9xIbKrDFW06Orpxjk ohmQ== 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=ul5kl3xkOBddCK6BZmBUL37TSKlFrzs4FlZ0lPWju6E=; b=cw3TgQ3U/nX8lf/2s1njdS56LXygXZRUuTRZUs9xzNKAz07/ZAlclMG1iZFG4oLUFA A3QSzyx691SmVHDw/QWYUSYnyJ3r9zYMmbwtDID2J/vQBB/shCtsVC+VjAyCn4/RxDAu ywLxbM0cvmkgBFW+VG3uOU26f/BlezqYbrmDrXaZA8nzz96QFM9VgTJTZwkCgZHm/ehc u6ek3HjDNe5MYMjWC1nKt+3jJCKbn8Hpr9NtFoK2nrimRjwtabNzLXRdj8KJ6lleTz37 TXJ0y2CjjdVqwhm01RpIgxe4kX2mB//D9gGARAjr5RSqSsDmAeXM7IzVVMs+79/ySsJP 7PNg== X-Gm-Message-State: AOAM531xHgfYBxuSuO4UY2NY9xw3Dqb4xSZU5unGDrTh+6AkxP/U9sJy /JA2yy+dR4LIOW/QQsh5eqM= X-Google-Smtp-Source: ABdhPJyB/WV+eEvN1uLE1B454uXjO9+6jxoRuQ9KICIHvdfB1Hz+zTnHqm6rnXfD6SFeB+ZE8ahgUw== X-Received: by 2002:a17:907:a406:b0:703:db59:35a with SMTP id sg6-20020a170907a40600b00703db59035amr7723403ejc.321.1654248379038; Fri, 03 Jun 2022 02:26:19 -0700 (PDT) Received: from morpheus.home.roving-it.com (3.e.2.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::2e3]) by smtp.googlemail.com with ESMTPSA id b5-20020a17090691c500b006feaa22e367sm2617672ejx.165.2022.06.03.02.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 02:26:18 -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 v6 4/6] ARM: dts: bcm2711: Enable V3D Date: Fri, 3 Jun 2022 10:26:08 +0100 Message-Id: <20220603092610.1909675-5-pbrobinson@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603092610.1909675-1-pbrobinson@gmail.com> References: <20220603092610.1909675-1-pbrobinson@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220603_022624_462333_884DCEEE X-CRM114-Status: GOOD ( 11.62 ) 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: - Update the compatible to match the other updated ones Changes since v4: - 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..20e6771e8b1f 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,2711-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 = ; + }; }; };