Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp239366imu; Wed, 12 Dec 2018 15:53:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYg5nB9drO29AypZZjfpxXMvArHku2b4Xqx79xhGfjgQbABqHbmZLrx1lB0nQqpnI8yXkQ X-Received: by 2002:a17:902:9a02:: with SMTP id v2mr22184357plp.180.1544658825726; Wed, 12 Dec 2018 15:53:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544658825; cv=none; d=google.com; s=arc-20160816; b=unzHOf1wMHT+malmDzrolOdkeuxKRpb7dJqVvKhLZe5q1dRPnZsno8gqHN7lfMxKZ/ jh1pruFaB763fF838YRG1zR649muLbAPLisPGxluYbRTw/OlJvcR5v5ItnFe/TtIBVIo W+XyWRf/yX4kAixwgsWsjHES+wPsiZ/Vj/qmzQT8MsDLyheMM8+tQpT2EY4SzvxuNrq8 uoYm/h/FrJbef3t5DDs7xylw5rXtbifdLEz02ig22Q7NYuuWy2dtS34vJ1Ep8GbI20Zi Bt9If4cCiSjfzi8OmrAKI9vRu/mm3DpaGdfExn6dIRmyZqY0HmTeFqB50GH+FZej9CJR Elvw== 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=f+baD+Ll9C0DT3edeJpVMBJeBujusEO3RgDfn6KJXpg=; b=QUFUY2m5YHe1xOtoWAszLaKYOp4sS/nxgwkOHvnHj4XptMZe3QF1o1NRRVr4nD7eU5 UQmpOQS0Qp0+ExEm39Ch3DXNkata+zu7eT2mSv/nMbmiuFmw2LaE7vyBdx6oPfNe50Cw 6K2HIm+rqmAish1maU4OQZmoJL3sp0nNunTG2Y0suKvXI8V++1AhMCEf5lBsRjB17OcM 66ox55EHII8SXK/nJ0b+dCaN51eUAqZ5mktvD53kUnmnTUo1cYLXXvC5V36oEsMcEwkP EkjxkdavFeK/4garuoDelDGZ77u8CUIZh+5gb4oqjgFvcPud0R2B+EQDmOttKyEJnSke l3KQ== 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 f16si173872pgg.173.2018.12.12.15.53.31; Wed, 12 Dec 2018 15:53:45 -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 S1728636AbeLLXwV (ORCPT + 99 others); Wed, 12 Dec 2018 18:52:21 -0500 Received: from anholt.net ([50.246.234.109]:59164 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728546AbeLLXwB (ORCPT ); Wed, 12 Dec 2018 18:52:01 -0500 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id F355610A1D8D; Wed, 12 Dec 2018 15:52:00 -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 08fLAr93OSi3; Wed, 12 Dec 2018 15:51:59 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 38D7D10A1D97; Wed, 12 Dec 2018 15:51:52 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 45CA32FE36F1; Wed, 12 Dec 2018 15:51:50 -0800 (PST) From: Eric Anholt To: Florian Fainelli , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, Guenter Roeck , Wim Van Sebroeck , Lee Jones , Stefan Wahren , Mark Rutland , Rob Herring Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Eric Anholt Subject: [PATCH v4 5/5] ARM: bcm283x: Switch V3D over to using the PM driver instead of firmware. Date: Wed, 12 Dec 2018 15:51:50 -0800 Message-Id: <20181212235150.6491-6-eric@anholt.net> X-Mailer: git-send-email 2.20.0.rc1 In-Reply-To: <20181212235150.6491-1-eric@anholt.net> References: <20181212235150.6491-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 --- v4: no change 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 20ed8b1da11b..9777644c6c2b 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>; @@ -638,6 +639,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