Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp955800imu; Tue, 20 Nov 2018 09:22:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/UZwv0Qr3Ljrn2gjzwOBJHBkt7hibPICoPcfuNoHO//JtICsCV33DIdUqvqXNlQ0bnKq78O X-Received: by 2002:a63:5407:: with SMTP id i7mr2656822pgb.413.1542734521655; Tue, 20 Nov 2018 09:22:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542734521; cv=none; d=google.com; s=arc-20160816; b=XswFyVvlXjbyo+AEuS6d87Hkhr/PTp1Pv8qtrY+G/zUB24P2ufVtuNHUqxZ8hsFWRF t7gFR257ELuqX9q/Q+/geEDnH7CbQk07iw8aiMF/pznCyIKiihJ8av7jNy5g7ChTmrEG ux3zGIqTW4/wIBUoaYrHzNHfGKzbrx0U2c4Wp4uU2Do2Siw/0oQAGKbOyXQVt/PWLB1F e1TdWVIZHxCluE9GjSAEhPSIxNmhXrnBd7bwnIMDBOQ9Dv7UwiolJwFIM5rJwt7Ep1LY ksCBvVnxK4zO2ZC0t6P/rk5si7KF3Cr3RrSpxbGyu+LikHmC097x1uFHdl8alco2YVJZ CD0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MScqn3eCHnPsWCzV95Y8rH4INz4e0BVr55y4nk6PXgA=; b=xoJ7HOVl/G4uW00JBumnMKHfgzCrFKUymWEvZBsxr+sf1nNy8vEvcBXupgCqZQp4oe FUN9x9qQc56xRQdFrKUudNhQuaMMjGV63AmmhhVCYNTKCgtPtSOljn0qGqttgVgRJUwZ T2gRuHaTzL6oHOOMGGhFaH1O73nm7Tuj5YGXFWufrOOm0jD9ylELMUHB7BqXgnfPGCSP lDTYe25cx2j1nv6SX7n7PyNE/hg4iYAB1yODG+TrO6FtwGLfQGTAvbhO0KDqhUxb61/B jOSomT+pk/Z+bw3WiLgVD9CEXRSM/U/VAIbr7v6aFgW7NSLYsWo29SnTLKfVGMAWIxpF 5wmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m38si42982643pgl.125.2018.11.20.09.21.25; Tue, 20 Nov 2018 09:22:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730558AbeKUDu1 (ORCPT + 99 others); Tue, 20 Nov 2018 22:50:27 -0500 Received: from anholt.net ([50.246.234.109]:50744 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730532AbeKUDu1 (ORCPT ); Tue, 20 Nov 2018 22:50:27 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id A039B10A173B; Tue, 20 Nov 2018 09:20:13 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PE_mYV5USWAE; Tue, 20 Nov 2018 09:20:11 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 812CB10A173C; Tue, 20 Nov 2018 09:20:02 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 32ED62FE1FEE; Tue, 20 Nov 2018 09:20:00 -0800 (PST) From: Eric Anholt To: Florian Fainelli , Rob Herring , Mark Rutland , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stefan Wahren , bcm-kernel-feedback-list@broadcom.com, Eric Anholt Subject: [PATCH 8/8] ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware. Date: Tue, 20 Nov 2018 09:20:00 -0800 Message-Id: <20181120172000.15102-9-eric@anholt.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120172000.15102-1-eric@anholt.net> References: <20181120172000.15102-1-eric@anholt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GRAFX domain only contains V3D, and this driver should be the only accessor of V3D (firmware usage gets disabled when V3D is in the DT), so we can safely make Linux control the GRAFX and GRAFX_V3D power domains. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm2835-rpi.dtsi | 4 ---- arch/arm/boot/dts/bcm283x.dtsi | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi index cb2d6d78a7fb..21a930148709 100644 --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi @@ -87,10 +87,6 @@ power-domains = <&power RPI_POWER_DOMAIN_USB>; }; -&v3d { - power-domains = <&power RPI_POWER_DOMAIN_V3D>; -}; - &hdmi { power-domains = <&power RPI_POWER_DOMAIN_HDMI>; status = "okay"; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index bd5be68b4561..ce7bc9cc43ae 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -3,6 +3,7 @@ #include #include #include +#include /* firmware-provided startup stubs live here, where the secondary CPUs are * spinning. @@ -120,7 +121,7 @@ #interrupt-cells = <2>; }; - watchdog@7e100000 { + pm: watchdog@7e100000 { compatible = "brcm,bcm2835-pm", "brcm,bcm2835-pm-wdt"; #power-domain-cells = <1>; #reset-cells = <1>; @@ -637,6 +638,7 @@ compatible = "brcm,bcm2835-v3d"; reg = <0x7ec00000 0x1000>; interrupts = <1 10>; + power-domains = <&pm BCM2835_POWER_DOMAIN_GRAFX_V3D>; }; vc4: gpu { -- 2.19.1