Received: by 10.223.185.116 with SMTP id b49csp3329225wrg; Mon, 5 Mar 2018 19:24:17 -0800 (PST) X-Google-Smtp-Source: AG47ELt7igc+dbL+ec7bX5hIy5n029KOC5Q3JPMR9jgKqq+u4gb0RYE8GjsWSQHCi8oNXH2YLxO8 X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr15172463plx.147.1520306657574; Mon, 05 Mar 2018 19:24:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520306657; cv=none; d=google.com; s=arc-20160816; b=xZKRvWUofGAJUXIM6CdXeS1BRxB4DQ+Fhpc809uYqQBOYYtCH5vJRG0nNJpU+/QZOy 7HN5JKI/SXG2+F0sMK8DldUV39ngtDF6CDgi/v1xrIGKk0TO1Fl3t74ViaJuC9fNk6GA kk9AE+Nrx/KoztrBwV21hLF8ukznh70h1rW9vgSTp8hG/rzPIAZHMvC1bP2BGmdswWfy DCJsD2PqvbEcpXYV+py1VwwU+63xO7EWn1iXVBVvV7HXkgKUuGr2KcrSB0iPJuJXwqsA JdGo2nUp/PRWbckw6PGTMt0RPo3rzQrHbC6rSRQY9xar/n+/ib9oIBjW3mNG+M6dREL2 5Nxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=hhSn5cZBJzcv5OiOWxc3uKaiTYkhl2QMx9uuWUXsOKo=; b=TdwSCbeC81cipNEo9dHlMJu2jUjDF35jJAur0XCa8opYdCGA6//xUdoSiTDr5chayw cJ5KOa1TuT4Nxzv7cHFcy2cGnVhS0W81OfpF+VnuiW7rIgYZxs3kHqd+xwRP1bSHQPtg 50kFJlhrBkAU0fSt9myKjeu/cfzTBhdVXQzss9iP4BkQb3FaLJG/xy/80FnoRJ0q5RCC ffJi8FanpbVqE9Rm8iC/GF5dMdWvjKakhlx9YjG0KXz0qZj8gz9AVPke/UFIOpwLhmFj 3DtS3qja+w6GGeSTihPiQxU5fWM9V6a0DOxzY/zoRXM3VQhNA4eSk+T1/FtRJ7RX6wnp +PKQ== 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 r6-v6si3807816pls.806.2018.03.05.19.24.03; Mon, 05 Mar 2018 19:24:17 -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 S1753365AbeCFDWm (ORCPT + 99 others); Mon, 5 Mar 2018 22:22:42 -0500 Received: from regular1.263xmail.com ([211.150.99.137]:33243 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbeCFDWi (ORCPT ); Mon, 5 Mar 2018 22:22:38 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.205]) by regular1.263xmail.com (Postfix) with ESMTP id 4B3E7DC1F; Tue, 6 Mar 2018 11:22:35 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 217E53DA; Tue, 6 Mar 2018 11:22:22 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 32191IL5SA0; Tue, 06 Mar 2018 11:22:32 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: jcliang@chromium.org, robin.murphy@arm.com, xxm@rock-chips.com, tfiga@chromium.org, Jeffy Chen , devicetree@vger.kernel.org, Heiko Stuebner , linux-rockchip@lists.infradead.org, iommu@lists.linux-foundation.org, Rob Herring , Mark Rutland , Joerg Roedel , linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 09/14] dt-bindings: iommu/rockchip: Add clock property Date: Tue, 6 Mar 2018 11:21:08 +0800 Message-Id: <20180306032113.22247-6-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180306032113.22247-1-jeffy.chen@rock-chips.com> References: <20180306030252.3197-1-jeffy.chen@rock-chips.com> <20180306032113.22247-1-jeffy.chen@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clock property, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Rob Herring --- Changes in v7: None Changes in v6: Fix dt-binding as Robin suggested. Use aclk and iface clk as Rob and Robin suggested, and split binding patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/iommu/rockchip,iommu.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt index 2098f7732264..6ecefea1c6f9 100644 --- a/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt +++ b/Documentation/devicetree/bindings/iommu/rockchip,iommu.txt @@ -14,6 +14,11 @@ Required properties: "single-master" device, and needs no additional information to associate with its master device. See: Documentation/devicetree/bindings/iommu/iommu.txt +- clocks : A list of clocks required for the IOMMU to be accessible by + the host CPU. +- clock-names : Should contain the following: + "iface" - Main peripheral bus clock (PCLK/HCL) (required) + "aclk" - AXI bus clock (required) Optional properties: - rockchip,disable-mmu-reset : Don't use the mmu reset operation. @@ -27,5 +32,7 @@ Example: reg = <0xff940300 0x100>; interrupts = ; interrupt-names = "vopl_mmu"; + clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>; + clock-names = "aclk", "iface"; #iommu-cells = <0>; }; -- 2.11.0