Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4215646ybi; Mon, 3 Jun 2019 07:26:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLDokLbzArqh8bo/jfgJJ0tCEVu/tsFpyp+36TY1mZTaYxrvzWb1OT5XcxIodBgfglN8W7 X-Received: by 2002:a63:295:: with SMTP id 143mr27904203pgc.279.1559571968830; Mon, 03 Jun 2019 07:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559571968; cv=none; d=google.com; s=arc-20160816; b=K4ZQB61ZLiK1LiqvWcRB4P6uglSyM8I11J6CYJH2EORVrPYHqo/ErtN7tjLEaNoBpe 64o3sgLvtrJSgWKh7NsjtBQxF/AYnge9/B+c3F9vwYarpZwdVe7plE7Jv7foxMyC6whu RJhw2g6fqddEWbGY7gA4Eg6dnLF0h9DudBAzHriHVpF6sX/mhuqjShzTYMEtsUUoG5cz MU9mAsjzirJHQzMc4ClZsLptaM1a4ro1XPhoh13QRMKmSBLd3X8Fp+zvCpES5mc01GqP BFypZ+Mszr/PgU/FDTl4nszziP6mbLUi/x0v0Rp/ZETt9TTMTMLaO6HYdSeIUitZ+j1Y WqEw== 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 :message-id:date:subject:cc:to:from; bh=FLPcoqlpONq7R5BBDVLUoyLD7/ZzxM/MhxQ/I6bEr/w=; b=qyDfVR/tQrIhz1Oj0tU1bolQpoFPgK58hdjDm8qsHfnM+76AT5xeKEnfTqv9jvIlqO oO3t7eEjWAtTdjt3Pa8z9jloZo/bMW/7l6121gg+CVCxdnA6D4amVIQEzz14BYHtHxQu 2/TgoVJnHAR222kUC7so82Nx/rBaVB6old3gGjSdnhm+WFjuA24/0NU5HLwT2PAkpTav n76Zq8rV8YvorOW7et1Mfzi79re5FbvJs8QpNlm7n+KnMi99pdlqINoWz7vBz+o09Uvh 4LdSNzvY13UUnCHO4D6M5G/iavbfMV7aq2SRRDn255W5r8X+eu5sB+hPSxjS8wVla2sV tbJw== 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 b23si7902206pgb.299.2019.06.03.07.25.50; Mon, 03 Jun 2019 07:26:08 -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 S1728991AbfFCOW6 (ORCPT + 99 others); Mon, 3 Jun 2019 10:22:58 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34446 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbfFCOW6 (ORCPT ); Mon, 3 Jun 2019 10:22:58 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id A1E642639EE From: Helen Koike To: linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, ezequiel@collabora.com, laurent.pinchart@ideasonboard.com, manivannan.sadhasivam@linaro.org, Helen Koike , 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 Subject: [PATCH] arm64: dts: rockchip: fix isp iommu clocks and power domain Date: Mon, 3 Jun 2019 11:22:15 -0300 Message-Id: <20190603142214.24686-1-helen.koike@collabora.com> X-Mailer: git-send-email 2.20.1 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 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. 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 { -- 2.20.1