Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp820515imm; Tue, 3 Jul 2018 00:05:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2MyWFlN77St9AGoM6eAsw664fqHrAwmYFOMHLhLq71IleDPtS/e5h7YGrlz8UseYMFIWf X-Received: by 2002:a62:4c88:: with SMTP id e8-v6mr28112708pfj.99.1530601533392; Tue, 03 Jul 2018 00:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530601533; cv=none; d=google.com; s=arc-20160816; b=InuFijZ5qAqR5QlxXx/bmhBIc3g1wZ8a73JWT+2EFuYq7stzKBL21Fy5e97oZ8bUeS 2f43mUZA01z0wOsYfBLk/ZNUIIViA6OZAnrdTg5U5owf48Qey19UYyOdeu54uMSBTqJV cgbU6MDKMM42gm49zTAxGrYoJA4ljq5/itbVUWkrbzMoZNJQq5QKd01OvlM28uJL7bZZ JFn0P5wg5MZY+X/7NZOIr6F905mNTM6hL1JCNCfygQznghebPyjjsoNCLkSohPaG2anw BmEqbidGi3ty6gQjy4MenYi2EpCDrWPlGvR02m9tJPPupyMznqs7PSkGhDD5VRcTDZHT GCVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=H0YeWxYBBpYLCHw1rru+1ip2aA5j2xw8Gts5ANn45h4=; b=UzyQ28jHmVYZrJt7wgCfEnosNj4rmZD/Z0nTBa3wMAikgJ+beWdqoIqjpTeM1tJTB/ KgS7J9Zb+/DnBLbVhE7+YSy1ohB/lQAuZ9oX5ppiEgwt+BZGLgJrhQp/iiBTSoS2pfRY ZlbAa9j/c/bnDe45ESbSEs28/MUGDXn5NTkERrI+qC8K9Q4gfNMhBXICoCHcCC4v5WLS sKA2NGb5FHDQ9qVvJcUaE7iA79Pd7+QSvLydZbpEusvphJuZKaJ4I9uPbkXZmHz3vfRz j1ob0bhrWkgV7SeGZ3jmqO3QFi6rFn8leM9J6GjbUVnZtYqkVhXp7cW6R9TMPwUyRcmc AUHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aTUI2Hd7; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si487669pls.53.2018.07.03.00.05.19; Tue, 03 Jul 2018 00:05:33 -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=@linaro.org header.s=google header.b=aTUI2Hd7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754520AbeGCHEX (ORCPT + 99 others); Tue, 3 Jul 2018 03:04:23 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55541 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754483AbeGCHEU (ORCPT ); Tue, 3 Jul 2018 03:04:20 -0400 Received: by mail-wm0-f67.google.com with SMTP id v16-v6so1056063wmv.5 for ; Tue, 03 Jul 2018 00:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=H0YeWxYBBpYLCHw1rru+1ip2aA5j2xw8Gts5ANn45h4=; b=aTUI2Hd7gObMtGAasV4VZXnJ3B9rz9/rerB9dkXoG/c28D99yFMBNyO79P1a+zbrzB /vUno6rcxgGorYRLQjahbQkSFYE4UYFwEFoD5scvHTVZbNHBxyuC2mtaPBIv38hlljmz vEgX+9dICG89kV1zYfiiMK2EEBfguFaOtXRh4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=H0YeWxYBBpYLCHw1rru+1ip2aA5j2xw8Gts5ANn45h4=; b=nKN50B52ypqFCu4FVdGCjrqC6oIzOdZW10exa5vnr/fGpTnHT92LbKW/3mhKNOIZPH uBTG2Oy6hZugbSDKOaqgM+6Td+18oTsVZ6PAxNHOoGQxXH2GOwjiahaEF49hQieUc0M4 pVn1hRQIQDL1t5qA3ehSuDR1PW9oCjk3+XMdWR/sPqtzoSMgO0qd4dZjJD7UwBTvUvlg cYy1mmXXCPdKwJgLFFosONEUMM3q9rMCHLuxWxOd06y9rsevROJTr8KKWTvkFdL7vlTU H+++ZrpVJe4y+pINDrPMjlw/ycyPJMr5l9HyuyefFBnJTwykwoUKRZb38TQLNf6b8WUc htLg== X-Gm-Message-State: APt69E0IGjLpK59N+XCiRWz1/br5sOzqmbCDgTb7ZzAGx9z7eyvHvk7J /7l98PIYTY8Ibyl2KcBb2L/1Tw== X-Received: by 2002:a1c:8f0e:: with SMTP id r14-v6mr9545960wmd.79.1530601459567; Tue, 03 Jul 2018 00:04:19 -0700 (PDT) Received: from dell ([2.27.167.87]) by smtp.gmail.com with ESMTPSA id f133-v6sm1038059wme.42.2018.07.03.00.04.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 00:04:18 -0700 (PDT) Date: Tue, 3 Jul 2018 08:04:16 +0100 From: Lee Jones To: Matthias Brugger Cc: matthias.bgg@kernel.org, ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger Subject: Re: [v3 01/10] dt-bindings: mediatek: mmsys: Add support for mfd Message-ID: <20180703070416.GD20176@dell> References: <64ca273429d92f581568a48f3efe6035af65f579.1524820923.git.mbrugger@suse.com> <20180430103029.GD5147@dell> <4ead47f6-2f69-2afa-bfcc-a240a9845dc4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4ead47f6-2f69-2afa-bfcc-a240a9845dc4@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Jun 2018, Matthias Brugger wrote: > > > On 30/04/18 12:30, Lee Jones wrote: > > On Fri, 27 Apr 2018, matthias.bgg@kernel.org wrote: > > > >> From: Matthias Brugger > >> > >> Add binding description for the mmsys mfd for some Mediatek > >> devices. mmsys has some registers to control clock gates (which is > >> used in the clk driver) and some registers to set the routing and enable > >> the differnet blocks of the display subsystem. > >> > >> Signed-off-by: Matthias Brugger > >> --- > >> .../bindings/arm/mediatek/mediatek,mmsys.txt | 2 -- > >> .../bindings/display/mediatek/mediatek,disp.txt | 2 +- > >> .../devicetree/bindings/mfd/mediatek,mmsys.txt | 27 ++++++++++++++++++++++ > >> 3 files changed, 28 insertions(+), 3 deletions(-) > >> create mode 100644 Documentation/devicetree/bindings/mfd/mediatek,mmsys.txt > >> > >> diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt > >> index 4eb8bbe15c01..4468345f8b1a 100644 > >> --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt > >> +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt > >> @@ -6,10 +6,8 @@ The Mediatek mmsys controller provides various clocks to the system. > >> Required Properties: > >> > >> - compatible: Should be one of: > >> - - "mediatek,mt2701-mmsys", "syscon" > >> - "mediatek,mt2712-mmsys", "syscon" > >> - "mediatek,mt6797-mmsys", "syscon" > >> - - "mediatek,mt8173-mmsys", "syscon" > >> - #clock-cells: Must be 1 > >> > >> The mmsys controller uses the common clk binding from > >> diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt > >> index 383183a89164..85a3b4ec06cd 100644 > >> --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt > >> +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt > >> @@ -9,7 +9,7 @@ function block. > >> > >> All DISP device tree nodes must be siblings to the central MMSYS_CONFIG node. > >> For a description of the MMSYS_CONFIG binding, see > >> -Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt. > >> +Documentation/devicetree/bindings/mfd/mediatek,mmsys.txt > >> > >> DISP function blocks > >> ==================== > >> diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mmsys.txt b/Documentation/devicetree/bindings/mfd/mediatek,mmsys.txt > >> new file mode 100644 > >> index 000000000000..2331ae16917e > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/mfd/mediatek,mmsys.txt > >> @@ -0,0 +1,27 @@ > >> +MediaTek MMSYS Multifunction Device Driver > > > > What is "MMSYS"? > > > > "Multi-Function Driver"s are specific to Linux. > > > > What actually is the device? > > It's includes all the DRM parts of the SoC together with the clocks for the > device. MMSYS IMHO stands for Multi-Media-System. Please update the document with that information. Is there a datasheet I can view? > >> +MMSYS is a multifunction device with the following sub modules: > >> +- clocks for the multi-media subsystem > >> +- central node for the DRM subsystem. > >> + > >> +This document describes the binding for MFD device. The MFD takes care to initailize > >> +the clock driver and the DRM driver. More info see > >> +Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt > >> + > >> +Required properties: > >> +- compatible: Should be one of: > >> + - "mediatek,mt2701-mmsys", "syscon" > >> + - "mediatek,mt8173-mmsys", "syscon" > >> +- #clock-cells: Must be 1 > >> + > >> +Optional properties: > >> +- power-domains: list of powerdomains needed for the subsystem to work > >> + > >> +Example: > >> + > >> +mmsys: clock-controller@14000000 { > >> + compatible = "mediatek,mt8173-mmsys", "syscon"; > >> + reg = <0 0x14000000 0 0x1000>; > >> + power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; > >> + #clock-cells = <1>; > >> +}; > > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog