Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4184658imu; Fri, 30 Nov 2018 12:28:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ukup1bwkFUsHt3X3FP4c4CbRBvyn6DHwS4Qhp4tlGiHcqXfi49R1mWMahjd2FQ6B9cPkkT X-Received: by 2002:a63:5346:: with SMTP id t6mr6161047pgl.40.1543609737454; Fri, 30 Nov 2018 12:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543609737; cv=none; d=google.com; s=arc-20160816; b=04lzTEXe3ff5Rbr8uIsKK7HWCJhypGfmGOZ8tY6Ni++HXsLRoK3e4a3A7/czgGIQ/h +H6mpFFP4lRXynUqP0ly2L4VGMwB3DFyDM34SeNtOtuuPDqopyxtu+aeSDEXsUR5b9Ly Te1qNLgfHa+ajNk9708dlaEdZCi4cHFpBrm3hqYxmYcSvS7x2rMvaV1eruc+U+xt51hx bEKYTsIubyVltSi1U49+su/ESWmuk3rAl5GYih/HibBIIFsDSjZGN4CmQAkhGjolAYnn 13G1k1D3vCdfKio6gI3L/HFT52mbvtfMEttZLEtQdMinxLjuJx8MWHtXHClSaZoXm10b gXnQ== 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=NzmN9mlMooeLibFdSh5si5cOerB0iSaSo+2S63RcAHQ=; b=Nc8AL04HHQOHunbDeqRq3SP9PE7nCL9Ceu9Ipvru9LFCwjCNW2P+61Mf7xVR1aJfpp oMLGbj6MqJJwDPUKtVdqkcnFuqxCYL7JVJEnZhq/qQFu0TMI78aawNzgVxbZJhMfLH3k GAZLgOUEVtC2ML19k3jl1bdiB9o4rxWXSCZpO+JdtMYxVVAHDHKj7aGpQyTmYjDG3GdJ Mtf4jYReNjxAaHKgOJX5Vv/o4oh6LrxT4a6+lnwmkgeuVGywn6gMbV5euLrUOM0Zo6Gq ViHvTCphH/+EmYSgyglmBmtCfIsOTO92o5SRrb5hWkjERt495xkfOTQ2uIzIKxN7gtwW GbBg== 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 u128si6658713pfc.133.2018.11.30.12.28.43; Fri, 30 Nov 2018 12:28:57 -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 S1726955AbeLAHi3 (ORCPT + 99 others); Sat, 1 Dec 2018 02:38:29 -0500 Received: from anholt.net ([50.246.234.109]:41052 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbeLAHiW (ORCPT ); Sat, 1 Dec 2018 02:38:22 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id EF55810A150B; Fri, 30 Nov 2018 12:27:53 -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 S_f16oxcLygD; Fri, 30 Nov 2018 12:27:52 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 2AD9510A1570; Fri, 30 Nov 2018 12:27:45 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 7B1C82FE2D75; Fri, 30 Nov 2018 12:27:43 -0800 (PST) From: Eric Anholt To: Florian Fainelli , devicetree@vger.kernel.org, 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 v3 5/5] ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware. Date: Fri, 30 Nov 2018 12:27:43 -0800 Message-Id: <20181130202743.20585-6-eric@anholt.net> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181130202743.20585-1-eric@anholt.net> References: <20181130202743.20585-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.20.0.rc1