Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4240934ybi; Mon, 3 Jun 2019 07:48:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwviyec9IyRIJvlZ3/5SF7kGIF/6fQozY6e8qD3FdDBwLtwXm8lf3b4ztnd9p+HxWKjFIkf X-Received: by 2002:a62:e511:: with SMTP id n17mr25942314pff.181.1559573319470; Mon, 03 Jun 2019 07:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559573319; cv=none; d=google.com; s=arc-20160816; b=z0aABFKWMguYux43BpDP/Suc2pt1lf5Y5MHOJleH0wRus4v+4JOVIom4lo5irwW+3u DQP1wqpX9UeNUykPDb1fXl0E+whG1R79mOnFtGE+j71cBePq94e6e6AHiN/l6rBYVsvr bRCq5BzChRrYaMArzYu1bP0SMGoEKVr/jOn+l8e9C2fZvQie/O5yxbpqbGdYedU9LIZA VmxODRPy5jCegBDgBPPC3w7pbbkx5ImrWLsGfaOwZwGIhzt3nWtmIJ8c4XvwbAE7itQF 2hWvyQse9JVA7PSQ1ZtN/pdqyXROoIzUcAft57D+XeZnlVan+Xf4sIDotHLibS6rufM5 I5FA== 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:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=u4uwHEk5dEyBH/r4Bchmxha1L7UJFiRTHNPWfbK4SaY=; b=BTrNwBPtvhayKNvrP9phHWTz7YtQ0fysk89WNf6cavtLE9FW5s5wj0EsqJSVpiQzlJ Dsf8nTmqCj7CU/tqVOi96ySbfkILVuePYggdXKextM1pwGEuLWOrGP3ITMY+m5xurlJw kV8MYugwF5rC8BMrRpPtCKrmqTn7Qt2lduYu3YrKR4JOWRE1pPkfrXWJwOWLQEsNXlGM HvUM9lye+oglY7WUVTHYGb+1Y2piM/B3Wn28SOP+Pz4HKtuXFXunqMHCLnipoGcPeT0X 3cToorMVJRNnY3D3G7XJH9zLlYHVR3ot4kXt10TrYMT1WEIL0q96lgEyyD2Xx3GeigZC PejQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1si19778892pfd.258.2019.06.03.07.48.21; Mon, 03 Jun 2019 07:48:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729289AbfFCOo4 (ORCPT + 99 others); Mon, 3 Jun 2019 10:44:56 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34592 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728722AbfFCOoz (ORCPT ); Mon, 3 Jun 2019 10:44:55 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 5A81B28A185 Message-ID: <435028daafebcf23425dd5b9338dc3126fac8b89.camel@collabora.com> Subject: Re: [PATCH] arm64: dts: rockchip: fix isp iommu clocks and power domain From: Ezequiel Garcia To: Helen Koike , linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, laurent.pinchart@ideasonboard.com, manivannan.sadhasivam@linaro.org, linux-arm-kernel@lists.infradead.org, Vicente Bergas , Heiko Stuebner , devicetree@vger.kernel.org, Klaus Goger , linux-kernel@vger.kernel.org, Christoph Muellner , Randy Li , Philipp Tomsich , Rob Herring , Tony Xie , Mark Rutland , Viresh Kumar , Marc Zyngier , Matthias Brugger Date: Mon, 03 Jun 2019 11:44:43 -0300 In-Reply-To: <20190603142214.24686-1-helen.koike@collabora.com> References: <20190603142214.24686-1-helen.koike@collabora.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-06-03 at 11:22 -0300, Helen Koike wrote: > 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. > > Also add the respective power domain. > > 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 > > --- > Hello, > > I tested this using the isp patch set (which is not upstream > yet). Without this patch, streaming from the isp stalls. > > I'm also enabling the power domain and removing the disable status, > please let me know if this should be done in a separated patch. > I think you might want to put the comments about enabling power domain and removing disable status on the commit log. It's useful information :-) Thanks, Eze > Thanks > Helen > > 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 196ac9b78076..89594a7276f4 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > @@ -1706,11 +1706,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 { > @@ -1718,11 +1718,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 {