Received: by 10.223.176.46 with SMTP id f43csp512289wra; Thu, 18 Jan 2018 21:15:21 -0800 (PST) X-Google-Smtp-Source: ACJfBouP+oVFpZTNbUZKn0YC/YSh/YFtT1bRfw2eRLkH07FqQ91g4jIIlgBR5EUplzbc/AzXXgPJ X-Received: by 10.99.179.77 with SMTP id x13mr39633204pgt.217.1516338921879; Thu, 18 Jan 2018 21:15:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516338921; cv=none; d=google.com; s=arc-20160816; b=cprdYFN8SBisx7iQ4p4miCwdFhoEu2dRaHuecu7vMUfXqkKlz9Iiizy7tUZxBaozWL ERvake+tdgY6QYeDdeg7gDCf/RJQBXikMBhHFtdw+FuKVy10gxFTAs8f5zdZ/am8ecvL fegx9x+ngkeSu60r590QjgPas0jfhRKHuEE0JFgsyUVrRHa8WDHxcPm74tyUEVoxn2Gm e4fKpXT1pC+WIV404kcY1PnGAA0Z4Ma63eNIZbKqM6jFztDNTVYGd75dXzQelDStxvBZ dEQQgFSqmZYga7AlWyq9hMK2SznR0LP7UX2RVyDToVtIA1tUFwNo8rMUgYi25yqBVcHW eImg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LFe0Z7oqhwiExJG2VvgYENx2ae2letFbN8gUs1LexEo=; b=Ikt38Zl/rYxw2xP2vYOZhVPxr9uLfFymkiucvxWt96lrXDS0lrN2P4Uy6Bh4LpvS1Y Sh9MeVO0GfOK4yRI+P28j+6YuypdSt7fF2VlX/PQk8DEwrzlq/SamDkGXBC3O+hNEP2Q rVVtHNHSpqV7GQMXbXeGh2r03ypL8XBCIJY10DOyPFbirNBPFuzJFZGsBWGrA/SowBMj kDZfaBxlw9Vb9GGR7Yvv8hRGp8IwyaJq2QDRa4ISbYonQ0igl+YlZYOx49yCGy7ojQmR 8jmraFr3LS1jyJTbqWZfREx93mkyP54/fH5L4b8VlhC497sRq+eIlaWrkeHivSoRIwUe 1d0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y82MHtOW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si4792782pgn.157.2018.01.18.21.15.07; Thu, 18 Jan 2018 21:15:21 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Y82MHtOW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbeASFNI (ORCPT + 99 others); Fri, 19 Jan 2018 00:13:08 -0500 Received: from mail-vk0-f67.google.com ([209.85.213.67]:45009 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbeASFNC (ORCPT ); Fri, 19 Jan 2018 00:13:02 -0500 Received: by mail-vk0-f67.google.com with SMTP id q62so287691vkb.11 for ; Thu, 18 Jan 2018 21:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LFe0Z7oqhwiExJG2VvgYENx2ae2letFbN8gUs1LexEo=; b=Y82MHtOWU/322pDSe0KU7LCVhmQ5eEew8DG6BOYroTuCN3UCiSOgO6KvWwra1fBkKX IhZApvRHkaWqz9THTtcMH3O1pAU5898Kh+w+9fJjK0ID8j0801DdZMSdm8riEJFyZ0un 4VyzRTzmSJUfguvL3EYS0gXEFYzB99NZSNVcc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LFe0Z7oqhwiExJG2VvgYENx2ae2letFbN8gUs1LexEo=; b=tREM90+4b14IQXj7g72H9wZVGB4WU16awNTI584nsugcO7CTrfRPN5Ln9f1yYA1Oba 0huU0/2LGS9CN/qY71TPeENZ/LVP55s7vUOuUUSqHB1+bkczN8C258H0QrCZ4GR5bQ13 bA/kAq8jBffNRCQytHRnhfuyqTpPNTq7BbmmjZJ/rdoQMW1EK0B7kRqvDC7dohD9j/Dr KTdoc1ZZP33uCXEAagy5Mt1749EREangj6VUjmFwcb5Zeo6L6YgvIe8BaXNHc0Kh0+kv sMeK+YrbZ3uLT3xUxIy4ACZnoYZEPKqOVbE5JAhplWbvbHuy+fdxeIjbNFz632DDKzIj w+8A== X-Gm-Message-State: AKwxyteejIZ5O0uwsaMl0bpH8RSmmcprbPf7yAFHTHXllpPJYV7RV/2I Mpg2XE4PbqpdMDhRKNNSAMSfoijC6vc= X-Received: by 10.31.128.20 with SMTP id b20mr5616317vkd.147.1516338781641; Thu, 18 Jan 2018 21:13:01 -0800 (PST) Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com. [209.85.217.182]) by smtp.gmail.com with ESMTPSA id j7sm893565uak.1.2018.01.18.21.13.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 21:13:01 -0800 (PST) Received: by mail-ua0-f182.google.com with SMTP id p1so345494uab.4 for ; Thu, 18 Jan 2018 21:13:01 -0800 (PST) X-Received: by 10.159.48.195 with SMTP id k3mr6889295uab.4.1516338780799; Thu, 18 Jan 2018 21:13:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.45.142 with HTTP; Thu, 18 Jan 2018 21:12:39 -0800 (PST) In-Reply-To: <5A617A5E.6070606@rock-chips.com> References: <20180118115251.5542-1-jeffy.chen@rock-chips.com> <20180118115251.5542-8-jeffy.chen@rock-chips.com> <5A617A5E.6070606@rock-chips.com> From: Tomasz Figa Date: Fri, 19 Jan 2018 14:12:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 07/13] ARM: dts: rockchip: add clocks in vop iommu nodes To: JeffyChen Cc: linux-kernel@vger.kernel.org, Ricky Liang , Robin Murphy , simon xue , devicetree@vger.kernel.org, Heiko Stuebner , "open list:ARM/Rockchip SoC..." , Rob Herring , Mark Rutland , Russell King , "list@263.net:IOMMU DRIVERS" , Joerg Roedel , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 19, 2018 at 1:55 PM, JeffyChen wrote: > Hi Tomasz, > > Thanks for your reply. > > > On 01/19/2018 11:23 AM, Tomasz Figa wrote: >> >> On Thu, Jan 18, 2018 at 8:52 PM, Jeffy Chen >> wrote: >>> >>> Add clocks in vop iommu nodes, since we are going to control clocks in >>> rockchip iommu driver. >>> >>> Signed-off-by: Jeffy Chen >>> --- >>> >>> Changes in v4: None >>> Changes in v3: None >>> Changes in v2: None >>> >>> arch/arm/boot/dts/rk3036.dtsi | 2 ++ >>> arch/arm/boot/dts/rk3288.dtsi | 4 ++++ >>> 2 files changed, 6 insertions(+) >>> >>> diff --git a/arch/arm/boot/dts/rk3036.dtsi >>> b/arch/arm/boot/dts/rk3036.dtsi >>> index 3b704cfed69a..95b0ebc7a40f 100644 >>> --- a/arch/arm/boot/dts/rk3036.dtsi >>> +++ b/arch/arm/boot/dts/rk3036.dtsi >>> @@ -197,6 +197,8 @@ >>> reg = <0x10118300 0x100>; >>> interrupts = ; >>> interrupt-names = "vop_mmu"; >>> + clocks = <&cru ACLK_LCDC>, <&cru SCLK_LCDC>, <&cru >>> HCLK_LCDC>; >>> + clock-names = "aclk_vop", "dclk_vop", "hclk_vop"; >> >> >> We should remove clock-names from IOMMU nodes. The Rockchip IOMMU >> bindings don't define clock names and only the clocks property should >> be given. >> > hmmm, i'm trying to switch to clk_bulk APIs, the get and put are name based. > or maybe i can use clk_get/put along with other clk_bulk APIs I think it should be possible to just put the clock pointers to the clk_bulk_data struct manually. Otherwise, I'm not sure what names we could use for clock-names, since the clocks depend on master. (Something like "clock0, clock1, clock2, ..., clockN" could work, but it doesn't add any value IMHO...).