Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2744418ybh; Mon, 5 Aug 2019 06:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu8I5T7WzSIujUN2cy46748sq5hM3eHZV7DGTHDJb4QeFHK2AgtcJSAXkeTs7kYcalS0yg X-Received: by 2002:a63:4404:: with SMTP id r4mr134281632pga.245.1565010687988; Mon, 05 Aug 2019 06:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565010687; cv=none; d=google.com; s=arc-20160816; b=FRaHW2KPrt6KU0LRuRTwUrHbBAIys1Po3gL9r/d2kCt2A5R+ydR1C/Z8fLebxYJDJl fQmfjc0a/KY4C0YNVtELqWAbFzYU+whhcow8XwUSqZrg4DHEkOqmhaq71PC75rX7vteG UMVaYaDsMT4UNVMcJCOpa0XsstZOBtgSE27caKaTVMEQYKPVuk+TtF3HenMnHJMUl7SK ubHF1oDiGIpC1DXopF5o3hD4aNJKflVg7v8ongrRZXwXJNa/W7eM4B34lopRHFvZx3Gl bIYpzqc/pl0llQqPtEVwdADLcEFl4o+HmZOdZkgR7qn1LuJ+Y3MXzSKUWcx1phFAFo1g wNWw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+fUZhcFeYM+4ooBAqyGe375xAUNutmoQgl81nIboCC0=; b=QCSvhVGKg7rlXaWDHnT8x3xkw3QwIvRxnRRDj+GFkMgf7uok0ZoKllsqcGR6dwOJ63 n7IfYFjtFq5nfYxm8wY466P2g4aQBeEtuBPwQm2WEvwbsVA0rRWkC5JAlFahdSVkYBeN wUHYZp8MdIWPnW8GZe5VbZteTOPADwcjy9Km4isdTf9PvkQ+DF87FoVLnAD2YSnj9t4m D/+yEEDkNujffB4AfxYDnrVXlkp7cme3G/7Kb86O9F5AhFwT0WDZNSByLcwzxsv+osfW Y0YzlWsTXNSfYgwfJ+pJOO3CglAGjRIbXRhybUBFpEmas27KQPhm5EvdqNt7Uwa/Dq7N gyHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g9W2Nx9Z; 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 v10si44482805pgq.17.2019.08.05.06.11.12; Mon, 05 Aug 2019 06:11:27 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=g9W2Nx9Z; 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 S1730199AbfHENJe (ORCPT + 99 others); Mon, 5 Aug 2019 09:09:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:47944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730183AbfHENJ1 (ORCPT ); Mon, 5 Aug 2019 09:09:27 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4A3C72067D; Mon, 5 Aug 2019 13:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565010566; bh=2IYgGqFG/OoL4MWQd8kAJD61tmA7dbMQV4lf9BIqyhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g9W2Nx9ZWOtVktpM2fHMTOJIhUBMabUrNOuBec6IH8nHirP2jFy/rpEKbVDjTQKWp 3cigTtzEMzAIo+T9KBLIKMcrX9L3c0Su8ngKG71yQL/6augWH5cJiR3EU3sSY+sZ99 qs6eZkHm2yWe6W98GWCBSjNKuC64utYtVxj/W2Yw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helen Koike , Manivannan Sadhasivam , Heiko Stuebner , Sasha Levin Subject: [PATCH 4.19 07/74] arm64: dts: rockchip: fix isp iommu clocks and power domain Date: Mon, 5 Aug 2019 15:02:20 +0200 Message-Id: <20190805124936.406725861@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190805124935.819068648@linuxfoundation.org> References: <20190805124935.819068648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit c432a29d3fc9ee928caeca2f5cf68b3aebfa6817 ] isp iommu requires wrapper variants of the clocks. noc variants are always on and using the wrapper variants will activate {A,H}CLK_ISP{0,1} due to the hierarchy. Tested using the pending isp patch set (which is not upstream yet). Without this patch, streaming from the isp stalls. Also add the respective power domain and remove the "disabled" status. Refer: RK3399 TRM v1.4 Fig. 2-4 RK3399 Clock Architecture Diagram RK3399 TRM v1.4 Fig. 8-1 RK3399 Power Domain Partition Signed-off-by: Helen Koike Tested-by: Manivannan Sadhasivam Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index df7e62d9a6708..cea44a7c7cf99 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1643,11 +1643,11 @@ reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>; interrupts = ; interrupt-names = "isp0_mmu"; - clocks = <&cru ACLK_ISP0_NOC>, <&cru HCLK_ISP0_NOC>; + clocks = <&cru ACLK_ISP0_WRAPPER>, <&cru HCLK_ISP0_WRAPPER>; clock-names = "aclk", "iface"; #iommu-cells = <0>; + power-domains = <&power RK3399_PD_ISP0>; rockchip,disable-mmu-reset; - status = "disabled"; }; isp1_mmu: iommu@ff924000 { @@ -1655,11 +1655,11 @@ reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>; interrupts = ; interrupt-names = "isp1_mmu"; - clocks = <&cru ACLK_ISP1_NOC>, <&cru HCLK_ISP1_NOC>; + clocks = <&cru ACLK_ISP1_WRAPPER>, <&cru HCLK_ISP1_WRAPPER>; clock-names = "aclk", "iface"; #iommu-cells = <0>; + power-domains = <&power RK3399_PD_ISP1>; rockchip,disable-mmu-reset; - status = "disabled"; }; hdmi_sound: hdmi-sound { -- 2.20.1